Показать сообщение отдельно
Старый 26.12.2015, 09:35   #1  
Art_Tanis is offline
Art_Tanis
Участник
 
225 / 36 (2) +++
Регистрация: 04.02.2014
Класс ledgerVoucher разноска как сторно
ДОбрый день!
Возникла следующая проблема:
Данные:
X++:
20.0153      - 1000
16.0105      1000
Разносится как
Дт16 - Кт20

А надо :

Дт20 - Кт16(с минусом)

X++:
 ledgerVoucher.findLedgerVoucherObject().lastTransTxt(ledgerClosingSheet.DryRuLedgerClosingName_RU);

                transObject = LedgerVoucherTransObject::newCreateTrans(ledgerVoucher.findLedgerVoucherObject(),
                                LedgerPostingType::Closing,
                                ledgerClosingTrans.AccountNum,
                                Dimension,
                                currencyCode,
                                ledgerClosingTrans.Amount,
                                ledgerClosingTrans.TableId,
                                ledgerClosingTrans.RecId);

                ledgerVoucher.addTrans(transObject);

                if (ledgerBondClient)
                {
                    offsetRecId2VredIdMap.insert(ledgerClosingTrans.DryRuClosingOffsetRecId,
                                                 ledgerBondClient.lastVrefId());
                    // If this one corresponds to a previously posted
                    if (offsetRecId2VredIdMap.exists(ledgerClosingTrans.RecId))
                    {
                        ledgerBondClient.bondVRef2VRef(offsetRecId2VredIdMap.lookup(ledgerClosingTrans.RecId),
                                                       ledgerBondClient.lastVrefId());
                    }
                }
Подскажите как это сделать??