out of stock table relation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2023 08:53 AM
i have to create two tables are wholesale and orders like in wholesale like i enter 5 iphones so in orders table only 5 iphones should be there like if someone order 3 iphone than other order 2 iphone now there is no ipone like now if someone order it show out of stock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2023 09:12 AM - edited ‎11-25-2023 09:13 AM
While placing order its better to just show the item's existing quantity which is in wholesale table and then what you can do is, once the order is completed, you can write a business rule to reduce the quantity by the number of device orders placed. Next time, it should point to the updated quantity while placing the order.
This is what I can think of roughly.
For more clarity, it would be great if you can post few screenshots of fields present on these tables and form view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2023 10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2023 04:12 AM
Hi @abhi159
.1. You need to set the total quantity
2. After order has been place , store that value in another field
3. Run BR where total quantity - Order quantity
4 Display in Portal (also it must be dynamic or put validation) user cant order more than the quantity.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************