From 97e371a94561beee0702ce69defbe98e1ffc5041 Mon Sep 17 00:00:00 2001 From: "kilian (dks-laptop)" Date: Sun, 3 Nov 2019 16:07:27 +0100 Subject: [PATCH] v20191031 --- CGI/tmpl/app/invoicejournal/index.tt | 6 +- .../module/invoicejournal/index.js | 16 ++--- .../module/invoicejournal/index.tt | 62 +++++++++---------- CGI/tmpl/macro/fields.tt | 2 +- htdocs/css/w3pro.css | 12 ++-- htdocs/vendor/choices/choices.css | 19 +++--- 6 files changed, 61 insertions(+), 56 deletions(-) diff --git a/CGI/tmpl/app/invoicejournal/index.tt b/CGI/tmpl/app/invoicejournal/index.tt index 9e49176..e70b45c 100644 --- a/CGI/tmpl/app/invoicejournal/index.tt +++ b/CGI/tmpl/app/invoicejournal/index.tt @@ -25,13 +25,13 @@ class="w3-bar-item w3-button w3-right w3-padding-16" title="close Sidebar">&time Übersicht Journal Verkäufe - Rechnungs-Erstellung + Addressen Bankkonto - Dokumente + Angebote Produkte - Vorlagen + Einstellungen diff --git a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js index 0f5d27d..d8e0790 100644 --- a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js +++ b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js @@ -5,6 +5,8 @@ var statustypes = [{"value":"planned","label":"geplant"}, {"value":"payed","label":"bezahlt"}, {"value":"overdue","label":"überfällig"} ]; + +var statuslang = {"planned":"geplant","payed":"bezahlt","received":"erhalten","overdue":"überfällig","sended":"verschickt"}; var quarters =[{"value":"Q1","label":"Q1"},{"value":"Q2","label":"Q2"},{"value":"Q3","label":"Q3"},{"value":"Q4","label":"Q4"}]; var invoicetypes = [{"value":"inv-out","label":"Ausgangs-Rechnung"},{"value":"inv-in","label":"Eingangs-Rechnung"},{"value":"crn-out","label":"Ausgangs-Gutschrift"},{"value":"crn-in","label":"Eingangs-Gutschrift"}]; @@ -57,17 +59,17 @@ function initpage(){ {title:"Status",field:"status",headerFilter:"input",formatter:function(cell, formatterParams){ var value = cell.getValue(); //console.log(value.indexOf("bez")); - if(value.indexOf("bezahlt") >= 0){ - return "" + value + ""; + if(value.indexOf("payed") >= 0){ + return "" + statuslang[value] + ""; } - else if (value.indexOf("überfällig") >= 0) { - return "" + value + ""; + else if (value.indexOf("overdue") >= 0) { + return "" + statuslang[value] + ""; } - else if (value.indexOf("geplant") >= 0) { - return "" + value + ""; + else if (value.indexOf("planned") >= 0) { + return "" + statuslang[value] + ""; } else{ - return "" + value + ""; + return "" + statuslang[value] + ""; } }}, {title:"Betrag",field:"payedamount",align:"right",formatter:"money", formatterParams:{ diff --git a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt index 3dea234..1fa6362 100644 --- a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt +++ b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt @@ -11,50 +11,50 @@