From 11fdac8f9df3f3cdb686eee969bf536de900065b Mon Sep 17 00:00:00 2001 From: "kilian (ksmachome)" Date: Mon, 28 Oct 2019 09:47:00 +0100 Subject: [PATCH] v20191028 --- CGI/index.cgi | 2 +- 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 +++--- 7 files changed, 62 insertions(+), 57 deletions(-) diff --git a/CGI/index.cgi b/CGI/index.cgi index d850dde..b1a8baf 100644 --- a/CGI/index.cgi +++ b/CGI/index.cgi @@ -194,7 +194,7 @@ if ($vars->{page} =~ /module/){ $template->process($skl,$vars) || die "Template process failed: ", $template->error(), "\n"; -print '/*
'.Dumper($vars)."
*/";
+#print '/*
'.Dumper($vars)."
*/";
 
 
 
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 @@