X++:
vendVoucher = CustVendVoucher::construct(SysModule::Vend,
ledgerVoucher,
vendTable.accountNum,
100000,
Companyinfo::find().currencyCode,
transTxt,
vendTable.dimension,
'',
LedgerPostingType::VendBalance);
vendVoucher = CustVendVoucher::construct(SysModule::Vend,
ledgerVoucher,
vendTable.accountNum,
-100000,
Companyinfo::find().currencyCode,
transTxt,
vendTable.dimension,
'',
LedgerPostingType::VendBalance);
вы одну и тожу переменную два раза проинициализировали, это как минимум не верно