diff options
| author | Frederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com> | 2014-11-17 14:53:21 +0100 |
|---|---|---|
| committer | Frédéric van der Essen <fvdessen@gmail.com> | 2014-11-26 12:11:56 +0100 |
| commit | 7f40375f6b1c4a6b92595be910f80cbc06fbb12e (patch) | |
| tree | d17e9bfae97a3b17a9c8a9e7455874c0cc3c7bf9 /addons/pos_restaurant/static/src/js/multiprint.js | |
| parent | 91ebdd714e2e8e4bc63538e7fe211af9b8db0852 (diff) | |
[IMP] pos_restaurant: improve the kitchen receipts based on customer feedback : Put the quantities ont the left, Add the the time, and make the table name more legible
Diffstat (limited to 'addons/pos_restaurant/static/src/js/multiprint.js')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/multiprint.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/js/multiprint.js b/addons/pos_restaurant/static/src/js/multiprint.js index 8b1f9e94654..c6177449461 100644 --- a/addons/pos_restaurant/static/src/js/multiprint.js +++ b/addons/pos_restaurant/static/src/js/multiprint.js @@ -162,12 +162,25 @@ function openerp_restaurant_multiprint(instance,module){ rem = _rem; } + var d = new Date(); + var hours = '' + d.getHours(); + hours = hours.length < 2 ? ('0' + hours) : hours; + var minutes = '' + d.getMinutes(); + minutes = minutes.length < 2 ? ('0' + minutes) : minutes; + + console.log(hours,minutes); + + return { 'new': add, 'cancelled': rem, 'table': json.table || false, 'floor': json.floor || false, 'name': json.name || 'unknown order', + 'time': { + 'hours': hours, + 'minutes': minutes, + }, }; }, |
