Не могу найти, где это. Не подскажете?
У меня есть задача создать проводку в VendTrans без проводки по ГК. AX2009, General. Помогите, пожалуйста. Пишу функцию:
X++:
void createVendTrans(AccountNum VendAccount, Amount Amount, LedgerTransTxt transtxt){
CustVendVoucher vendVoucher;
VendTrans vendTrans;
VendTable vendTable = VendTable::find(VendAccount);
LedgerVoucher LedgerVoucher;
;
vendVoucher = CustVendVoucher::construct(SysModule::Vend,
ledgerVoucher, // не определяю, т.к. все равно фин.проводка не нужна.
vendTable.accountNum,
Amount,
Companyinfo::find().currencyCode,
transTxt,
vendTable.dimension,
'',
LedgerPostingType::VendBalance);
???vendVoucher.< , >
vendVoucher.setPaymMode(vendTable.paymMode);
vendVoucher.setPaymSpec(vendTable.paymSpec);
vendVoucher.post(vendTrans);
}