Skip to content

KVSPSAJob Purchase Functions#

Procedures#

CalcPurchLineJobCorr(Record Purchase Line, Decimal, Decimal, Decimal, Decimal) :#

Summary: Calculates job corrections for a purchase line by comparing the quantities and amounts to be invoiced with the values in the Purchase Invoice Ledger.

procedure CalcPurchLineJobCorr(var PurchaseLine: Record "Purchase Line"; var AmountDiff: Decimal; var QtyDiff: Decimal; var AmountInInvLedger: Decimal; var QtyInInvLedger: Decimal): 

Parameters:

  • PurchaseLine: The purchase line to check. Job correction fields are automatically updated if not set manually.
  • AmountDiff: Returns the amount difference (LCY) between the amount to invoice and the amount in Purchase Invoice Ledger.
  • QtyDiff: Returns the quantity difference between the quantity to invoice and the quantity in Purchase Invoice Ledger.
  • AmountInInvLedger: Returns the total amount (LCY) of the Purchase Invoice Ledger.
  • QtyInInvLedger: Returns the total quantity of the Purchase Invoice Ledger.