Koha/acqui
Nick Clemens 781f34e504 Bug 35892: Populate order price using GetMarcPrice if no price specified
Previously this happened after the fact, automagically, if no price was included in the order record. We should
rather load the Marc price into the order form if we don't have a price form the '...ToOrder' system preferences

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
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 item prices are populated as '6.50' from 949$g
Cancel
Update MarcFieldsToOrder and map price to "020$c"
Add to basket from the staged file
Note the price is not populated, because 020$c contains a dollar sign
Cancel
Apply patch, restart all
Add to basket from the staged file
Note the price is now correctly populated from fallback to GetMarcPrice

Note: GetMarcPrice does some automatic munging, that's why 020$c on it's own doesn't work - this could be done to fields in MarcFieldsToOrder/MarcItemFieldsToOrder but this would be an enhancement.
This bug simply restores the previous behavious, but does it on the front end and is more obvious to the user

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c3035f7e1b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-03-11 11:05:16 +01:00
..
acqui-home.pl
addorder.pl Bug 31631: (follow-up) Use CalculateFundValuesIncludingTax when modifying existing order 2023-10-18 15:41:35 -03:00
addorderiso2709.pl Bug 35892: Populate order price using GetMarcPrice if no price specified 2024-03-11 11:05:16 +01:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 34752: (QA follow-up) perltidy 2023-10-18 10:25:55 -03:00
basketgroup.pl
basketheader.pl
booksellers.pl
cancelorder.pl
check_budget_total.pl
check_uniqueness.pl
duplicate_orders.pl Bug 14092: (QA follow-up) Avoid fiddling with the hash in the template 2023-10-20 16:31:15 -03:00
edi_ean.pl
edifactmsgs.pl
edimsg.pl
finishreceive.pl
histsearch.pl Bug 14092: (QA follow-up) Avoid fiddling with the hash in the template 2023-10-20 16:31:15 -03:00
invoice-files.pl
invoice.pl
invoices.pl
lateorders-export.pl
lateorders.pl
moddeliverydate.pl
modordernotes.pl
neworderempty.pl Bug 34708: Add ability to modify orderline to increase quantity 2023-11-09 10:15:05 -03:00
newordersubscription.pl
newordersuggestion.pl
ordered.pl Bug 31631: Optionally use tax-exclusive values for calculating fund values 2023-10-18 15:41:35 -03:00
orderreceive.pl
parcel.pl
parcels.pl
showorder.pl
spent.pl Bug 31631: (QA follow-up) Tidy code 2023-10-18 15:41:37 -03:00
supplier.pl
transferorder.pl
uncertainprice.pl
updatesupplier.pl
vendor_issues.pl Bug 35634: (bug 33105 follow-up) fix typo issues_manage vs issue_manage 2024-01-15 15:22:24 +01:00
z3950_search.pl