Déplace une fonction js

This commit is contained in:
Ludovic Stephan 2019-02-12 18:29:02 +01:00 committed by Ludovic Stephan
parent de10392a7f
commit 435bb392ea
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,7 @@
function dateUTCToParis(date) {
return moment.tz(date, 'UTC').tz('Europe/Paris');
}
function KHistory(options = {}) {
$.extend(this, KHistory.default_options, options);

View file

@ -80,10 +80,6 @@ var OperationWebSocket = new KfetWebsocket({
'default_msg': {'opegroups':[],'opes':[],'checkouts':[],'articles':[]},
});
function dateUTCToParis(date) {
return moment.tz(date, 'UTC').tz('Europe/Paris');
}
function amountDisplay(amount, is_cof=false, tri='') {
if (tri == 'LIQ')
return (- amount).toFixed(2) +'€';