Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
commit
98f73fc5d2
|
@ -9,7 +9,7 @@ Salix is also the scientific name of a beautifull tree! :)
|
|||
Required applications.
|
||||
|
||||
* Visual Studio Code
|
||||
* Node.js = 8.15.0
|
||||
* Node.js = 10.15.3 LTS
|
||||
* Docker
|
||||
|
||||
In Visual Studio Code we use the ESLint extension. Open Visual Studio Code, press Ctrl+P and paste the following command.
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
USE `hedera`;
|
||||
DROP procedure IF EXISTS `orderGetTotal`;
|
||||
|
||||
DROP procedure IF EXISTS `hedera`.`orderGetTotal`;
|
||||
DELIMITER $$
|
||||
USE `hedera`$$
|
||||
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `orderGetTotal`()
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `hedera`.`orderGetTotal`()
|
||||
BEGIN
|
||||
/**
|
||||
* Calcula el total con IVA para un conjunto de orders.
|
||||
|
|
|
@ -5,12 +5,12 @@ DELIMITER $$
|
|||
USE `vn`$$
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `ticketGetProblems`()
|
||||
BEGIN
|
||||
/*
|
||||
* Obtiene los problemas de uno o varios tickets
|
||||
*
|
||||
* @table tmp.ticketGetProblems(ticketFk, clientFk, warehouseFk, shipped)
|
||||
* @return tmp.ticketProblems
|
||||
*/
|
||||
/**
|
||||
* Obtiene los problemas de uno o varios tickets
|
||||
*
|
||||
* @table tmp.ticketGetProblems(ticketFk, clientFk, warehouseFk, shipped)
|
||||
* @return tmp.ticketProblems
|
||||
*/
|
||||
DECLARE vWarehouse INT;
|
||||
DECLARE vDate DATE;
|
||||
DECLARE vAvailableCache INT;
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
ALTER TABLE `vn`.`itemLog`
|
||||
CHANGE COLUMN `id` `id` INT(11) NOT NULL AUTO_INCREMENT ,
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
DROP FOREIGN KEY `itemLogUserFk`;
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
CHANGE COLUMN `id` `id` INT(11) NOT NULL AUTO_INCREMENT ,
|
||||
CHANGE COLUMN `userFk` `userFk` INT(10) UNSIGNED NULL DEFAULT NULL ;
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
ADD CONSTRAINT `itemLogUserFk`
|
||||
FOREIGN KEY (`userFk`)
|
||||
REFERENCES `account`.`user` (`id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE;
|
|
@ -1,3 +1,3 @@
|
|||
/* Añadir a producción cuando se suba salix */
|
||||
|
||||
DROP TRIGGER vn2008.ClientesAfterInsert;
|
||||
DROP TRIGGER IF EXISTS vn2008.ClientesAfterInsert;
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
"bonus": {
|
||||
"type": "Number",
|
||||
"required": true
|
||||
},
|
||||
"isVolumetric": {
|
||||
"type": "Boolean",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
|
|
@ -62,6 +62,9 @@
|
|||
display-controls="false">
|
||||
</vn-input-number>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
<vn-check field="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
|
||||
</vn-horizontal>
|
||||
</vn-card>
|
||||
<vn-button-bar>
|
||||
<vn-submit label="Save"></vn-submit>
|
||||
|
|
|
@ -64,6 +64,9 @@
|
|||
display-controls="false">
|
||||
</vn-input-number>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
<vn-check field="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
|
||||
</vn-horizontal>
|
||||
</vn-card>
|
||||
<vn-button-bar>
|
||||
<vn-submit label="Create"></vn-submit>
|
||||
|
|
|
@ -6,8 +6,8 @@ export default class Controller {
|
|||
this.$state = $state;
|
||||
this.zone = {
|
||||
travelingDays: 0,
|
||||
price: 0.50,
|
||||
bonus: 0.50,
|
||||
price: 0.20,
|
||||
bonus: 0.20,
|
||||
hour: new Date()
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,4 +6,5 @@ Locations: Localizaciones
|
|||
Delete zone: Eliminar zona
|
||||
Are you sure you want to delete this zone?: ¿Estás seguro de querer eliminar esta zona?
|
||||
Zones: Zonas
|
||||
New zone: Nueva zona
|
||||
New zone: Nueva zona
|
||||
Volumetric: Volumétrico
|
Loading…
Reference in New Issue