Purchase Header GetPstdDocLinesToReverse #27850
Labels
event-request
Request for adding an event
SCM
GitHub request for SCM area
ships-in-future-update
Fix ships in a future update
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();
Sales:
procedure GetPstdDocLinesToReverse()
var
SalesPostedDocLines: Page "Posted Sales Document Lines";
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeGetPstdDocLinesToReverse(Rec, IsHandled);
if IsHandled then
exit;
Additional context
I need to extend the standard function to add custom text lines with the original order reference
Internal work item: AB#561283
The text was updated successfully, but these errors were encountered: