Basedate date1;
;
info(strfmt('ToDay :%1', ,systemdateget());
info(strfmt('Year:%1', ,year(systemdateget()));
info(strfmt('Day :%1', ,dayofmth(systemdateget()));
info(strfmt("%1",mthofyr(systemdateget()));
date1= mkdate(dayofmth(systemdateget()),mthofyr(systemdateget()),year(systemdateget())));
info(strfmt("%1",date1));
To Cancel Deliver Remainder through X++ you can use below code sample. Thanks. static void _CancelDeliverRemainder_Sales(Args _args) { SalesLine SalesLine = SalesLine::find('SO0013', true); ; if (SalesLine) { // Set remaining inventory Qty to zero SalesLine.RemainInventPhysical = 0; // Set remaining physical Qty to zero SalesLine.RemainSalesPhysical = 0; // We have to cancel the SalesLine SalesLine.PurchStatus = PurchStatus::Canceled; SalesLine.update(); ...