Bug 35273: Fix item selection when receiving
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Nov 2023 10:23:34 +0000 (11:23 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 11 Nov 2023 08:00:05 +0000 (22:00 -1000)
commitfa1cabde11d40d2213b0dd1516fc2868021bac57
tree560ced83eae9e66573d54f3366e1f31fdbe35d63
parent6cb8aa14ac987d944615288eb72092ec87c4b970
Bug 35273: Fix item selection when receiving

For partial receives with items created on order, the
aqorders_items table was not correctly updated when only
some of the ordered items were received.

To test:
1) Create a basket with creating items on order
2) Create an order line with 3 items
3) Close basked
4) Receive shipment and create invoice
5) Receive your created order line
6) Edit first item displayed, add barcode
7) Check checkbox and receive
8) Verify the order line has been split 2:1
9) Receive again - notice all 3 items are showing.
  We should only see the remaining 2
10) Undo receive
11) Apply patch
12) Repeat steps 5)-9)
13) Verify that in step 9) only the remaining 2 items display now.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4fd674761199c2cce6ffbd0c272ee22f19711c4f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt