Koha/koha-tmpl/intranet-tmpl/prog/js
Nick Clemens eaab32eb0e
Bug 34109: Check mandatory item fields when creating during recipt
This patch adds a check of mandatory item fields before saving during order receipt.
We check both when adding the item initially, and when submitting the order, as it will use
the values from the open form.

To test:
* Go to administration > frameworks > ACQ > MARC structure > 952
* Set callnumber (o) or barcode (p) to mandatory
* In acquisition:
* Create a basket with "create items on order" and "is standing"
  "standing" helps as you can do multiple receives testing different things,
  but is optional
* Add an order line
* Receive shipment
* Verify the mandatory fields show in the item form
* Set itemtype = Music
* Save with the fields blank
* Item row is added, no warning
* Edit the item, change the item type to blank
* Click 'Confirm' for the order without closing the item edit form
* Verify the item was added with itemtype Books (on sample data) and empty mandatory field
* Apply patch
* Repeat above, however, you should not be able to submit the item or order until mandatory fields are filled

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-06 09:57:02 -03:00
..
modals
pages Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:07:06 -03:00
vue Bug 34691: Fix linkActiveClass in createRouter 2023-09-01 11:23:32 -03:00
acq.js
acquisitions-menu.js
additem.js Bug 34109: Check mandatory item fields when creating during recipt 2023-09-06 09:57:02 -03:00
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js Bug 31132: (follow-up) Reset dropdown values and style button 2023-06-23 11:00:59 -03:00
authorities-detail-modal.js Bug 34180: Template variable in JavaScript prevents authority MARC preview from displaying 2023-07-03 14:51:45 -03:00
authtype.js
automatic_item_modification_by_age.js
basket.js Bug 33597: Get rid of warning about intranet_bib_list 2023-05-05 09:13:29 -03:00
biblio_framework.js
browser.js Bug 28196: Insert searchid in URL correctly, so it doesn't follow the hash 2023-07-12 14:30:57 -03:00
calendar.js
cart.js
cashup_modal.js
catalog.js
cataloging.js Bug 33744: Fix cloning (sub)fields with framework plugins 2023-09-01 11:07:40 -03:00
cataloging_additem.js
categories.js
charts.js
checkout_renewals_modal.js
checkouts.js Bug 25023: Claims returned dates not formatted according to dateformat preference 2023-08-29 14:37:17 -03:00
datatables.js Bug 34226: Use 'type' at the datatable config level 2023-07-25 16:25:35 -03:00
desk_selection.js
elasticsearch-mappings.js Bug 34625: Fix search engine configuration tables header problem 2023-09-05 11:52:26 -03:00
file-upload.js
funds_sorts.js Bug 33939: Preserve order budget dropdowns and default budget dropdowns seperately 2023-07-14 15:23:16 -03:00
holds.js
ill-availability-partner.js
ill-availability.js
ill-list-table.js Bug 34351: Add link to access_url 2023-08-15 15:14:08 +03:00
item_search_fields.js
job_progress.js Bug 34364: Fix progress bar progress update 2023-08-18 10:29:26 +03:00
letter.js Bug 33622: Notice content does not show on default tab if TranslateNotices enabled 2023-05-09 11:46:53 -03:00
localcovers.js
mana.js
marc_modification_templates.js Bug 32164: Add link to MARC modification templates from batch record modification page 2023-04-06 09:47:28 -03:00
marc_subfields_structure.js Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:07:06 -03:00
members-menu.js
members.js Bug 33684: Make mandatory date fields required when editing a patron 2023-05-10 15:26:27 -03:00
merge-record.js
messaging-preference-form.js
onboarding.js
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js
restrictiontypes.js
rotating-collections.js
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 34323: Enhance header search icon for more options 2023-09-01 11:23:34 -03:00
subscription-add.js Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
table_filters.js Bug 32447: Fix DataTable filtering when hidden columns are in place 2023-03-31 19:19:27 +02:00
tools-menu.js
upload-images.js Bug 32910: (follow-up) A few more icon name corrections 2023-06-12 11:52:11 -03:00
viewlog.js
xmlControlfield.js Bug 34565: Label mismatch in MARC21 006 and 008 cataloging plugins 2023-08-29 14:37:12 -03:00
z3950_search.js Bug 33655: z39.50 search no longer shows search in progress 2023-05-12 11:22:37 -03:00