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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.11.2017, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,448 / 846 (79) +++++++
Регистрация: 28.10.2006
alirazazaidi: Relation between PurchLine and PurchReqline Tables in Dynamics AX 2012 R3.
Источник: https://www.tech.alirazazaidi.com/re...cs-ax-2012-r3/
==============

In one of SSRS Report requirement, client wants to see Purchase order quantity, Invoice Quantity against items purchase requisition Quantity.



Instead of writing a query on ItemId and InventdimId, I found out of the box function In PurchReqLine table. This method return the reference of Purchline. With reference of Purchline, I can get Purchase order Number and get Item Invoiced quantity.



PurchLine       purchLine;PurchReqLine reqline; _purchLine = reqline.purchLine();  The relationship between Purchline and PurchReqline is RecId, Purchline contains the Reference RecId of PurchReqline.



PurchLine       purchLine; if (this.PurchId && this.LineRefId){select firstonly purchLinewhere purchLine.PurchId           == this.PurchId    &&purchLine.PurchReqLineRefId == this.LineRefId  &&!purchLine.IsDeleted;}

Источник: https://www.tech.alirazazaidi.com/re...cs-ax-2012-r3/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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