Source AL, 245 lines
src/Layers/W1/BaseApp/Purchases/Document/PurchCalcDiscByType.Codeunit.allines 13 to 28 of 245, Copyright (c) Microsoft Corporation. MIT
codeunit 66 "Purch - Calc Disc. By Type"{ TableNo = "Purchase Line"; trigger OnRun() var PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; begin PurchLine.Copy(Rec); if PurchHeader.Get(Rec."Document Type", Rec."Document No.") then begin ApplyDefaultInvoiceDiscount(PurchHeader."Invoice Discount Value", PurchHeader); // on new order might be no line if Rec.Get(PurchLine."Document Type", PurchLine."Document No.", PurchLine."Line No.") then; end;
All 245 lines
Events 5 in 29
Public procedures 6 in 29
Changes 1 in 22
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Events | | | | 1 | | 1 | | | | | | | |
|---|
All 2 changes in 17-29