ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Modification] codeunit 80 "Sales-Post"

Open leegeurts opened this issue 5 years ago • 3 comments

Hello,

Is it possible to add the following to an Event:

    OnRunOnBeforeCheckTotalInvoiceAmount(SalesHeader);

to

  TempServiceItem2.DeleteAll();
    TempServiceItemComp2.DeleteAll();

    // Check that the invoice amount is zero or greater
    // DINNL <<
    OnRunOnBeforeCheckTotalInvoiceAmount(SalesHeader,IsHandled );
    if not IsHandled then 
    // DINNL >>
    if SalesHeader.Invoice then
            CheckTotalInvoiceAmount(SalesHeader);

    OnRunOnBeforeCheckAndUpdate(SalesHeader);

leegeurts avatar Jul 28 '21 13:07 leegeurts

Is it ok for you to use existing event OnBeforeCheckTotalInvoiceAmount instead?

Oleg-Romashkov avatar Jul 29 '21 08:07 Oleg-Romashkov

Yes, you are correct, we can do it there. Thank you :)

leegeurts avatar Jul 29 '21 08:07 leegeurts

Ok, then closing the request.

Oleg-Romashkov avatar Jul 29 '21 10:07 Oleg-Romashkov