
Hello awesome community! :)
In Purchase Agreements, What I want is similar to view the "Released Order Lines" of the purchase agreement.
For example, in this screen:
It views the Released Lines of The Purchase Agreement, what I want is to view the "Received Lines" of these released lines.
Because I want to display in an SSRS report the number of Received Lines.
I already did it for the "Release Lines" by getting the count() number of records in "PurchLine" Table where The PurchLine.MatchingAgreementLine == AgreementLine.RecId.
I'm just a beginner but I noticed that release lines are inserted in PurchLine Table, but what about Received Lines?
Thanks in advance!
*This post is locked for comments
I have the same question (0)I've done it using a counter with this condition:
Counter receivedCounter = 0;
while select purchLi where purchLi.MatchingAgreementLine == agreementLi.RecId && purchLi.ItemId == agreementLi.ItemId{ if(purchLi.invoicedInTotal() - purchLi.receivedInTotal() == 0){ receivedCounter++; } } reportLine.Received = receivedCounter;
And the results are fine for now, I still need to test it more since I'm not sure, because I used "PurchLine.invoicedInTotal() - PurchLine.receivedInTotal()"
Don't know how accurate is that. Once I confirm I will reply here.