Цитата:
Сообщение от
zemlyn
В журнале ГК опция не работает?
Должно работать. У меня работает. За это отвечает кусок кода :
X++:
.............................
//handle possible cashpayment or settlements if it's not a 0 transaction
custVendTransData = CustVendTransData::construct(custVendTrans);
if (!postingProfileSettlement)
{
if(custVendTrans.AmountCur || custVendTrans.AmountMST)
{
/* <SYS>
if (PaymTerm::isCashAccount(paymTermId) && custVendTrans.AmountCur)
</SYS> */
// <GEEU>
if ((PaymTerm::isCashAccount(paymTermId) || emplAccount) && custVendTrans.AmountCur)
{
if (emplAccount)
{
custVendTransCash = custVendTransData.updateEmplAccount_RU(ledgerVoucher,
ledgerPostingType,
cashDiscAmount,
cashDiscDate,
emplAccount,
EmplParameters_RU::find().PostingProfile,
exchRate,
exchRateSecondary);
}
else
// </GEEU>
{
custVendTransCash = custVendTransData.updateCashDisc(paymTermId,
ledgerVoucher,
ledgerPostingType,
cashDiscAmount,
cashDiscDate,
exchRate);
/* <SYS>
</SYS> */
// <GEEU>
}
// </GEEU>
.............................
в классе CustVendVoucher в методе Post. Проверьте попадает туда алгоритм или нет?