class SalesInvoiceIdCall
{
[PostHandlerFor(formStr(SalesEditLines), formMethodStr(SalesEditLines, closeOk))]
public static void SalesEditLines_Post_closeOk(XppPrePostArgs args)
{
FormRun sender = args.getThis();
SalesParmUpdate salesParmUpdate;
CustInvoiceJour custInvoiceJour;
InvoiceId invoiceId;
salesParmUpdate = sender.dataSource(formdatasourcestr(SalesEditLines, SalesParmUpdate)).cursor();
if(salesParmUpdate.DocumentStatus == DocumentStatus::Invoice)
{
info(strFmt("U r InvoiceID %1",CustInvoiceJour::findFromParmId(salesParmUpdate.ParmId).InvoiceId));
//Integration code call
}
}
}