![]() |
#3 |
Участник
|
Цитата:
Сообщение от EVGL
![]() X++: if (record && record.Stopped != _stopped) { while select forUpdate validTimeState(_effectiveDate) record where record.InventItemSetupRecId == _inventItemOrderSetupMap.RecId && record.InventItemSetupTableId == _inventItemOrderSetupMap.TableId && record.ValidTo != _effectiveDate { record.ValidTo = max(_effectiveDate-1, record.ValidFrom); if (record.validateWrite()) record.update(); } } но точно - не помню. надо перечитать про механизм периодических значений в книге. |
|
Теги |
ax2012 |
|
|