AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.08.2013, 14:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: After installing application Hotfix released on KB #2786631, it is not possible to cancel Invoice in Invoice approval journal on AX 2009 SP1 RU6 or higher
Источник: http://blogs.msdn.com/b/axsupport/ar...or-higher.aspx
==============

Issue description:

After installing application Hotfix released on KB #2786631, it is not possible to cancel Invoice in Invoice approval journal on AX 2009 SP1 RU6 kernel/application build #5.0.1500.3761 or higher, it is no more possible to make an annulment of a posted invoice register in Approval journal.

You get an error message stating that Vendor account XXXX does not exist.

Workaround description:

The failure is caused by code pattern in \Classes\LedgerJournalCheckPost\postTrans in above mentioned application hotfix as shown below:

X++:
    if (!ledgerJournalTransUpdate)
    {
         ledgerJournalTransUpdate = ledgerJournalTransUpdateAmountIncl;
    }
Change code as described below, save and compile:

............

X++:
    // Workaround to ensure we have the correct TransUpdate type
    if (!ledgerJournalTransUpdate)
    {
         if (ledgerJournalTable.JournalType == LedgerJournalType::Approval
         && _ledgerJournalTrans.AccountType == LedgerJournalACType::Ledger
         && _isOffset)
        {
                      ledgerJournalTransUpdate = LedgerJournalTransUpdate::construct(_ledgerJournalTrans);
        }
        else
        {
             ledgerJournalTransUpdate = ledgerJournalTransUpdateAmountIncl;
        }
    }
............



Disclaimer:

This programming example is for illustration purposes only. Microsoft disclaims all warranties and conditions with regard to use of the programming example for other purposes. Microsoft shall not, at any time, be liable for any special, direct, indirect or consequential damages, whether in an action of contract, negligence or other action arising out of or in connection with the use or performance of the programming example. Nothing herein should be construed as constituting any kind of warranty.




Источник: http://blogs.msdn.com/b/axsupport/ar...or-higher.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Dynamics AX 2009 - A negative receipt is not allowed on a Project PO - How to address this situation Blog bot DAX Blogs 0 15.03.2013 17:11
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: Microsoft BizTalK Server 2010 passes compatibility testing with Microsoft Dynamics AX 2009 SP1 Blog bot DAX Blogs 0 30.09.2011 01:19
emeadaxsupport: Microsoft Dynamincs AX 2009 Workflow: Notification message does not contain PO number Blog bot DAX Blogs 0 22.09.2011 14:11
emeadaxsupport: Debugging non-interactive X++ code in Dynamics AX 2009 when running on Windows Server 2008 Blog bot DAX Blogs 0 23.09.2009 13:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 07:50.