Codeunit 816 Purch. Post Invoice
src/Layers/W1/BaseApp/Purchases/Posting/PurchPostInvoice.Codeunit.al36 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
ClearBuffers line 92
- 94writesTable 1701 Deferral Header DeleteAll
- 95writesTable 1702 Deferral Line DeleteAll
- 96writesTable 55 Invoice Posting Buffer DeleteAll
- 97writesTable 55 Invoice Posting Buffer DeleteAll
PrepareLine line 100
- 135callsCodeunit 826 Purch. Post Invoice Events RunOnBeforePrepareLine
- 144callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforePreparePurchase
- 145callsPrepareInvoicePostingBuffer
- 147callsInitTotalAmounts
- 151callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterAssignAmounts
- 154callsGetAmountsForDeferral
- 158callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterSetInvoiceDiscountPosting
- 161callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeCalcInvoiceDiscountPosting
- 165callsCalcInvoiceDiscountPosting
- 167callsSetSalesTax
- 171callsPrepareLineFADiscount
- 174callsTable 55 Invoice Posting Buffer SetAccount
- 175callsTable 252 General Posting Setup GetPurchInvDiscAccount
- 176callsTable 55 Invoice Posting Buffer UpdateVATBase
- 177callsCodeunit 6200 Non-Deductible VAT Update
- 179callsUpdateInvoicePostingBuffer
- 184callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeSetInvoiceDiscAccount
- 187callsTable 252 General Posting Setup GetPurchInvDiscAccount
- 188callsTable 55 Invoice Posting Buffer SetAccount
- 189callsTable 55 Invoice Posting Buffer UpdateVATBase
- 190callsCodeunit 6200 Non-Deductible VAT Update
- 191callsUpdateInvoicePostingBuffer
- 192callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterSetInvoiceDiscAccount
- 201callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterSetLineDiscountPosting
- 204callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeCalcLineDiscountPosting
- 208callsCalcLineDiscountPosting
- 210callsSetSalesTax
- 214callsPrepareLineFADiscount
- 217callsTable 55 Invoice Posting Buffer SetAccount
- 218callsTable 252 General Posting Setup GetPurchLineDiscAccount
- 219callsTable 55 Invoice Posting Buffer UpdateVATBase
- 220callsCodeunit 6200 Non-Deductible VAT Update
- 222callsUpdateInvoicePostingBuffer
- 227callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeSetLineDiscAccount
- 229callsTable 252 General Posting Setup GetPurchLineDiscAccount
- 230callsTable 55 Invoice Posting Buffer SetAccount
- 231callsTable 55 Invoice Posting Buffer UpdateVATBase
- 232callsCodeunit 6200 Non-Deductible VAT Update
- 233callsUpdateInvoicePostingBuffer
- 234callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterSetLineDiscAccount
- 240callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeAdjustTotalAmounts
- 240callsTable 38 Purchase Header GetUseDate
- 242callsCodeunit 1720 Deferral Utilities AdjustTotalAmountForDeferralsNoBase
- 245callsCodeunit 1720 Deferral Utilities AdjustTotalAmountForDeferralsNoBase
- 249callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeSetAmounts
- 255callsTable 55 Invoice Posting Buffer SetAmounts
- 258callsTable 55 Invoice Posting Buffer SetAmountsNoVAT
- 261callsTable 55 Invoice Posting Buffer SetAmounts
- 264callsTable 55 Invoice Posting Buffer SetAmountsNoVAT
- 267callsSetSalesTax
- 269callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterSetAmounts
- 271callsGetPurchAccount
- 273callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforeSetAccount
- 274callsTable 55 Invoice Posting Buffer SetAccount
- 275callsTable 55 Invoice Posting Buffer UpdateVATBase
- 276callsCodeunit 6200 Non-Deductible VAT SetNonDeductibleVAT
- 279callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterFillInvoicePostingBuffer
- 281callsUpdateInvoicePostingBuffer
- 283callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterUpdateInvoicePostingBuffer
- 287callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnBeforePrepareDeferralLine
- 288callsTable 38 Purchase Header GetUseDate
- 290callsPrepareDeferralLine
- 294callsPrepareDeferralLine
- 297callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareLineOnAfterPrepareDeferralLine
- 298callsTable 38 Purchase Header GetUseDate
- 304callsTable 55 Invoice Posting Buffer PreparePrepmtAdjBuffer
- 306callsTable 55 Invoice Posting Buffer PreparePrepmtAdjBuffer
- 307callsCodeunit 444 Purchase-Post Prepayments GetCorrBalAccNo
- 311callsTable 55 Invoice Posting Buffer PreparePrepmtAdjBuffer
- 312callsCodeunit 444 Purchase-Post Prepayments GetInvRoundingAccNo
- 315callsInsertTempInvoicePostingBufferReverseCharge
InsertTempInvoicePostingBufferReverseCharge line 318, local
- 321writesTable 55 Invoice Posting Buffer Insert
- 322writesTable 55 Invoice Posting Buffer Modify
PrepareInvoicePostingBuffer line 325
- 327callsCodeunit 826 Purch. Post Invoice Events RunOnBeforePrepareInvoicePostingBuffer
- 341callsTable 39 Purchase Line GetVATPct
- 344callsCodeunit 6200 Non-Deductible VAT Copy
- 362callsUpdateEntryDescriptionFromPurchaseLine
- 365callsSetSalesTax
- 367callsCodeunit 408 DimensionManagement UpdateGlobalDimFromDimSetID
- 375callsCodeunit 6200 Non-Deductible VAT ClearNonDeductibleVAT
- 378callsTable 39 Purchase Line GetJnlTemplateName
- 380callsCodeunit 826 Purch. Post Invoice Events RunOnAfterPrepareInvoicePostingBuffer
UpdateEntryDescriptionFromPurchaseLine line 383, local
- 386callsTable 55 Invoice Posting Buffer UpdateEntryDescription
- 390callsTable 39 Purchase Line GetPurchHeader
GetPurchAccount line 402, local
- 407callsTable 39 Purchase Line IsCreditDocType
- 408callsTable 252 General Posting Setup GetPurchCrMemoAccount
- 410callsTable 252 General Posting Setup GetPurchAccount
- 412callsCodeunit 826 Purch. Post Invoice Events RunOnAfterGetPurchAccount
CalcInvoiceDiscountPosting line 415, local
- 420callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeCalcInvoiceDiscountPosting
- 427callsTable 55 Invoice Posting Buffer CalcDiscount
- 430callsTable 55 Invoice Posting Buffer CalcDiscountNoVAT
- 433callsTable 55 Invoice Posting Buffer CalcDiscount
- 436callsTable 55 Invoice Posting Buffer CalcDiscountNoVAT
- 439callsCodeunit 826 Purch. Post Invoice Events RunOnAfterCalcInvoiceDiscountPosting
CalcLineDiscountPosting line 442, local
- 447callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeCalcLineDiscountPosting
- 454callsTable 55 Invoice Posting Buffer CalcDiscount
- 457callsTable 55 Invoice Posting Buffer CalcDiscountNoVAT
- 460callsTable 55 Invoice Posting Buffer CalcDiscount
- 463callsTable 55 Invoice Posting Buffer CalcDiscountNoVAT
- 466callsCodeunit 826 Purch. Post Invoice Events RunOnAfterCalcLineDiscountPosting
InitTotalAmounts line 469, local
- 477callsCodeunit 6200 Non-Deductible VAT Init
- 480callsCodeunit 826 Purch. Post Invoice Events RunOnAfterInitTotalAmounts
PrepareLineFADiscount line 483, local
- 489callsCodeunit 826 Purch. Post Invoice Events RunOnBeforePrepareLineFADiscount
- 495callsTable 55 Invoice Posting Buffer SetAccount
- 496callsTable 55 Invoice Posting Buffer UpdateVATBase
- 497callsCodeunit 6200 Non-Deductible VAT Update
- 498callsUpdateInvoicePostingBuffer
- 499callsTable 55 Invoice Posting Buffer ReverseAmounts
- 500callsTable 55 Invoice Posting Buffer SetAccount
- 501callsTable 252 General Posting Setup GetPurchFADiscAccount
- 502callsTable 55 Invoice Posting Buffer UpdateVATBase
- 503callsCodeunit 6200 Non-Deductible VAT Update
- 505callsUpdateInvoicePostingBuffer
- 506callsTable 55 Invoice Posting Buffer ReverseAmounts
UpdateInvoicePostingBuffer line 510, local
- 517callsTable 55 Invoice Posting Buffer Update
PostLines line 520
- 533callsCodeunit 826 Purch. Post Invoice Events RunOnBeforePostLines
- 537callsCalculateVATAmounts
- 545callsTable 55 Invoice Posting Buffer ApplyRoundingForFinalPosting
- 546callsPrepareGenJnlLine
- 548callsCodeunit 826 Purch. Post Invoice Events RunOnPostLinesOnBeforeGenJnlLinePost
- 552callsSplitFA
- 554callsRunGenJnlPostLine
- 556callsCodeunit 826 Purch. Post Invoice Events RunOnPostLinesOnAfterGenJnlLinePost
- 562callsPostJobLine
- 565callsPostDeferredJobLines
- 570writesTable 55 Invoice Posting Buffer DeleteAll
PrepareGenJnlLine line 573, local
- 576callsInitGenJnlLine
- 578callsTable 81 Gen. Journal Line CopyDocumentFields
- 582callsTable 81 Gen. Journal Line CopyFromPurchHeader
- 584callsTable 55 Invoice Posting Buffer CopyToGenJnlLine
- 585callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareGenJnlLineOnAfterCopyToGenJnlLine
- 590callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 591callsTable 38 Purchase Header GetUseDate
- 604callsTable 55 Invoice Posting Buffer CopyToGenJnlLineFA
- 605callsCalcSplitFA
- 608callsCodeunit 826 Purch. Post Invoice Events RunOnAfterPrepareGenJnlLine
InitGenJnlLine line 611, local
- 616callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeInitGenJnlLine
- 620callsTable 81 Gen. Journal Line InitNewLine
PrepareJobLine line 626
- 638callsTable 38 Purchase Header IsCreditDocType
- 643callsCodeunit 1001 Job Post-Line PostJobOnPurchaseLine
SetJobLineFilters line 647, local
- 664callsCodeunit 826 Purch. Post Invoice Events RunOnAfterSetJobLineFilters
CheckCreditLine line 667
- 677callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeCheckItemQuantityPurchCredit
- 681callsTable 39 Purchase Line IsCreditDocType
- 683callsCodeunit 1001 Job Post-Line CheckItemQuantityPurchCredit
PostLedgerEntry line 686
- 695callsCodeunit 826 Purch. Post Invoice Events RunOnBeforePostLedgerEntry
- 700callsTable 81 Gen. Journal Line InitNewLine
- 705callsTable 81 Gen. Journal Line CopyDocumentFields
- 711callsTable 81 Gen. Journal Line CopyFromPurchHeader
- 712callsTable 81 Gen. Journal Line SetCurrencyFactor
- 717callsTable 81 Gen. Journal Line CopyFromPurchHeaderApplyTo
- 718callsTable 81 Gen. Journal Line CopyFromPurchHeaderPayment
- 720callsInitGenJnlLineAmountFieldsFromTotalLines
- 722callsCodeunit 826 Purch. Post Invoice Events RunOnPostLedgerEntryOnBeforeGenJnlPostLine
- 724callsCodeunit 12 Gen. Jnl.-Post Line RunWithCheck
- 725callsCodeunit 826 Purch. Post Invoice Events RunOnPostLedgerEntryOnAfterGenJnlPostLine
InitGenJnlLineAmountFieldsFromTotalLines line 729, local
- 734callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeInitGenJnlLineAmountFieldsFromTotalLines
- 746callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 747callsTable 38 Purchase Header GetUseDate
- 749callsCodeunit 826 Purch. Post Invoice Events RunOnAfterInitGenJnlLineAmountFieldsFromTotalLines
PostBalancingEntry line 752
- 764callsCodeunit 826 Purch. Post Invoice Events RunOnPostBalancingEntryOnBeforeFindVendLedgEntry
- 770callsFindVendorLedgerEntry
- 772callsCodeunit 826 Purch. Post Invoice Events RunOnPostBalancingEntryOnAfterFindVendLedgEntry
- 774callsTable 81 Gen. Journal Line InitNewLine
- 779callsCodeunit 826 Purch. Post Invoice Events RunOnPostBalancingEntryOnAfterInitNewLine
- 781callsTable 81 Gen. Journal Line CopyDocumentFields
- 787callsTable 81 Gen. Journal Line CopyFromPurchHeader
- 788callsTable 81 Gen. Journal Line SetCurrencyFactor
- 790callsTable 38 Purchase Header IsCreditDocType
- 795callsSetApplyToDocNo
- 797callsSetAmountsForBalancingEntry
- 799callsCodeunit 826 Purch. Post Invoice Events RunOnPostBalancingEntryOnBeforeGenJnlPostLine
- 801callsCodeunit 12 Gen. Jnl.-Post Line RunWithCheck
- 802callsCodeunit 826 Purch. Post Invoice Events RunOnPostBalancingEntryOnAfterGenJnlPostLine
SetAmountsForBalancingEntry line 806, local
- 811callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeSetAmountsForBalancingEntry
- 828callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 829callsTable 38 Purchase Header GetUseDate
SetApplyToDocNo line 832, local
- 840callsCodeunit 826 Purch. Post Invoice Events RunOnAfterSetApplyToDocNo
RunGenJnlPostLine line 850, local
- 852callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeRunGenJnlPostLine
- 853callsCodeunit 12 Gen. Jnl.-Post Line RunWithCheck
GetAmountsForDeferral line 856, local
- 862callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeGetAmountsForDeferral
- 877callsTable 39 Purchase Line IsCreditDocType
CalculateVATAmounts line 883, local
- 899callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeCalculateVATAmounts
- 906callsTable 4 Currency Initialize
- 914callsCodeunit 826 Purch. Post Invoice Events RunOnCalculateVATAmountsOnAfterGetReverseChargeVATPostingSetup
- 920callsTable 330 Currency Exchange Rate ExchangeAmtLCYToFCY
- 921callsTable 38 Purchase Header GetUseDate
- 928callsCodeunit 826 Purch. Post Invoice Events RunOnCalculateVATAmountInBufferOnBeforeTempInvoicePostingBufferAssign
- 937callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 938callsTable 38 Purchase Header GetUseDate
- 954callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 955callsTable 38 Purchase Header GetUseDate
- 966callsCodeunit 6200 Non-Deductible VAT Update
- 966callsGetGeneralLedgerSetupAmountRoundingPrecision
- 967callsCodeunit 826 Purch. Post Invoice Events RunOnCalculateVATAmountsOnReverseChargeVATOnBeforeModify
- 968writesTable 55 Invoice Posting Buffer Modify
- 974callsCodeunit 398 Sales Tax Calculate CalculateTax
- 981callsTable 330 Currency Exchange Rate ExchangeAmtLCYToFCY
- 984writesTable 55 Invoice Posting Buffer Modify
- 987callsCodeunit 826 Purch. Post Invoice Events RunOnCalculateVATAmountsOnAfterVatCalculationType
PrepareDeferralLine line 992, local
- 1000callsCodeunit 826 Purch. Post Invoice Events RunOnBeforePrepareDeferralLine
- 1010callsCodeunit 1720 Deferral Utilities FilterDeferralLines
- 1014callsTable 1706 Deferral Posting Buffer PreparePurch
- 1019callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareDeferralLineOnBeforePrepareInitialAmounts
- 1022callsTable 1706 Deferral Posting Buffer PrepareInitialAmounts
- 1024callsTable 1706 Deferral Posting Buffer Update
- 1026callsTable 1706 Deferral Posting Buffer PrepareRemainderPurchase
- 1028callsTable 1706 Deferral Posting Buffer Update
- 1035callsCheckDeferralAmount
- 1039callsTable 1706 Deferral Posting Buffer PreparePurch
- 1040callsTable 1706 Deferral Posting Buffer InitFromDeferralLine
- 1041callsTable 39 Purchase Line IsCreditDocType
- 1042callsTable 1706 Deferral Posting Buffer ReverseAmounts
- 1047callsCodeunit 826 Purch. Post Invoice Events RunOnPrepareDeferralLineOnAfterInitFromDeferralLine
- 1048callsTable 1706 Deferral Posting Buffer Update
GetGeneralLedgerSetupAmountRoundingPrecision line 1062, local
- 1066callsTable 98 General Ledger Setup GetRecordOnce
CalcDeferralAmounts line 1093
- 1110callsTable 4 Currency Initialize
- 1115callsTable 39 Purchase Line GetDeferralAmount
- 1118callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 1119callsTable 38 Purchase Header GetUseDate
- 1121callsCodeunit 826 Purch. Post Invoice Events RunOnCalcDeferralAmountsOnBeforeTempDeferralHeaderInsert
- 1122writesTable 1701 Deferral Header Insert
- 1124callsCodeunit 1720 Deferral Utilities FilterDeferralLines
- 1142callsTable 39 Purchase Line GetDeferralAmount
- 1146callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 1147callsTable 38 Purchase Header GetUseDate
- 1152callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeTempDeferralLineInsert
- 1154writesTable 1702 Deferral Line Insert
CreatePostedDeferralSchedule line 1160
- 1174callsCodeunit 826 Purch. Post Invoice Events RunOnBeforeCreatePostedDeferralSchedule
- 1185callsTable 1704 Posted Deferral Header InitFromDeferralHeader
- 1187callsCodeunit 1720 Deferral Utilities FilterDeferralLines
- 1192callsTable 1705 Posted Deferral Line InitFromDeferralLine
- 1197callsCodeunit 826 Purch. Post Invoice Events RunOnAfterCreatePostedDeferralSchedule
CalcSplitFA line 1200, local
- 1205callsCodeunit 826 Purch. Post Invoice Events RunOnCalcSplitFA
SplitFA line 1208, local
- 1216callsCreateTempFAPreview
- 1218callsCreateTempFA
- 1226callsCalcSplitAmount
- 1228callsCalcSplitAmount
- 1231callsCalcSplitAmount
- 1233callsCalcSplitAmount
- 1235callsCalcSplitAmount
- 1238callsCalcSplitAmount
- 1240callsCalcSplitAmount
- 1243callsCalcSplitAmount
- 1245callsCalcSplitAmount
- 1248raisesOnSplitFAOnBeforeRunGenJnlPostLine
- 1250callsRunGenJnlPostLine
CreateTempFA line 1254
- 1265writesTable 5600 Fixed Asset DeleteAll
- 1268writesTable 5600 Fixed Asset Insert
- 1273writesTable 5600 Fixed Asset Insert(true)
- 1275callsAddDefaultDimensionsToFA
- 1278writesTable 5600 Fixed Asset Insert
- 1285writesTable 5612 FA Depreciation Book Insert(true)
AddDefaultDimensionsToFA line 1290, local
- 1301writesTable 352 Default Dimension Insert
- 1305writesTable 5600 Fixed Asset Modify(true)
CreateTempFAPreview line 1317, local
- 1328writesTable 5600 Fixed Asset DeleteAll
- 1331writesTable 5600 Fixed Asset Insert
- 1337writesTable 5600 Fixed Asset Insert
- 1339callsAddDefaultDimensionsToFA
- 1342writesTable 5600 Fixed Asset Insert
- 1349writesTable 5612 FA Depreciation Book Insert(true)
PostJobLine line 1354, local
- 1360callsSetJobLineFilters
- 1366callsCodeunit 1001 Job Post-Line PostJobPurchaseLines
- 1376writesTable 39 Purchase Line Insert
PostDeferredJobLines line 1384, local
- 1395callsCodeunit 1001 Job Post-Line PostJobPurchaseLines