I have a report which is created by two data items. Sales Header and Sales Line.
This report runs perfectly sorted by Due Date. 8)
The clients requirement was to create a pending Sales order report. :?
However he wants the amount of sales orders subtracted from the respective blanket order, (First they create a blanket order for one or more items and out of that they click 'make to order' and publish new sales orders for one or more items.)
Ex:
You create a Blanket Order for Item I001 and specify the quantity as 100. Then you create a sales order S001 with 30 items of the specified item, and another Sales Order S002 with 25 items, of the same item.
When the report runs,
It should display the sales orders:
S001 30
S002 25
then the Blanket Orders:
BO0001 45 (100 - (30+25))
:oops:
Any idea how I can tackle this? :-k :-k
Thanks in advance! :roll:
Comments
You can find Blanket Order No. and Blanket Order line No. in sales Line Table and use it in your calculation..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Only in the report ?
How do I apply the filters you specified because there are instances where there are more than one Blanket Order Line No. in the Sales Line table. :shock:
Yes, Only in the report !
How do I apply the filters you specified because there are instances where there are more than one Blanket Order Line No. in the Sales Line table. :shock:
Please try and let us know if not worked with what you tried..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I used this code in the onAfterGetRecord event at the Sales Line data Item.
But cannot get the correct amount in the message box.
The way I see, the problem is in the way we are filtering, isn't it?
Code you written is also poor..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
:oops: :oops: Any suggestions?