|
|
#1 |
|
Участник
|
А зачем здесь транзакция
Всем привет.
Ковыряю код для HH девайсов в advanced warehouse solution. Наткнулся на вот такую штуку в классе WHSControlData X++: boolean validateLicensePlateQty(WHSLicensePlateId _licensePlateId)
{
InventSum inventSum;
InventDim inventDim;
ttsbegin;
select firstonly RecId from inventSum
where inventSum.Closed == NoYes::No &&
(inventSum.PhysicalInvent != 0 ||
inventSum.Picked != 0)
exists join inventDim
where inventSum.InventDimId == inventDim.InventDimId &&
inventDim.LicensePlateId == _licensePlateId;
ttscommit;
return inventSum.RecId == 0;
}AX2012 R3 CU10 |
|
|
|
|
|