Hi everyone,
I have deleted a sale order by x++ job.but the inventory impact is not updating on 'on hand' form.i mean if i the item quantity was 3 at sale order line.
then after deleting sale order.the quantity is still coming on 'On Hand'form with on order 3.someone please guide me.
my query was that
Static void DelsO(Args args)
{
SalesTable saleTable;
SalesLine salesLine;
salesIdBase salesidbase;
select saleTable where
salestable.saleid == 'so-98989'
&& salestable.salesStatus == salesstatus::backorder
&& salestable.Documentsatsu == documenrtstatus::None
if(salestable)
{
salesidbase = salestable.salesid;
delete_from salestable
where salestable.salesid == salesidbase ;
}
}
*This post is locked for comments