Codeunit 1217 Pre-map Incoming Purch. Doc
src/Layers/W1/BaseApp/System/DataExchange/PremapIncomingPurchDoc.Codeunit.al38 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 27, trigger
- 35callsFindDistinctRecordNos
- 42callsValidateCompanyInfo
- 43callsValidateCurrency
- 44callsSetDocumentType
- 46callsCorrectHeaderData
- 47callsFindBuyFromVendor
- 48callsFindPayToVendor
- 49callsFindInvoiceToApplyTo
- 51callsPersistHeaderData
- 53callsProcessLines
ValidateCompanyInfo line 89, local
- 103callsTable 130 Incoming Document GetGeneratedFromOCRAttachment
- 107callsTable 1214 Intermediate Data Import FindEntry
- 115callsValidateCompanyInfoByNameAndAddress
- 120callsLogErrorMessage
- 125callsLogErrorMessage
- 135callsExtractVatRegNo
- 135callsExtractVatRegNo
- 138callsLogErrorMessage
ValidateCompanyInfoByNameAndAddress line 144, local
- 159callsTable 1214 Intermediate Data Import FindEntry
- 162callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
- 162callsMatchThreshold
- 162callsNormalizingFactor
- 168callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
- 168callsMatchThreshold
- 168callsNormalizingFactor
- 170callsRequiredNearness
- 171callsLogErrorMessage
- 173callsRequiredNearness
- 174callsLogErrorMessage
ValidateCurrency line 177, local
- 188callsLogErrorMessage
- 191callsTable 1214 Intermediate Data Import GetEntryValue
- 193callsLogSimpleErrorMessage
- 202writesTable 1214 Intermediate Data Import Modify
- 208callsLogSimpleErrorMessage
- 211writesTable 1214 Intermediate Data Import DeleteAll
- 219callsLogSimpleErrorMessage
- 222writesTable 1214 Intermediate Data Import DeleteAll
ProcessLines line 225, local
CorrectHeaderData line 246, local
- 258callsCorrectHeaderField
- 260callsCorrectHeaderField
- 262callsCorrectHeaderField
- 264callsCorrectHeaderField
- 266callsCorrectHeaderField
- 268callsCorrectHeaderField
- 270callsCorrectHeaderField
- 272callsCorrectHeaderField
- 274callsCorrectHeaderField
- 276callsCorrectCurrencyCode
- 278callsCorrectHeaderField
- 280callsCorrectHeaderField
- 282callsCorrectHeaderField
- 284callsCorrectHeaderField
- 287raisesOnAfterCorrectHeaderData
CorrectHeaderField line 290
- 296callsCheckDataExchMappingNotExist
- 299callsTable 1214 Intermediate Data Import GetEntryValue
- 302callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
CorrectCurrencyCode line 325, local
- 332callsTable 1214 Intermediate Data Import GetEntryValue
- 336callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
PersistHeaderData line 339, local
- 359validatesTable 130 Incoming Document Vendor No.
- 361validatesTable 130 Incoming Document Vendor No.
- 364callsTable 1214 Intermediate Data Import GetEntryValue
- 365validatesTable 130 Incoming Document Vendor Name
- 367callsTable 1214 Intermediate Data Import GetEntryValue
- 370validatesTable 130 Incoming Document Amount Incl. VAT
- 372callsTable 1214 Intermediate Data Import GetEntryValue
- 375validatesTable 130 Incoming Document Amount Excl. VAT
- 377callsTable 1214 Intermediate Data Import GetEntryValue
- 380validatesTable 130 Incoming Document VAT Amount
- 382callsTable 1214 Intermediate Data Import GetEntryValue
- 385callsTable 1214 Intermediate Data Import GetEntryValue
- 388callsTable 1214 Intermediate Data Import GetEntryValue
- 390validatesTable 130 Incoming Document Vendor Invoice No.
- 392callsTable 1214 Intermediate Data Import GetEntryValue
- 393validatesTable 130 Incoming Document Order No.
- 395callsTable 1214 Intermediate Data Import GetEntryValue
- 396validatesTable 130 Incoming Document Document Date
- 398callsTable 1214 Intermediate Data Import GetEntryValue
- 399validatesTable 130 Incoming Document Due Date
- 401callsTable 1214 Intermediate Data Import GetEntryValue
- 406callsTable 1214 Intermediate Data Import GetEntryValue
- 407validatesTable 130 Incoming Document Vendor VAT Registration No.
- 410callsTable 1214 Intermediate Data Import GetEntryValue
- 411validatesTable 130 Incoming Document Vendor IBAN
- 414callsTable 1214 Intermediate Data Import GetEntryValue
- 415validatesTable 130 Incoming Document Vendor Bank Branch No.
- 418callsTable 1214 Intermediate Data Import GetEntryValue
- 419validatesTable 130 Incoming Document Vendor Phone No.
- 422callsTable 1214 Intermediate Data Import GetEntryValue
- 423validatesTable 130 Incoming Document Vendor Bank Account No.
- 426writesTable 130 Incoming Document Modify
FindBuyFromVendor line 429, local
- 446callsTable 1214 Intermediate Data Import GetEntryValue
- 447callsFindVendorById
- 451callsTable 1214 Intermediate Data Import GetEntryValue
- 452callsFindVendorByNo
- 456callsTable 1214 Intermediate Data Import GetEntryValue
- 458callsTable 1214 Intermediate Data Import FindEntry
- 472callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 487callsFindVendorByBankAccount
- 490callsFindVendorByPhoneNo
- 493callsFindVendorByNameAndAddress
- 502callsExtractVatRegNo
- 503callsExtractVatRegNo
- 505callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 515callsFindVendorByBankAccount
- 518callsFindVendorByPhoneNo
- 521callsFindVendorByNameAndAddress
- 528callsLogErrorMessage
FindPayToVendor line 533, local
- 546callsTable 1214 Intermediate Data Import FindEntry
- 563callsFindVendorByNameAndAddress
- 571callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 585callsExtractVatRegNo
- 586callsExtractVatRegNo
- 588callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 598callsLogErrorMessage
FindVendorByNameAndAddress line 603, local
- 618callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
- 618callsMatchThreshold
- 618callsNormalizingFactor
- 620callsRequiredNearness
- 622callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
- 622callsMatchThreshold
- 622callsNormalizingFactor
- 623callsRequiredNearness
- 623callsRequiredNearness
- 624callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 632callsLogErrorMessage
FindVendorByBankAccount line 637, local
- 646callsTable 1214 Intermediate Data Import FindEntry
- 659callsTryFindLeastBlockedVendorNoByVendorBankAcc
- 666callsTryFindLeastBlockedVendorNoByVendorBankAcc
- 670callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
FindVendorByPhoneNo line 677, local
- 692callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
- 692callsMatchThreshold
- 692callsNormalizingFactor
- 693callsRequiredNearness
- 694callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
FindVendorById line 702, local
- 717callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
FindVendorByNo line 721, local
- 732callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
FindInvoiceToApplyTo line 736, local
- 744callsTable 1214 Intermediate Data Import GetEntryValue
- 751callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 753callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 762callsLogErrorMessage
- 768callsLogErrorMessage
ProcessLine line 772, local
InsertLineForTotalDocumentAmount line 798, local
- 808raisesOnBeforeInsertLineForTotalDocumentAmountIsHandled
- 815callsTable 1214 Intermediate Data Import GetEntryValue
- 819callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 821callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 823callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 824callsGetTotalAmountExclVAT
- 825callsFindGLAccountForLine
GetTotalAmountExclVAT line 828, local
- 833callsTable 1214 Intermediate Data Import FindEntry
- 834callsLogSimpleErrorMessage
FindItemForLine line 840, local
- 847callsTable 1214 Intermediate Data Import FindEntry
- 859writesTable 1214 Intermediate Data Import Modify
- 861callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 864callsResolveUnitOfMeasureFromItem
FindItemReferenceForLine line 869, local
- 879callsTable 1214 Intermediate Data Import FindEntry
- 889callsFindMatchingItemReference
- 892callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 894callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 897callsResolveUnitOfMeasureFromItemReference
FindMatchingItemReference line 902, local
- 910callsTable 5777 Item Reference HasValidUnitOfMeasure
- 917callsTable 5777 Item Reference HasValidUnitOfMeasure
IsDescriptionOnlyLine line 925, local
- 931callsTable 1214 Intermediate Data Import FindEntry
CleanDescriptionOnlyLine line 941, local
- 946callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 955writesTable 1214 Intermediate Data Import DeleteAll
LogErrorIfItemNotFound line 958, local
- 967callsTable 1214 Intermediate Data Import GetEntryValue
- 970callsTable 1214 Intermediate Data Import GetEntryValue
- 973callsTable 1214 Intermediate Data Import GetEntryValue
- 977callsLogErrorMessage
- 983callsLogErrorMessage
- 989callsLogErrorMessage
FindGLAccountForLine line 997, local
- 1007callsTable 1214 Intermediate Data Import GetEntryValue
- 1009callsTable 1214 Intermediate Data Import GetEntryValue
- 1014raisesOnFindGLAccountForLineOnBeforeFindAppropriateGLAccountIsHandled
- 1016callsFindAppropriateGLAccount
- 1019callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 1021callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
InsertOrUpdateUnitOfMeasureCode line 1027, local
- 1032callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
ResolveUnitOfMeasureFromItemReference line 1036, local
- 1044callsResolveUnitOfMeasureFromItem
- 1048callsLogErrorMessage
- 1049callsUnitCodeToString
- 1053callsTable 5777 Item Reference HasValidUnitOfMeasure
- 1054callsLogErrorMessage
- 1055callsUnitCodeToString
- 1059callsInsertOrUpdateUnitOfMeasureCode
ResolveUnitOfMeasureFromItem line 1063, local
- 1072callsLogErrorMessage
- 1073callsUnitCodeToString
- 1077callsInsertOrUpdateUnitOfMeasureCode
ResolveUnitOfMeasureFromDataImport line 1081, local
ValidateLineDiscount line 1137, local
- 1149callsTable 1214 Intermediate Data Import GetEntryValue
- 1153callsTable 1214 Intermediate Data Import GetEntryValue
- 1157callsTable 1214 Intermediate Data Import GetEntryValue
- 1161callsTable 1214 Intermediate Data Import GetEntryValue
- 1166callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
- 1169writesTable 1214 Intermediate Data Import Modify
FindDistinctRecordNos line 1187, local
- 1194writesTable 2000000026 Integer DeleteAll
- 1208writesTable 2000000026 Integer Insert
LogErrorMessage line 1213, local
- 1222callsTable 700 Error Message SetContext
- 1223callsTable 700 Error Message LogMessage
LogSimpleErrorMessage line 1226, local
- 1235callsTable 700 Error Message SetContext
- 1236callsTable 700 Error Message LogSimpleMessage
SetDocumentType line 1239, local
- 1249callsTable 1214 Intermediate Data Import FindEntry
- 1250callsLogErrorMessage
- 1251callsConstructDocumenttypeUnknownErr
- 1254callsGetDocumentTypeOptionString
- 1255callsGetDocumentTypeOptionCaption
- 1257callsGetDocumentTypeOptionString
- 1258callsGetDocumentTypeOptionCaption
- 1262callsLogErrorMessage
- 1263callsConstructDocumenttypeUnknownErr
- 1266callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
ConstructDocumenttypeUnknownErr line 1293
FindAppropriateGLAccount line 1310
- 1321callsTable 1214 Intermediate Data Import GetEntryValue
- 1326callsTable 1251 Text-to-Account Mapping SearchEnteriesInText
- 1328callsFindCorrectAccountFromMapping
- 1330callsLogErrorMessage
- 1336callsTable 1251 Text-to-Account Mapping SearchEnteriesInText
- 1338callsFindCorrectAccountFromMapping
- 1340callsLogErrorMessage
- 1361callsLogErrorMessage