Кое-что можно..
PHP код:
// ALME, Russian localization
// Tax precalculation similar to purch packing slip
private void writeTaxAmount_RU()
{
CustInvoiceTrans invoiceTrans;
TmpTaxWorkTrans tmpTaxWorkTrans; // Копия временной таблицы
if (! TaxParameters::find().TaxSpecifyLine)
return;
// Наполняем данными -->
tmpTaxWorkTrans.setTmpData(this.tmpTaxWorkTrans(custInvoiceJour.RecId));
// <--
while select forUpdate invoiceTrans
where invoiceTrans.SalesId == custInvoiceJour.SalesId &&
invoiceTrans.InvoiceId == custInvoiceJour.InvoiceId &&
invoiceTrans.InvoiceDate == custInvoiceJour.InvoiceDate &&
invoiceTrans.NumberSequenceGroup == custInvoiceJour.NumberSequenceGroup
{
invoiceTrans.initFromTaxWorkTrans_RU(
// Используем 1 копию на все строки -->
//this.tmpTaxWorkTrans(custInvoiceJour.RecId)
tmpTaxWorkTrans,
// <--
tableNum(SalesLine),
0,
invoiceTrans.InventTransId);
invoiceTrans.doUpdate();
}
}
По поводу adjustAmount - он сам вроде быстро работает, но есть проблема с его многократным вызовом.
Кстати, вспомнил -
http://www.axforum.info/forums/showt...t=adjustAmount
Еще вспомнил - аналогичные проблемы у приходных накладных.