bcquality/microsoft/knowledge/finance/change-ledger-due-dates-through-entry-edit.bad.al
Jesper Schulz-Wedde fa63d5526c Expand Finance pilot into a source-verified review domain
Move Finance knowledge to the Microsoft-owned layer, add nine scoped rules with eighteen AL samples, and register bounded Finance review with complete paired evaluation coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-17 16:09:17 +02:00

21 lines
667 B
AL

// Demonstration only; independently authored, not copied from BaseApp.
codeunit 50105 "Update Ledger Due Dates"
{
procedure UpdateCustomerDueDate(EntryNo: Integer; NewDueDate: Date)
var
CustomerEntry: Record "Cust. Ledger Entry";
begin
CustomerEntry.Get(EntryNo);
CustomerEntry.Validate("Due Date", NewDueDate);
CustomerEntry.Modify(true);
end;
procedure UpdateVendorDueDate(EntryNo: Integer; NewDueDate: Date)
var
VendorEntry: Record "Vendor Ledger Entry";
begin
VendorEntry.Get(EntryNo);
VendorEntry.Validate("Due Date", NewDueDate);
VendorEntry.Modify(true);
end;
}