Bug 623926: Add configurable default posting date for e-document purchases#7953
Bug 623926: Add configurable default posting date for e-document purchases#7953ventselartur wants to merge 6 commits intomainfrom
Conversation
There was a problem hiding this comment.
AL Documentation Audit
Documentation gaps were detected in the following apps:
- E-Document-Core-Tests: 0% documentation coverage
- E-Document-Core: 84% documentation coverage
To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Renamed the enum from "E-Doc. Default Posting Date" to "E-Doc. Purch.Def. Posting Date" to better reflect that it controls the default posting date for purchase E-Documents. Updated the enum reference on field 6102 of the "Purchases & Payables Setup" table extension and renamed the source file to match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Renamed field 'E-Doc. Purch.Def. Posting Date' to 'E-Doc. Def. Posting Date' on the 'Purchases & Payables Setup' table extension and updated the caption to 'E-Document Default Posting Date'. The enum 'E-Doc. Purch.Def. Posting Date' and its file are renamed to match. All references in the page extension, EDocPurchDocHelper codeunit, and EDocProcessTest are updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@ventselartur please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Why
When the Payables Agent (or manual processing) creates purchase invoices and credit memos from incoming e-documents, the posting date always defaults to the current work date — ignoring the document date present in the e-document. This forces users to manually correct the posting date to match the original invoice date, which is error-prone and inconvenient.
Summary
E-Doc. Default Posting Dateenum with "Work Date" (default) and "Document Date" optionsApplyDefaultPostingDateFromSetupprocedure inEDocPurchDocHelper— called during both invoice and credit memo creation to set the posting date from the e-document's document date when the setting is "Document Date"AB#623926