Issue with "Create Receipt" in Purchase Order (only via "Create Receipt" Button)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Laimonas
    Senior Member
    • May 2021
    • 220

    Issue with "Create Receipt" in Purchase Order (only via "Create Receipt" Button)

    I encountered an issue when trying to create a receipt in the Purchase Order form:

    1) I open the Purchase Order ( https://demo.eu.espocrm.com/?l=en_US...d86b6b8e650a9e ) and click the "Create Receipt" button.
    2) A Detail small window opens, where I enter the received quantity for both products (no other quantity fields are visible).
    3) After clicking "Create", I receive an error message: "Bad request. Received quantity mismatch."
    4) However, if I create a "Receipt Order" using the "+" sign in the bottom panel, it works fine.
    I’ve attached screenshots
    Attached Files
  • yuri
    Member
    • Mar 2014
    • 8667

    #2
    Do you observe the same issue on your instance (not on the demo)? it works fine for me.

    It could be just a demo-data issue.
    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

    • Nuno Lopes
      Member
      • Jan 2024
      • 39

      #3
      Hello,

      I also couldn't simulate this error

      Nuno Lopes

      Comment

      • souhail
        Junior Member
        • Nov 2018
        • 8

        #4
        Assalamo Alaykom,
        I encountered the same issue as Laimonas on my own ESPOCRM installation '9.0.4' with version 2.6.7 of the 'Sales Pack' extension.
        The error is:
        Bad request
        Received quantity mismatch.
        Is there a solution, please?

        Comment

        • souhail
          Junior Member
          • Nov 2018
          • 8

          #5
          Assalamo Alaykom,

          I think I have understood where the problem comes from:
          When I had set my products to have a batch number or a serial number, I couldn’t receive via the "receipt order" button. I could only do it by clicking the "+" button at the bottom in Receipt Orders.
          However, when I set the products to have neither batch nor serial number, the functionality of the button was restored.
          I think the best solution would be for the batch and serial numbers to not be mandatory when the receipt is in draft. I believe this could resolve the issue.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8667

            #6
            The problem happens when entering counts of received items if these items are batch/serial numbered. As on the modal view, there's no the 'Received Inventory' panel (where inventory numbers) are entered it causes mismatch between total counts and per-number counts. This is an expected logic from the backend point of view.

            Current workaround. Not to enter received counts in the modal. Enter them later. This is how it was supposed to be used.

            > I think the best solution would be for the batch and serial numbers to not be mandatory when the receipt is in draft.

            I'm not sure whether we need to break strict requirement to have received counts matching inventory number counts.

            I haven't come up with a solution yet.
            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
              yuri commented
              Editing a comment
              Maybe we would need to add the panel in the modal.
          • yuri
            Member
            • Mar 2014
            • 8667

            #7
            Added the panel in v2.6.8. Shown only if the received count for inventory numbered items is greater than 0.
            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

            • Laimonas
              Senior Member
              • May 2021
              • 220

              #8
              Thanks, problem solved!

              Comment

              Working...