]> git.koha-community.org Git - koha.git/commit
Bug 34022: Adjust items data structure
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Jun 2023 19:06:11 +0000 (16:06 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 26 Jun 2023 12:49:52 +0000 (14:49 +0200)
commitcba15aaa093f80602177d18e9693b53742ddf74f
tree23715bf6f7600c946bc45c06956bdd143ff7d7d5
parent5f24345b676c81a6e04a9d4eab818fdce7be1655
Bug 34022: Adjust items data structure

When creating items at receiving, the generated data structure didn't
match what the code expected, so this patch adapts the code to match the
new data structure introduced by bug 8179.

Once I fixed that, I noticed that the $.ajax request payload, when it
contains an array parameter, it renames it like `param[]`. So the
finishreceive.pl controller is adjusted to this behaviour for the 'on
receiving' use case.

To test:
1. Apply this patch
2. Create a basket with 'create items on receive'
3. Create an order line
4. Close basket
5. Receive shipment
6. Enter invoice number
7. Click on Receive link in the table
8. Fill out item form, make sure all mandatory fields are set
9. Save
10. Verify that the order line is marked as 'received'
11. Verify that there item is created on the record
=> SUCCESS: Works as expected
12. Sign off :-D

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a40c512bf083a1bb48daeecd2f407b4f5586d819)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
acqui/finishreceive.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt