ALAppExtensions
ALAppExtensions copied to clipboard
[Event Modification] codeunit 80 "Sales-Post"
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);
Is it ok for you to use existing event OnBeforeCheckTotalInvoiceAmount instead?
Yes, you are correct, we can do it there. Thank you :)
Ok, then closing the request.