PHP код:
NewQuery = new Query ();
bb = NewQuery.AddDataSource (TableNum(CustInvoiceJour));
br1 = bb.AddRange (fieldNum(CustInvoiceJour, Dimension));
br2 = bb.AddRange (fieldNum(CustInvoiceJour, SalesAdministrator));
br3 = bb.AddRange (fieldNum(CustInvoiceJour, OrderAccount));
br1.value (query.dataSourceNo(1).range(3).value());
br2.value (query.dataSourceNo(1).range(2).value());
br3.value (query.dataSourceNo(1).range(1).value());
qr = new QueryRun (NewQuery);
//if (qr.prompt())
//{
while (qr.next())
{
_CustInvoiceJour = qr.get(tableNum(CustInvoiceJour));
if (_CustInvoiceJour.bdnGroup() == Hiper)
s += _CustInvoiceJour.InvoiceAmountMST;
}
//}
return s;
Почему то в while не заходит.... в чем может быть причина?