Merge branch 'dev' of http://git.verdnatura.es/salix into dev
This commit is contained in:
commit
ddf138007b
|
@ -39,6 +39,11 @@
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
<vn-horizontal ng-if="model.data.length == 0">
|
||||||
|
<vn-one ad-small translate>
|
||||||
|
No results
|
||||||
|
</vn-one>
|
||||||
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<vn-float-button
|
<vn-float-button
|
||||||
ng-if="$ctrl.canCreateNew()"
|
ng-if="$ctrl.canCreateNew()"
|
||||||
|
|
|
@ -23,6 +23,11 @@
|
||||||
{{::note.text}}
|
{{::note.text}}
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
|
<vn-horizontal ng-if="model.data.length == 0">
|
||||||
|
<vn-one ad-small translate>
|
||||||
|
No results
|
||||||
|
</vn-one>
|
||||||
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,9 @@
|
||||||
item="::item">
|
item="::item">
|
||||||
</vn-order-product>
|
</vn-order-product>
|
||||||
|
|
||||||
<vn-one style="text-align: center" pad-small translate>No results</vn-one>
|
<vn-one style="text-align: center" pad-small translate ng-if="model.data.length == 0">
|
||||||
|
No results
|
||||||
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import ngModule from '../module';
|
import ngModule from '../module';
|
||||||
import './style.scss';
|
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
constructor($scope, $stateParams) {
|
constructor($scope, $stateParams) {
|
||||||
|
|
|
@ -10,3 +10,4 @@ import './misc.scss';
|
||||||
import './summary.scss';
|
import './summary.scss';
|
||||||
import './colors.scss';
|
import './colors.scss';
|
||||||
import './effects.scss';
|
import './effects.scss';
|
||||||
|
import './order-product.scss';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "./colors";
|
@import "./colors";
|
||||||
|
|
||||||
|
|
||||||
vn-order-catalogue {
|
|
||||||
@media screen and (max-width: 1920px){
|
@media screen and (max-width: 1920px){
|
||||||
vn-order-product {
|
vn-order-product {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
|
@ -108,4 +108,3 @@ vn-order-catalogue {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
|
@ -200,6 +200,18 @@
|
||||||
"menu": {
|
"menu": {
|
||||||
"icon": "assignment"
|
"icon": "assignment"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url" : "/picture",
|
||||||
|
"state": "ticket.card.picture",
|
||||||
|
"component": "vn-ticket-picture",
|
||||||
|
"description": "Pictures",
|
||||||
|
"params": {
|
||||||
|
"ticket": "$ctrl.ticket"
|
||||||
|
},
|
||||||
|
"menu": {
|
||||||
|
"icon": "image"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -52,6 +52,7 @@ Worker: Trabajador
|
||||||
VAT: IVA
|
VAT: IVA
|
||||||
Hour: Hora
|
Hour: Hora
|
||||||
The quantity do not match: Las cantidades no coinciden
|
The quantity do not match: Las cantidades no coinciden
|
||||||
|
by: por
|
||||||
|
|
||||||
#sections
|
#sections
|
||||||
List: Listado
|
List: Listado
|
||||||
|
@ -67,3 +68,4 @@ Tracking: Revisión
|
||||||
Sale checked: Control clientes
|
Sale checked: Control clientes
|
||||||
Components: Componentes
|
Components: Componentes
|
||||||
Sale tracking: Líneas preparadas
|
Sale tracking: Líneas preparadas
|
||||||
|
Pictures: Imágenes
|
||||||
|
|
|
@ -0,0 +1,76 @@
|
||||||
|
<vn-crud-model
|
||||||
|
vn-id="model"
|
||||||
|
url="/ticket/api/sales"
|
||||||
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
||||||
|
filter="::$ctrl.filter"
|
||||||
|
limit="20"
|
||||||
|
data="sales">
|
||||||
|
</vn-crud-model>
|
||||||
|
|
||||||
|
<vn-vertical>
|
||||||
|
<vn-card pad-large>
|
||||||
|
<vn-vertical>
|
||||||
|
<vn-title>Pictures</vn-title>
|
||||||
|
<vn-horizontal class="catalogue list" pad-small>
|
||||||
|
<vn-order-product ng-repeat="sale in sales">
|
||||||
|
<vn-one>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-one class="image">
|
||||||
|
<img
|
||||||
|
ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{::sale.item.image}}"
|
||||||
|
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{::sale.item.image}}"
|
||||||
|
on-error-src pointer/>
|
||||||
|
</vn-one>
|
||||||
|
<vn-one pad-small class="description ellipsize">
|
||||||
|
<vn-vertical>
|
||||||
|
<h2 class="ellipsize link" vn-tooltip="{{::sale.item.name}}"
|
||||||
|
ng-click="$ctrl.showDescriptor($event, sale.item.id)">
|
||||||
|
{{::sale.item.name}}
|
||||||
|
</h2>
|
||||||
|
<span class="ellipsize" vn-tooltip="{{::sale.item.subName}}">
|
||||||
|
{{::sale.item.subName}}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<vn-label-value
|
||||||
|
label="{{::sale.item.tag5}}"
|
||||||
|
value="{{::sale.item.value5}}">
|
||||||
|
</vn-label-value>
|
||||||
|
<vn-label-value
|
||||||
|
label="{{::sale.item.tag6}}"
|
||||||
|
value="{{::sale.item.value6}}">
|
||||||
|
</vn-label-value>
|
||||||
|
<vn-label-value
|
||||||
|
label="{{::sale.item.tag7}}"
|
||||||
|
value="{{::sale.item.value7}}">
|
||||||
|
</vn-label-value>
|
||||||
|
<vn-label-value
|
||||||
|
label="{{::sale.item.tag8}}"
|
||||||
|
value="{{::sale.item.value8}}">
|
||||||
|
</vn-label-value>
|
||||||
|
|
||||||
|
<vn-horizontal class="price">
|
||||||
|
<vn-one>
|
||||||
|
<span>{{::sale.quantity}}</span>
|
||||||
|
<span translate>by</span>
|
||||||
|
<span>{{::sale.price | currency: ' €': 2}}</span>
|
||||||
|
</vn-one>
|
||||||
|
</section>
|
||||||
|
</vn-vertical>
|
||||||
|
</vn-one>
|
||||||
|
</vn-horizontal>
|
||||||
|
</vn-one>
|
||||||
|
</vn-order-product>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal ng-if="model.data.length == 0">
|
||||||
|
<vn-one pad-small-v translate>
|
||||||
|
No results
|
||||||
|
</vn-one>
|
||||||
|
</vn-horizontal>
|
||||||
|
</vn-vertical>
|
||||||
|
<vn-pagination
|
||||||
|
model="model"
|
||||||
|
scroll-selector="ui-view">
|
||||||
|
</vn-pagination>
|
||||||
|
</vn-card>
|
||||||
|
</vn-vertical>
|
||||||
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|
|
@ -0,0 +1,34 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
|
||||||
|
class Controller {
|
||||||
|
constructor($scope, $stateParams, $http) {
|
||||||
|
this.$scope = $scope;
|
||||||
|
this.$stateParams = $stateParams;
|
||||||
|
this.$http = $http;
|
||||||
|
this.filter = {
|
||||||
|
include: {
|
||||||
|
relation: 'item',
|
||||||
|
scope: {
|
||||||
|
field: ['name', 'image']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
showDescriptor(event, itemFk) {
|
||||||
|
this.$scope.descriptor.itemFk = itemFk;
|
||||||
|
this.$scope.descriptor.parent = event.target;
|
||||||
|
this.$scope.descriptor.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
onDescriptorLoad() {
|
||||||
|
this.$scope.popover.relocate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.$inject = ['$scope', '$stateParams', '$http'];
|
||||||
|
|
||||||
|
ngModule.component('vnTicketPicture', {
|
||||||
|
template: require('./index.html'),
|
||||||
|
controller: Controller
|
||||||
|
});
|
|
@ -1,6 +1,6 @@
|
||||||
import './index.js';
|
import './index.js';
|
||||||
|
|
||||||
fdescribe('Ticket', () => {
|
describe('Ticket', () => {
|
||||||
describe('Component vnTicketSale', () => {
|
describe('Component vnTicketSale', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let controller;
|
let controller;
|
||||||
|
|
|
@ -21,3 +21,4 @@ import './fetched-tags';
|
||||||
import './sale-checked';
|
import './sale-checked';
|
||||||
import './component';
|
import './component';
|
||||||
import './sale-tracking';
|
import './sale-tracking';
|
||||||
|
import './picture';
|
||||||
|
|
|
@ -216,9 +216,12 @@ export default {
|
||||||
fourthRelevancyInput: `vn-horizontal:nth-child(5) > vn-textfield[label="Relevancy"] input`,
|
fourthRelevancyInput: `vn-horizontal:nth-child(5) > vn-textfield[label="Relevancy"] input`,
|
||||||
fifthTagSelect: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
fifthTagSelect: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
||||||
fifthTagDisabled: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete > div > div > input`,
|
fifthTagDisabled: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete > div > div > input`,
|
||||||
fifthTagSelectOptionFive: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(5)`,
|
|
||||||
fifthValueInput: `vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Value"] input`,
|
fifthValueInput: `vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Value"] input`,
|
||||||
fifthRelevancyInput: `vn-horizontal:nth-child(6) > vn-textfield[label="Relevancy"] input`,
|
fifthRelevancyInput: `vn-horizontal:nth-child(6) > vn-textfield[label="Relevancy"] input`,
|
||||||
|
seventhTagSelectOptionFive: `vn-item-tags vn-horizontal:nth-child(8) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(5)`,
|
||||||
|
seventhTagSelect: `vn-item-tags vn-horizontal:nth-child(8) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
||||||
|
seventhValueInput: `vn-item-tags vn-horizontal:nth-child(8) > vn-textfield[label="Value"] input`,
|
||||||
|
seventhRelevancyInput: `vn-horizontal:nth-child(8) > vn-textfield[label="Relevancy"] input`,
|
||||||
addItemTagButton: `vn-icon-button[icon="add_circle"]`,
|
addItemTagButton: `vn-icon-button[icon="add_circle"]`,
|
||||||
submitItemTagsButton: `${components.vnSubmit}`
|
submitItemTagsButton: `${components.vnSubmit}`
|
||||||
},
|
},
|
||||||
|
|
|
@ -48,11 +48,11 @@ describe('Item', () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitToClick(selectors.itemTags.firstRemoveTagButton)
|
.waitToClick(selectors.itemTags.firstRemoveTagButton)
|
||||||
.waitToClick(selectors.itemTags.addItemTagButton)
|
.waitToClick(selectors.itemTags.addItemTagButton)
|
||||||
.waitToClick(selectors.itemTags.fifthTagSelect)
|
.waitToClick(selectors.itemTags.seventhTagSelect)
|
||||||
.waitToClick(selectors.itemTags.fifthTagSelectOptionFive)
|
.waitToClick(selectors.itemTags.seventhTagSelectOptionFive)
|
||||||
.type(selectors.itemTags.fifthValueInput, 'Thanos')
|
.type(selectors.itemTags.seventhValueInput, '50')
|
||||||
.clearInput(selectors.itemTags.fifthRelevancyInput)
|
.clearInput(selectors.itemTags.seventhRelevancyInput)
|
||||||
.type(selectors.itemTags.fifthRelevancyInput, '1')
|
.type(selectors.itemTags.seventhRelevancyInput, '1')
|
||||||
.click(selectors.itemTags.submitItemTagsButton)
|
.click(selectors.itemTags.submitItemTagsButton)
|
||||||
.waitForSnackbar()
|
.waitForSnackbar()
|
||||||
.then(result => {
|
.then(result => {
|
||||||
|
@ -65,19 +65,19 @@ describe('Item', () => {
|
||||||
.click(selectors.itemBasicData.basicDataButton)
|
.click(selectors.itemBasicData.basicDataButton)
|
||||||
.wait(selectors.itemBasicData.nameInput)
|
.wait(selectors.itemBasicData.nameInput)
|
||||||
.click(selectors.itemTags.tagsButton)
|
.click(selectors.itemTags.tagsButton)
|
||||||
.waitForTextInInput(selectors.itemTags.firstTagDisabled, 'Owner')
|
.waitForTextInInput(selectors.itemTags.firstTagDisabled, 'Diámetro')
|
||||||
.getInputValue(selectors.itemTags.firstTagDisabled)
|
.getInputValue(selectors.itemTags.firstTagDisabled)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Owner');
|
expect(result).toEqual('Diámetro');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should confirm the first value is the expected one`, () => {
|
it(`should confirm the first value is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.firstValueInput, 'Thanos')
|
.waitForTextInInput(selectors.itemTags.firstValueInput, '50')
|
||||||
.getInputValue(selectors.itemTags.firstValueInput)
|
.getInputValue(selectors.itemTags.firstValueInput)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Thanos');
|
expect(result).toEqual('50');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -92,19 +92,19 @@ describe('Item', () => {
|
||||||
|
|
||||||
it(`should confirm the second select is the expected one`, () => {
|
it(`should confirm the second select is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.secondTagDisabled, 'Location')
|
.waitForTextInInput(selectors.itemTags.secondTagDisabled, 'Variedad')
|
||||||
.getInputValue(selectors.itemTags.secondTagDisabled)
|
.getInputValue(selectors.itemTags.secondTagDisabled)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Location');
|
expect(result).toEqual('Variedad');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should confirm the second value is the expected one`, () => {
|
it(`should confirm the second value is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.secondValueInput, 'Gamoras hideout')
|
.waitForTextInInput(selectors.itemTags.secondValueInput, 'Gem1')
|
||||||
.getInputValue(selectors.itemTags.secondValueInput)
|
.getInputValue(selectors.itemTags.secondValueInput)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Gamoras hideout');
|
expect(result).toEqual('Gem1');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -119,19 +119,19 @@ describe('Item', () => {
|
||||||
|
|
||||||
it(`should confirm the third select is the expected one`, () => {
|
it(`should confirm the third select is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.thirdTagDisabled, 'Shape')
|
.waitForTextInInput(selectors.itemTags.thirdTagDisabled, 'Longitud(cm)')
|
||||||
.getInputValue(selectors.itemTags.thirdTagDisabled)
|
.getInputValue(selectors.itemTags.thirdTagDisabled)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Shape');
|
expect(result).toEqual('Longitud(cm)');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should confirm the third value is the expected one`, () => {
|
it(`should confirm the third value is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.thirdValueInput, 'round')
|
.waitForTextInInput(selectors.itemTags.thirdValueInput, '5')
|
||||||
.getInputValue(selectors.itemTags.thirdValueInput)
|
.getInputValue(selectors.itemTags.thirdValueInput)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('round');
|
expect(result).toEqual('5');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -146,19 +146,19 @@ describe('Item', () => {
|
||||||
|
|
||||||
it(`should confirm the fourth select is the expected one`, () => {
|
it(`should confirm the fourth select is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.fourthTagDisabled, 'Power')
|
.waitForTextInInput(selectors.itemTags.fourthTagDisabled, 'Proveedor')
|
||||||
.getInputValue(selectors.itemTags.fourthTagDisabled)
|
.getInputValue(selectors.itemTags.fourthTagDisabled)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Power');
|
expect(result).toEqual('Proveedor');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should confirm the fourth value is the expected one`, () => {
|
it(`should confirm the fourth value is the expected one`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInInput(selectors.itemTags.fourthValueInput, 'Manipulates time')
|
.waitForTextInInput(selectors.itemTags.fourthValueInput, 'Marvel1')
|
||||||
.getInputValue(selectors.itemTags.fourthValueInput)
|
.getInputValue(selectors.itemTags.fourthValueInput)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual('Manipulates time');
|
expect(result).toEqual('Marvel1');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ mysqldump --defaults-file=connect.ini --no-create-info account role roleRole rol
|
||||||
echo USE `salix`; >> install/dump/03-dumpedFixtures.sql
|
echo USE `salix`; >> install/dump/03-dumpedFixtures.sql
|
||||||
mysqldump --defaults-file=connect.ini --no-create-info salix ACL >> install/dump/03-dumpedFixtures.sql
|
mysqldump --defaults-file=connect.ini --no-create-info salix ACL >> install/dump/03-dumpedFixtures.sql
|
||||||
echo USE `vn`; >> install/dump/03-dumpedFixtures.sql
|
echo USE `vn`; >> install/dump/03-dumpedFixtures.sql
|
||||||
mysqldump --defaults-file=connect.ini --no-create-info vn cplusInvoiceType477 cplusSubjectOp cplusTaxBreak bookingPlanner pgc >> install/dump/03-dumpedFixtures.sql
|
mysqldump --defaults-file=connect.ini --no-create-info vn cplusInvoiceType477 cplusSubjectOp cplusTaxBreak bookingPlanner pgc tag >> install/dump/03-dumpedFixtures.sql
|
||||||
echo USE `vn2008`; >> install/dump/03-dumpedFixtures.sql
|
echo USE `vn2008`; >> install/dump/03-dumpedFixtures.sql
|
||||||
mysqldump --defaults-file=connect.ini --no-create-info vn2008 accion_dits Gastos Tintas tarifa_componentes tarifa_componentes_series state bionic_updating_options Grupos Monedas container iva_group_codigo escritos cl_est cl_con cl_res cl_dev cl_mot cl_sol>> install/dump/03-dumpedFixtures.sql
|
mysqldump --defaults-file=connect.ini --no-create-info vn2008 accion_dits Gastos Tintas tarifa_componentes tarifa_componentes_series state bionic_updating_options Grupos Monedas container iva_group_codigo escritos cl_est cl_con cl_res cl_dev cl_mot cl_sol>> install/dump/03-dumpedFixtures.sql
|
||||||
echo USE `bi`; >> install/dump/03-dumpedFixtures.sql
|
echo USE `bi`; >> install/dump/03-dumpedFixtures.sql
|
||||||
|
|
|
@ -5,7 +5,7 @@ mysqldump --defaults-file=connect.ini --no-create-info account role roleRole rol
|
||||||
echo "USE \`salix\`;" >> install/dump/03-dumpedFixtures.sql
|
echo "USE \`salix\`;" >> install/dump/03-dumpedFixtures.sql
|
||||||
mysqldump --defaults-file=connect.ini --no-create-info salix ACL >> install/dump/03-dumpedFixtures.sql
|
mysqldump --defaults-file=connect.ini --no-create-info salix ACL >> install/dump/03-dumpedFixtures.sql
|
||||||
echo "USE \`vn\`;" >> install/dump/03-dumpedFixtures.sql
|
echo "USE \`vn\`;" >> install/dump/03-dumpedFixtures.sql
|
||||||
mysqldump --defaults-file=connect.ini --no-create-info vn cplusInvoiceType477 cplusSubjectOp cplusTaxBreak bookingPlanner pgc >> install/dump/03-dumpedFixtures.sql
|
mysqldump --defaults-file=connect.ini --no-create-info vn cplusInvoiceType477 cplusSubjectOp cplusTaxBreak bookingPlanner pgc tag >> install/dump/03-dumpedFixtures.sql
|
||||||
echo "USE \`vn2008\`;" >> install/dump/03-dumpedFixtures.sql
|
echo "USE \`vn2008\`;" >> install/dump/03-dumpedFixtures.sql
|
||||||
mysqldump --defaults-file=connect.ini --no-create-info vn2008 accion_dits Gastos Tintas tarifa_componentes tarifa_componentes_series state bionic_updating_options Grupos Monedas container iva_group_codigo escritos cl_est cl_con cl_res cl_dev cl_mot cl_sol>> install/dump/03-dumpedFixtures.sql
|
mysqldump --defaults-file=connect.ini --no-create-info vn2008 accion_dits Gastos Tintas tarifa_componentes tarifa_componentes_series state bionic_updating_options Grupos Monedas container iva_group_codigo escritos cl_est cl_con cl_res cl_dev cl_mot cl_sol>> install/dump/03-dumpedFixtures.sql
|
||||||
echo "USE \`bi\`;" >> install/dump/03-dumpedFixtures.sql
|
echo "USE \`bi\`;" >> install/dump/03-dumpedFixtures.sql
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -338,7 +338,7 @@ INSERT INTO `vn`.`invoiceOut`(`id`, `ref`, `serial`, `amount`, `issued`,`clientF
|
||||||
(8 , 4, 4, 4, DATE_ADD(CURDATE(), INTERVAL -1 MONTH), DATE_ADD(CURDATE(), INTERVAL -1 MONTH), 104, 'Professor X', 124, NULL),
|
(8 , 4, 4, 4, DATE_ADD(CURDATE(), INTERVAL -1 MONTH), DATE_ADD(CURDATE(), INTERVAL -1 MONTH), 104, 'Professor X', 124, NULL),
|
||||||
(9 , 5, 5, 4, DATE_ADD(CURDATE(), INTERVAL -2 MONTH), DATE_ADD(CURDATE(), INTERVAL -2 MONTH), 105, 'Hulk', 125, NULL),
|
(9 , 5, 5, 4, DATE_ADD(CURDATE(), INTERVAL -2 MONTH), DATE_ADD(CURDATE(), INTERVAL -2 MONTH), 105, 'Hulk', 125, NULL),
|
||||||
(10, 6, 5, 5, DATE_ADD(CURDATE(), INTERVAL -3 MONTH), DATE_ADD(CURDATE(), INTERVAL -3 MONTH), 105, 'Jessica Jones', 125, NULL),
|
(10, 6, 5, 5, DATE_ADD(CURDATE(), INTERVAL -3 MONTH), DATE_ADD(CURDATE(), INTERVAL -3 MONTH), 105, 'Jessica Jones', 125, NULL),
|
||||||
(11, 1, 1, 1, CURDATE() , CURDATE() , 101, 'ticket 1', 121, NULL),
|
(11, 7, 1, 1, CURDATE() , CURDATE() , 101, 'ticket 1', 121, NULL),
|
||||||
(12, 1, 1, 1, DATE_ADD(CURDATE(), INTERVAL +1 MONTH), DATE_ADD(CURDATE(), INTERVAL +1 MONTH), 101, 'ticket 2', 121, NULL),
|
(12, 1, 1, 1, DATE_ADD(CURDATE(), INTERVAL +1 MONTH), DATE_ADD(CURDATE(), INTERVAL +1 MONTH), 101, 'ticket 2', 121, NULL),
|
||||||
(13, 2, 2, 2, DATE_ADD(CURDATE(), INTERVAL +2 MONTH), DATE_ADD(CURDATE(), INTERVAL +2 MONTH), 101, 'ticket 3', 121, NULL),
|
(13, 2, 2, 2, DATE_ADD(CURDATE(), INTERVAL +2 MONTH), DATE_ADD(CURDATE(), INTERVAL +2 MONTH), 101, 'ticket 3', 121, NULL),
|
||||||
(14, 2, 2, 2, DATE_ADD(CURDATE(), INTERVAL +3 MONTH), DATE_ADD(CURDATE(), INTERVAL +3 MONTH), 101, 'ticket 4', 121, NULL),
|
(14, 2, 2, 2, DATE_ADD(CURDATE(), INTERVAL +3 MONTH), DATE_ADD(CURDATE(), INTERVAL +3 MONTH), 101, 'ticket 4', 121, NULL),
|
||||||
|
@ -515,8 +515,8 @@ INSERT INTO `vn`.`sale`(`id`, `itemFk`, `ticketFk`, `concept`, `quantity`, `pric
|
||||||
( 4, 4, 1 , 'Mark I' , 20 , 9 , 0, 0, 0, CURDATE()),
|
( 4, 4, 1 , 'Mark I' , 20 , 9 , 0, 0, 0, CURDATE()),
|
||||||
( 5, 1, 2 , 'Gem of Time', 10 , 23.5, 0, 0, 0, CURDATE()),
|
( 5, 1, 2 , 'Gem of Time', 10 , 23.5, 0, 0, 0, CURDATE()),
|
||||||
( 6, 1, 3 , 'Gem of Time', 15 , 23.5, 0, 0, 0, CURDATE()),
|
( 6, 1, 3 , 'Gem of Time', 15 , 23.5, 0, 0, 0, CURDATE()),
|
||||||
( 7, 1, 11, 'Gem of Mind', 15 , 4.5 , 0, 0, 0, CURDATE()),
|
( 7, 2, 11, 'Gem of Mind', 15 , 4.5 , 0, 0, 0, CURDATE()),
|
||||||
( 8, 1, 11, 'Mark I' , 10 , 9 , 0, 0, 0, CURDATE());
|
( 8, 4, 11, 'Mark I' , 10 , 9 , 0, 0, 0, CURDATE());
|
||||||
|
|
||||||
INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`)
|
INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`)
|
||||||
VALUES
|
VALUES
|
||||||
|
@ -561,9 +561,11 @@ INSERT INTO `vn`.`saleComponent`(`saleFk`, `componentFk`, `value`)
|
||||||
( 6, 28, 1),
|
( 6, 28, 1),
|
||||||
( 7, 28, 1),
|
( 7, 28, 1),
|
||||||
( 7, 17, 3.5),
|
( 7, 17, 3.5),
|
||||||
|
( 7, 15, 3),
|
||||||
( 8, 28, 1),
|
( 8, 28, 1),
|
||||||
( 8, 10, 1),
|
( 8, 10, 1),
|
||||||
( 8, 39, 5),
|
( 8, 39, 5),
|
||||||
|
( 8, 15, 5),
|
||||||
( 8, 37, 2);
|
( 8, 37, 2);
|
||||||
|
|
||||||
INSERT INTO `vn`.`saleTracking`(`saleFk`, `isChecked`, `created`, `originalQuantity`, `workerFk`, `actionFk`, `id`, `stateFk`)
|
INSERT INTO `vn`.`saleTracking`(`saleFk`, `isChecked`, `created`, `originalQuantity`, `workerFk`, `actionFk`, `id`, `stateFk`)
|
||||||
|
@ -607,36 +609,43 @@ INSERT INTO `vn`.`itemBotanical`(`itemFk`, `botanical`, `genusFk`, `specieFk`)
|
||||||
( 3, 'Cycas revoluta', 2, NULL),
|
( 3, 'Cycas revoluta', 2, NULL),
|
||||||
( 4, 'Polygonum', NULL, NULL);
|
( 4, 'Polygonum', NULL, NULL);
|
||||||
|
|
||||||
INSERT INTO `vn`.`tag`(`id`,`name`,`isFree`,`isQuantitatif`,`sourceTable`,`unit`)
|
|
||||||
VALUES
|
|
||||||
(1, 'Color', 0, 0, 'ink', null),
|
|
||||||
(2, 'Power', 0, 0, 'producer', null),
|
|
||||||
(3, 'Shape', 0, 0, null, null),
|
|
||||||
(4, 'Location', 1, 0, null, null),
|
|
||||||
(5, 'Owner', 1, 1, null, null);
|
|
||||||
|
|
||||||
INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`)
|
INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`)
|
||||||
VALUES
|
VALUES
|
||||||
(1, 1, 1, 'Yellow', 5),
|
(1 , 1, 56, 'Object1', 1),
|
||||||
(2, 1, 2, 'Manipulates time', 4),
|
(2 , 1, 58, 'Gem1' , 2),
|
||||||
(3, 1, 3, 'round', 3),
|
(3 , 1, 27, '5' , 3),
|
||||||
(4, 1, 4, 'Gamoras hideout', 2),
|
(4 , 1, 36, 'Marvel1', 4),
|
||||||
(5, 1, 5, 'Gamora', 1),
|
(5 , 1, 1 , 'Yellow' , 5),
|
||||||
(6, 2, 1, 'Red', 5),
|
(6 , 1, 67 , 'A1' , 6),
|
||||||
(7, 2, 2, 'Manipulates mind', 4),
|
(7 , 1, 23, '0' , 7),
|
||||||
(8, 2, 3, 'square', 3),
|
(8 , 2, 56, 'Object2', 1),
|
||||||
(9, 2, 4, 'unknown location', 2),
|
(9 , 2, 58, 'Gem2' , 2),
|
||||||
(10, 2, 5, 'Thanos', 1),
|
(10, 2, 27 , '3' , 3),
|
||||||
(11, 3, 1, 'Green', 5),
|
(11, 2, 36, 'Marvel2', 4),
|
||||||
(12, 3, 2, 'Save the children', 4),
|
(12, 2, 1 , 'Red' , 5),
|
||||||
(13, 3, 3, 'human shape', 3),
|
(13, 2, 67, 'A1' , 6),
|
||||||
(14, 3, 4, 'Stark tower', 2),
|
(14, 2, 23, '0' , 7),
|
||||||
(15, 3, 5, 'Tony Stark', 1),
|
(15, 3, 56, 'Object3', 1),
|
||||||
(16, 4, 1, 'Blue', 5),
|
(16, 3, 58, 'Armor' , 2),
|
||||||
(17, 4, 2, 'Protect the citizen', 4),
|
(17, 3, 4, '3' , 3),
|
||||||
(18, 4, 3, 'human shape', 3),
|
(18, 3, 36, 'Stark' , 4),
|
||||||
(19, 4, 4, 'Manhattan', 2),
|
(19, 3, 1 , 'Green' , 5),
|
||||||
(20, 4, 5, 'Tony Stark', 1);
|
(20, 3, 67, 'EXT' , 6),
|
||||||
|
(21, 3, 23, '0' , 7),
|
||||||
|
(22, 4, 56, 'Object3', 1),
|
||||||
|
(23, 4, 58, 'Armor2' , 2),
|
||||||
|
(24, 4, 4, '2' , 3),
|
||||||
|
(25, 4, 36, 'Stark' , 4),
|
||||||
|
(26, 4, 1 , 'Blue' , 5),
|
||||||
|
(27, 4, 67, 'EXT' , 6),
|
||||||
|
(28, 4, 23, '1' , 7),
|
||||||
|
(29, 5, 56, 'Object5', 1),
|
||||||
|
(30, 5, 58, 'Weapon' , 2),
|
||||||
|
(31, 5, 27 , '50' , 3),
|
||||||
|
(32, 5, 36, 'Thor' , 4),
|
||||||
|
(33, 5, 1 , 'Grey' , 5),
|
||||||
|
(34, 5, 67, 'EXT' , 6),
|
||||||
|
(35, 5, 23, '1' , 7);
|
||||||
|
|
||||||
INSERT INTO `vn`.`itemTypeTag`(`id`, `itemTypeFk`, `tagFk`, `priority`)
|
INSERT INTO `vn`.`itemTypeTag`(`id`, `itemTypeFk`, `tagFk`, `priority`)
|
||||||
VALUES
|
VALUES
|
||||||
|
@ -719,10 +728,11 @@ INSERT INTO `vn`.`agencyProvince`(`provinceFk`, `agencyFk`, `zone`, `warehouseFk
|
||||||
INSERT INTO `vn`.`agencyModeZone`(`agencyModeFk`, `zone`, `price`, `itemFk`, `warehouseFk`, `minimCost`, `inflation`)
|
INSERT INTO `vn`.`agencyModeZone`(`agencyModeFk`, `zone`, `price`, `itemFk`, `warehouseFk`, `minimCost`, `inflation`)
|
||||||
VALUES
|
VALUES
|
||||||
( 1, 1, 10, 6, 1, 1, 1.00),
|
( 1, 1, 10, 6, 1, 1, 1.00),
|
||||||
( 1, 1, 20, 6, 1, 1, 1.00),
|
( 2, 1, 20, 6, 1, 1, 1.00),
|
||||||
( 2, 1, 10, 6, 1, 1, 1.00),
|
( 3, 1, 10, 6, 1, 1, 1.00),
|
||||||
( 2, 1, 20, 6, 1, 1, 2.00),
|
( 4, 1, 20, 6, 1, 1, 2.00),
|
||||||
( 2, 2, 10, 6, 1, 0, 2.00),
|
( 5, 2, 10, 6, 1, 0, 2.00),
|
||||||
|
( 6, 2, 10, 6, 1, 0, 2.00),
|
||||||
( 7, 2, 50, 6, 1, 0, 1.00),
|
( 7, 2, 50, 6, 1, 0, 1.00),
|
||||||
( 8, 2, 100, 6, 1, 0, 2.00);
|
( 8, 2, 100, 6, 1, 0, 2.00);
|
||||||
|
|
||||||
|
@ -744,9 +754,9 @@ INSERT INTO `bi`.`claims_ratio`(`id_Cliente`, `Consumo`, `Reclamaciones`, `Ratio
|
||||||
INSERT INTO `vn`.`buy`(`id`,`entryFk`,`itemFk`,`buyingValue`,`quantity`,`packageFk`,`stickers`,`freightValue`,`packageValue`,`comissionValue`,`packing`,`grouping`,`groupingMode`,`location`,`price1`,`price2`,`price3`,`minPrice`,`producer`,`printedStickers`,`isChecked`,`isIgnored`)
|
INSERT INTO `vn`.`buy`(`id`,`entryFk`,`itemFk`,`buyingValue`,`quantity`,`packageFk`,`stickers`,`freightValue`,`packageValue`,`comissionValue`,`packing`,`grouping`,`groupingMode`,`location`,`price1`,`price2`,`price3`,`minPrice`,`producer`,`printedStickers`,`isChecked`,`isIgnored`)
|
||||||
VALUES
|
VALUES
|
||||||
(1, 1, 1, 2.5, 5000 , 1, 1, 0.350, 0.050, 0.000, 1, 1, 1, NULL, 1.50, 1.25, 1.30, 2.00, NULL, 0, 1, 0),
|
(1, 1, 1, 2.5, 5000 , 1, 1, 0.350, 0.050, 0.000, 1, 1, 1, NULL, 1.50, 1.25, 1.30, 2.00, NULL, 0, 1, 0),
|
||||||
(2, 2, 2, 5 , 450, 1, 1, 0.000, 0.000, 0.000, 1, 1, 1, NULL, 2, 1.00, 1.30, 2.00, NULL, 0, 1, 0),
|
(2, 2, 2, 5 , 450 , 1, 1, 0.500, 0.100, 0.000, 1, 1, 1, NULL, 2, 1.00, 1.30, 2.00, NULL, 0, 1, 0),
|
||||||
(3, 3, 3, 10 , 500, 1, 1, 0.000, 0.000, 0.000, 1, 1, 1, NULL, 2.50, 1.00, 2.50, 2.00, NULL, 0, 1, 0),
|
(3, 3, 3, 10 , 500 , 1, 1, 1.000, 0.050, 0.000, 1, 1, 1, NULL, 2.50, 1.00, 2.50, 2.00, NULL, 0, 1, 0),
|
||||||
(4, 4, 4, 20 , 100, 1, 1, 0.000, 0.000, 0.000, 1, 1, 1, NULL, 2.50, 1.00, 2.50, 2.00, NULL, 0, 1, 0);
|
(4, 4, 4, 20 , 100 , 1, 1, 0.700, 0.020, 0.000, 1, 1, 1, NULL, 2.50, 1.00, 2.50, 2.00, NULL, 0, 1, 0);
|
||||||
|
|
||||||
INSERT INTO `vn2008`.`tblContadores`(`id`,`FechaInventario`)
|
INSERT INTO `vn2008`.`tblContadores`(`id`,`FechaInventario`)
|
||||||
VALUES
|
VALUES
|
||||||
|
|
Loading…
Reference in New Issue