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 245-255 $(document).ready(function() { Link Here
245
    [% IF ( give_change ) %]
245
    [% IF ( give_change ) %]
246
    <li>
246
    <li>
247
        <label for="paid">Amount paid:</label>
247
        <label for="paid">Amount paid:</label>
248
        <!-- default to paying all -->
248
        <input type="hidden" name="paid" id="paid" value="[% amount_paid %]" />
249
        <input name="paid" id="paid" value="[% total | format('%.2f') %]" onchange="moneyFormat(document.payform.paid)"/>
249
        [% amount_paid %]
250
    </li>
250
    </li>
251
    <li>
251
    <li>
252
        <label>Collect from patron:</label>
252
        <label>Collected from patron:</label>
253
        <input type="hidden" name="collected" id="collected" value="[% amount_paid %]" />
253
        [% amount_collected %]
254
        [% amount_collected %]
254
    </li>
255
    </li>
255
    <li>
256
    <li>
(-)a/members/paycollect.pl (-2 / +1 lines)
Lines 114-120 if ( $total_paid and $total_paid ne '0.00' ) { Link Here
114
            error_collected_less => 1,
114
            error_collected_less => 1,
115
        );
115
        );
116
    }
116
    }
117
    elsif ($total_paid > $total_due) {
117
    elsif ($total_paid >=  $total_due and $total_collected ne $total_paid) {
118
        $template->param(
118
        $template->param(
119
            amount_paid => sprintf('%.2f', $total_due),
119
            amount_paid => sprintf('%.2f', $total_due),
120
            amount_collected => sprintf('%.2f', $total_collected),
120
            amount_collected => sprintf('%.2f', $total_collected),
121
- 

Return to bug 11373