Bug 33171: Fix missing price when mapped from MarcItemFieldsToOrder
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 29 Nov 2023 11:11:37 +0000 (11:11 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 18 Mar 2024 10:03:37 +0000 (11:03 +0100)
commit7095b707ffc94f2fc821e669d675be43e6e867ba
treefe71f5a26c17451c1e9433f5d4ed824a396b3643
parent4a6cf130219be37b2c5da4e7849a023e4e5294f1
Bug 33171: Fix missing price when mapped from MarcItemFieldsToOrder

This patch fixes an issue where the price is not passed to the UI when read from MarcItemFieldsToOrder.

Test plan:
1) In Administration, copy and paste the following into MarcItemFieldsToOrder:
quantity: 975$q
budget_code: 975$h
price: 975$p
itype: 975$y
coded_location_qualifier: 975$a
barcode: 975$b
enumchron: 975$c
2) Save
3) Navigate to Acquisitions and find a basket
4) Click Add to basket and select From a new file
5) Choose the file attached to this bug
6) Upload file and click Stage for import
7) Click Add staged files to basket once the job is finished
8) Check the box next to the record
9) The price should show 10.00 under Item record 1
10) coded location qualifier, barcode, enumchron should also have values as per the other commit on this bug
11) Save and import, the basket should not have a value of 0 as the price has been read correctly
12) Check the database, the newest item should have values for price, coded_location_qualifier, barcode and enumchron

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
acqui/addorderiso2709.pl