RE: Closing and Adjustment
Hi
yes its possible to cancel it.
try this job. It worked for me. (do not forget that this is not standard functionality, so if possible, try it on a test environment first)
static void ClosingCancel(Args _args)
{
InventClosing cancelClosing = InventClosing::find("num", mkDate(date));
InventCostClosingCancel_Init inventCostClosingCancel_Init;
;
inventCostClosingCancel_Init = InventCostClosingCancel_Init::newFromParameters(cancelClosing.Voucher, cancelClosing.TransDate, "", InventTransCurrency_RU::PrimaryCur);
if ( ! inventCostClosingCancel_Init.prompt())
return;
inventCostClosingCancel_Init.run();
}
Best Regards.