Koha/acqui
Matt Blenkinsop e5c44980ee
Bug 35026: Refactor addorderiso2709.pl to use the MarcOrder class
This script uses the newly created MarcOrder class to refactor the script into a cleaner controller function. This MarcOrder class will also be used in bug 34355 to automate the creation of order lines from marc records.

Test plan:
1) In system preferences, click Search and then select the Acquisitions option from the left hand menu
2) Paste the following into MarcFieldsToOrder
price: 975$p
quantity: 975$q
budget_code: 975$h
3) Paste the following into 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
Now save the sysprefs
4) Navigate to acquisitions and go into a basket
5) Click Add to basket and select “From a new file”
6) Download the file attached to this bug
7) Import the file and when the job is complete click “Add staged files to basket”
8) Click the checkbox next to the record to display the items and confirm that the data matches the mappings from the file that you imported - there should be 8 items, grouped in 4 pairs of identical items
9) Fill in the required fields and click “Save”
10) That basket should be correctly populated with an order matching the file that you imported

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-19 18:59:43 +02:00
..
acqui-home.pl Bug 30493: (QA follow-up) Fix for the only_my_library case as well 2024-06-21 15:02:54 +02:00
addorder.pl Bug 27595: Place holds when ordering from a suggestion 2024-03-19 10:25:03 +01:00
addorderiso2709.pl Bug 35026: Refactor addorderiso2709.pl to use the MarcOrder class 2024-08-19 18:59:43 +02:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 37152: Aquisitions basket and OPAC suggestion deletion should use the op cud-delete 2024-06-27 11:49:57 +02:00
basketgroup.pl Bug 34478: Basket group export CSV option should not check cud-op 2024-03-01 10:59:17 +01:00
basketheader.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
booksellers.pl
cancelorder.pl Bug 36173: (follow-up) Tidy 2024-04-05 11:51:18 +02:00
check_budget_total.pl
check_uniqueness.pl Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
duplicate_orders.pl Bug 34478: Manual fix - duplicate_orders (cud-select) 2024-03-01 10:56:15 +01:00
edi_ean.pl Bug 34478: Manual fix - edi_ean (cud-ediorder) 2024-03-01 10:56:22 +01:00
edifactmsgs.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
edimsg.pl
finishreceive.pl Bug 36193: Fix acq receiving 2024-03-12 17:47:28 +01:00
histsearch.pl Bug 37377: Fix orders search do_search param 2024-07-22 07:26:42 +01:00
invoice-files.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
invoice.pl Bug 36246: Add JS function/include for submitting forms from link data 2024-05-03 18:02:12 +02:00
invoices.pl Bug 36233: Use select2 to load vendors on invoice search 2024-03-15 09:38:37 +01:00
lateorders-export.pl
lateorders.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
moddeliverydate.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
modordernotes.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
neworderempty.pl Bug 36620: (QA follow-up) Tidy controller 2024-05-17 10:36:31 +02: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 Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
parcel.pl Bug 36193: cud- treatment for Acq order receipt cancelling 2024-03-12 17:47:28 +01:00
parcels.pl Bug 34478: op =~ ^cud- in pl/pm - Manual parcels.pl 2024-03-01 10:56:32 +01:00
showorder.pl
spent.pl Bug 31631: (QA follow-up) Tidy code 2023-10-18 15:41:37 -03:00
supplier.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
transferorder.pl Bug 37343: Fixed search for vendors when transferring an item in acquistions 2024-07-22 07:37:24 +01:00
uncertainprice.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
updatesupplier.pl Bug 34478: Changes for acqui/supplier 2024-03-01 10:57:47 +01:00
vendor_issues.pl Bug 36635: Fix vendor's issue show view 2024-04-19 18:06:33 +02:00
z3950_search.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00