Bugzilla – Attachment 97474 Details for
Bug 24395
Floats in cash registers have 6 decimals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24395: Show initial float using the Price TT plugin on summary page
Bug-24395-Show-initial-float-using-the-Price-TT-pl.patch (text/plain), 2.77 KB, created by
Marcel de Rooy
on 2020-01-17 07:17:34 UTC
(
hide
)
Description:
Bug 24395: Show initial float using the Price TT plugin on summary page
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-01-17 07:17:34 UTC
Size:
2.77 KB
patch
obsolete
>From c4c4cc42e31c36580eb5568d737abe6adeda8c0c Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Tue, 14 Jan 2020 18:44:01 +0000 >Subject: [PATCH] Bug 24395: Show initial float using the Price TT plugin on > summary page >Content-Type: text/plain; charset=utf-8 > >For displaying monetary amounts, we should be using the Price TT >plugin everywhere. This adds it to the cash register summary page. > >To test: >- Create a cash register >- Check the cash register table for "Initial float" >- Verify the amount shows with more than 2 decimals >- Edit cash register - verify the same display there >- Apply patch >- Check again - it should display now with only 2 decimals > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >index fa872b50d2..3d9b8b7aa6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >@@ -1,6 +1,7 @@ > [% USE raw %] > [% USE Asset %] > [% USE Branches %] >+[% USE Price %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Administration › Cash registers >@@ -97,7 +98,7 @@ > > <li> > <label for="starting_float">Initial float: </label> >- <input type="text" pattern='^\d+(?:\.\d{0,2})$' name="starting_float" id="starting_float" value="[% cash_register.starting_float | html %]" /> >+ <input type="text" pattern='^\d+(?:\.\d{0,2})$' name="starting_float" id="starting_float" value="[% cash_register.starting_float | $Price on_editing => 1 %]" /> > </li> > </ol> > </fieldset> >@@ -145,7 +146,7 @@ > <td>[% cash_register.description | html %]</td> > <td>[% cash_register.library.branchname | html %]</td> > <td>[% IF cash_register.branch_default %]Yes[% ELSE %]No[% END %]</td> >- <td>[% cash_register.starting_float | html %]</td> >+ <td>[% cash_register.starting_float | $Price %]</td> > [% IF cash_register.archived == '0' %] > <td class="actions"> > <a class="btn btn-default btn-xs" href="cash_registers.pl?op=add_form&id=[% cash_register.id | uri %]"><i class="fa fa-pencil"></i> Edit</a> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24395
:
97422
|
97423
|
97432
|
97473
| 97474