Bugzilla – Attachment 116710 Details for
Bug 26273
Expose cashup summary history for a cash register
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26273: (follow-up) Add 'Cashier' to the cashups table
Bug-26273-follow-up-Add-Cashier-to-the-cashups-tab.patch (text/plain), 2.94 KB, created by
Martin Renvoize (ashimema)
on 2021-02-11 12:13:14 UTC
(
hide
)
Description:
Bug 26273: (follow-up) Add 'Cashier' to the cashups table
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-11 12:13:14 UTC
Size:
2.94 KB
patch
obsolete
>From 3b24b0d34bb4663fb71085ea51bedfe700a5ad32 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 11 Feb 2021 10:19:57 +0000 >Subject: [PATCH] Bug 26273: (follow-up) Add 'Cashier' to the cashups table > >This patch adds the 'Cashier' field as discussed on the bug report. > >Test plan >1/ Apply patch and reload the register page to refresh the table >2/ Note that a 'Cashier' field now appears in the table >3/ Sorting and searching on 'Cashier' should work as expected >4/ Default sorting should remain as 'Date' order. >5/ Signoff >--- > api/v1/swagger/paths/cash_registers.json | 5 ++++- > .../prog/en/modules/pos/register.tt | 18 ++++++++++++++++-- > 2 files changed, 20 insertions(+), 3 deletions(-) > >diff --git a/api/v1/swagger/paths/cash_registers.json b/api/v1/swagger/paths/cash_registers.json >index 837f1ad35b..5466cd18be 100644 >--- a/api/v1/swagger/paths/cash_registers.json >+++ b/api/v1/swagger/paths/cash_registers.json >@@ -57,7 +57,10 @@ > "permissions": { > "cash_management": "cashup" > } >- } >+ }, >+ "x-koha-embed": [ >+ "manager" >+ ] > } > }, > "/cashups/{cashup_id}": { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index e368f65043..e99c17a1ba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -229,6 +229,7 @@ > <thead> > <tr> > <th>Date</th> >+ <th>Cashier</th> > <th>Amount</th> > <th data-class-name="actions">Actions</th> > </tr> >@@ -408,9 +409,13 @@ > "ajax": { > "url": cashups_table_url > }, >- "order": [[ 1, "asc" ]], >+ "header_filter": true, >+ "embed": [ >+ "manager" >+ ], >+ "order": [[ 0, "asc" ]], > "columnDefs": [ { >- "targets": [0,1], >+ "targets": [0,1,2], > "render": function (data, type, row, meta) { > if ( type == 'display' ) { > return data.escapeHtml(); >@@ -427,6 +432,15 @@ > return $datetime(row.timestamp); > } > }, >+ { >+ "data": "manager.firstname:manager.surname", >+ "searchable": true, >+ "orderable": true, >+ "render": function(data, type, row, meta) { >+ var fullname = row.manager.firstname + " " + row.manager.surname; >+ return fullname; >+ } >+ }, > { > "data": "amount", > "searchable": true, >-- >2.20.1
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 26273
:
116176
|
116640
|
116685
|
116691
|
116692
|
116697
|
116698
|
116699
|
116710
|
116771
|
116772
|
116773
|
117449
|
117450
|
117451
|
117787
|
117793
|
117809
|
117810
|
117811
|
117829
|
117830
|
117831
|
117832
|
117833
|
117834
|
118125
|
118129
|
118130
|
118149
|
118150
|
118151
|
118152
|
120403
|
120404