Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event change Request] Modify event OnReadPostedBillGroupOnAfterSetDelay on Report 7000086 "Batch Settl. Posted Bill Grs." #27900

Open
jrodaLaberit opened this issue Jan 8, 2025 · 0 comments

Comments

@jrodaLaberit
Copy link

Describe the request

Hi,

We need to modify the event OnReadPostedBillGroupOnAfterSetDelay, we need add the dataitem "PostedBillGr"

Original:

dataitem(PostedBillGr; "Posted Bill Group")
        {
            DataItemTableView = sorting("No.") order(ascending);
            dataitem(PostedDoc; "Posted Cartera Doc.")
            {
                DataItemLink = "Bill Gr./Pmt. Order No." = field("No.");
                DataItemTableView = sorting("Bill Gr./Pmt. Order No.", Status, "Category Code", Redrawn, "Due Date") where(Status = const(Open), Type = const(Receivable));

                trigger OnAfterGetRecord()
                var
                    FromJnl: Boolean;
                begin
                    IsRedrawn := CarteraManagement.CheckFromRedrawnDoc("No.");
                    BankAcc.Get(PostedBillGr."Bank Account No.");
                    OnReadPostedBillGroupOnAfterGetBankAcc(BankAcc);
                    Delay := BankAcc."Delay for Notices";
                    OnReadPostedBillGroupOnAfterSetDelay(BankAcc, Delay);

                    if DueOnly and (PostingDate < "Due Date" + Delay) then
                        CurrReport.Skip();

                    [. . .]

Modified:

dataitem(PostedBillGr; "Posted Bill Group")
        {
            DataItemTableView = sorting("No.") order(ascending);
            dataitem(PostedDoc; "Posted Cartera Doc.")
            {
                DataItemLink = "Bill Gr./Pmt. Order No." = field("No.");
                DataItemTableView = sorting("Bill Gr./Pmt. Order No.", Status, "Category Code", Redrawn, "Due Date") where(Status = const(Open), Type = const(Receivable));

                trigger OnAfterGetRecord()
                var
                    FromJnl: Boolean;
                begin
                    IsRedrawn := CarteraManagement.CheckFromRedrawnDoc("No.");
                    BankAcc.Get(PostedBillGr."Bank Account No.");
                    OnReadPostedBillGroupOnAfterGetBankAcc(BankAcc);
                    Delay := BankAcc."Delay for Notices";
                    >>>>>>>>>>>>>>>>>>>
                    OnReadPostedBillGroupOnAfterSetDelay(BankAcc, Delay,PostedBillGr);
                    <<<<<<<<<<<<<<<<<<<

                    if DueOnly and (PostingDate < "Due Date" + Delay) then
                        CurrReport.Skip();

                    [. . .]

Event modified:

[IntegrationEvent(false, false)]
    local procedure OnReadPostedBillGroupOnAfterSetDelay(var BankAccount: Record "Bank Account"; var Delay: Decimal; PostedBillGr: Record "Posted Bill Group")
    begin
    end;

Additional context

we need it to add a condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant