Значение для строки заказа есть. Инфолог выводит 0.
Вот кусок кода отчета:
if (!firstRow)
{
//Выводим строку для предыдущей группы
s += curRow
+ colsDelim + strfmt("%1", decround(curWeight, 2))
+ colsDelim + strfmt("%1", decround(curConfirmedWeight, 2))
+ colsDelim + strfmt("%1", decround(curWeightBrutto, 2))
+ colsDelim + strfmt("%1", decround(curVolume, 2))
+ colsDelim + strfmt("%1", decround(curPalletQty, 2))
+ colsDelim + strfmt("%1", decround(curAmount, 2))
+ colsDelim + strfmt("%1", time2str(curTime, 99, 1));
allWeight += curWeight;
allConfirmedWeight += curConfirmedWeight;
allWeightBrutto += curWeightBrutto;
allVolume += curVolume;
allPalletQty += curPalletQty;
allAmount += curAmount;
s += rowsDelim;
}
firstRow = false;
curRow = int2str(i)
+ colsDelim + excelExp.formatValue(salesTable.SalesId)
+ colsDelim + excelExp.formatValue(salesTable.PurchOrderFormNum)
+ colsDelim + excelExp.formatValue(salesTable.CustAccount)
+ colsDelim + excelExp.formatValue(CustTable.NameAlias)
+ colsDelim + excelExp.formatValue(salesTable.DeliveryAddress)
+ printInventLocation();
// valio shol 09/05/14
curWeight = salesLine.QtyOrdered * inventTable.NetWeight;
curConfirmedWeight = confirmInventQty * inventTable.NetWeight;
curWeightBrutto = confirmInventQty * (inventTable.NetWeight + inventTable.TaraWeight);
curVolume = confirmInventQty * ((inventTable.Height/1000) * (inventTable.Width/1000) * (inventTable.Depth/1000));
curPalletQty = inventTable.standardPalletQuantity ?
(decround(confirmInventQty/inventTable.standardPalletQuantity,2)) : 0;
curAmount = custConfirmjour.ConfirmAmount;
curTime = salesTable.CreatedTime;
info(int2str(curTime));
}
|