mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
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>
21 lines
667 B
AL
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;
|
|
}
|