Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TMEKUMA opened this issue Dec 17, 2024 · 0 comments
Labels
request-for-external Request for exposing a function for extension development SCM GitHub request for SCM area

Comments

@TMEKUMA
Copy link

TMEKUMA commented Dec 17, 2024

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

@haoranpb haoranpb added request-for-external Request for exposing a function for extension development SCM GitHub request for SCM area labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request-for-external Request for exposing a function for extension development SCM GitHub request for SCM area
Projects
None yet
Development

No branches or pull requests

2 participants