Ajust multi-line inventory sub-form upon submitting form

Ajust multi-line inventory sub-form upon submitting form

Hello,

Just need a good start on a script.

I have an order form with a sub-form for every line items ordered. That subform source, with a lookup, product details, including actual inventory. Upon submitting the order, I want the quantities of every item ordered to be deducted from the product form's inventory.

I do not want to do it with entry in a field, since customer can go back-and-forth in changing items, or quantity ordered before submitting the order.

I need the proper syntax that says something like "for every line in this actual order" (not the mother form of line items), deduct the quantity of every corresponding item.

Sylvain


    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 コンテンツ




                              ご検討中の方