]> git.koha-community.org Git - koha.git/commit
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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 Nov 2023 13:59:36 +0000 (10:59 -0300)
commit4fd674761199c2cce6ffbd0c272ee22f19711c4f
tree70ecdc844bbb728fb283438ae47017c4e5854b19
parentfe93b31ec73f22712189f9e4d385ec453b1cbd5a
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>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt