[Koha-bugs] [Bug 11373] Add a "cash register" feature to the fine payment form

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 21 10:20:28 CEST 2018


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

--- Comment #46 from Josef Moravec <josef.moravec at gmail.com> ---
Comment on attachment 79188
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=79188
Bug 11373: Add a "cash register" feature to the fine payment form.

Review of attachment 79188:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11373&attachment=79188)
-----------------------------------------------------------------

::: koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt
@@ +75,5 @@
> +    <div id="change_message" class="dialog message">
> +        <span>The amount collected is greater than the total amount paid.</span><br />
> +        <strong>Change to give back: [% give_change | $Price %]</strong><br /><br />
> +        <input type="submit" name="submitbutton" value="Confirm payment" />
> +        <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a>

use uri filter

@@ +120,5 @@
> +    [% IF ( give_change ) %]
> +    <li>
> +        <label for="paid">Amount paid:</label>
> +        <input type="hidden" name="paid" id="paid" value="[% amount_paid %]" />
> +        <input type="hidden" name="collected" id="collected" value="[% amount_paid %]" />

use html filter

@@ +134,5 @@
> +    </li>
> +    [% ELSE %]
> +    <li>
> +        <label for="paid">Amount paid:</label>
> +        <input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" onchange="moneyFormat(document.payform.paid)"/>

use $Price filter

@@ +141,3 @@
>      <li>
> +        <label for="collected">Collect from patron:</label>
> +        <input name="collected" id="collected" value="[% amountoutstanding %]" onchange="moneyFormat(document.payform.collected)" />

use $Price filter

@@ +233,5 @@
>          </li>
> +    [% IF ( give_change ) %]
> +    <li>
> +        <label for="paid">Amount paid:</label>
> +        <input type="hidden" name="paid" id="paid" value="[% amount_paid %]" />

use html filter

@@ +238,5 @@
> +        [% amount_paid | $Price %]
> +    </li>
> +    <li>
> +        <label>Collected from patron:</label>
> +        <input type="hidden" name="collected" id="collected" value="[% amount_paid %]" />

use html filter

@@ +248,5 @@
> +    </li>
> +    [% ELSE %]
> +    <li>
> +        <label for="paid">Amount paid :</label>
> +        <input name="paid" id="paid" value="[% total %]" onchange="moneyFormat(document.payform.paid)" />

use $Price filter

@@ +259,3 @@
>          [% END %]
>          <!-- default to paying all -->
> +        <input name="collected" id="collected" value="[% total %]" onchange="moneyFormat(document.payform.collected)"/>

use $Price filter

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


More information about the Koha-bugs mailing list