Codeunit 444 Purchase-Post Prepayments
src/Layers/W1/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al51 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 46, trigger
- 50callsCodeunit 9500 Sequence No. Mgt. SetPreviewMode
- 51callsExecute
Execute line 104, local
- 108callsInvoice
- 110callsCreditMemo
Invoice line 114
- 118raisesOnBeforeInvoice
- 120callsCode
CreditMemo line 123
- 127raisesOnBeforeCreditMemo
- 129callsCode
Code line 132, local
- 161raisesOnBeforePostPrepayments
- 164callsTable 98 General Ledger Setup GetRecordOnce
- 167callsCodeunit 8703 Feature Telemetry LogUptake
- 168callsCodeunit 8703 Feature Telemetry LogUsage
- 169callsCheckPrepmtDoc
- 171callsUpdateDocNos
- 174writesTable 38 Purchase Header Modify
- 179raisesOnCodeOnBeforeWindowOpen
- 204callsInsertPurchInvHeader
- 214callsGetCalcPmtDiscOnCrMemos
- 215callsInsertPurchCrMemoHeader
- 226callsGetPurchLinesToDeduct
- 228callsCalcVATAmountLines
- 231writesTable 461 Prepayment Inv. Line Buffer DeleteAll
- 232callsCalcVATAmountLines
- 233callsTable 290 VAT Amount Line DeductVATAmountLine
- 234callsUpdateVATOnLines
- 235callsBuildInvLineBuffer
- 237callsCreateLinesFromBuffer
- 243callsCopyLineCommentLinesCompressedPrepayment
- 245callsCopyLineCommentLinesCompressedPrepayment
- 248raisesOnAfterCreateLinesOnBeforeGLPosting
- 252callsTable 461 Prepayment Inv. Line Buffer CompressBuffer
- 257callsTable 461 Prepayment Inv. Line Buffer ReverseAmounts
- 258callsRoundAmounts
- 260callsAdjustInvLineBuffers
- 263callsAdjustInvLineBuffers
- 264writesTable 461 Prepayment Inv. Line Buffer Modify
- 277callsTable 461 Prepayment Inv. Line Buffer UpdateVATAmounts
- 279callsPostPrepmtInvLineBuffer
- 285raisesOnCodeOnBeforePostVendorEntry
- 286callsPostVendorEntry
- 290callsUpdatePostedPurchaseDocument
- 292callsPurchaseAssertPrepmtAmountNotMoreThanDocAmount
- 296raisesOnCodeOnBeforePostBalancingEntry
- 297callsPostBalancingEntry
- 302callsUpdatePurchaseDocument
- 303callsSetStatusPendingPrepayment
- 304writesTable 38 Purchase Header Modify
- 306raisesOnCodeOnAfterUpdateHeaderAndLines
- 312callsCodeunit 19 Gen. Jnl.-Post Preview ThrowError
- 315raisesOnAfterPostPrepayments
PurchaseAssertPrepmtAmountNotMoreThanDocAmount line 318, local
- 324raisesOnBeforePurchaseAssertPrepmtAmountNotMoreThanDocAmountIsHandled
- 331callsCodeunit 441 Prepayment Mgt. AssertPrepmtAmountNotMoreThanDocAmount
CreateLinesFromBuffer line 336, local
- 343raisesOnBeforeCreateLinesFromBufferIsHandled
- 356callsInsertPurchInvLine
- 361callsInsertPurchCrMemoLine
- 366callsInsertExtendedText
SetStatusPendingPrepayment line 371, local
- 376raisesOnBeforeSetStatusPendingPrepaymentIsHandled
- 380callsTable 38 Purchase Header TestStatusIsNotPendingPrepayment
CheckPrepmtDoc line 384
- 393raisesOnBeforeCheckPrepmtDoc
- 399callsTable 98 General Ledger Setup GetRecordOnce
- 403callsCodeunit 28 Error Message Management PushContext
- 404callsCodeunit 11 Gen. Jnl.-Check Line DateNotAllowed
- 405callsCodeunit 28 Error Message Management LogContextFieldError
- 407callsCodeunit 28 Error Message Management GetFieldNo
- 408callsCodeunit 1431 Forward Link Mgt. GetHelpCodeForAllowedPostingDate
- 410callsCheckOpenPrepaymentLines
- 411callsCodeunit 9070 Document Errors Mgt. GetNothingToPostErrorMsg
- 412callsCodeunit 481 Check Dimensions CheckPurchPrepmtDim
- 414callsTable 38 Purchase Header CheckPurchasePostRestrictions
- 416callsTable 23 Vendor CheckBlockedVendOnDocs
- 419callsTable 23 Vendor CheckBlockedVendOnDocs
- 421raisesOnAfterCheckPrepmtDoc
- 422callsCodeunit 28 Error Message Management Finish
UpdateDocNos line 425, local
- 430raisesOnBeforeUpdateDocNosIsHandled
- 441callsUpdateInvoiceDocNos
- 452callsUpdateCrMemoDocNos
UpdateInvoiceDocNos line 464, local
- 475callsCodeunit 310 No. Series GetNextNo
- 480callsCodeunit 28 Error Message Management PushContext
- 482callsCodeunit 28 Error Message Management LogContextFieldError
- 485callsCodeunit 28 Error Message Management Finish
- 490callsCodeunit 310 No. Series GetNextNo
UpdateCrMemoDocNos line 495, local
- 501raisesOnBeforeUpdateCrMemoDocNos
- 508callsCodeunit 310 No. Series GetNextNo
- 513callsCodeunit 28 Error Message Management PushContext
- 515callsCodeunit 28 Error Message Management LogContextFieldError
- 518callsCodeunit 28 Error Message Management Finish
- 524callsCodeunit 310 No. Series GetNextNo
- 527raisesOnAfterUpdateCrMemoDocNos
CheckOpenPrepaymentLines line 530
- 534raisesOnBeforeCheckOpenPrepaymentLines
- 536callsApplyFilter
- 540callsPrepmtAmount
- 542callsTable 39 Purchase Line UpdatePrepmtSetupFields
- 543writesTable 39 Purchase Line Modify
- 547raisesOnAfterCheckOpenPrepaymentLines
RoundAmounts line 551, local
- 555callsTable 461 Prepayment Inv. Line Buffer IncrAmounts
- 560callsAmountToLCY
- 562callsAmountToLCY
- 569callsAmountToLCY
- 573raisesOnRoundAmountsOnBeforeIncrAmoutns
- 574callsTable 461 Prepayment Inv. Line Buffer IncrAmounts
- 576raisesOnAfterRoundAmounts
AmountToLCY line 579, local
- 586callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
AdjustInvLineBuffers line 590, local
- 595callsCalcPrepmtAmtInvLCYInLines
- 597callsInsertCorrInvLineBuffer
- 600callsTable 461 Prepayment Inv. Line Buffer AdjustVATBase
- 601callsTable 461 Prepayment Inv. Line Buffer AdjustVATBase
CalcPrepmtAmtInvLCYInLines line 605, local
- 616callsTable 461 Prepayment Inv. Line Buffer AmountsToArray
- 618callsReverseDecArray
- 620callsTable 461 Prepayment Inv. Line Buffer SetFilterOnPKey
- 622callsTable 461 Prepayment Inv. Line Buffer AmountsToArray
- 630callsTable 461 Prepayment Inv. Line Buffer AmountsToArray
- 632callsCalcRoundedAmount
- 634callsCalcRoundedAmount
- 646writesTable 39 Purchase Line Modify
- 648writesTable 461 Prepayment Inv. Line Buffer DeleteAll
- 649callsReverseDecArray
InsertCorrInvLineBuffer line 669, local
- 682callsTable 461 Prepayment Inv. Line Buffer FillAdjInvLineBuffer
- 684callsGetPrepmtAccNo
- 686callsTable 461 Prepayment Inv. Line Buffer InsertInvLineBuffer
- 688callsTable 461 Prepayment Inv. Line Buffer FillAdjInvLineBuffer
- 690callsGetCorrBalAccNo
- 692callsTable 461 Prepayment Inv. Line Buffer InsertInvLineBuffer
GetPrepmtAccNo line 697, local
- 703callsTable 252 General Posting Setup GetPurchPrepmtAccount
- 704raisesOnAfterGetPrepmtAccNo
GetCorrBalAccNo line 708
GetInvRoundingAccNo line 719
- 725callsTable 93 Vendor Posting Group GetInvRoundingAccount
GetGainLossGLAcc line 729, local
- 735callsTable 4 Currency GetRealizedGainsAccount
- 736callsTable 4 Currency GetRealizedLossesAccount
GetCurrencyAmountRoundingPrecision line 739, local
- 743callsTable 4 Currency Initialize
UpdateVATOnLines line 748
- 762callsTable 4 Currency Initialize
- 764callsApplyFilter
- 770callsPrepmtAmount
- 772callsFindVATAmountLine
- 773raisesOnUpdateVATOnLinesOnAfterVATAmountLineGet
- 776callsFindVATAmountLine
- 777raisesOnUpdateVATOnLinesOnAfterGetRemainder
- 781writesTable 290 VAT Amount Line Insert
- 847raisesOnUpdateVATOnLinesOnBeforePurchLineModify
- 848writesTable 39 Purchase Line Modify
- 855writesTable 290 VAT Amount Line Modify
- 861raisesOnAfterUpdateVATOnLines
CalcVATAmountLines line 864
- 870callsTable 4 Currency Initialize
- 872writesTable 290 VAT Amount Line DeleteAll
- 874callsApplyFilter
- 877callsPrepmtAmount
- 886callsFindVATAmountLine
- 887callsInsertVATAmountLine
- 890callsPrepmtVATDiffAmount
- 895writesTable 290 VAT Amount Line Modify
- 900callsTable 290 VAT Amount Line UpdateLines
- 904raisesOnAfterCalcVATAmountLines
FindVATAmountLine line 907, local
InsertVATAmountLine line 919, local
- 929raisesOnInsertVATAmountOnBeforeInsert
- 930writesTable 290 VAT Amount Line Insert
SumPrepmt line 933
- 941callsCalcVATAmountLines
- 942callsUpdateVATOnLines
- 943callsBuildInvLineBuffer
- 945callsTable 461 Prepayment Inv. Line Buffer GetVATPct
- 947callsRoundAmounts
- 948callsTable 461 Prepayment Inv. Line Buffer GetVATPct
GetPurchLines line 960
- 970raisesOnBeforeGetPurchLinesIsHandled
- 974callsApplyFilter
- 978writesTable 39 Purchase Line Insert
- 983callsCalcVATAmountLines
- 984callsUpdateVATOnLines
- 988callsInitInvoiceRoundingLine
- 1003writesTable 39 Purchase Line Insert
BuildInvLineBuffer line 1009, local
- 1016writesTable 461 Prepayment Inv. Line Buffer DeleteAll
- 1018writesTable 39 Purchase Line DeleteAll
- 1020callsApplyFilter
- 1023callsPrepmtAmount
- 1024callsFillInvLineBuffer
- 1026callsTable 461 Prepayment Inv. Line Buffer CopyWithLineNo
- 1027callsTable 461 Prepayment Inv. Line Buffer InsertInvLineBuffer
- 1029callsRoundAmounts
- 1032writesTable 39 Purchase Line Insert
- 1035raisesOnBuildInvLineBufferOnPrepmtAmountZero
- 1038callsInsertInvoiceRounding
- 1041callsTable 461 Prepayment Inv. Line Buffer InsertInvLineBuffer
- 1042callsCodeunit 28 Error Message Management FinishTopContext
FillInvLineBuffer line 1050
- 1053raisesOnFillInvLineBufferOnAfterInit
- 1055callsGetPrepmtAccNo
- 1062callsTable 461 Prepayment Inv. Line Buffer CopyFromPurchLine
- 1063callsTable 461 Prepayment Inv. Line Buffer FillFromGLAcc
- 1065callsTable 461 Prepayment Inv. Line Buffer SetAmounts
- 1075raisesOnAfterFillInvLineBuffer
InsertInvoiceRounding line 1078, local
- 1082callsInitInvoiceRoundingLine
- 1083callsCreateDimensions
- 1090callsTable 461 Prepayment Inv. Line Buffer CopyFromPurchLine
- 1092callsTable 461 Prepayment Inv. Line Buffer SetAmounts
- 1101raisesOnAfterInsertInvoiceRounding
InitInvoiceRoundingLine line 1104, local
- 1109callsTable 4 Currency Initialize
- 1117callsTable 4 Currency InvoiceRoundingDirection
- 1127validatesTable 39 Purchase Line No.
- 1127callsGetInvRoundingAccNo
- 1128validatesTable 39 Purchase Line Quantity
- 1130validatesTable 39 Purchase Line Direct Unit Cost
- 1132validatesTable 39 Purchase Line Direct Unit Cost
- 1139validatesTable 39 Purchase Line Amount Including VAT
ApplyFilter line 1143, local
- 1154raisesOnAfterApplyFilter
CopyHeaderCommentLines line 1169, local
- 1178callsTable 43 Purch. Comment Line CopyHeaderComments
- 1181callsTable 43 Purch. Comment Line CopyHeaderComments
CopyLineCommentLines line 1186, local
- 1195callsTable 43 Purch. Comment Line CopyLineComments
- 1198callsTable 43 Purch. Comment Line CopyLineComments
CopyLineCommentLinesCompressedPrepayment line 1203, local
- 1212callsTable 43 Purch. Comment Line CopyLineCommentsFromPurchaseLines
- 1215callsTable 43 Purch. Comment Line CopyLineCommentsFromPurchaseLines
InsertExtendedText line 1220, local
- 1230raisesOnBeforeInsertExtendedTextIsHandled
- 1234callsCodeunit 378 Transfer Extended Text PrepmtGetAnyExtText
- 1245writesTable 123 Purch. Inv. Line Insert
- 1253writesTable 125 Purch. Cr. Memo Line Insert
PostPrepmtInvLineBuffer line 1262, local
- 1266callsTable 81 Gen. Journal Line InitNewLine
- 1271callsTable 81 Gen. Journal Line CopyDocumentFields
- 1272callsTable 81 Gen. Journal Line CopyFromPurchHeaderPrepmt
- 1273callsTable 81 Gen. Journal Line CopyFromPrepmtInvoiceBuffer
- 1282raisesOnBeforePostPrepmtInvLineBuffer
- 1283callsRunGenJnlPostLine
- 1284raisesOnAfterPostPrepmtInvLineBuffer
PostVendorEntry line 1287, local
- 1293raisesOnBeforePostVendorEntryProcedureIsHandled
- 1297callsTable 81 Gen. Journal Line InitNewLine
- 1301raisesOnPostVendorEntryOnAfterInitNewLine
- 1303callsTable 81 Gen. Journal Line CopyDocumentFields
- 1305callsTable 81 Gen. Journal Line CopyFromPurchHeaderPrepmtPost
- 1321raisesOnBeforePostVendorEntry
- 1322callsCodeunit 12 Gen. Jnl.-Post Line RunWithCheck
- 1323raisesOnAfterPostVendorEntry
PostBalancingEntry line 1326, local
- 1330callsTable 81 Gen. Journal Line InitNewLine
- 1336callsTable 81 Gen. Journal Line CopyDocumentFields
- 1338callsTable 81 Gen. Journal Line CopyDocumentFields
- 1340callsTable 81 Gen. Journal Line CopyFromPurchHeaderPrepmtPost
- 1365raisesOnBeforePostBalancingEntry
- 1366callsCodeunit 12 Gen. Jnl.-Post Line RunWithCheck
- 1367raisesOnAfterPostBalancingEntry
RunGenJnlPostLine line 1370, local
- 1372raisesOnBeforeRunGenJnlPostLine
- 1373callsCodeunit 12 Gen. Jnl.-Post Line RunWithCheck
UpdatePrepmtAmountOnPurchLines line 1376
- 1388raisesOnBeforeUpdatePrepmtAmountOnPurchLinesIsHandled
- 1392callsTable 4 Currency Initialize
- 1399raisesOnUpdatePrepmtAmountOnPurchLinesOnAfterSetFilters
- 1409raisesOnUpdatePrepmtAmountOnPurchLinesOnBeforeErrorIfLinesNotFound
- 1421validatesTable 39 Purchase Line Prepmt. Line Amount
- 1427validatesTable 39 Purchase Line Prepmt. Line Amount
- 1429raisesOnUpdatePrepmtAmountOnPurchLinesOnBeforeModify
- 1430writesTable 39 Purchase Line Modify
CreateDimensions line 1434, local
- 1441callsCodeunit 408 DimensionManagement AddDimSource
- 1442callsCodeunit 408 DimensionManagement AddDimSource
- 1443callsCodeunit 408 DimensionManagement AddDimSource
- 1444raisesOnCreateDimensionsOnAfterAddDimSources
- 1449callsCodeunit 408 DimensionManagement GetRecDefaultDimID
- 1453raisesOnAfterCreateDimensionsProcedure
GetPurchLinesToDeduct line 1456
- 1460callsApplyFilter
- 1463callsPrepmtAmount
- 1463callsPrepmtAmount
- 1466writesTable 39 Purchase Line Insert
UpdatePurchaseDocument line 1483, local
- 1497callsTable 39 Purchase Line CalcPrepaymentToDeduct
- 1501raisesOnUpdatePurchaseDocumentOnBeforeModifyInvoicePurchLine
- 1502writesTable 39 Purchase Line Modify
- 1509raisesOnUpdatePurchaseDocumentOnBeforeFindSetCrMemoPurchLine
- 1519callsGetCurrencyAmountRoundingPrecision
- 1525raisesOnUpdatePurchaseDocumentOnBeforeModifyCrMemoPurchLine
- 1526writesTable 39 Purchase Line Modify
UpdatePostedPurchaseDocument line 1531, local
- 1539raisesOnBeforeUpdatePostedPurchaseDocumentIsHandled
- 1551writesTable 122 Purch. Inv. Header Modify
- 1560writesTable 124 Purch. Cr. Memo Hdr. Modify
- 1564raisesOnAfterUpdatePostedPurchDocument
InsertPurchInvHeader line 1567, local
InsertPurchCrMemoHeader line 1591, local
InsertPurchInvLine line 1629, local
- 1669raisesOnBeforePurchInvLineInsert
- 1670writesTable 123 Purch. Inv. Line Insert
- 1672callsCopyLineCommentLines
- 1674raisesOnAfterPurchInvLineInsert