';
+ $("#tbl_clients").append(row);
+ }
$('#tbl_clients').bootstrapTable({
pagination: false,
search: false,
@@ -50,38 +34,27 @@ function loadtable(){
}
-function loadyears(){
- sql = "select byear from cashbox group by byear order by byear asc;";
- var data = appdb.dbquery(sql);
- //onsole.log(data.sqldata);
- for (var i in data.sqldata){
- $("#timerange").append('' + data.sqldata[i].byear+'');
- }
-
-}
-function invoice_edit(){
- var inv_id= getTableSelectionID();
- if (inv_id){
- parent.browserapp.loadmodulepage('invoices','invoice',{"id":inv_id});
+
+function client_edit(){
+ var cl_id= getTableSelectionID();
+ if (cl_id){
+ parent.browserapp.loadmodulepage('clients','client',{"id":cl_id});
}
}
-function invoice_delete(){
+function client_delete(){
}
-function invoice_duplicate(){
+function client_duplicate(){
}
-function change_timerange(){
-
-}
function getTableSelectionID(){
- var sel = $('#tbl_invoices').bootstrapTable('getSelections');
+ var sel = $('#tbl_clients').bootstrapTable('getSelections');
var id = null;
if (sel){ id=sel[0]._id; }
@@ -90,7 +63,7 @@ function getTableSelectionID(){
}
function getTableSelectionIDs(){
- var sel = $('#tbl_invoices').bootstrapTable('getSelections');
+ var sel = $('#tbl_clients').bootstrapTable('getSelections');
var ids = [];
if (sel){
for (var s in sel){
diff --git a/modules/sales/index.html b/modules/sales/index.html
index 707db75..d3cbd62 100644
--- a/modules/sales/index.html
+++ b/modules/sales/index.html
@@ -6,7 +6,7 @@
-
+
Verkäufe
diff --git a/modules/stations/index.html b/modules/stations/index.html
index 2a66de8..d161e36 100644
--- a/modules/stations/index.html
+++ b/modules/stations/index.html
@@ -15,32 +15,22 @@
Rechnungen