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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.06.2017, 23:14   #1  
Blog bot is offline
Blog bot
Участник
 
14,742 / 641 (51) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: DIEF Issues: Discount Values Aren’t Importing Properly
Источник: https://stoneridgesoftware.com/dief-...ting-properly/
==============

DIEF Issue:

When we were trying to import sales and purchase lines with a discount amount or percentage tied to the Data Import Export Framework (DIEF), the values weren’t importing. If you look at the stage to target mapping, it’s a direct mapping so you would think yourself “Boy – this should work, why isn’t it bringing in the value?”

DIEF Resolution:

In reviewing the situation, what I found out is that it’s the sequence in which things happen that’s the problem. You probably don’t pay much attention to the “Sequence” in the “Map staging to target” form, but this is ultimately what was causing the issue.

There is a function called generateDefaultSalesLineData() which has the sequence value of 3. Basically, the fields we are focused on are:
  1. LineDisc
  2. LinePercent
Both these fields had a Sequence number of zero. This means they are brought in prior to the generateDefaultSalesLineData method is run. Since this is the sequence of events, it throws the values out of whack so all we to do is update LineDisc and LinePercent Sequence values to something greater than 3. I updated LineDisc and LinePercent to 4 as seen in the screenshot below and when I imported, the discount amounts started to show up for Sales Lines. I did the same thing for PurchLines as well, just on the appropriate entity.



NOTE: In later versions of AX 2012, this has been fixed. I believe the sequence number is 12.





Источник: https://stoneridgesoftware.com/dief-...ting-properly/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
stoneridgesoftware: Part I: Configuring the Dynamics AX 2012 R3 Entity Store Blog bot DAX Blogs 0 27.04.2017 12:11
stoneridgesoftware: Importing Addresses in Dynamics AX 2012 with an Attention line using the Data Import Export Framework (DIEF) Blog bot DAX Blogs 0 17.02.2017 21:11
stoneridgesoftware: Importing Product Masters into Dynamics AX 2012 using DIEF | DIXF | DMF | – Uncovered Blog bot DAX Blogs 0 22.12.2016 21:11
stoneridgesoftware: 6 Practical Tips When Using DIEF for Dynamics AX 2012 R3 Blog bot DAX Blogs 0 07.10.2016 02:26
dynamicsax-fico: A note on vendor cash discount posting options Blog bot DAX Blogs 0 04.05.2016 00:15
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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