Table "General Posting Setup"
Defines G/L account assignments for automatic posting based on combinations of general business and product posting groups. Controls G/L account selection for sales, purchase, inventory, payment discount, and payment tolerance transactions.
Remarks
Creates posting matrix where each combination of business and product posting group determines specific G/L account assignments. Integrates with sales documents, purchase documents, inventory transactions, and payment processing for automatic account determination. Extensibility: Multiple validation events and account retrieval procedures for custom posting logic.
Properties
| Name | Value |
|---|---|
| Caption | General Posting Setup |
| DrillDownPageID | Page Microsoft.Finance.GeneralLedger.Setup."General Posting Setup" |
| LookupPageID | Page Microsoft.Finance.GeneralLedger.Setup."General Posting Setup" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Gen. Bus. Posting Group" | Code[20] | General business posting group code that identifies the business nature of customers, vendors, or transactions. |
| "Gen. Prod. Posting Group" | Code[20] | General product posting group code that identifies the nature of items or services being sold or purchased. |
| "Sales Account" | Code[20] | G/L account used for posting sales revenue transactions for this posting group combination. |
| "Sales Line Disc. Account" | Code[20] | G/L account used for posting sales line discounts granted to customers for this posting group combination. |
| "Sales Inv. Disc. Account" | Code[20] | G/L account used for posting sales invoice discounts granted to customers for this posting group combination. |
| "Sales Pmt. Disc. Debit Acc." | Code[20] | G/L account used for posting sales payment discount debit entries when payment discounts are adjusted. |
| "Purch. Account" | Code[20] | G/L account used for posting purchase transactions and expense recognition for this posting group combination. |
| "Purch. Line Disc. Account" | Code[20] | G/L account used for posting purchase line discounts received from vendors for this posting group combination. |
| "Purch. Inv. Disc. Account" | Code[20] | G/L account used for posting purchase invoice discounts received from vendors for this posting group combination. |
| "Purch. Pmt. Disc. Credit Acc." | Code[20] | G/L account used for posting purchase payment discount credit entries when payment discounts are adjusted. |
| "COGS Account" | Code[20] | G/L account used for posting cost of goods sold for inventory items sold for this posting group combination. |
| "Inventory Adjmt. Account" | Code[20] | G/L account used for posting inventory value adjustments for this posting group combination. |
| "Sales Credit Memo Account" | Code[20] | G/L account used for posting sales credit memo transactions. Applied when reversing sales transactions or issuing customer refunds. |
| "Purch. Credit Memo Account" | Code[20] | G/L account used for posting purchase credit memo transactions. Applied when reversing purchase transactions or processing vendor refunds. |
| "Sales Pmt. Disc. Credit Acc." | Code[20] | G/L account used for posting sales payment discount credit entries. Applied when customers take early payment discounts on sales invoices. |
| "Purch. Pmt. Disc. Debit Acc." | Code[20] | G/L account used for posting purchase payment discount debit entries. Applied when taking early payment discounts on vendor payments. |
| "Sales Pmt. Tol. Debit Acc." | Code[20] | G/L account used for posting sales payment tolerance debit entries. Applied when accepting underpayments within configured tolerance limits. |
| "Sales Pmt. Tol. Credit Acc." | Code[20] | G/L account used for posting sales payment tolerance credit entries. Applied when accepting overpayments within configured tolerance limits. |
| "Purch. Pmt. Tol. Debit Acc." | Code[20] | G/L account used for posting purchase payment tolerance debit entries. Applied when accepting underpayments within configured tolerance limits on vendor payments. |
| "Purch. Pmt. Tol. Credit Acc." | Code[20] | G/L account used for posting purchase payment tolerance credit entries. Applied when accepting overpayments within configured tolerance limits on vendor payments. |
| "Sales Prepayments Account" | Code[20] | G/L account used for posting sales prepayment transactions. Applied when handling advance payments from customers before final invoicing. |
| "Purch. Prepayments Account" | Code[20] | G/L account used for posting purchase prepayment transactions. Applied when making advance payments to vendors before final invoicing. |
| Description | Text[100] | Descriptive text explaining the purpose or nature of this general posting setup combination. |
| "View All Accounts on Lookup" | Boolean | Controls whether all G/L accounts are shown during account lookup or only relevant account categories are filtered. |
| Blocked | Boolean | Prevents this general posting setup combination from being used in new transactions when enabled. |
| "Purch. FA Disc. Account" | Code[20] | G/L account used for posting purchase fixed asset discount transactions. Applied when processing discount amounts on fixed asset purchases. |
| "Invt. Accrual Acc. (Interim)" | Code[20] | G/L account used for posting inventory accrual amounts during interim inventory processing. Applied when handling inventory transactions with delayed costing updates. |
| "COGS Account (Interim)" | Code[20] | G/L account used for posting cost of goods sold during interim inventory processing. Applied when handling COGS transactions with delayed cost calculation and adjustment. |
| "Direct Cost Non-Inv. App. Acc." | Code[20] | G/L account used for posting direct cost amounts for non-inventory items. Applied during manufacturing processes for direct costs not applied to inventory. |
| "Direct Cost Applied Account" | Code[20] | G/L account used for posting applied direct cost amounts during manufacturing processes. Applied when allocating direct manufacturing costs to work-in-process inventory. |
| "Overhead Applied Account" | Code[20] | G/L account used for posting applied overhead cost amounts during manufacturing processes. Applied when allocating indirect manufacturing costs to work-in-process inventory. |
| "Purchase Variance Account" | Code[20] | G/L account used for posting purchase price variance amounts during manufacturing processes. Applied when actual purchase costs differ from standard costs in manufacturing scenarios. |
| 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
CheckGLAcc
Validates that the specified G/L account exists and is available for posting.
procedure CheckGLAcc(AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| AccNo | Code[20] |
G/L account number to validate |
FindSetupMissingSalesDiscountAccount
Identifies general posting setup records missing sales discount account configuration for the specified discount posting method.
procedure FindSetupMissingSalesDiscountAccount(DiscountPosting: Option; var FieldNumber: Integer): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| DiscountPosting | Option |
Discount posting method to validate account setup for |
| FieldNumber | Integer |
Returns field number of missing account configuration |
Returns
| Type | Description |
|---|---|
| Boolean |
True if records with missing sales discount accounts are found |
FindSetupMissingPurchDiscountAccount
Identifies general posting setup records missing purchase discount account configuration for the specified discount posting method.
procedure FindSetupMissingPurchDiscountAccount(DiscountPosting: Option; var FieldNumber: Integer): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| DiscountPosting | Option |
Discount posting method to validate account setup for |
| FieldNumber | Integer |
Returns field number of missing account configuration |
Returns
| Type | Description |
|---|---|
| Boolean |
True if records with missing purchase discount accounts are found |
GetCOGSAccount
Retrieves the cost of goods sold account for this posting group combination with error handling for missing configuration.
procedure GetCOGSAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
COGS account number or empty if not configured |
GetCOGSInterimAccount
Retrieves the G/L account number for interim cost of goods sold postings.
procedure GetCOGSInterimAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for interim COGS transactions, validates account exists before returning |
GetInventoryAdjmtAccount
Retrieves the G/L account number for inventory adjustment postings.
procedure GetInventoryAdjmtAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for inventory adjustment transactions, validates account exists before returning |
GetInventoryAccrualAccount
Retrieves the G/L account number for inventory accrual postings.
procedure GetInventoryAccrualAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for inventory accrual transactions, validates account exists before returning |
GetSalesAccount
Retrieves the sales account for this posting group combination with error handling for missing configuration.
procedure GetSalesAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Sales account number or logs error if not configured |
GetSalesCrMemoAccount
Retrieves the G/L account number for sales credit memo postings.
procedure GetSalesCrMemoAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for sales credit memo transactions, validates account exists before returning |
GetSalesInvDiscAccount
Retrieves the G/L account number for sales invoice discount postings.
procedure GetSalesInvDiscAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for sales invoice discount transactions, validates account exists before returning |
GetSalesLineDiscAccount
Retrieves the G/L account number for sales line discount postings.
procedure GetSalesLineDiscAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for sales line discount transactions, validates account exists before returning |
GetSalesPmtDiscountAccount
Retrieves the G/L account number for sales payment discount postings.
procedure GetSalesPmtDiscountAccount(Debit: Boolean): Code[20]
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for sales payment discount transactions, validates account exists before returning |
GetSalesPmtToleranceAccount
Retrieves the G/L account number for sales payment tolerance postings.
procedure GetSalesPmtToleranceAccount(Debit: Boolean): Code[20]
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for sales payment tolerance transactions, validates account exists before returning |
GetSalesPrepmtAccount
Retrieves the G/L account number for sales prepayment postings.
procedure GetSalesPrepmtAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for sales prepayment transactions, validates account exists before returning |
GetPurchAccount
Retrieves the G/L account number for purchase postings.
procedure GetPurchAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase transactions, validates account exists before returning |
GetPurchCrMemoAccount
Retrieves the G/L account number for purchase credit memo postings.
procedure GetPurchCrMemoAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase credit memo transactions, validates account exists before returning |
GetPurchInvDiscAccount
Retrieves the G/L account number for purchase invoice discount postings.
procedure GetPurchInvDiscAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase invoice discount transactions, validates account exists before returning |
GetPurchLineDiscAccount
Retrieves the G/L account number for purchase line discount postings.
procedure GetPurchLineDiscAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase line discount transactions, validates account exists before returning |
GetPurchPmtDiscountAccount
Retrieves the G/L account number for purchase payment discount postings.
procedure GetPurchPmtDiscountAccount(Debit: Boolean): Code[20]
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase payment discount transactions, validates account exists before returning |
GetPurchPmtToleranceAccount
Retrieves the G/L account number for purchase payment tolerance postings.
procedure GetPurchPmtToleranceAccount(Debit: Boolean): Code[20]
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase payment tolerance transactions, validates account exists before returning |
GetPurchPrepmtAccount
Retrieves the G/L account number for purchase prepayment postings.
procedure GetPurchPrepmtAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase prepayment transactions, validates account exists before returning |
GetPurchFADiscAccount
Retrieves the G/L account number for purchase fixed asset discount postings.
procedure GetPurchFADiscAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase FA discount transactions, validates account exists before returning |
GetDirectCostAppliedAccount
Retrieves the G/L account number for direct cost applied postings in manufacturing.
procedure GetDirectCostAppliedAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for direct cost applied transactions, validates account exists before returning |
GetDirectCostNonInvtAppliedAccount
Retrieves the G/L account number for direct cost non-inventory applied postings in manufacturing.
procedure GetDirectCostNonInvtAppliedAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for non-inventory direct cost applied transactions, validates account exists before returning |
GetOverheadAppliedAccount
Retrieves the G/L account number for overhead applied postings in manufacturing.
procedure GetOverheadAppliedAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for overhead applied transactions, validates account exists before returning |
GetPurchaseVarianceAccount
Retrieves the G/L account number for purchase variance postings in manufacturing.
procedure GetPurchaseVarianceAccount(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Account number for purchase variance transactions, validates account exists before returning |
SetAccountsVisibility
Configures account field visibility on posting setup pages based on system configuration. Sets visibility flags for payment tolerance, payment discount, and various discount account fields.
procedure SetAccountsVisibility(var PmtToleranceVisible: Boolean; var PmtDiscountVisible: Boolean; var SalesInvDiscVisible: Boolean; var SalesLineDiscVisible: Boolean; var PurchInvDiscVisible: Boolean; var PurchLineDiscVisible: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PmtToleranceVisible | Boolean |
Returns true if payment tolerance accounts should be visible |
| PmtDiscountVisible | Boolean |
Returns true if payment discount accounts should be visible |
| SalesInvDiscVisible | Boolean |
Returns true if sales invoice discount accounts should be visible |
| SalesLineDiscVisible | Boolean |
Returns true if sales line discount accounts should be visible |
| PurchInvDiscVisible | Boolean |
Returns true if purchase invoice discount accounts should be visible |
| PurchLineDiscVisible | Boolean |
Returns true if purchase line discount accounts should be visible |
SuggestSetupAccounts
Suggests default G/L account assignments for posting setup configuration. Analyzes existing accounts and recommends appropriate accounts for sales, purchase, and inventory postings.
procedure SuggestSetupAccounts()
Events
OnAfterSuggestInvtAccounts
Integration event raised after suggesting inventory-related G/L account assignments during posting setup account suggestion. Enables custom logic for modifying suggested inventory accounts based on business requirements.
[IntegrationEvent(False,False)]
local procedure OnAfterSuggestInvtAccounts(var GeneralPostingSetup: Record "General Posting Setup"; var RecRef: RecordRef)
Parameters
| Name | Type | Description |
|---|---|---|
| GeneralPostingSetup | Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup" |
General posting setup record being updated with suggested accounts |
| RecRef | RecordRef |
Record reference for accessing field values and metadata |
OnAfterSuggestSalesAccounts
Integration event raised after suggesting sales-related G/L account assignments during posting setup account suggestion. Enables custom logic for modifying suggested sales accounts based on business requirements.
[IntegrationEvent(False,False)]
local procedure OnAfterSuggestSalesAccounts(var GeneralPostingSetup: Record "General Posting Setup"; var RecRef: RecordRef)
Parameters
| Name | Type | Description |
|---|---|---|
| GeneralPostingSetup | Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup" |
General posting setup record being updated with suggested accounts |
| RecRef | RecordRef |
Record reference for accessing field values and metadata |
OnAfterSuggestPurchAccounts
Integration event raised after suggesting purchase-related G/L account assignments during posting setup account suggestion. Enables custom logic for modifying suggested purchase accounts based on business requirements.
[IntegrationEvent(False,False)]
local procedure OnAfterSuggestPurchAccounts(var GeneralPostingSetup: Record "General Posting Setup"; var RecRef: RecordRef)
Parameters
| Name | Type | Description |
|---|---|---|
| GeneralPostingSetup | Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup" |
General posting setup record being updated with suggested accounts |
| RecRef | RecordRef |
Record reference for accessing field values and metadata |
OnBeforeGetSalesPrepmtAccount
Integration event raised before retrieving sales prepayment account number. Enables custom account retrieval logic for sales prepayment transactions.
[IntegrationEvent(True,False)]
local procedure OnBeforeGetSalesPrepmtAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for sales prepayment, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchPrepmtAccount
Integration event raised before retrieving purchase prepayment account number. Enables custom account retrieval logic for purchase prepayment transactions.
[IntegrationEvent(True,False)]
local procedure OnBeforeGetPurchPrepmtAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase prepayment, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetCOGSAccount
Integration event raised before retrieving cost of goods sold account number. Enables custom account retrieval logic for COGS transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetCOGSAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for COGS, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetCOGSInterimAccount
Integration event raised before retrieving interim cost of goods sold account number. Enables custom account retrieval logic for interim COGS transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetCOGSInterimAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for interim COGS, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetInventoryAdjmtAccount
Integration event raised before retrieving inventory adjustment account number. Enables custom account retrieval logic for inventory adjustment transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetInventoryAdjmtAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for inventory adjustments, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetInventoryAccrualAccount
Integration event raised before retrieving inventory accrual account number. Enables custom account retrieval logic for inventory accrual transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetInventoryAccrualAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for inventory accrual, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetSalesAccount
Integration event raised before retrieving sales account number. Enables custom account retrieval logic for sales transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for sales, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetSalesCrMemoAccount
Integration event raised before retrieving sales credit memo account number. Enables custom account retrieval logic for sales credit memo transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesCrMemoAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for sales credit memo, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetSalesInvDiscAccount
Integration event raised before retrieving sales invoice discount account number. Enables custom account retrieval logic for sales invoice discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesInvDiscAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for sales invoice discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetSalesLineDiscAccount
Integration event raised before retrieving sales line discount account number. Enables custom account retrieval logic for sales line discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesLineDiscAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for sales line discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetSalesPmtDiscountAccount
Integration event raised before retrieving sales payment discount account number. Enables custom account retrieval logic for sales payment discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesPmtDiscountAccount(Debit: Boolean; var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
| AccountNo | Code[20] |
Account number to use for sales payment discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetSalesPmtToleranceAccount
Integration event raised before retrieving sales payment tolerance account number. Enables custom account retrieval logic for sales payment tolerance transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesPmtToleranceAccount(Debit: Boolean; var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
| AccountNo | Code[20] |
Account number to use for sales payment tolerance, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchAccount
Integration event raised before retrieving purchase account number. Enables custom account retrieval logic for purchase transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchCrMemoAccount
Integration event raised before retrieving purchase credit memo account number. Enables custom account retrieval logic for purchase credit memo transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchCrMemoAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase credit memo, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchInvDiscAccount
Integration event raised before retrieving purchase invoice discount account number. Enables custom account retrieval logic for purchase invoice discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchInvDiscAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase invoice discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchLineDiscAccount
Integration event raised before retrieving purchase line discount account number. Enables custom account retrieval logic for purchase line discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchLineDiscAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase line discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchPmtDiscountAccount
Integration event raised before retrieving purchase payment discount account number. Enables custom account retrieval logic for purchase payment discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchPmtDiscountAccount(Debit: Boolean; var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
| AccountNo | Code[20] |
Account number to use for purchase payment discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchPmtToleranceAccount
Integration event raised before retrieving purchase payment tolerance account number. Enables custom account retrieval logic for purchase payment tolerance transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchPmtToleranceAccount(Debit: Boolean; var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Debit | Boolean |
True to get debit account, false to get credit account |
| AccountNo | Code[20] |
Account number to use for purchase payment tolerance, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchFADiscAccount
Integration event raised before retrieving purchase fixed asset discount account number. Enables custom account retrieval logic for purchase fixed asset discount transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchFADiscAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase FA discount, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetDirectCostAppliedAccount
Integration event raised before retrieving direct cost applied account number. Enables custom account retrieval logic for manufacturing direct cost applied transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDirectCostAppliedAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for direct cost applied, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetOverheadAppliedAccount
Integration event raised before retrieving overhead applied account number. Enables custom account retrieval logic for manufacturing overhead applied transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetOverheadAppliedAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for overhead applied, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |
OnBeforeGetPurchaseVarianceAccount
Integration event raised before retrieving purchase variance account number. Enables custom account retrieval logic for manufacturing purchase variance transactions.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchaseVarianceAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountNo | Code[20] |
Account number to use for purchase variance, can be modified by subscribers |
| IsHandled | Boolean |
Set to true to bypass standard account retrieval logic |