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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.11.2013, 03:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
ax_gfm_framework_team: Update for a data problem with the IsCredit field in the GeneralJournalAccountEntry table
Источник: http://blogs.msdn.com/b/ax_gfm_frame...nd-update.aspx
==============

The GeneralJournalAccountEntry table contains the detailed General Ledger entries. The IsCredit field is the correct and easy way to determine if the entry is a debit (false) or a credit (true).

From Dynamics AX 2012 RTM until a hot fix that was released on November 6, 2012, there was a problem where the IsCredit field was not set correctly if the entry had an AccountingCurrencyAmount of zero. One way this problem will manifest itself is in the inability for processes such as settlement and revaluation to find the ledger dimension of an existing transaction. The result of not finding the original transaction is that the ledger dimension is empty and that results in a posting error similar to the following.

Account number for transaction type %1 does not exist.

%1 is the posting type, such as "Exchange rate loss" or "Exchange rate gain"

This problem is specific to Dynamics AX 2012 and was fixed starting in KB 2758624 and CU4.

Since there is no official way to deliver a data update, the job below will update the IsCredit field for this problem and can be run repeatedly as needed until the update is applied to your system.



static void GJAE_IsCreditFix(Args _args)
{
GeneralJournalAccountEntry a;
boolean doSave;

// TODO: change this to true to commit the changes
doSave = false;

ttsBegin;

update_recordSet a
setting IsCredit =
(a.TransactionCurrencyAmount < 0 && !a.IsCorrection) ||
(a.TransactionCurrencyAmount > 0 && a.IsCorrection)
where a.AccountingCurrencyAmount == 0
&& a.TransactionCurrencyAmount != 0;

info(strFmt('Transaction: %1', a.RowCount()));

update_recordSet a
setting IsCredit =
(a.ReportingCurrencyAmount < 0 && !a.IsCorrection) ||
(a.ReportingCurrencyAmount > 0 && a.IsCorrection)
where a.AccountingCurrencyAmount == 0
&& a.TransactionCurrencyAmount == 0
&& a.ReportingCurrencyAmount != 0;

info(strFmt('Reporting: %1', a.RowCount()));

if (doSave)
{
ttsCommit;
info('committed');
}
else
{
ttsAbort;
info('aborted');
}
}






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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax_gfm_framework_team: Ledger account combinations - Part 5 (Ledger dimensions (A)) Blog bot DAX Blogs 0 16.02.2013 08:08
ax-erp: Walkthrough: Creating a Report Bound to a Report Data Provider Class (X++ Business Logic) [AX 2012] Blog bot DAX Blogs 0 20.09.2012 11:11
ax_gfm_framework_team: Step 4: Add Source Document Framework forms to your document UI Blog bot DAX Blogs 0 04.05.2012 01:11
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
Dianne Siebold: Update on the Dynamics AX SDK Team kashperuk DAX Blogs 1 16.10.2007 08:23

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 10:57.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.