Типы документов — различия между версиями
Материал из GB wiki
Олейник (обсуждение | вклад) |
Олейник (обсуждение | вклад) |
||
Строка 7: | Строка 7: | ||
Они рассчитываются по формулам: | Они рассчитываются по формулам: | ||
+ | |||
''DocWeight[Вес,fmAmount]=Quantity*StrToFloat(Articul.Heap.BoxWeight)/Articul.RatioStock; | ''DocWeight[Вес,fmAmount]=Quantity*StrToFloat(Articul.Heap.BoxWeight)/Articul.RatioStock; | ||
DocVolume[Объем,fmAmount]=Quantity*StrToFloat(Articul.Heap.BoxVolume)/Articul.RatioStock');'' | DocVolume[Объем,fmAmount]=Quantity*StrToFloat(Articul.Heap.BoxVolume)/Articul.RatioStock');'' | ||
Итоговый вес и объем документа считается по сумме полей из товарных строчек как: | Итоговый вес и объем документа считается по сумме полей из товарных строчек как: | ||
+ | |||
''HeapSetDocWeight = Int(GoodiesTotals.FindField('DocWeight').AsFloat*10000+0.4999)/10000; | ''HeapSetDocWeight = Int(GoodiesTotals.FindField('DocWeight').AsFloat*10000+0.4999)/10000; | ||
+ | |||
HeapSetDocVolume = Int(GoodiesTotals.FindField('DocVolume').AsFloat*10000+0.4999)/10000;'' | HeapSetDocVolume = Int(GoodiesTotals.FindField('DocVolume').AsFloat*10000+0.4999)/10000;'' |
Версия 06:12, 13 апреля 2010
В свойствах типа документа имеются следующие чекбоксы:
-Расчитывать вес и объем
Если этот чекбокс включен, то в товарные строчки документа будут автоматически добавлены поля с весом и объемом.
Они рассчитываются по формулам:
DocWeight[Вес,fmAmount]=Quantity*StrToFloat(Articul.Heap.BoxWeight)/Articul.RatioStock; DocVolume[Объем,fmAmount]=Quantity*StrToFloat(Articul.Heap.BoxVolume)/Articul.RatioStock');
Итоговый вес и объем документа считается по сумме полей из товарных строчек как:
HeapSetDocWeight = Int(GoodiesTotals.FindField('DocWeight').AsFloat*10000+0.4999)/10000;
HeapSetDocVolume = Int(GoodiesTotals.FindField('DocVolume').AsFloat*10000+0.4999)/10000;