Codeunit 1217 Pre-map Incoming Purch. Doc

Base Application, System.IO

src/Layers/W1/BaseApp/System/DataExchange/PremapIncomingPurchDoc.Codeunit.al38 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 27, trigger

  1. 35callsFindDistinctRecordNos
  2. 42callsValidateCompanyInfo
  3. 43callsValidateCurrency
  4. 44callsSetDocumentType
  5. 46callsCorrectHeaderData
  6. 47callsFindBuyFromVendor
  7. 48callsFindPayToVendor
  8. 49callsFindInvoiceToApplyTo
  9. 51callsPersistHeaderData
  10. 53callsProcessLines

ValidateCompanyInfo line 89, local

  1. 103callsTable 130 Incoming Document GetGeneratedFromOCRAttachment
  2. 107callsTable 1214 Intermediate Data Import FindEntry
  3. 115callsValidateCompanyInfoByNameAndAddress
  4. 120callsLogErrorMessage
  5. 125callsLogErrorMessage
  6. 135callsExtractVatRegNo
  7. 135callsExtractVatRegNo
  8. 138callsLogErrorMessage

ValidateCompanyInfoByNameAndAddress line 144, local

  1. 159callsTable 1214 Intermediate Data Import FindEntry
  2. 162callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
  3. 162callsMatchThreshold
  4. 162callsNormalizingFactor
  5. 168callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
  6. 168callsMatchThreshold
  7. 168callsNormalizingFactor
  8. 170callsRequiredNearness
  9. 171callsLogErrorMessage
  10. 173callsRequiredNearness
  11. 174callsLogErrorMessage

ValidateCurrency line 177, local

  1. 188callsLogErrorMessage
  2. 191callsTable 1214 Intermediate Data Import GetEntryValue
  3. 193callsLogSimpleErrorMessage
  4. 202writesTable 1214 Intermediate Data Import Modify
  5. 208callsLogSimpleErrorMessage
  6. 211writesTable 1214 Intermediate Data Import DeleteAll
  7. 219callsLogSimpleErrorMessage
  8. 222writesTable 1214 Intermediate Data Import DeleteAll

ProcessLines line 225, local

  1. 235callsFindDistinctRecordNos
  2. 237callsInsertLineForTotalDocumentAmount
  3. 242callsProcessLine

CorrectHeaderData line 246, local

  1. 258callsCorrectHeaderField
  2. 260callsCorrectHeaderField
  3. 262callsCorrectHeaderField
  4. 264callsCorrectHeaderField
  5. 266callsCorrectHeaderField
  6. 268callsCorrectHeaderField
  7. 270callsCorrectHeaderField
  8. 272callsCorrectHeaderField
  9. 274callsCorrectHeaderField
  10. 276callsCorrectCurrencyCode
  11. 278callsCorrectHeaderField
  12. 280callsCorrectHeaderField
  13. 282callsCorrectHeaderField
  14. 284callsCorrectHeaderField
  15. 287raisesOnAfterCorrectHeaderData

CorrectHeaderField line 290

  1. 296callsCheckDataExchMappingNotExist
  2. 299callsTable 1214 Intermediate Data Import GetEntryValue
  3. 302callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

CorrectCurrencyCode line 325, local

  1. 332callsTable 1214 Intermediate Data Import GetEntryValue
  2. 336callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

PersistHeaderData line 339, local

  1. 359validatesTable 130 Incoming Document Vendor No.
  2. 361validatesTable 130 Incoming Document Vendor No.
  3. 364callsTable 1214 Intermediate Data Import GetEntryValue
  4. 365validatesTable 130 Incoming Document Vendor Name
  5. 367callsTable 1214 Intermediate Data Import GetEntryValue
  6. 370validatesTable 130 Incoming Document Amount Incl. VAT
  7. 372callsTable 1214 Intermediate Data Import GetEntryValue
  8. 375validatesTable 130 Incoming Document Amount Excl. VAT
  9. 377callsTable 1214 Intermediate Data Import GetEntryValue
  10. 380validatesTable 130 Incoming Document VAT Amount
  11. 382callsTable 1214 Intermediate Data Import GetEntryValue
  12. 385callsTable 1214 Intermediate Data Import GetEntryValue
  13. 388callsTable 1214 Intermediate Data Import GetEntryValue
  14. 390validatesTable 130 Incoming Document Vendor Invoice No.
  15. 392callsTable 1214 Intermediate Data Import GetEntryValue
  16. 393validatesTable 130 Incoming Document Order No.
  17. 395callsTable 1214 Intermediate Data Import GetEntryValue
  18. 396validatesTable 130 Incoming Document Document Date
  19. 398callsTable 1214 Intermediate Data Import GetEntryValue
  20. 399validatesTable 130 Incoming Document Due Date
  21. 401callsTable 1214 Intermediate Data Import GetEntryValue
  22. 406callsTable 1214 Intermediate Data Import GetEntryValue
  23. 407validatesTable 130 Incoming Document Vendor VAT Registration No.
  24. 410callsTable 1214 Intermediate Data Import GetEntryValue
  25. 411validatesTable 130 Incoming Document Vendor IBAN
  26. 414callsTable 1214 Intermediate Data Import GetEntryValue
  27. 415validatesTable 130 Incoming Document Vendor Bank Branch No.
  28. 418callsTable 1214 Intermediate Data Import GetEntryValue
  29. 419validatesTable 130 Incoming Document Vendor Phone No.
  30. 422callsTable 1214 Intermediate Data Import GetEntryValue
  31. 423validatesTable 130 Incoming Document Vendor Bank Account No.
  32. 426writesTable 130 Incoming Document Modify

FindBuyFromVendor line 429, local

  1. 446callsTable 1214 Intermediate Data Import GetEntryValue
  2. 447callsFindVendorById
  3. 451callsTable 1214 Intermediate Data Import GetEntryValue
  4. 452callsFindVendorByNo
  5. 456callsTable 1214 Intermediate Data Import GetEntryValue
  6. 458callsTable 1214 Intermediate Data Import FindEntry
  7. 472callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  8. 487callsFindVendorByBankAccount
  9. 490callsFindVendorByPhoneNo
  10. 493callsFindVendorByNameAndAddress
  11. 502callsExtractVatRegNo
  12. 503callsExtractVatRegNo
  13. 505callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  14. 515callsFindVendorByBankAccount
  15. 518callsFindVendorByPhoneNo
  16. 521callsFindVendorByNameAndAddress
  17. 528callsLogErrorMessage

FindPayToVendor line 533, local

  1. 546callsTable 1214 Intermediate Data Import FindEntry
  2. 563callsFindVendorByNameAndAddress
  3. 571callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  4. 585callsExtractVatRegNo
  5. 586callsExtractVatRegNo
  6. 588callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  7. 598callsLogErrorMessage

FindVendorByNameAndAddress line 603, local

  1. 618callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
  2. 618callsMatchThreshold
  3. 618callsNormalizingFactor
  4. 620callsRequiredNearness
  5. 622callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
  6. 622callsMatchThreshold
  7. 622callsNormalizingFactor
  8. 623callsRequiredNearness
  9. 623callsRequiredNearness
  10. 624callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  11. 632callsLogErrorMessage

FindVendorByBankAccount line 637, local

  1. 646callsTable 1214 Intermediate Data Import FindEntry
  2. 659callsTryFindLeastBlockedVendorNoByVendorBankAcc
  3. 666callsTryFindLeastBlockedVendorNoByVendorBankAcc
  4. 670callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

FindVendorByPhoneNo line 677, local

  1. 692callsCodeunit 1251 Record Match Mgt. CalculateStringNearness
  2. 692callsMatchThreshold
  3. 692callsNormalizingFactor
  4. 693callsRequiredNearness
  5. 694callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

FindVendorById line 702, local

  1. 717callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

FindVendorByNo line 721, local

  1. 732callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

FindInvoiceToApplyTo line 736, local

  1. 744callsTable 1214 Intermediate Data Import GetEntryValue
  2. 751callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  3. 753callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  4. 762callsLogErrorMessage
  5. 768callsLogErrorMessage

ProcessLine line 772, local

  1. 778raisesOnBeforeProcessLineIsHandled
  2. 783callsIsDescriptionOnlyLine
  3. 784callsCleanDescriptionOnlyLine
  4. 789callsResolveUnitOfMeasureFromDataImport
  5. 790callsFindItemReferenceForLine
  6. 791callsFindItemForLine
  7. 792callsFindGLAccountForLine
  8. 793callsLogErrorIfItemNotFound
  9. 795callsValidateLineDiscount

InsertLineForTotalDocumentAmount line 798, local

  1. 808raisesOnBeforeInsertLineForTotalDocumentAmountIsHandled
  2. 815callsTable 1214 Intermediate Data Import GetEntryValue
  3. 819callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  4. 821callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  5. 823callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  6. 824callsGetTotalAmountExclVAT
  7. 825callsFindGLAccountForLine

GetTotalAmountExclVAT line 828, local

  1. 833callsTable 1214 Intermediate Data Import FindEntry
  2. 834callsLogSimpleErrorMessage

FindItemForLine line 840, local

  1. 847callsTable 1214 Intermediate Data Import FindEntry
  2. 859writesTable 1214 Intermediate Data Import Modify
  3. 861callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  4. 864callsResolveUnitOfMeasureFromItem

FindItemReferenceForLine line 869, local

  1. 879callsTable 1214 Intermediate Data Import FindEntry
  2. 889callsFindMatchingItemReference
  3. 892callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  4. 894callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  5. 897callsResolveUnitOfMeasureFromItemReference

FindMatchingItemReference line 902, local

  1. 910callsTable 5777 Item Reference HasValidUnitOfMeasure
  2. 917callsTable 5777 Item Reference HasValidUnitOfMeasure

IsDescriptionOnlyLine line 925, local

  1. 931callsTable 1214 Intermediate Data Import FindEntry

CleanDescriptionOnlyLine line 941, local

  1. 946callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  2. 955writesTable 1214 Intermediate Data Import DeleteAll

LogErrorIfItemNotFound line 958, local

  1. 967callsTable 1214 Intermediate Data Import GetEntryValue
  2. 970callsTable 1214 Intermediate Data Import GetEntryValue
  3. 973callsTable 1214 Intermediate Data Import GetEntryValue
  4. 977callsLogErrorMessage
  5. 983callsLogErrorMessage
  6. 989callsLogErrorMessage

FindGLAccountForLine line 997, local

  1. 1007callsTable 1214 Intermediate Data Import GetEntryValue
  2. 1009callsTable 1214 Intermediate Data Import GetEntryValue
  3. 1014raisesOnFindGLAccountForLineOnBeforeFindAppropriateGLAccountIsHandled
  4. 1016callsFindAppropriateGLAccount
  5. 1019callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  6. 1021callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

InsertOrUpdateUnitOfMeasureCode line 1027, local

  1. 1032callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

ResolveUnitOfMeasureFromItemReference line 1036, local

  1. 1044callsResolveUnitOfMeasureFromItem
  2. 1048callsLogErrorMessage
  3. 1049callsUnitCodeToString
  4. 1053callsTable 5777 Item Reference HasValidUnitOfMeasure
  5. 1054callsLogErrorMessage
  6. 1055callsUnitCodeToString
  7. 1059callsInsertOrUpdateUnitOfMeasureCode

ResolveUnitOfMeasureFromItem line 1063, local

  1. 1072callsLogErrorMessage
  2. 1073callsUnitCodeToString
  3. 1077callsInsertOrUpdateUnitOfMeasureCode

ResolveUnitOfMeasureFromDataImport line 1081, local

  1. 1088callsTable 1214 Intermediate Data Import FindEntry
  2. 1091callsLogSimpleErrorMessage
  3. 1098callsInsertOrUpdateUnitOfMeasureCode
  4. 1105callsInsertOrUpdateUnitOfMeasureCode
  5. 1114callsInsertOrUpdateUnitOfMeasureCode
  6. 1122callsInsertOrUpdateUnitOfMeasureCode
  7. 1126callsLogErrorMessage

ValidateLineDiscount line 1137, local

  1. 1149callsTable 1214 Intermediate Data Import GetEntryValue
  2. 1153callsTable 1214 Intermediate Data Import GetEntryValue
  3. 1157callsTable 1214 Intermediate Data Import GetEntryValue
  4. 1161callsTable 1214 Intermediate Data Import GetEntryValue
  5. 1166callsTable 1214 Intermediate Data Import InsertOrUpdateEntry
  6. 1169writesTable 1214 Intermediate Data Import Modify

FindDistinctRecordNos line 1187, local

  1. 1194writesTable 2000000026 Integer DeleteAll
  2. 1208writesTable 2000000026 Integer Insert

LogErrorMessage line 1213, local

  1. 1222callsTable 700 Error Message SetContext
  2. 1223callsTable 700 Error Message LogMessage

LogSimpleErrorMessage line 1226, local

  1. 1235callsTable 700 Error Message SetContext
  2. 1236callsTable 700 Error Message LogSimpleMessage

SetDocumentType line 1239, local

  1. 1249callsTable 1214 Intermediate Data Import FindEntry
  2. 1250callsLogErrorMessage
  3. 1251callsConstructDocumenttypeUnknownErr
  4. 1254callsGetDocumentTypeOptionString
  5. 1255callsGetDocumentTypeOptionCaption
  6. 1257callsGetDocumentTypeOptionString
  7. 1258callsGetDocumentTypeOptionCaption
  8. 1262callsLogErrorMessage
  9. 1263callsConstructDocumenttypeUnknownErr
  10. 1266callsTable 1214 Intermediate Data Import InsertOrUpdateEntry

ConstructDocumenttypeUnknownErr line 1293

  1. 1303callsGetDocumentTypeOptionCaption
  2. 1304callsGetDocumentTypeOptionCaption

FindAppropriateGLAccount line 1310

  1. 1321callsTable 1214 Intermediate Data Import GetEntryValue
  2. 1326callsTable 1251 Text-to-Account Mapping SearchEnteriesInText
  3. 1328callsFindCorrectAccountFromMapping
  4. 1330callsLogErrorMessage
  5. 1336callsTable 1251 Text-to-Account Mapping SearchEnteriesInText
  6. 1338callsFindCorrectAccountFromMapping
  7. 1340callsLogErrorMessage
  8. 1361callsLogErrorMessage