Codeunit 74 Purch.-Get Receipt

Base Application, Microsoft.Purchases.Document

src/Layers/W1/BaseApp/Purchases/Document/PurchGetReceipt.Codeunit.al21 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 17, trigger

  1. 19callsCheckHeader
  2. 27raisesOnAfterPurchRcptLineSetFilters
  3. 31callsPage 5709 Get Receipt Lines SetPurchHeader

CreateInvLines line 50

  1. 59raisesOnBeforeCreateInvLinesIsHandled
  2. 61writesTable 39 Purchase Line DeleteAll
  3. 64raisesOnCreateInvLinesOnBeforeFind
  4. 72raisesOnBeforeInsertLines
  5. 76raisesOnCreateInvLinesOnBeforeInsertLineIterationIsHandled
  6. 90raisesOnCreateInvLinesOnAfterCalcShowNotSameVendorsMessage
  7. 99raisesOnBeforeTransferLineToPurchaseDoc
  8. 101callsInsertInvoiceLineFromReceiptLine
  9. 107callsUpdateItemChargeLines
  10. 109callsAdjustPrepmtAmtToDeductRoundingOrderLineWise
  11. 113raisesOnAfterInsertLines
  12. 115callsCalcInvoiceDiscount
  13. 116raisesOnAfterCalcInvoiceDiscount
  14. 119callsAdjustPrepmtAmtToDeductRounding
  15. 120callsCopyDocumentAttachments
  16. 124raisesOnAfterCreateInvLines

CheckHeader line 127, local

  1. 132raisesOnBeforeCheckHeaderIsHandled
  2. 138callsTable 38 Purchase Header TestStatusOpen

InsertInvoiceLineFromReceiptLine line 141, local

  1. 146raisesOnBeforeInsertInvoiceLineFromReceiptLineIsHandled
  2. 152callsCheckPurchRcptLineVATBusPostingGroup
  3. 153raisesOnInsertInvoiceLineFromReceiptLineOnBeforeInsertInvLine
  4. 154callsTable 121 Purch. Rcpt. Line InsertInvLineFromRcptLine
  5. 155raisesOnInsertInvoiceLineFromRcptLineOnBeforeCalcUpdatePrepmtAmt
  6. 156callsCalcUpdatePrepmtAmtToDeductRounding
  7. 157callsCopyDocumentAttachments
  8. 159raisesOnAfterInsertInvoiceLineFromReceiptLine

SetPurchHeader line 162

  1. 167raisesOnBeforeSetPurchHeaderIsHandled

UpdateItemChargeLines line 175, local

  1. 188callsGetItemChargeAssgnt

GetItemChargeAssgnt line 194

  1. 201raisesOnBeforeGetItemChargeAssgntIsHandled
  2. 215callsCopyItemChargeAssgnt

CopyItemChargeAssgnt line 219, local

  1. 237callsCodeunit 5402 Unit of Measure Management QtyRndPrecision
  2. 238validatesTable 5805 Item Charge Assignment (Purch) Qty. to Handle
  3. 253callsGetQtyAssignedInNewLine
  4. 263validatesTable 5805 Item Charge Assignment (Purch) Unit Cost
  5. 265callsGetItemChargeAssgntCurrency
  6. 273callsGetItemChargeAssgntCurrency
  7. 284callsSetReceiptPurchLineFilters
  8. 290raisesOnCopyItemChargeAssgntOnBeforeFindPurchLine2
  9. 292raisesOnCopyItemChargeAssgntOnAfterFindPurchLine2
  10. 303writesTable 5805 Item Charge Assignment (Purch) Insert

SetReceiptPurchLineFilters line 310, local

  1. 318callsCheckPurchRcptLine

CalcInvoiceDiscount line 347, local

  1. 354callsCodeunit 70 Purch.-Calc.Discount CalculateInvoiceDiscountOnLine

CalcUpdatePrepmtAmtToDeductRounding line 357, local

  1. 365raisesOnBeforeCalcUpdatePrepmtAmtToDeductRoundingIsHandled
  2. 378callsInsertTempPurchaseLine

AdjustPrepmtAmtToDeductRounding line 384, local

  1. 388writesTable 39 Purchase Line Modify

CheckPurchRcptLineVATBusPostingGroup line 392, local

  1. 397raisesOnBeforeTestPurchRcptLineVATBusPostingGroupIsHandled

GetPurchOrderInvoices line 404

  1. 410writesTable 122 Purch. Inv. Header DeleteAll
  2. 419writesTable 122 Purch. Inv. Header Insert

CopyDocumentAttachments line 423, local

  1. 430callsAnyLineHasAttachments
  2. 435callsCodeunit 1173 Document Attachment Mgmt CopyAttachments

CopyDocumentAttachments line 438, local

  1. 446raisesOnBeforeCopyDocumentAttachmentsIsHandled
  2. 453callsOrderHasAttachments
  3. 455callsCodeunit 1173 Document Attachment Mgmt CopyAttachments

OrderHasAttachments line 458, local

  1. 460callsEntityHasAttachments

AnyLineHasAttachments line 463, local

  1. 466callsEntityHasAttachments

InsertTempPurchaseLine line 481, local

  1. 488writesTable 39 Purchase Line Insert
  2. 493writesTable 39 Purchase Line Modify

AdjustPrepmtAmtToDeductRoundingOrderLineWise line 497, local

  1. 509callsAdjustPrepmtAmtToDeductRounding

GetItemChargeAssgntCurrency line 515, local

  1. 521callsTable 4 Currency InitRoundingPrecision