[ExtensionOf(formStr(SalesCopying))]final class DTSalesCopying_Extension{ public void closeOk() { next closeOk(); CustInvoiceJourcustInvoiceJour = this.dataSource(/CustInvoiceJour/).cursor(); SalesTablesalesTable = this.args().record(); SalesTablesalesTableupdate; update_recordset salesTableupdate setting DTOriginalInvoiceId = custInvoiceJour.InvoiceId, DTOriginalSalesId = custInvoiceJour.SalesId where salesTableupdate.SalesId == salesTable.SalesId; }}
public void initHeaderFromCustInvoiceJour(CustInvoiceJour _custInvoiceJour)
{
salesTable.initFromCustInvoiceJour(_custInvoiceJour);
}
[ExtensionOf(formStr(SalesCopying))]
final class DTSalesCopying_Extension
{
public void closeOk()
{
next closeOk();
CustInvoiceJour custInvoiceJour = this.dataSource("CustInvoiceJour").cursor();
SalesTable salesTable = this.args().record();
SalesTable salesTableupdate;
if(salesTable.DTOriginalSalesId = "" && salesTable.DTOriginalSalesId = "")
{
ttsbegin;
salesTable.initFromCustInvoiceJour(custInvoiceJour);
update_recordset salesTableupdate
setting DTOriginalInvoiceId = custInvoiceJour.InvoiceId,
DTOriginalSalesId = custInvoiceJour.SalesId
where salesTableupdate.SalesId == salesTable.SalesId;
ttscommit
}
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156