Показать сообщение отдельно
Старый 22.06.2011, 08:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics AX Sustained Engineering: Additional lines appear when opening Breakdown of Voucher form a second time for a journal line with no offset account
Источник: http://blogs.technet.com/b/dynamicsa...t-account.aspx
==============

Problem:

When working with a journal line that does not have an offset account and accessing the breakdown of voucher form a second time, additional lines are displayed.

Resolution:

To resolve this issue the following changes can be made.

Change \Classes\LedgerJournalSplitPosting\initFromJournal

From:
X++:
...

if (ledgerJournalTransLines.OffsetAccountType == LedgerJournalACType::Ledger)

...
To:

X++:
...

            if  (ledgerJournalTransLines.OffsetAccount &&
                (ledgerJournalTransLines.OffsetAccountType == LedgerJournalACType::Ledger) &&
                (ledgerJournalTransLines.ledgerJournalTable().JournalType != LedgerJournalType::Approval))

...



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

Последний раз редактировалось Poleax; 22.06.2011 в 09:45. Причина: оформление