Codeunit 1218 Map Incoming Doc to Purch Doc
src/Layers/W1/BaseApp/System/DataExchange/MapIncomingDoctoPurchDoc.Codeunit.al24 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 16, trigger
- 23callsTable 700 Error Message SetContext
- 24callsTable 700 Error Message HasErrors
- 28runsCodeunit 1224 Map Incoming Doc to Gen. Line
- 30callsProcessIntermediateData
- 32callsDeleteIntermediateData
ProcessIntermediateData line 49
ProcessHeaders line 58, local
- 80callsProcessLines
- 86callsCreateNewPurchHdr
- 91callsIsFieldProcessed
- 93callsProcessField
- 98callsProcessLines
ProcessLines line 103, local
- 117raisesOnProcessLinesIntermediateDataImportNotFound
- 129callsCreateNewPurchLine
- 133callsIsFieldProcessed
- 135callsProcessField
- 141raisesOnAfterProcessLines
ApplyInvoiceDiscounts line 144, local
- 168callsGetRelatedPurchaseHeader
- 171callsTable 39 Purchase Line CalcVATAmountLines
- 172callsTable 290 VAT Amount Line GetTotalInvDiscBaseAmount
- 174callsCodeunit 66 Purch - Calc Disc. By Type InvoiceDiscIsAllowed
- 175callsCodeunit 66 Purch - Calc Disc. By Type ApplyInvDiscBasedOnAmt
- 177callsLogMessage
ApplyInvoiceCharges line 183, local
- 202callsGetInvoiceChargeReason
- 203callsGetRelatedPurchaseHeader
- 204callsCreateInvoiceChargePurchaseLine
VerifyTotals line 208, local
- 232callsGetPrepaidAmount
- 234callsGetRelatedPurchaseHeader
- 236callsVerifyLineVATs
- 245callsCodeunit 57 Document Totals PurchaseCalculateTotalsWithInvoiceRounding
- 256callsLogMessage
- 259callsLogMessage
VerifyLineVATs line 266, local
- 285callsGetRelatedPurchaseLine
- 285callsComposeKeyForCreatedPurchLine
- 287callsLogMessage
SetFieldValue line 293, local
- 298callsTruncateValueToFieldLength
- 299callsCodeunit 8617 Config. Validate Management EvaluateValueWithValidate
CreateNewPurchHdr line 310, local
- 317writesTable 2000000026 Integer DeleteAll
- 324callsProcessField
- 325callsGetValueFromIntermediate
- 326raisesOnCreateNewPurchHdrOnBeforeRecRefInsert
- 330callsProcessField
- 331callsGetValueFromIntermediate
- 334callsTryGetValueFromIntermediate
- 335callsProcessFieldNoValidate
- 336callsGetValueFromIntermediate
- 339callsSetHeaderConfirmGeneratorFields
- 342callsTryGetValueFromIntermediate
- 343callsIsFieldProcessed
- 344callsProcessFieldNoValidate
- 345callsGetValueFromIntermediate
- 348callsProcessField
- 349callsGetValueFromIntermediate
- 352callsProcessField
- 356callsCorrelateCreatedDocumentWithRecordNo
SetHeaderConfirmGeneratorFields line 359, local
- 367callsTable 38 Purchase Header SetHideValidationDialog
- 371callsTryGetValueFromIntermediate
- 372validatesTable 38 Purchase Header Pay-to Vendor No.
- 373callsSetFieldProcessed
- 374callsSetFieldProcessed
- 379callsTryGetValueFromIntermediate
- 380validatesTable 38 Purchase Header Buy-from Contact No.
- 381callsSetFieldProcessed
- 386callsTryGetValueFromIntermediate
- 387validatesTable 38 Purchase Header Pay-to Contact No.
- 388callsSetFieldProcessed
- 393callsTryGetValueFromIntermediate
- 395validatesTable 38 Purchase Header VAT Base Discount %
- 396callsSetFieldProcessed
- 399writesTable 38 Purchase Header Modify(true)
CreateNewPurchLine line 403, local
- 408writesTable 2000000026 Integer DeleteAll
- 410callsInsertEmptyPurchaseLine
- 413callsSetLineMandatoryFields
- 415callsCorrelateCreatedPurchLineWithRecordNo
- 415callsComposeKeyForCreatedPurchLine
CreateInvoiceChargePurchaseLine line 418, local
- 425callsCodeunit 1217 Pre-map Incoming Purch. Doc FindAppropriateGLAccount
- 427callsInsertEmptyPurchaseLine
- 429validatesTable 39 Purchase Line Type
- 430validatesTable 39 Purchase Line No.
- 431validatesTable 39 Purchase Line Description
- 432validatesTable 39 Purchase Line Quantity
- 433validatesTable 39 Purchase Line Direct Unit Cost
- 434writesTable 39 Purchase Line Modify(true)
SetLineMandatoryFields line 437, local
- 450callsGetValueFromIntermediate
- 451callsProcessField
- 456callsProcessField
- 457callsGetValueFromIntermediate
- 460callsProcessField
- 461callsGetValueFromIntermediate
- 464callsTryGetValueFromIntermediate
- 465callsProcessField
- 468callsProcessField
- 469callsGetValueFromIntermediate
ProcessField line 496
- 501callsSetFieldValue
- 502callsSetFieldProcessed
ProcessFieldNoValidate line 505, local
- 511callsSetFieldProcessed
SetFieldProcessed line 514, local
- 518writesTable 2000000026 Integer Insert
CorrelateCreatedDocumentWithRecordNo line 529, local
- 535writesTable 823 Name/Value Buffer Insert
CorrelateCreatedPurchLineWithRecordNo line 547, local
- 561writesTable 823 Name/Value Buffer Insert
GetInvoiceChargeReason line 597, local
- 613callsLogMessage
LogMessage line 621, local
- 633callsTable 700 Error Message SetContext
- 634callsTable 700 Error Message LogMessage
DeleteIntermediateData line 638, local
- 644writesTable 1221 Data Exch. Field DeleteAll
- 646writesTable 1214 Intermediate Data Import DeleteAll
InsertEmptyPurchaseLine line 649, local
- 654validatesTable 39 Purchase Line Document Type
- 655validatesTable 39 Purchase Line Document No.
- 659callsGetLastLineNo
- 660validatesTable 39 Purchase Line Line No.
- 661writesTable 39 Purchase Line Insert(true)