Показать сообщение отдельно
Старый 01.03.2012, 15:26   #6  
Vadik is offline
Vadik
Модератор
Аватар для Vadik
Лучший по профессии 2017
Лучший по профессии 2015
 
3,631 / 1849 (69) ++++++++
Регистрация: 18.11.2002
Адрес: гражданин Москвы
Provided that AIF is set up, all you need to do to push sales invoice while posting it is customizing SalesFormLetter_Invoice.updateNow() (see also printJournal() method):
X++:
boolean updateNow()
{
    ///

    this.postJournal();

    // ->
    if (custInvoiceJour.canXMLBeSent())
    {
        custInvoiceJour.sendElectronically(XMLDocPurpose::Original, AifSendMode::Async);
    }
    // <-

    #if.never//    #speedtest
    if (speedExecute_Sales)
        speedExecute_Sales.timing(SpeedSalesTiming::InvoiceEnd,'');
    #endif

    return true;
}
__________________
-ТСЯ или -ТЬСЯ ?