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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-3 / +4 lines)
Lines 243-253 $(document).ready(function() { Link Here
243
    [% IF ( give_change ) %]
243
    [% IF ( give_change ) %]
244
    <li>
244
    <li>
245
        <label for="paid">Amount paid:</label>
245
        <label for="paid">Amount paid:</label>
246
        <!-- default to paying all -->
246
        <input type="hidden" name="paid" id="paid" value="[% amount_paid %]" />
247
        <input name="paid" id="paid" value="[% total | format('%.2f') %]" onchange="moneyFormat(document.payform.paid)"/>
247
        [% amount_paid %]
248
    </li>
248
    </li>
249
    <li>
249
    <li>
250
        <label>Collect from patron:</label>
250
        <label>Collected from patron:</label>
251
        <input type="hidden" name="collected" id="collected" value="[% amount_paid %]" />
251
        [% amount_collected %]
252
        [% amount_collected %]
252
    </li>
253
    </li>
253
    <li>
254
    <li>
(-)a/members/paycollect.pl (-2 / +1 lines)
Lines 110-116 if ( $total_paid and $total_paid ne '0.00' ) { Link Here
110
            error_collected_less => 1,
110
            error_collected_less => 1,
111
        );
111
        );
112
    }
112
    }
113
    elsif ($total_paid > $total_due) {
113
    elsif ($total_paid >=  $total_due and $total_collected ne $total_paid) {
114
        $template->param(
114
        $template->param(
115
            amount_paid => sprintf('%.2f', $total_due),
115
            amount_paid => sprintf('%.2f', $total_due),
116
            amount_collected => sprintf('%.2f', $total_collected),
116
            amount_collected => sprintf('%.2f', $total_collected),
117
- 

Return to bug 11373