I apologize if this has been asked and answered before but I couldn't find this question in previous threads.
I have an inventory report that displays:
avg cost,
amt allocated,
total allocated cost,
on hand amt,
total on hand cost,
difference (between allocated cost and on hand cost)
The report is grouped on
jobno (group1)
matno(group2)
I have created several formulas to the calculations. The total allocated cost is as follows:
currencyVar Sum_TotCst ;
If {uomcost} = 'M' Then
Sum_TotCst := Sum_TotCst + ({committed} * {avgcost}) / 1000
Else
If {uomcost} = 'CWT' Then
Sum_TotCst := Sum_TotCst + ({committed} * {avgcost}) / 100
It all works well except than I need to clear or reset the Sum_TotCst variable when the matno group changes. I have tried to accomplish this by creating the following formula and putting it in the group header for matno:
currencyVar Sum_TotCst := 0.00 ;
But is doesn't reset this variable. Any suggestions on what I am doing wrong.
TIA
Rena
I have an inventory report that displays:
avg cost,
amt allocated,
total allocated cost,
on hand amt,
total on hand cost,
difference (between allocated cost and on hand cost)
The report is grouped on
jobno (group1)
matno(group2)
I have created several formulas to the calculations. The total allocated cost is as follows:
currencyVar Sum_TotCst ;
If {uomcost} = 'M' Then
Sum_TotCst := Sum_TotCst + ({committed} * {avgcost}) / 1000
Else
If {uomcost} = 'CWT' Then
Sum_TotCst := Sum_TotCst + ({committed} * {avgcost}) / 100
It all works well except than I need to clear or reset the Sum_TotCst variable when the matno group changes. I have tried to accomplish this by creating the following formula and putting it in the group header for matno:
currencyVar Sum_TotCst := 0.00 ;
But is doesn't reset this variable. Any suggestions on what I am doing wrong.
TIA
Rena