Сообщение от
Alexius
Ну раз пошла такая пьянка
Отмена закрытия склада при отключенном ключе двух-валютного склада пропускает удаление проводок SummedUp со всеми вытекающими вкусностями
Class / InventCostClosingCancel_WorkInvent / deleteVirtualTransfers
X++:
...
while select forupdate inventTrans order by InventTransId
where inventTrans.ValueOpen == InventTransOpen::Yes
// <GEEU>
// && inventTrans.ValueOpenSecCur_RU == InventTransOpen::Yes
&& inventTrans.ValueOpenSecCur_RU == (isConfigurationKeyEnabled(configurationkeynum(InventClosingSecCur_RU)) ?
InventTransOpen::Yes : InventTransOpen::No)
// </GEEU>
...
На SQL по закрытому ключом полю уходит условие
1=0 и ...
PS. Интересно, много ли еще таких мест ?