Показать сообщение отдельно
Старый 23.06.2011, 15:24   #11  
gefr is offline
gefr
Участник
Аватар для gefr
MCBMSS
 
147 / 17 (1) ++
Регистрация: 01.11.2004
Адрес: МО, Котельники
Не могу найти, где это. Не подскажете?
У меня есть задача создать проводку в 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); 
    }

Последний раз редактировалось gefr; 23.06.2011 в 15:32. Причина: уточнение