Hello,
CR XI - ODBC Informix Database
Here's what I'm trying to achieve.
Item ID, Previous Day Inv - Current Inv = Diff (calc) - Usage = Variance (calc)
The current inventory is queried from the Item Ledger table. The previous days inventory is not stored in the database. I want to store the "current inventory" value so that when the report is run the following day this value would be subtracted from the "new" current inventory.
The Diff amount would be the difference in th inventory from day to day and the Usage would be any orders entered for the Item not yet invoiced. The difference between these two would be a variance amount.
How do I store the current inventory value and use the value again the next time the report is run? I think it may be a matter of using a shared variable but not certain on the correct formula.
Please let me know if further information is needed.
Thanks,
Bill V
CR XI - ODBC Informix Database
Here's what I'm trying to achieve.
Item ID, Previous Day Inv - Current Inv = Diff (calc) - Usage = Variance (calc)
The current inventory is queried from the Item Ledger table. The previous days inventory is not stored in the database. I want to store the "current inventory" value so that when the report is run the following day this value would be subtracted from the "new" current inventory.
The Diff amount would be the difference in th inventory from day to day and the Usage would be any orders entered for the Item not yet invoiced. The difference between these two would be a variance amount.
How do I store the current inventory value and use the value again the next time the report is run? I think it may be a matter of using a shared variable but not certain on the correct formula.
Please let me know if further information is needed.
Thanks,
Bill V