jon_lane
15th June 2007, 17:17
For a week I've been writing this report so now I'm in need of a nudge to the solution.
I have a query that returns the eco stock. But then also the production orders that create the allocation AND the history of the usage.
My report prints the layouts correctly, but does not calculate the usage by quarter1, quarter2 etc.
Bottom line - I don't understand the scripting language
Please correct my attempt at the script or point me in direction of a good book.
The before.detail = eco stock line items
The detail is the production order information for each simular item
Hope this make sense to someone!
Many thanks
|******************************************************************************
|* tdsqlecostoc5 VRC B40P c4 JB
|* Eco Stock below re-order point
|* jlane
|* 07-06-07 [12:57]
|******************************************************************************
|Calculate the annual issue by adding up the months issues, report in 1st period and second period
declaration:
domain tcamnt quarter1
domain tcamnt quarter2
domain tcamnt quarter3
domain tcamnt quarter4
domain tcqiv1 stoc
domain tcqiv1 ordr
domain tcqiv1 allo
domain tcqiv1 reop
before.field:
quarter1=(tdinv750.aupp(1)+tdinv750.aupp(2)+tdinv750.aupp(3))
quarter2=(tdinv750.aupp(4)+tdinv750.aupp(5)+tdinv750.aupp(6))
quarter3=(tdinv750.aupp(7)+tdinv750.aupp(8)+tdinv750.aupp(9))
quarter4=(tdinv750.aupp(10)+tdinv750.aupp(11)+tdinv750.aupp(12))
I have a query that returns the eco stock. But then also the production orders that create the allocation AND the history of the usage.
My report prints the layouts correctly, but does not calculate the usage by quarter1, quarter2 etc.
Bottom line - I don't understand the scripting language
Please correct my attempt at the script or point me in direction of a good book.
The before.detail = eco stock line items
The detail is the production order information for each simular item
Hope this make sense to someone!
Many thanks
|******************************************************************************
|* tdsqlecostoc5 VRC B40P c4 JB
|* Eco Stock below re-order point
|* jlane
|* 07-06-07 [12:57]
|******************************************************************************
|Calculate the annual issue by adding up the months issues, report in 1st period and second period
declaration:
domain tcamnt quarter1
domain tcamnt quarter2
domain tcamnt quarter3
domain tcamnt quarter4
domain tcqiv1 stoc
domain tcqiv1 ordr
domain tcqiv1 allo
domain tcqiv1 reop
before.field:
quarter1=(tdinv750.aupp(1)+tdinv750.aupp(2)+tdinv750.aupp(3))
quarter2=(tdinv750.aupp(4)+tdinv750.aupp(5)+tdinv750.aupp(6))
quarter3=(tdinv750.aupp(7)+tdinv750.aupp(8)+tdinv750.aupp(9))
quarter4=(tdinv750.aupp(10)+tdinv750.aupp(11)+tdinv750.aupp(12))