moj6054 Posted February 15, 2012 Share Posted February 15, 2012 Hi, I have a problem with my database, I have some product, When I sold some of that,If a qty of product in Invoice less of Qty in hand then a new order automatic create. I design my database and some script for that, How I can attach it for review and send useful help? Thank you. Quote Link to comment Share on other sites More sharing options...
Maarten Witberg Posted February 15, 2012 Share Posted February 15, 2012 If you upgrade your membership then you will be able to attach and download demos and other files. Quote Link to comment Share on other sites More sharing options...
moj6054 Posted February 17, 2012 Author Share Posted February 17, 2012 My Database is: product, (PR_ID,PR_Name,Pr_Price,PR_Qty,cQtyInHand=Pr_Qty+Sum(OrderLine::Qty)-Sum(InvoiceLine::Qty)) Invoice (INV_ID,INV-Date,cTotalInv=Sum(cLineTotal)) InvoiceLine(INL_ID,INV_ID,PR_Name,Qty,Price,cLineTotal=Qty*Price) Order(OR_ID,OR_Date,cTotalOrder=Sum(cLinetotal)) OrderLine(ORL_ID,OR_ID,PR_Name,Qty,Price,cLineTotal=Qty*Price) How I can Design a formula ,When I sold some of my product,If a qty of product in Invoice less of Qty in hand then a new order automatic create. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.