Multiple user updating inventory qty with deluge

Multiple user updating inventory qty with deluge

Hi all, i have a scenario below

I have a inventory product A with qty 10 and there are three users submit their order at the same time.

user A ordered 10
user B ordered 10
user C ordered 10

i have script on validate to check if the qty goes less than 0, stop submission and prompt alert. And a script to deduct the qty from inventory upon success submission.

but for the scenario above, the inventory Product A qty came back as 0 sometime return as negative 10 or negative 20( i have tried multiple times) which is not correct, it seems the request submitted has no queue on the server side and it will process simultaneously.

this is a very serious issue, any of you facing the same?

thanks

TD

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方