[Koha-bugs] [Bug 15084] Move the currency related code to Koha::Acquisition::Currenc[y|ies]

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 9 13:46:22 CET 2016


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

--- Comment #61 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 48858
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48858&action=edit
Bug 15084: [QA Follow-up] Correct field length of currency

Bug 15084 added a FK constraint while the fields in the database are not
in sync as to length. This will produce errors when using currency codes
longer than three characters. Probably you won't, but nobody stopped
users from entering EURO or DOLLAR etc. Not to speak about TestBuilder
too.

This patch corrects the database revision for aqorders in updatedatabase,
because we need to change the field length before adding the FK constraint.
It also updates other currency fields < 10 chars (via atomicupdate).
RM: So please add that dbrev too in updatedatabase.

Note that another report should deal with adding missing constraints on
the currency code in suggestions and aqbooksellers.
Also note that the aqorder fields listprice and invoiceprice refer to
currency. Imo these are very poor names for currency codes; you should
never call something a price when you mean a currency code!

Similar changes are applied to kohastructure.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Tested the db revisions.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list