This commit is contained in:
Juan Ferrer 2019-02-01 13:01:20 +01:00
commit 9023601396
2 changed files with 2 additions and 16 deletions

View File

@ -1,13 +1,12 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/nightmare';
// #776
xdescribe('Ticket expeditions and log path', () => {
describe('Ticket expeditions and log path', () => {
const nightmare = createNightmare();
beforeAll(() => {
return nightmare
.loginAndModule('developer', 'ticket')
.loginAndModule('production', 'ticket')
.accessToSearchResult('id:1')
.accessToSection('ticket.card.expedition');
});

View File

@ -1,13 +0,0 @@
DROP TRIGGER IF EXISTS vn2008.expeditionsBeforeDelete;
USE vn2008;
DELIMITER $$
$$
CREATE DEFINER=`root`@`%` TRIGGER `vn2008`.`expeditionsBeforeDelete`
BEFORE DELETE ON `expeditions` FOR EACH ROW
BEGIN
UPDATE Tickets SET Bultos = (SELECT COUNT(counter)-1
FROM expeditions WHERE ticket_id = OLD.ticket_id and EsBulto)
WHERE Id_Ticket = OLD.ticket_id;
END$$
DELIMITER ;