Table "Gen. Product Posting Group"
Defines general product posting groups and default VAT product group linkage. Used to determine posting accounts for item/resource related transactions.
Properties
| Name | Value |
|---|---|
| Caption | Gen. Product Posting Group |
| DataCaptionFields | 1,2 |
| LookupPageID | Page Microsoft.Finance.GeneralLedger.Setup."Gen. Product Posting Groups" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| Code | Code[20] | Unique code identifying the general product posting group. |
| Description | Text[100] | Descriptive name of the posting group for readability. |
| "Def. VAT Prod. Posting Group" | Code[20] | Default VAT product posting group applied when this product group is used. Changing this value can cascade updates to related records. |
| "Auto Insert Default" | Boolean | If true, default VAT product group is auto-inserted on related records. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
ValidateVatProdPostingGroup
Validates and retrieves a General Product Posting Group record by code, indicating if auto-insert is enabled.
procedure ValidateVatProdPostingGroup(var GenProdPostingGrp: Record "Gen. Product Posting Group"; EnteredGenProdPostingGroup: Code[20]): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| GenProdPostingGrp | Table Microsoft.Finance.GeneralLedger.Setup."Gen. Product Posting Group" |
Variable to receive the posting group record |
| EnteredGenProdPostingGroup | Code[20] |
Posting group code to validate and retrieve |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the posting group has Auto Insert Default enabled, false otherwise |
Events
OnValidateDefVATProdPostingGroupOnBeforeGLAcc2Modify
Integration event fired before modifying G/L Account during Default VAT Product Posting Group validation.
[IntegrationEvent(False,False)]
local procedure OnValidateDefVATProdPostingGroupOnBeforeGLAcc2Modify(var GLAccount: Record "G/L Account"; var GenProductPostingGroup: Record "Gen. Product Posting Group")
Parameters
| Name | Type | Description |
|---|---|---|
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
G/L Account record being modified |
| GenProductPostingGroup | Table Microsoft.Finance.GeneralLedger.Setup."Gen. Product Posting Group" |
General Product Posting Group record |
OnValidateDefVATProdPostingGroupOnBeforeItem2Modify
Integration event fired before modifying Item during Default VAT Product Posting Group validation.
[IntegrationEvent(False,False)]
local procedure OnValidateDefVATProdPostingGroupOnBeforeItem2Modify(var Item: Record Item; var GenProductPostingGroup: Record "Gen. Product Posting Group")
Parameters
| Name | Type | Description |
|---|---|---|
| Item | Table Microsoft.Inventory.Item.Item |
Item record being modified |
| GenProductPostingGroup | Table Microsoft.Finance.GeneralLedger.Setup."Gen. Product Posting Group" |
General Product Posting Group record |