Koha/acqui
Nick Clemens 6270d813ef Bug 34645: always use discount, sort1, and sort2 from MarcFieldsToOrder
These values are stored at the order level, not per item. This patch simply sets the order values from the values retrieved from MarcFieldsToOrder even inf MarcItemFields to order is being used for other fields

To test:
Setup -- Set systempreferences below

MarcFieldsToOrder:
price: 949$g
quantity: 949$k
budget_code: 949$l
discount: 949$m
sort1: 949$n
sort2: 949$q

MarcItemFieldsToOrder:
homebranch: 949$a
holdingbranch: 949$b
itype: 949$y
nonpublic_note: 949$x
public_note: 949$z
loc: 949$c
ccode: 949$8
notforloan: 949$7
uri: 949$u
copyno: 949$t
price: 949$g
replacementprice: 949$v
itemcallnumber: 949$o
quantity: 949$k
budget_code: 949$l

Stage the attached bib-303.marcxml file
Add to basket from the staged file
Note that discount and sort1 and sort2 are not populated per the Marc
Apply patch, restart all
Stage and add to basket again
Confirm discount and sort1 and sort2 are populated correctly

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f3bf1f3da5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-10-05 09:42:49 -10:00
..
acqui-home.pl
addorder.pl Bug 11844: Use additional fields for order lines 2023-05-16 12:58:38 +02:00
addorderiso2709.pl Bug 34645: always use discount, sort1, and sort2 from MarcFieldsToOrder 2023-10-05 09:42:49 -10:00
ajax-getauthvaluedropbox.pl
basket.pl
basketgroup.pl Bug 31257: Add a new English 1 page layout to export basketgroup 2022-10-11 10:44:10 -03:00
basketheader.pl Bug 34509: Use select2 to load vendors on basket creation 2023-08-29 11:43:05 -10:00
booksellers.pl Bug 33103: Prevent vendors to be displayed several times in the search result 2023-04-20 15:48:42 -03:00
cancelorder.pl
check_budget_total.pl
check_uniqueness.pl
duplicate_orders.pl
edi_ean.pl
edifactmsgs.pl
edimsg.pl
finishreceive.pl Bug 34022: Adjust items data structure 2023-06-26 14:49:52 +02:00
histsearch.pl Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl 2023-01-31 11:02:21 -03:00
invoice-files.pl
invoice.pl Bug 32705: Display the column if 1 order has an invoice price 2023-03-06 14:04:12 -03:00
invoices.pl Bug 31115: Add additional field filtering for invoice search 2022-10-24 14:11:07 -03:00
lateorders-export.pl Bug 15348: trivial code simplification 2022-09-16 10:36:53 -03:00
lateorders.pl Bug 33653: Use filter_by_active instead 2023-05-09 10:58:07 -03:00
moddeliverydate.pl Bug 15348: (follow-up) Fix modal to edit delivery date 2022-09-16 10:36:57 -03:00
modordernotes.pl
neworderempty.pl Bug 34469: Block editing for received order lines 2023-08-17 09:38:27 -10:00
newordersubscription.pl
newordersuggestion.pl
ordered.pl
orderreceive.pl Bug 8179: Add vendor id on breadcrumb link 2023-05-17 14:44:42 -03:00
parcel.pl
parcels.pl Bug 31115: Add support for additional fields for invoices 2022-10-24 14:11:06 -03:00
showorder.pl
spent.pl
supplier.pl Bug 33103: Add the ability to create vendor aliases 2023-04-20 15:48:36 -03:00
transferorder.pl
uncertainprice.pl
updatesupplier.pl Bug 33104: Add the ability to create vendor interfaces 2023-05-05 10:18:46 -03:00
z3950_search.pl