View | Details | Raw Unified | Return to bug 41500
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-3 / +6 lines)
Lines 1566-1571 Link Here
1566
                            var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
1566
                            var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
1567
                            $("#cap_fine_to_replacement_price").prop("checked", cap_fine_to_replacement_price.is(":checked"));
1567
                            $("#cap_fine_to_replacement_price").prop("checked", cap_fine_to_replacement_price.is(":checked"));
1568
                            $("#overduefinescap").prop("disabled", cap_fine_to_replacement_price.is(":checked"));
1568
                            $("#overduefinescap").prop("disabled", cap_fine_to_replacement_price.is(":checked"));
1569
                        } else if (current_input_id === "expire_reserves_charge") {
1570
                            if (parseFloat(itm_text) || parseFloat(itm_text) == 0) {
1571
                                $(current_column).find("input[type='text']").val(itm_text);
1572
                            } else {
1573
                                $(current_column).find("input[type='text']").val("");
1574
                            }
1569
                        } else {
1575
                        } else {
1570
                            $(current_column).find("input[type='text']").val(itm_text);
1576
                            $(current_column).find("input[type='text']").val(itm_text);
1571
                            // unformat prices
1577
                            // unformat prices
Lines 1605-1611 Link Here
1605
                                current_input_id === "maxissueqty" ||
1611
                                current_input_id === "maxissueqty" ||
1606
                                current_input_id === "maxonsiteissueqty" ||
1612
                                current_input_id === "maxonsiteissueqty" ||
1607
                                current_input_id === "reservesallowed" ||
1613
                                current_input_id === "reservesallowed" ||
1608
                                current_input_id === "expire_reserves_charge" ||
1609
                                current_input_id === "holds_per_day" ||
1614
                                current_input_id === "holds_per_day" ||
1610
                                current_input_id === "holds_per_record" ||
1615
                                current_input_id === "holds_per_record" ||
1611
                                current_input_id === "holds_pickup_period"
1616
                                current_input_id === "holds_pickup_period"
Lines 1613-1619 Link Here
1613
                                // If the value is not an integer for
1618
                                // If the value is not an integer for
1614
                                //     - "Current checkouts allowed"
1619
                                //     - "Current checkouts allowed"
1615
                                //     - "Current on-site checkouts allowed"
1620
                                //     - "Current on-site checkouts allowed"
1616
                                //     - "Expired hold charge"
1617
                                //     - "Holds allowed (total)"
1621
                                //     - "Holds allowed (total)"
1618
                                //     - "Holds allowed (daily)"
1622
                                //     - "Holds allowed (daily)"
1619
                                //     - "Holds per record (count)"
1623
                                //     - "Holds per record (count)"
1620
- 

Return to bug 41500