Примерно так
PHP код:
boolean createJournalLine(InventJournalId inventJournalId, ItemId inventLineId
Weight weight, JournalTransDate _date, JournalTransTime time,
VesId vesId, InventLocationId inventLocationIssue,
wmsLocationId wmsLocationIssue, InventLocationId inventLocationReceipt,
wmsLocationId wmsLocationReceipt, wmsPalletId wmsPalletId,EmplId MOLIssue,
EmplId MOLReceipt, EmplId controllerId, str passwordId, InventBatchId inventBatchId,
SchedToDate ProdDate, SchedToTime ProdTime, godnostDate godnost, inventGTDId_RU inventGTDId_RU)
{
InventJournalTrans journalLine;
InventDim _inventDim;
InventDim inventDimIssue;
InventDim inventDimReceipt;
;
inventJournalTable = InventJournalTable::find(inventJournalId);
if(!inventJournalTable)
{
this.createJournalTable(inventJournalId);
inventJournalTable = InventJournalTable::find(inventJournalId);
}
// Скорее всего, ненужный кусок кода, но обратите на него внимание
if(inventJournalTable.Reservation != ItemReservation::Automatic)
{
inventJournalTable.Reservation = ItemReservation::Automatic;
inventJournalTable.update();
}
journalLine.clear();
// Инициализируем строку журнала
journalLine.initFromInventJournalTable(inventJournalTable);
journalLine.initFromInventTable(InventTable::find(inventLineId));
journalLine.Qty = weight;
journalLine.date_ = _date;
journalLine.time_ = time;
journalLine.vesId = vesId;
journalLine.ProdDate = ProdDate;
journalLine.ProdTime = ProdTIme;
journalLine.godnost = GodNost;
// далее для каждойсроки журнала ищутся или заводятся строки складской аналитики, для заноса информации о складе
_inventDim.clear();
_inventDim.InventLocationId = inventLocationIssue;
_inventDim.WMSLocationId = wmsLocationIssue;
_inventDim.WMSPalletId = wmsPalletId;
_inventDim.InventBatchId = inventBatchId;
_inventDim.inventGTDId_RU = inventGTDId_RU;
inventDimIssue = InventDim::findOrCreate(_inventDim);
_inventDim.InventLocationId = inventLocationReceipt;
_inventDim.WMSLocationId = wmsLocationReceipt;
inventDimReceipt = InventDim::findOrCreate(_inventDim);
journalLine.inventDimId = inventDimIssue.inventDimId;
journalLine.toInventDimId = inventDimReceipt.inventDimId;
// а теперь создаем строку!!!
journalLine.insert();
// здесь поисходит вызов метода, который и осуществляет разноску
// интересно, а ЗАЧЕМ сразу после создания строки разносится журнал???
this.sendToRaznoska();
return true;
}
Оставил нарушения BP и негибкость в отношении складских аналитик, чтобы код можно было узнать

Ответьте все-таки на вопрос:
ЗАЧЕМ сразу после создания строки разносится журнал???