ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 36 Function AddSplitVATLinesIgnoringALine

Open JacopoMuzziCapBS opened this issue 5 years ago • 1 comments

Hi, I need an event when a VAT split line is created. I need the same event in 2 points:

  1. CurrentLineNo := IncrementLineNo(GetHighestLineNo(SplitSalesLine)); InitializeTotalingSalesLine(SplitSalesLine, TotalingSalesLine, CurrentLineNo); VATProdPostingGroupIterator := SplitSalesLine."VAT Prod. Posting Group";

     repeat
         if VATProdPostingGroupIterator <> SplitSalesLine."VAT Prod. Posting Group" then begin
             // Insert curent totaling split vat line
             //> NewCode
             OnBeforeInsertTotalingSalesLine(SplitSalesLine, TotalingSalesLine);
             //< NewCode
    
  2. UpdateTotalingSalesLine(SplitSalesLine, TotalingSalesLine); until SplitSalesLine.Next = 0;

     //> NewCode
     OnBeforeInsertTotalingSalesLine(SplitSalesLine, TotalingSalesLine);
     //< NewCode
    

The event is:

[IntegrationEvent(false, false)] procedure OnBeforeInsertTotalingSalesLine(SplitSalesLine: Record "Sales line"; var TotalingSalesLine: Record "Sales Line") begin

end;

JacopoMuzziCapBS avatar Oct 21 '21 13:10 JacopoMuzziCapBS

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Oct 27 '21 11:10 JesperSchulz