Hello
I have problem with sales picking list its get disappear after 1 day
I found some jobs in AOT about the Picking list so I want to know is this job deleting the picking list ?
this is the code
static void CheckSalesInvoice_PickingList(Args _args)
{
CustInvoiceJour CustInvoiceJour;
CustInvoiceTrans CustInvoiceTrans;
InventDim InventDim;
InventBatch InventBatch;
WMSPickingRoute WMSPickingRoute;
WMSOrderTrans WMSOrderTrans;
int s;
while select CustInvoiceJour
{
s = 0;
while select WMSPickingRoute where WMSPickingRoute.transRefId == CustInvoiceJour.SalesId
&& WMSPickingRoute.transType == InventTransType::Sales
{
s++;
}
if(s>1)
{
info(strFmt('%1',CustInvoiceJour.SalesId));
}
}
}
*This post is locked for comments