Доброе утро!
Корректно ли таким образом считать количество в наличии по склау:
PHP код:
static void QtyOnHand(Args _args)
{
InventSum inventSum;
InventDim inventDim;
;
inventDim.clear();
inventDim.InventLocationId = 'MyWarehouse';
inventDim = InventDim::findOrCreate(inventDim);
while select inventSum
join inventDim
where inventSum.InventDimId == inventDim.inventDimId
{
print strfmt("%1 %2",inventSum.ItemId,inventSum.physicalInvent());
}
pause;
}
?