In Inventory Transaction, i am getting a error.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ashif Malayil
    Senior Member
    • Dec 2023
    • 205

    In Inventory Transaction, i am getting a error.

    Hi,

    In the Inventory Transaction entity, when I create an Inventory Transaction, I encounter the following error:
    Error 400: Bad Request
    Backend validation failure.

    Field: quantity
    Validation: valid

    The product which i am creating the Inventory Transaction has 0 available quantity. I can set the quantity to 1 without issues, but any other quantity triggers the same error. I want to understand what this error is related to?
    Last edited by Ashif Malayil; Today, 10:34 AM.
  • yuri
    Member
    • Mar 2014
    • 8872

    #2
    Hello,

    Do I understand right that the issue is only if you set the quantity to 0?

    Note that having transactions with 0 quantity is not a valid usage of transactions.

    Transactions usually are not supposed to be created manually. They are supposed to be created automatically by Delivery, Receipt, Transfer and Adjustment orders. Creating a transaction with 0 quantity does not have sense from the point of view of the design.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8872

      #3
      Transactions are intended from internal tracking. Two transactions with -1 and +1 for the same item negate each other. They will be deleted by a scheduled job later to prevent the table getting very big.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • Ashif Malayil
        Senior Member
        • Dec 2023
        • 205

        #4
        yuri, my intention is to add some products stock available inside products. I am creating Inventory Transaction with a Quantity of 10+. which should reflect in Product as available in warehouse. How can i add it? For reference attached a screenshot where i created two Inventory Transaction with Quantity as 1.
        Attached Files
        Last edited by Ashif Malayil; Today, 10:32 AM.

        Comment

        • yuri
          Member
          • Mar 2014
          • 8872

          #5
          You can create an Inventory Adjustment if you know the exact number of products available in stock for a Warehouse. After setting it to Completed, needed transactions will be created.

          If you want to add a specific number of items, you can use Receipt Order. After setting it to Completed, needed transactions will be created.

          You can also create transactions manually. Does not creating a transaction with +10 quantity for a specific Warehouse work for you?
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • Ashif Malayil
            Senior Member
            • Dec 2023
            • 205

            #6
            Originally posted by yuri
            You can create an Inventory Adjustment if you know the exact number of products available in stock for a Warehouse. After setting it to Completed, needed transactions will be created.

            If you want to add a specific number of items, you can use Receipt Order. After setting it to Completed, needed transactions will be created.

            You can also create transactions manually. Does not creating a transaction with +10 quantity for a specific Warehouse work for you?
            Does not creating a transaction with +10 quantity for a specific Warehouse work for you? Yes. not able to create. I'm getting the above mentioned error? Any criteria is there for adding Quantity?

            Comment

            • yuri
              Member
              • Mar 2014
              • 8872

              #7
              Is it a serial number product? Serial numbers can have only quantity = 1. As each transaction must have one inventory number.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • Ashif Malayil
                Senior Member
                • Dec 2023
                • 205

                #8
                It’s a batch product, not a serial one. Thank you! I was using the inventory number with a serial, which was causing the issue. It's working fine.

                Comment

                Working...