https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38839

Lari Taskula <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #177093|0                           |1
        is obsolete|                            |

--- Comment #30 from Lari Taskula <[email protected]> ---
Created attachment 191263
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191263&action=edit
Bug 38839: (follow-up) Added stricter validation for replacement price fields.

Adds validation for the replacement price on the item input and batch
modification forms.

This follow-up utilizes a new jQuery "replacement_price_decimal" validator for
more strict validation; that is, there may only be up to 6 digits before the
decimal and 2 digits after the decimal.

Test plan:
1. Search for a record in the staff interface, select any record with an item,
click "Edit", and select "Manage items".
2. Click "Actions" on the item in the table, select "Edit", and input an
invalid "v - Cost, replacement price" (for example, 1,00).
3. Click "Save changes" and the form will submit but with no price shown in the
table on the next page.
4. Apply the patch, update the CSS (yarn build), restart everything
(restart_all), AND clear browser cache.
5. Repeat steps 1-3. A red error message will now appear to the right of the
input field, notifying the user that only numbers and periods are allowed. The
user will not be able to submit the form.
6. The same change was also made to the batch modification form under
Cataloging > Batch item modification.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to