Any body with experience in stock updating from stock orders. I have tried a thew things , but my sulotion still feels to complex. I am sure there must be a easier way.
Basically when you order stock from a stock order form it must directly go to UnitsOnOrderCA (cases) and UnitsOnOrderSU (single units) and when the stock comes in and you enter it in the Stock Order Form UnitsInStockCA, UnitsInStockSU must be updated and UnitsOnOrderSU and UnitsOnOrderCA must be updated respectively.
But when the user changes something it must be updated again.
At the moment i'm storing the values before anything is changed and then
updating it after the change is complete.
For example :
UnitsOnOrderCA = UnitsOnOrderCA - (UnitsOrderedCAold - UnitsInCAold)
+ ((UnitsOrderedCAnew - UnitsInCAnew)
What is the best way to do it?
bj steyn
Basically when you order stock from a stock order form it must directly go to UnitsOnOrderCA (cases) and UnitsOnOrderSU (single units) and when the stock comes in and you enter it in the Stock Order Form UnitsInStockCA, UnitsInStockSU must be updated and UnitsOnOrderSU and UnitsOnOrderCA must be updated respectively.
But when the user changes something it must be updated again.
At the moment i'm storing the values before anything is changed and then
updating it after the change is complete.
For example :
UnitsOnOrderCA = UnitsOnOrderCA - (UnitsOrderedCAold - UnitsInCAold)
+ ((UnitsOrderedCAnew - UnitsInCAnew)
What is the best way to do it?