Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I am working with point of sales project. Sales items will be selected in sales screen. Available quantity of the item is checking while adding item. Item availability may become zero after adding the item and before clicking checkout button. Can you suggest me how it can be handled

Thanks
Posted
Comments
coded007 28-Oct-13 10:03am    
You need to Delete one item from Inventory or Subtract count from inventory count to achieve this
Mada Naga Sankar 30-Oct-13 2:02am    
After sales done it will decrease the count.
Situation is Total availability is 6,
X customer selected 5 items in his cart
Y customer selected 5 items in his cart at a time.
X customer done his sales. Y have 5 items in his cart, but availability is 1 only. i need to handle this senario. Can you suggest solution for this.
JoCodes 29-Oct-13 1:17am    
You can check the link which shares some idea on how it should be handled in similar conditions
http://stackoverflow.com/questions/6414442/shopping-cart-the-flow-for-sold-out-or-less-available-items-at-checkout-time

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900