https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38360
Baptiste Wojtkowski (bwoj) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #173992|0 |1 is obsolete| | --- Comment #5 from Baptiste Wojtkowski (bwoj) <[email protected]> --- Created attachment 190756 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190756&action=edit Bug 38360: Price extraction from MungeMarcPrice should be improved MungeMarcPrice's "rescue mode", tries and catch the whole possible number patterns in one regexp, which leads to very curious authorized values, and can leave some price unmatched for curious reasons. Unmatched price that should be: 49.3 ; 555,555.3 (only 1 digit after separator) 50 (no digit) Matched prices that should not: ,,,,,,,35 ; ,.,..,.45 ; 99,999.999,99 TEST PLAN (for UNIMARC): 1 - Apply first commit, run tests (prove t/db_dependent/MungeMarcPrice.t) -> they should fail 1 - Export a MARC NOTICE in marxml with a 010d filled with 49.3 2 - On acquisition, register a new vendor 3 - Add a Basket to this vendor 4 - Add an order -> from a file -> select the exported marc notice 5 - Check the checkbox associated with this item -> there is no price field filled 6 - APPLY PATCH 7 - Repeat 4 & 5 -> the price is now displayed 8 - Run tests -> all tests pass -- 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/
