2138 - Added field m3Max to zoneEvent
This commit is contained in:
parent
7c1a13cca8
commit
447cdc686e
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE `vn`.`zoneEvent`
|
||||||
|
ADD COLUMN m3Max DECIMAL(10,2) UNSIGNED NULL DEFAULT NULL AFTER bonus;
|
|
@ -12,7 +12,7 @@ export default function moduleImport(moduleName) {
|
||||||
case 'ticket' : return import('ticket/front');
|
case 'ticket' : return import('ticket/front');
|
||||||
case 'order' : return import('order/front');
|
case 'order' : return import('order/front');
|
||||||
case 'claim' : return import('claim/front');
|
case 'claim' : return import('claim/front');
|
||||||
case 'agency' : return import('agency/front');
|
case 'zone' : return import('zone/front');
|
||||||
case 'travel' : return import('travel/front');
|
case 'travel' : return import('travel/front');
|
||||||
case 'worker' : return import('worker/front');
|
case 'worker' : return import('worker/front');
|
||||||
case 'invoiceOut' : return import('invoiceOut/front');
|
case 'invoiceOut' : return import('invoiceOut/front');
|
||||||
|
|
|
@ -32,7 +32,7 @@ Remove: Quitar
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
|
|
||||||
Agencies: Agencias
|
Zones: Zonas
|
||||||
Claims: Reclamaciones
|
Claims: Reclamaciones
|
||||||
Clients: Clientes
|
Clients: Clientes
|
||||||
Items: Artículos
|
Items: Artículos
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'angular';
|
||||||
import 'angular-mocks';
|
import 'angular-mocks';
|
||||||
import core from './front/core/module.js';
|
import core from './front/core/module.js';
|
||||||
import './front/salix/components/app/app.js';
|
import './front/salix/components/app/app.js';
|
||||||
import './modules/agency/front/module.js';
|
import './modules/zone/front/module.js';
|
||||||
import './modules/claim/front/module.js';
|
import './modules/claim/front/module.js';
|
||||||
import './modules/client/front/module.js';
|
import './modules/client/front/module.js';
|
||||||
import './modules/invoiceOut/front/module.js';
|
import './modules/invoiceOut/front/module.js';
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
import {ng} from 'core/vendor';
|
|
||||||
|
|
||||||
export default ng.module('agency', ['vnCore']);
|
|
|
@ -41,6 +41,9 @@
|
||||||
},
|
},
|
||||||
"bonus": {
|
"bonus": {
|
||||||
"type": "Number"
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"m3Max": {
|
||||||
|
"type": "Number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
|
@ -5,7 +5,7 @@ describe('Agency Component vnZoneCard', () => {
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
let data = {id: 1, name: 'fooName'};
|
let data = {id: 1, name: 'fooName'};
|
||||||
|
|
||||||
beforeEach(ngModule('agency'));
|
beforeEach(ngModule('zone'));
|
||||||
|
|
||||||
beforeEach(angular.mock.inject(($componentController, _$httpBackend_, $stateParams) => {
|
beforeEach(angular.mock.inject(($componentController, _$httpBackend_, $stateParams) => {
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
|
@ -6,7 +6,7 @@ describe('Agency Component vnZoneCreate', () => {
|
||||||
let $state;
|
let $state;
|
||||||
let controller;
|
let controller;
|
||||||
|
|
||||||
beforeEach(ngModule('agency'));
|
beforeEach(ngModule('zone'));
|
||||||
|
|
||||||
beforeEach(angular.mock.inject(($componentController, $rootScope, _$state_) => {
|
beforeEach(angular.mock.inject(($componentController, $rootScope, _$state_) => {
|
||||||
$scope = $rootScope.$new();
|
$scope = $rootScope.$new();
|
|
@ -75,6 +75,10 @@
|
||||||
label="Bonus"
|
label="Bonus"
|
||||||
value="{{::row.bonus | currency:'EUR':2}}">
|
value="{{::row.bonus | currency:'EUR':2}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
|
<vn-label-value
|
||||||
|
label="Max m3"
|
||||||
|
value="{{::row.m3Max}}">
|
||||||
|
</vn-label-value>
|
||||||
</vn-item-section>
|
</vn-item-section>
|
||||||
<vn-item-section side>
|
<vn-item-section side>
|
||||||
<vn-icon-button
|
<vn-icon-button
|
||||||
|
@ -130,25 +134,35 @@
|
||||||
ng-model="$ctrl.selected.ended">
|
ng-model="$ctrl.selected.ended">
|
||||||
</vn-date-picker>
|
</vn-date-picker>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-input-time
|
<vn-horizontal>
|
||||||
label="Closing"
|
<vn-input-time
|
||||||
ng-model="$ctrl.selected.hour">
|
label="Closing"
|
||||||
</vn-input-time>
|
ng-model="$ctrl.selected.hour">
|
||||||
|
</vn-input-time>
|
||||||
|
<vn-input-number
|
||||||
|
label="Traveling days"
|
||||||
|
ng-model="$ctrl.selected.travelingDays"
|
||||||
|
min="0"
|
||||||
|
step="1">
|
||||||
|
</vn-input-number>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-input-number
|
||||||
|
label="Price"
|
||||||
|
ng-model="$ctrl.selected.price"
|
||||||
|
min="0"
|
||||||
|
step="0.01">
|
||||||
|
</vn-input-number>
|
||||||
|
<vn-input-number
|
||||||
|
label="Bonus"
|
||||||
|
ng-model="$ctrl.selected.bonus"
|
||||||
|
min="0"
|
||||||
|
step="0.01">
|
||||||
|
</vn-input-number>
|
||||||
|
</vn-horizontal>
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
label="Traveling days"
|
label="Max m3"
|
||||||
ng-model="$ctrl.selected.travelingDays"
|
ng-model="$ctrl.selected.m3Max"
|
||||||
min="0"
|
|
||||||
step="1">
|
|
||||||
</vn-input-number>
|
|
||||||
<vn-input-number
|
|
||||||
label="Price"
|
|
||||||
ng-model="$ctrl.selected.price"
|
|
||||||
min="0"
|
|
||||||
step="0.01">
|
|
||||||
</vn-input-number>
|
|
||||||
<vn-input-number
|
|
||||||
label="Bonus"
|
|
||||||
ng-model="$ctrl.selected.bonus"
|
|
||||||
min="0"
|
min="0"
|
||||||
step="0.01">
|
step="0.01">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
|
@ -4,7 +4,7 @@ describe('Agency Component vnZoneIndex', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let controller;
|
let controller;
|
||||||
|
|
||||||
beforeEach(ngModule('agency'));
|
beforeEach(ngModule('zone'));
|
||||||
|
|
||||||
beforeEach(angular.mock.inject(_$componentController_ => {
|
beforeEach(angular.mock.inject(_$componentController_ => {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
|
@ -0,0 +1,3 @@
|
||||||
|
import {ng} from 'core/vendor';
|
||||||
|
|
||||||
|
export default ng.module('zone', ['vnCore']);
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"module": "agency",
|
"module": "zone",
|
||||||
"name": "Agencies",
|
"name": "Zones",
|
||||||
"icon" : "icon-delivery",
|
"icon" : "location_on",
|
||||||
"validations" : true,
|
"validations" : true,
|
||||||
"dependencies": ["worker"],
|
"dependencies": ["worker"],
|
||||||
"menus": {
|
"menus": {
|
||||||
"main": [
|
"main": [
|
||||||
{"state": "zone.index", "icon": "icon-delivery"},
|
{"state": "zone.index", "icon": "location_on"},
|
||||||
{"state": "zone.deliveryDays", "icon": "today"}
|
{"state": "zone.deliveryDays", "icon": "today"}
|
||||||
],
|
],
|
||||||
"card": [
|
"card": [
|
|
@ -7,7 +7,7 @@ describe('component vnZoneSummary', () => {
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
let $httpParamSerializer;
|
let $httpParamSerializer;
|
||||||
|
|
||||||
beforeEach(ngModule('agency'));
|
beforeEach(ngModule('zone'));
|
||||||
|
|
||||||
beforeEach(angular.mock.inject(($componentController, $rootScope, _$httpBackend_, _$httpParamSerializer_) => {
|
beforeEach(angular.mock.inject(($componentController, $rootScope, _$httpBackend_, _$httpParamSerializer_) => {
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
Loading…
Reference in New Issue