Skip to content

[Event Request] Page 118 "General Ledger Setup" - OnBeforeValidatePaymentDiscountGracePeriod #29338

@TimBee0706

Description

@TimBee0706

Why do you need this change?

Hello,

we need an event in the page 118 "General Ledger Setup" to set and update a different "Payment Discount Grace Period" for Purchase.

Can you please add this?

Describe the request

                field("Payment Discount Grace Period"; Rec."Payment Discount Grace Period")
                {
                    ApplicationArea = Basic, Suite;
                    ToolTip = 'Specifies the number of days that a payment or refund can pass the payment discount due date and still receive payment discount.';

                    trigger OnValidate()
                    var
                        PaymentToleranceMgt: Codeunit "Payment Tolerance Management";
                        ConfirmManagement: Codeunit "Confirm Management";
                    begin
                        OnBeforeValidatePaymentDiscountGracePeriod(Rec, xRec);
                        if ConfirmManagement.GetResponseOrDefault(Text001, true) then
                            PaymentToleranceMgt.CalcGracePeriodCVLedgEntry(Rec."Payment Discount Grace Period");
                    end;
                }

Event Publisher:

    [IntegrationEvent(true, false)]
    local procedure OnBeforeValidatePaymentDiscountGracePeriod(Rec: Record "General Ledger Setup", xRec : Record "General Ledger Setup")
    begin
    end;

Internal work item: AB#611659

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions