ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Set procedures PrepareInvoicePostingBuffer global in CU "Sales Post Invoice" and "Purch. Post Invoice"

Open TMEKUMA opened this issue 1 year ago • 3 comments

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

TMEKUMA avatar Dec 17 '24 10:12 TMEKUMA

Hello @TMEKUMA We will make the procedures public

attilatoury avatar Mar 26 '25 12:03 attilatoury

Availability update: We will publish a fix for this issue in the next update for release 26.

Build ID to track: 32403.

JesperSchulz avatar Mar 31 '25 09:03 JesperSchulz

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.

JesperSchulz avatar May 14 '25 12:05 JesperSchulz