ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Report 10412 - Check (Check/Stub/Stub) - OnAfterGetRecordOfPrintSettledLoop

Open tejabalusu opened this issue 2 years ago • 1 comments

Describe the request

Hi,

I would like to request the following event publisher in Report 10412 - Check (Check/Stub/Stub) -

OnAfterGetRecordOfPrintSettledLoop

` if DocNo = '' then CurrencyCode2 := GenJnlLine."Currency Code";

                    Stub2LineNo := Stub2LineNo + 1;
                    Stub2DocNo[Stub2LineNo] := DocNo;
                    Stub2DocDate[Stub2LineNo] := DocDate;
                    Stub2LineAmount[Stub2LineNo] := LineAmount;
                    Stub2LineDiscount[Stub2LineNo] := LineDiscount;
                    Stub2PostingDesc[Stub2LineNo] := PostingDesc;
                    **OnAfterGetRecordOfPrintSettledLoop(GenJnlLine2, TotalLineAmount, CurrentLineAmount, TotalLineDiscount, LineDiscount, BalancingType, ApplyMethod) //Publisher**
                end;

                trigger OnPreDataItem()
                begin
                    PrintCheckHelper.PrintSettledLoopHelper(CustLedgEntry, VendLedgEntry, GenJnlLine, BalancingType.AsInteger(), BalancingNo,
                      FoundLast, TestPrint, FirstPage, FoundNegative, ApplyMethod);
                    if PreprintedStub then
                        TotalText := ''
                    else begin
                        TotalText := Text019Txt;
                        Stub2DocNoHeader := USText011Txt;
                        Stub2DocDateHeader := USText012Txt;
                        Stub2AmountHeader := USText013Txt;
                        Stub2DiscountHeader := USText014Txt;
                        Stub2NetAmountHeader := USText015Txt;
                        Stub2PostingDescHeader := USText017Txt;
                    end;`

Below are the Event Details [IntegrationEvent(false, false)] local procedure OnAfterGetRecordOfPrintSettledLoop(GenJnlLine2: Record "Gen. Journal Line"; var TotalLineAmount: Decimal; var CurrentLineAmount: Decimal; var TotalLineDiscount: Decimal; var LineDiscount: Decimal; BalancingType: Enum "Gen. Journal Account Type"; ApplyMethod: Option) begin end;

Additional context

Publisher request marked with //Publisher tag. Internal work item: AB#498234

tejabalusu avatar Jan 30 '24 12:01 tejabalusu

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.

Build ID: 15815.

JesperSchulz avatar Jan 31 '24 10:01 JesperSchulz