ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

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

Open Drakonian opened this issue 8 years ago • 4 comments

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

Add integration event in function ReverseAmount

WITH SalesLine DO BEGIN
  "Qty. to Ship" := -"Qty. to Ship";
  "Qty. to Ship (Base)" := -"Qty. to Ship (Base)";
  "Return Qty. to Receive" := -"Return Qty. to Receive";
  "Return Qty. to Receive (Base)" := -"Return Qty. to Receive (Base)";
  "Qty. to Invoice" := -"Qty. to Invoice";
  "Qty. to Invoice (Base)" := -"Qty. to Invoice (Base)";
  "Line Amount" := -"Line Amount";
  Amount := -Amount;
  "VAT Base Amount" := -"VAT Base Amount";
  "VAT Difference" := -"VAT Difference";
  "Amount Including VAT" := -"Amount Including VAT";
  "Line Discount Amount" := -"Line Discount Amount";
  "Inv. Discount Amount" := -"Inv. Discount Amount";
END;
// NEW CODE START
OnAfterReverseAmount(SalesLine);
// NEW CODE END

With new Publisher:

OnAfterReverseAmount(VAR SalesLine : Record "Sales Line")

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

Drakonian avatar Oct 25 '18 19:10 Drakonian

Event already exist

AlexanderYakunin avatar Oct 29 '18 14:10 AlexanderYakunin

Event already exist

Did you mean it is will be exist in CU11? 2 1

Drakonian avatar Oct 29 '18 17:10 Drakonian

Event already exist

Did you mean it is will be exist in CU11? 2 1

In the last BC sandbox, the event is created:

evento_codeunit80

frivadulla avatar Oct 30 '18 07:10 frivadulla

Correct, we do not create more events for NAV 2018, this is on prem version and you can do it yourself. We create new events for monthly updates on D365 BC and they are available in cloud tenants

AlexanderYakunin avatar Oct 30 '18 07:10 AlexanderYakunin