ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Reuqest] Codeunit 80 Sales-Post - function IncrAmount

Open Drakonian opened this issue 8 years ago • 1 comments

Hello, We need below events to customize workflow for CU 80:

Add integration event in function IncrAmount

WITH SalesLine DO BEGIN
  IF SalesHeader."Prices Including VAT" OR
     ("VAT Calculation Type" <> "VAT Calculation Type"::"Full VAT")
  THEN
    Increment(TotalSalesLine."Line Amount","Line Amount");
  Increment(TotalSalesLine.Amount,Amount);
  Increment(TotalSalesLine."VAT Base Amount","VAT Base Amount");
  Increment(TotalSalesLine."VAT Difference","VAT Difference");
  Increment(TotalSalesLine."Amount Including VAT","Amount Including VAT");
  Increment(TotalSalesLine."Line Discount Amount","Line Discount Amount");
  Increment(TotalSalesLine."Inv. Discount Amount","Inv. Discount Amount");
  Increment(TotalSalesLine."Inv. Disc. Amount to Invoice","Inv. Disc. Amount to Invoice");
  Increment(TotalSalesLine."Prepmt. Line Amount","Prepmt. Line Amount");
  Increment(TotalSalesLine."Prepmt. Amt. Inv.","Prepmt. Amt. Inv.");
  Increment(TotalSalesLine."Prepmt Amt to Deduct","Prepmt Amt to Deduct");
  Increment(TotalSalesLine."Prepmt Amt Deducted","Prepmt Amt Deducted");
  Increment(TotalSalesLine."Prepayment VAT Difference","Prepayment VAT Difference");
  Increment(TotalSalesLine."Prepmt VAT Diff. to Deduct","Prepmt VAT Diff. to Deduct");
  Increment(TotalSalesLine."Prepmt VAT Diff. Deducted","Prepmt VAT Diff. Deducted");
END;
// NEW CODE START
OnAfterIncrAmount(SalesHeader,SalesLine,TotalSalesLine);
// NEW CODE END

With new Publisher:

OnAfterIncrAmount(SalesHeader : Record "Sales Header";SalesLine : Record "Sales Line";VAR TotalSalesLine : Record "Sales Line")

  • AL Extension Version: 0.12.28462
  • Server Version: NA11.0 (24742)

Drakonian avatar Oct 25 '18 19:10 Drakonian

The event is created in the last BC sandbox:

evento_codeunit80_2

frivadulla avatar Oct 30 '18 07:10 frivadulla