Bug 29911

Summary: Default amounts for fee types display with comma in some cases
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Fines and feesAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low Keywords: Academy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2022-01-20 08:30:34 UTC
When CurrencyFormat is set to "FR" and you are manually adding a copier fee or similar to a patron account, the amount will show up with a decimal comma instead of a decimal dot, which won't work correctly.

This is because we are missing the on_editing => 1 filter here:

maninvoice.tt

    <script>
        var type_fees = {};
        [% FOREACH debit_type IN debit_types %]
            type_fees['[% debit_type.code | html %]'] = "[% IF debit_type.default_amount %][% debit_type.default_amount | $Price %][% END %]";
Comment 1 Katrin Fischer 2023-01-02 18:30:36 UTC
It appears this was meanwhile fixed on another bug :)