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

Purchase Header GetPstdDocLinesToReverse #27850

Closed
DamianoCastagna opened this issue Dec 23, 2024 · 1 comment
Closed

Purchase Header GetPstdDocLinesToReverse #27850

DamianoCastagna opened this issue Dec 23, 2024 · 1 comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area ships-in-future-update Fix ships in a future update

Comments

@DamianoCastagna
Copy link

DamianoCastagna commented Dec 23, 2024

Describe the request

Hello it will be usefull to have into the GetPstdDocLinesToReverse function on purchase header, same events as the sales header function with the same name

Purchase:

procedure GetPstdDocLinesToReverse()
var
PurchPostedDocLines: Page "Posted Purchase Document Lines";
begin
GetVend("Buy-from Vendor No.");
PurchPostedDocLines.SetToPurchHeader(Rec);
PurchPostedDocLines.SetRecord(Vend);
PurchPostedDocLines.LookupMode := true;
if PurchPostedDocLines.RunModal() = ACTION::LookupOK then
PurchPostedDocLines.CopyLineToDoc();

    Clear(PurchPostedDocLines);
end;

Sales:
procedure GetPstdDocLinesToReverse()
var
SalesPostedDocLines: Page "Posted Sales Document Lines";
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeGetPstdDocLinesToReverse(Rec, IsHandled);
if IsHandled then
exit;

    GetCust("Sell-to Customer No.");
    SalesPostedDocLines.SetToSalesHeader(Rec);
    SalesPostedDocLines.SetRecord(Customer);
    SalesPostedDocLines.LookupMode := true;
    if SalesPostedDocLines.RunModal() = ACTION::LookupOK then
        SalesPostedDocLines.CopyLineToDoc();

    Clear(SalesPostedDocLines);

    OnAfterGetPstdDocLinesToReverse(Rec);
end;

Additional context

I need to extend the standard function to add custom text lines with the original order reference
Internal work item: AB#561283

@JakovljevicDusan JakovljevicDusan added event-request Request for adding an event SCM GitHub request for SCM area labels Dec 26, 2024
@JesperSchulz JesperSchulz added the ships-in-future-update Fix ships in a future update label Dec 31, 2024
@JesperSchulz
Copy link
Contributor

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: 28412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area ships-in-future-update Fix ships in a future update
Projects
None yet
Development

No branches or pull requests

3 participants