Set procedures PrepareInvoicePostingBuffer global in CU "Sales Post Invoice" and "Purch. Post Invoice"
Describe the request
Can we get the new procedures in CU "Sales Post Invoice" and "Purch. Post Invoice" as global procedures?
codeunit 816 "Purch. Post Invoice" implements "Invoice Posting"
// >>>>>>>>
internal procedure PrepareInvoicePostingBuffer(var PurchLine: Record "Purchase Line"; var InvoicePostingBuffer: Record "Invoice Posting Buffer")
// <<<<<<<<
begin
PurchPostInvoiceEvents.RunOnBeforePrepareInvoicePostingBuffer(PurchLine, InvoicePostingBuffer);
Clear(InvoicePostingBuffer);
codeunit 815 "Sales Post Invoice" implements "Invoice Posting"
// >>>>>>>>
procedure PrepareInvoicePostingBuffer(var SalesLine: Record "Sales Line"; var InvoicePostingBuffer: Record "Invoice Posting Buffer")
// <<<<<<<<
begin
SalesPostInvoiceEvents.RunOnBeforePrepareInvoicePostingBuffer(SalesLine, InvoicePostingBuffer);
We use the global procedures PreparePurchase and PrepareSales in the ???Invoice Posting Buffer??? table. These are obsolete. However, the new functions have the internal indicator. Therefore we cannot modify the code.
Additional context
We use the global procedures PreparePurchase and PrepareSales in the ???Invoice Posting Buffer??? table. These are obsolete. However, the new functions have the internal indicator. Therefore we cannot modify the code. Internal work item: AB#561115
Hello @TMEKUMA We will make the procedures public
Availability update: We will publish a fix for this issue in the next update for release 26.
Build ID to track: 32403.
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 32319.