|
|
#1 |
|
Участник
|
Сопоставление разных профилей (договоры)
Добрый день! При сопоставлений проводок по клиенту в разных валютах и с разными профилями возникают операции закрытия счета:
Цитата:
Накладная: 05.09.2011, Профиль1, Договр1, сумма +500, валюта EUR (Дт62.31)
Оплата: 05.09.2011, Профиль2, Договр2, сумма -1500, валюта RUB (Кт62.01) Цитата:
05.09.2011, Профиль2, Договор1, сумма +36.17, валюта EUR (Дт62.01)
05.09.2011, Профиль1, Договор1, сумма -36.17, валюта EUR (Кт62.31) Кроме того, не сформировались проводки по начислению курсовой разницы. По идее, при закрытие счета происходит перенос оплаты на счета накладной (Дт 62.01 Кт62.31). И, по-хорошему, в операции Дт62.01, должен стоять Договр2. Самое интересное, что при отмене сопоставлений, договора подставляются верно: в операцию с профилем Профиль1 ставится Договор1, с профилем Профиль2 - Договор2 Почему так сделано? |
|
|
|
|
#2 |
|
Участник
|
Вот сопоставление (в метод PostingProfileSettle_RU передается всегда дебетовая операция)
X++: CustVendSettle::postingProfileSettle_RU(ledgerVoucher,
custVendTransDebit,
this.amount(_settleAmountCurDebit),
custVendTransSettlement,
settlementGroupPlaceHolder,
custVendTransCredit.Dimension,
custVendTransCredit.PostingProfile,
LedgerTransTxt::Settlement,
this.amount(closeAmountMST));
CustVendSettle::postingProfileSettle_RU(ledgerVoucher,
custVendTransDebit,
this.amount(-_settleAmountCurDebit),
custVendTransSettlement,
settlementGroupPlaceHolder,
custVendTransDebit.Dimension,
custVendTransDebit.PostingProfile,
LedgerTransTxt::Settlement,
this.amount(- closeAmountMST));X++: CustVendSettle::postingProfileSettle_RU(ledgerVoucher,
custVendTransDebet,
- transPostingLog.AmountCur,
custVendTransSettlement,
settlementGroupPlaceHolder,
custVendTransDebet.Dimension,
custVendTransDebet.PostingProfile,
LedgerTransTxt::Settlement,
- transPostingLog.AmountMST,
- transPostingLog.AmountMSTSecond);
CustVendSettle::postingProfileSettle_RU(ledgerVoucher,
custVendTransCredit,
transPostingLog.AmountCur,
custVendTransSettlement,
settlementGroupPlaceHolder,
custVendTransCredit.Dimension,
custVendTransCredit.PostingProfile,
LedgerTransTxt::Settlement,
transPostingLog.AmountMST,
transPostingLog.AmountMSTSecond,
custVendTransDebet.CurrencyCode); |
|
|