I installed the default module "order management" within this module there is a page called "active" which shows all active purchases. Within this, there is a custom action with the following script.
- void purchase.postToInvent(Purchase purRow)
- {
- proRowList = purRow.Add_Product;
- for each proRow in proRowList
- {
- fet = Products[ID == proRow.Product];
- fet.Available_Stock=fet.Available_Stock + proRow.Quantity;
- thisapp.inventReportColor(fet.ID);
- }
- purRow.Order_Status="Received";
- purRow.Handled_By=zoho.loginuserid;
- }
Line 7 seems to be pulling an error, any one know why? This is the stock code, with out any change.