[ExtensionOf(tableStr(CustPackingSlipJour))]
final class INVCustPackingSlipJour_Extension
{
public void update()
{
CustPackingSlipJour custPackingSlipJour;
CustPackingSlipTrans custPackingSlipTrans;
CustInvoiceTrans custInvoiceTrans;
CustInvoiceJour custInvoiceJour;
next update();
ttsbegin;
select forupdate custPackingSlipJour
where custPackingSlipJour.SalesId == this.SalesId
&& custPackingSlipJour.PackingSlipId == this.PackingSlipId
join custPackingSlipTrans
where custPackingSlipTrans.SalesId == this.SalesId
&& custPackingSlipTrans.PackingSlipId == this.PackingSlipId
&& custPackingSlipTrans.DeliveryDate == this.DeliveryDate
join custInvoiceTrans
where custInvoiceTrans.InventTransId == custPackingSlipTrans.InventTransId
join custInvoiceJour
where custInvoiceJour.SalesId == custInvoiceTrans.SalesId
&& custInvoiceJour.InvoiceId == custInvoiceTrans.InvoiceId;
custPackingSlipJour.InvoiceId = custInvoiceTrans.InvoiceId;
custPackingSlipJour.update();
ttscommit;
}
}
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156