This commit is contained in:
parent
a5529f0e0a
commit
fd785ee429
|
@ -3,6 +3,6 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`movementLabel_afterUp
|
|||
AFTER UPDATE ON `vn`.`movementLabel`
|
||||
FOR EACH ROW
|
||||
IF NEW.stem >= (SELECT s.quantity FROM sale s WHERE s.id = NEW.saleFk) THEN
|
||||
UPDATE sale s SET s.isPicked = 1 WHERE s.id = NEW.saleFk;
|
||||
UPDATE sale s SET s.isPicked = TRUE WHERE s.id = NEW.saleFk;
|
||||
END IF$$
|
||||
DELIMITER ;
|
|
@ -3,7 +3,7 @@ CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|||
VIEW `vn2008`.`pago_sdc`
|
||||
AS SELECT `ei`.`id` AS `pago_sdc_id`,
|
||||
`ei`.`amount` AS `importe`,
|
||||
`ei`.`dated` AS `fecha`,
|
||||
`ei`.`dueDated` AS `fecha`,
|
||||
`ei`.`finished` AS `vencimiento`,
|
||||
`ei`.`entityFk` AS `entity_id`,
|
||||
`ei`.`ref` AS `ref`,
|
||||
|
|
|
@ -5,7 +5,7 @@ ALTER TABLE IF EXISTS `vn2008`.`pago_sdc` RENAME `vn`.`exchangeInsurance`;
|
|||
ALTER TABLE IF EXISTS `vn`.`exchangeInsurance`
|
||||
CHANGE COLUMN IF EXISTS `pago_sdc_id` `id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
CHANGE COLUMN IF EXISTS `importe` `amount` decimal(10,2) NOT NULL,
|
||||
CHANGE COLUMN IF EXISTS `fecha` `dated` date NOT NULL,
|
||||
CHANGE COLUMN IF EXISTS `fecha` `dueDated` date NOT NULL,
|
||||
CHANGE COLUMN IF EXISTS `vencimiento` `finished` date NOT NULL,
|
||||
CHANGE COLUMN IF EXISTS `entity_id` `entityFk` int(10) unsigned NOT NULL,
|
||||
CHANGE COLUMN IF EXISTS `empresa_id` `companyFk`int(10) unsigned NOT NULL DEFAULT 442;
|
||||
|
|
Loading…
Reference in New Issue