Показать сообщение отдельно
Старый 09.11.2017, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 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, напишите личное сообщение администратору.