@@ -, +, @@
---
.../intranet-tmpl/prog/en/modules/pos/register.tt | 50 ++++++++++++++++++++++
1 file changed, 50 insertions(+)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt
@@ -223,6 +223,17 @@
[% END %]
+
Cashup history
+
+
+
+
+ Date |
+ Amount |
+ Actions |
+
+
+
[% END %]
@@ -390,6 +401,45 @@
window.print();
});
+
+ var cashups_table_url = "/api/v1/cash_registers/[% register.id | html %]/cashups?";
+ var cashups_table = $("#table_cashups").api({
+ "ajax": {
+ "url": cashups_table_url
+ },
+ "order": [[ 1, "asc" ]],
+ "columnDefs": [ {
+ "targets": [0,1],
+ "render": function (data, type, row, meta) {
+ if ( type == 'display' ) {
+ return data.escapeHtml();
+ }
+ return data;
+ }
+ } ],
+ "columns": [
+ {
+ "data": "timestamp",
+ "searchable": true,
+ "orderable": true
+ },
+ {
+ "data": "amount",
+ "searchable": true,
+ "orderable": true
+ },
+ {
+ "data": function( row, type, val, meta ) {
+ var result = ' '+_("Summary")+'\n';
+ return result;
+
+ },
+ "searchable": false,
+ "orderable": false
+ }
+ ]
+ }, [], 1);
+
$(document).ready(function() {
// http://jqueryui.com/demos/datepicker/#date-range
var dates = $( "#from, #to" ).datepicker({
--