Codeunit 6164 E-Doc. Line Matching

E-Document Core, Microsoft.eServices.EDocument.OrderMatch

src/Apps/W1/EDocument/App/src/Processing/OrderMatching/EDocLineMatching.Codeunit.al22 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

RunMatching line 34

  1. 44callsCodeunit 6132 E-Document Log GetLastServiceFromLog
  2. 47callsPage 6167 E-Doc. Order Line Matching SetTempRecord

ApplyToPurchaseOrder line 59

  1. 78validatesTable 38 Purchase Header Document Date
  2. 79validatesTable 38 Purchase Header Vendor Invoice No.
  3. 80callsTable 38 Purchase Header IsLinkedToEDoc
  4. 82validatesTable 38 Purchase Header E-Document Link
  5. 83writesTable 38 Purchase Header Modify
  6. 94callsTestLineTotalAreTheSameInSet
  7. 98validatesTable 39 Purchase Line Direct Unit Cost
  8. 100validatesTable 39 Purchase Line Line Discount %
  9. 101validatesTable 39 Purchase Line Amount Including VAT
  10. 102writesTable 39 Purchase Line Modify
  11. 106callsCodeunit 6132 E-Document Log GetLastServiceFromLog
  12. 107callsCodeunit 6131 E-Document Log Helper InsertLog

ResetMatchedQty line 128

  1. 130callsUpdateMatchedQty

UpdateMatchedQty line 133

  1. 135validatesTable 6165 E-Doc. Imported Line Matched Quantity
  2. 136writesTable 6165 E-Doc. Imported Line Modify(true)

ResetQtyToInvoice line 139

  1. 141callsUpdateQtyToInvoice

UpdateQtyToInvoice line 144

  1. 146validatesTable 39 Purchase Line Qty. to Invoice
  2. 147writesTable 39 Purchase Line Modify(true)

PersistsUpdates line 150

  1. 161callsTable 6164 E-Doc. Order Match GetPurchaseLine
  2. 162validatesTable 39 Purchase Line Qty. to Invoice
  3. 163writesTable 39 Purchase Line Modify(true)
  4. 165callsTable 6164 E-Doc. Order Match GetImportedLine
  5. 166validatesTable 6165 E-Doc. Imported Line Matched Quantity
  6. 167writesTable 6165 E-Doc. Imported Line Modify(true)
  7. 170callsCreateMatchingRule
  8. 173writesTable 6164 E-Doc. Order Match Delete
  9. 175writesTable 6164 E-Doc. Order Match Insert

ResetQtyToInvoiceBasedOnMatches line 179

  1. 190validatesTable 39 Purchase Line Qty. to Invoice
  2. 191writesTable 39 Purchase Line Modify

ResetQtyToInvoice line 195

  1. 201writesTable 39 Purchase Line ModifyAll

RemoveAllMatches line 204

  1. 211writesTable 6164 E-Doc. Order Match DeleteAll
  2. 214writesTable 6165 E-Doc. Imported Line ModifyAll
  3. 215writesTable 6165 E-Doc. Imported Line ModifyAll
  4. 219writesTable 39 Purchase Line ModifyAll

FindMatchesToRemove line 222

  1. 235writesTable 6164 E-Doc. Order Match Insert

MatchManually line 242

  1. 247callsVerifyPurchaseOrderLinesHaveSameFieldValuesOrError
  2. 248callsVerifyImportedLinesHaveSameFieldValuesOrError
  3. 249callsVerifyExistingMatchesHasSameFieldValue
  4. 252callsMatchManyToOne

AskToOverwrite line 319

  1. 329callsCodeunit 27 Confirm Management GetResponseOrDefault
  2. 336callsResetQtyToInvoice
  3. 339writesTable 39 Purchase Line Modify(true)
  4. 345callsResetMatchedQty
  5. 348writesTable 6165 E-Doc. Imported Line Modify(true)
  6. 352writesTable 6164 E-Doc. Order Match DeleteAll

MatchAutomatically line 357

  1. 373callsLinesMatch
  2. 374callsMatchOneToOne

LinesMatch line 382, local

  1. 392callsTable 39 Purchase Line MaxQtyToInvoice
  2. 419callsCodeunit 1251 Record Match Mgt. CalculateStringNearness

InsertOrderMatch line 425

  1. 431writesTable 6164 E-Doc. Order Match DeleteAll
  2. 435validatesTable 6164 E-Doc. Order Match Document Order No.
  3. 436validatesTable 6164 E-Doc. Order Match Document Line No.
  4. 437validatesTable 6164 E-Doc. Order Match E-Document Entry No.
  5. 438validatesTable 6164 E-Doc. Order Match E-Document Line No.
  6. 439validatesTable 6164 E-Doc. Order Match Precise Quantity
  7. 440validatesTable 6164 E-Doc. Order Match E-Document Direct Unit Cost
  8. 441validatesTable 6164 E-Doc. Order Match PO Direct Unit Cost
  9. 442validatesTable 6164 E-Doc. Order Match Line Discount %
  10. 443validatesTable 6164 E-Doc. Order Match Unit of Measure Code
  11. 444validatesTable 6164 E-Doc. Order Match Fully Matched
  12. 447writesTable 6164 E-Doc. Order Match Insert

MatchOneToOne line 450

  1. 456callsCalculateAmountThatCanBeInvoiced
  2. 470validatesTable 39 Purchase Line Qty. to Invoice
  3. 471writesTable 39 Purchase Line Modify(true)
  4. 472validatesTable 6165 E-Doc. Imported Line Matched Quantity
  5. 473writesTable 6165 E-Doc. Imported Line Modify(true)
  6. 474callsInsertOrderMatch

MatchManyToOne line 477

  1. 481callsMatchOneToOne

MatchOneToMany line 485

  1. 489callsMatchOneToOne

FilterOutFullyMatchedLines line 494

  1. 502callsCalculateAmountThatCanBeInvoiced

CreateMatchingRule line 509

  1. 518raisesOnBeforeCreateMatchingRule
  2. 531writesTable 5777 Item Reference Insert
  3. 540writesTable 1251 Text-to-Account Mapping Insert

CreatePurchaseOrderLine line 544, internal

  1. 562validatesTable 39 Purchase Line Type
  2. 563validatesTable 39 Purchase Line Currency Code
  3. 566validatesTable 39 Purchase Line Type
  4. 567validatesTable 39 Purchase Line No.
  5. 570validatesTable 39 Purchase Line Type
  6. 571validatesTable 39 Purchase Line No.
  7. 574writesTable 39 Purchase Line Insert
  8. 577callsPage 6171 E-Doc. Create Purch Order Line SetSharedTable
  9. 578callsPage 6171 E-Doc. Create Purch Order Line SetEDocImportedLine
  10. 583writesTable 39 Purchase Line Insert(true)
  11. 587runsPage 50 Purchase Order