diff --git a/front/module-import.js b/front/module-import.js
index 888a6ce7b..ab1eb73d6 100755
--- a/front/module-import.js
+++ b/front/module-import.js
@@ -16,10 +16,11 @@ export default function moduleImport(moduleName) {
case 'travel' : return import('travel/front');
case 'worker' : return import('worker/front');
case 'invoiceOut' : return import('invoiceOut/front');
- case 'invoiceIn' : return import('invoiceIn/front');
+ case 'invoiceIn' : return import('invoiceIn/front');
case 'route' : return import('route/front');
case 'entry' : return import('entry/front');
case 'account' : return import('account/front');
case 'supplier' : return import('supplier/front');
+ case 'monitor' : return import('monitor/front');
}
}
diff --git a/modules/monitor/back/model-config.json b/modules/monitor/back/model-config.json
new file mode 100644
index 000000000..2c63c0851
--- /dev/null
+++ b/modules/monitor/back/model-config.json
@@ -0,0 +1,2 @@
+{
+}
diff --git a/modules/monitor/front/index.js b/modules/monitor/front/index.js
new file mode 100644
index 000000000..cb25b3b8c
--- /dev/null
+++ b/modules/monitor/front/index.js
@@ -0,0 +1,5 @@
+export * from './module';
+
+import './main';
+import './index/';
+import './search-panel';
diff --git a/modules/monitor/front/index/index.html b/modules/monitor/front/index/index.html
new file mode 100644
index 000000000..d04478bbc
--- /dev/null
+++ b/modules/monitor/front/index/index.html
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+ Salesperson
+ Date
+ Hour
+ Closure
+ Alias
+ Province
+ State
+ Zone
+ Warehouse
+ Total
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{::ticket.id}}
+
+
+ {{::ticket.userName | dashIfEmpty}}
+
+
+
+
+ {{::ticket.shipped | date: 'dd/MM/yyyy'}}
+
+
+ {{::ticket.shipped | date: 'HH:mm'}}
+ {{::ticket.zoneLanding | date: 'HH:mm'}}
+
+
+ {{::ticket.nickname}}
+
+
+ {{::ticket.province}}
+
+
+ {{::ticket.refFk}}
+
+
+ {{ticket.state}}
+
+
+
+
+ {{::ticket.zoneName | dashIfEmpty}}
+
+
+ {{::ticket.warehouse}}
+
+
+ {{::(ticket.totalWithVat ? ticket.totalWithVat : 0) | currency: 'EUR': 2}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ b
+
+
+
+ c
+
+
+
\ No newline at end of file
diff --git a/modules/monitor/front/index/index.js b/modules/monitor/front/index/index.js
new file mode 100644
index 000000000..bd138d59a
--- /dev/null
+++ b/modules/monitor/front/index/index.js
@@ -0,0 +1,18 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+export default class Controller extends Section {
+ openSummary(supplier, event) {
+ if (event.defaultPrevented) return;
+ event.preventDefault();
+ event.stopPropagation();
+
+ this.supplierSelected = supplier;
+ this.$.dialogSummarySupplier.show();
+ }
+}
+
+ngModule.vnComponent('vnMonitorIndex', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/monitor/front/index/locale/es.yml b/modules/monitor/front/index/locale/es.yml
new file mode 100644
index 000000000..ad8a4f0bb
--- /dev/null
+++ b/modules/monitor/front/index/locale/es.yml
@@ -0,0 +1,5 @@
+Payment deadline: Plazo de pago
+Pay day: Dia de pago
+Account: Cuenta
+Pay method: Metodo de pago
+Tax number: Nif
\ No newline at end of file
diff --git a/modules/monitor/front/locale/es.yml b/modules/monitor/front/locale/es.yml
new file mode 100644
index 000000000..abb6a9775
--- /dev/null
+++ b/modules/monitor/front/locale/es.yml
@@ -0,0 +1 @@
+Accounts: Cuentas
\ No newline at end of file
diff --git a/modules/monitor/front/log/index.html b/modules/monitor/front/log/index.html
new file mode 100644
index 000000000..7895b585e
--- /dev/null
+++ b/modules/monitor/front/log/index.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/modules/monitor/front/log/index.js b/modules/monitor/front/log/index.js
new file mode 100644
index 000000000..52a491c70
--- /dev/null
+++ b/modules/monitor/front/log/index.js
@@ -0,0 +1,7 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+ngModule.vnComponent('vnSupplierLog', {
+ template: require('./index.html'),
+ controller: Section,
+});
diff --git a/modules/monitor/front/main/index.html b/modules/monitor/front/main/index.html
new file mode 100644
index 000000000..9a7c8bc87
--- /dev/null
+++ b/modules/monitor/front/main/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/monitor/front/main/index.js b/modules/monitor/front/main/index.js
new file mode 100644
index 000000000..42fc159d5
--- /dev/null
+++ b/modules/monitor/front/main/index.js
@@ -0,0 +1,9 @@
+import ngModule from '../module';
+import ModuleMain from 'salix/components/module-main';
+
+export default class Monitor extends ModuleMain {}
+
+ngModule.vnComponent('vnMonitor', {
+ controller: Monitor,
+ template: require('./index.html')
+});
diff --git a/modules/monitor/front/module.js b/modules/monitor/front/module.js
new file mode 100644
index 000000000..3a3125fe7
--- /dev/null
+++ b/modules/monitor/front/module.js
@@ -0,0 +1,3 @@
+import {ng} from 'core/vendor';
+
+export default ng.module('monitor', ['salix']);
diff --git a/modules/monitor/front/routes.json b/modules/monitor/front/routes.json
new file mode 100644
index 000000000..f0c2d9e98
--- /dev/null
+++ b/modules/monitor/front/routes.json
@@ -0,0 +1,29 @@
+{
+ "module": "monitor",
+ "name": "Monitors",
+ "icon" : "icon-supplier",
+ "dependencies": ["ticket", "item"],
+ "validations" : true,
+ "menus": {
+ "main": [
+ {"state": "monitor.index", "icon": "leaderboard"}
+ ],
+ "card": []
+ },
+ "keybindings": [],
+ "routes": [
+ {
+ "url": "/monitor",
+ "state": "monitor",
+ "abstract": true,
+ "component": "vn-monitor",
+ "description": "Monitors"
+ },
+ {
+ "url": "/index?q",
+ "state": "monitor.index",
+ "component": "vn-monitor-index",
+ "description": "Sales monitor"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/modules/monitor/front/search-panel/index.html b/modules/monitor/front/search-panel/index.html
new file mode 100644
index 000000000..161c8a98c
--- /dev/null
+++ b/modules/monitor/front/search-panel/index.html
@@ -0,0 +1,46 @@
+
+
+
\ No newline at end of file
diff --git a/modules/monitor/front/search-panel/index.js b/modules/monitor/front/search-panel/index.js
new file mode 100644
index 000000000..6223b5670
--- /dev/null
+++ b/modules/monitor/front/search-panel/index.js
@@ -0,0 +1,7 @@
+import ngModule from '../module';
+import SearchPanel from 'core/components/searchbar/search-panel';
+
+ngModule.vnComponent('vnSupplierSearchPanel', {
+ template: require('./index.html'),
+ controller: SearchPanel
+});
diff --git a/modules/monitor/front/search-panel/locale/es.yml b/modules/monitor/front/search-panel/locale/es.yml
new file mode 100644
index 000000000..77253a4ef
--- /dev/null
+++ b/modules/monitor/front/search-panel/locale/es.yml
@@ -0,0 +1,4 @@
+Province: Provincia
+Country: PaĆs
+Tax number: NIF / CIF
+Search suppliers by id, name or alias: Busca proveedores por id, nombre o alias
\ No newline at end of file