[Koha-bugs] [Bug 35004] New: Error about no quantity set on acquisitions order receive confirmation.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 6 18:15:00 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35004

            Bug ID: 35004
           Summary: Error about no quantity set on acquisitions order
                    receive confirmation.
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: slavashishkin at gmail.com
          Reporter: slavashishkin at gmail.com
        QA Contact: testopia at bugs.koha-community.org
        Depends on: 8179, 34736, 33864

An error occurs when receiving the order. This happens if the user does not
change the "Quantity received" field value, thereby not triggering the
"OnChange" event.

By default, the "Quantity received" field value is set to 1 by JS,
but there is a row.quantity_received variable which serves as a shadow value
which sent in a POST Ajax request after clicking "Confirm",
yet row.quantity_received stays undefined despite the fact that we changed the
form value by JS.
row.quantity_received is expected to be updated on the "onChange" event for the
form field, but that event does not fired when JS changes the form field value
to 1.
So if the user does not change the form field, it has a value of "1" but the
form sends an empty value from the shadow value. This leads to an error from
the backend which says "No quantity to receive set. No items will be created."
in the popup.


To test:
1. Add a new basket.
2. Create an order line
3. Receive shipment and create an invoice
4. Start receiving your order:
    Verify:
    - Quantity ordered: X
    - Quantity received: 1 (pre-filled, don't touch or change it)
5. Click "Confirm"
6. Observe the Receive error popup: "Order ZZZ: No quantity to receive set. No
items will be created."
7. Verify that "Order receive" was not happen (received orders remains empty)


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8179
[Bug 8179] Receiving multiple order lines at once
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33864
[Bug 33864] Problems in order receive modal
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34736
[Bug 34736] Item checkboxes move to wrong order line in multi-receive, breaking
partial receive
-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list