From 221d0456b7db9cde80fcd05f4c5cbca513291a9b Mon Sep 17 00:00:00 2001 From: Bernat Date: Wed, 14 Nov 2018 11:53:28 +0100 Subject: [PATCH] update fixtures --- services/db/install/dump/fixtures.sql | 149 +++++++++++++------------- 1 file changed, 77 insertions(+), 72 deletions(-) diff --git a/services/db/install/dump/fixtures.sql b/services/db/install/dump/fixtures.sql index 94e5138e6..c589f7eb6 100644 --- a/services/db/install/dump/fixtures.sql +++ b/services/db/install/dump/fixtures.sql @@ -348,7 +348,7 @@ INSERT INTO `vn`.`invoiceOut`(`id`,`ref`, `serial`, `amount`, `issued`,`clientFk (5 , 3, 3, 3, DATE_ADD(CURDATE(), INTERVAL -3 DAY) , DATE_ADD(CURDATE(), INTERVAL -3 DAY) , 103, 'address 23', 123, NULL, 0, DATE_ADD(CURDATE(), INTERVAL -3 DAY) ), (6 , 3, 3, 4, DATE_ADD(CURDATE(), INTERVAL -2 DAY) , DATE_ADD(CURDATE(), INTERVAL -2 DAY) , 103, 'address 23', 123, NULL, 0, DATE_ADD(CURDATE(), INTERVAL -2 DAY) ), (7 , 4, 4, 4, DATE_ADD(CURDATE(), INTERVAL -1 DAY) , DATE_ADD(CURDATE(), INTERVAL -1 DAY) , 104, 'address 24', 124, NULL, 0, DATE_ADD(CURDATE(), INTERVAL -1 DAY) ), - (8 , 4, 4, 4, DATE_ADD(CURDATE(), INTERVAL -1 MONTH), DATE_ADD(CURDATE(), INTERVAL -1 MONTH), 104, 'address 24', 124, NULL, 0, DATE_ADD(CURDATE(), INTERVAL -1 MONTH)), + (8 , 4, 4, 4, DATE_ADD(CURDATE(), INTERVAL +1 MONTH), DATE_ADD(CURDATE(), INTERVAL +1 MONTH), 104, 'address 24', 124, NULL, 0, DATE_ADD(CURDATE(), INTERVAL +1 MONTH)), (9 , 5, 5, 4, DATE_ADD(CURDATE(), INTERVAL -2 MONTH), DATE_ADD(CURDATE(), INTERVAL -2 MONTH), 105, 'address 25', 125, NULL, 0, DATE_ADD(CURDATE(), INTERVAL -2 MONTH)), (10, 6, 5, 5, DATE_ADD(CURDATE(), INTERVAL -3 MONTH), DATE_ADD(CURDATE(), INTERVAL -3 MONTH), 105, 'address 25', 125, NULL, 0, DATE_ADD(CURDATE(), INTERVAL -3 MONTH)), (11, 7, 1, 1, CURDATE() , CURDATE() , 101, 'address 21', 121, NULL, 0, CURDATE() ), @@ -378,7 +378,7 @@ INSERT INTO `vn`.`ticketTracking`(`id`, `ticketFk`, `stateFk`, `workerFk`, `crea (5 , 5 , 16, 18, DATE_ADD(CURDATE(), INTERVAL -3 DAY) ), (6 , 6 , 16, 18, DATE_ADD(CURDATE(), INTERVAL -2 DAY) ), (7 , 7 , 16, 18, DATE_ADD(CURDATE(), INTERVAL -1 DAY) ), - (8 , 8 , 16, 19, DATE_ADD(CURDATE(), INTERVAL -1 MONTH)), + (8 , 8 , 3, 19, DATE_ADD(CURDATE(), INTERVAL -1 MONTH)), (9 , 9 , 16, 19, DATE_ADD(CURDATE(), INTERVAL -2 MONTH)), (10, 10, 16, 19, DATE_ADD(CURDATE(), INTERVAL -3 MONTH)), (11, 11, 3 , 19, CURDATE()), @@ -529,18 +529,19 @@ INSERT INTO `vn`.`ticketPackaging`(`id`, `ticketFk`, `packagingFk`, `quantity`, INSERT INTO `vn`.`sale`(`id`, `itemFk`, `ticketFk`, `concept`, `quantity`, `price`, `discount`, `reserved`, `isPicked`, `created`) VALUES - ( 1, 1, 1 , 'Gem of Time', 5, 9.10, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), - ( 2, 2, 1 , 'Gem of Mind', 10, 1.07, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), - ( 3, 1, 1 , 'Gem of Time', 2, 9.10, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), - ( 4, 4, 1 , 'Mark I' , 20, 3.06, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), - ( 5, 1, 2 , 'Gem of Time', 10, 9.10, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -10 DAY)), - ( 6, 1, 3 , 'Gem of Time', 15, 6.50, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -5 DAY)), - ( 7, 2, 11, 'Gem of Mind', 15, 1.30, 0, 0, 0, CURDATE()), - ( 8, 4, 11, 'Mark I' , 10, 3.26, 0, 0, 0, CURDATE()), - ( 9, 1, 16, 'Gem of Time', 5, 9.10, 0, 0, 0, CURDATE()), - ( 10, 2, 16, 'Gem of Mind', 10, 1.07, 0, 0, 0, CURDATE()), - ( 11, 1, 16, 'Gem of Time', 2, 9.10, 0, 0, 0, CURDATE()), - ( 12, 4, 16, 'Mark I' , 20, 3.06, 0, 0, 0, CURDATE()); + (1, 1, 1 , 'Gem of Time', 5, 9.10, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), + (2, 2, 1 , 'Gem of Mind', 10, 1.07, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), + (3, 1, 1 , 'Gem of Time', 2, 9.10, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), + (4, 4, 1 , 'Mark I' , 20, 3.06, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -15 DAY)), + (5, 1, 2 , 'Gem of Time', 10, 9.10, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -10 DAY)), + (6, 1, 3 , 'Gem of Time', 15, 6.50, 0, 0, 0, DATE_ADD(CURDATE(), INTERVAL -5 DAY)), + (7, 2, 11, 'Gem of Mind', 15, 1.30, 0, 0, 0, CURDATE()), + (8, 4, 11, 'Mark I' , 10, 3.26, 0, 0, 0, CURDATE()), + (9, 1, 16, 'Gem of Time', 5, 9.10, 0, 0, 0, CURDATE()), + (10, 2, 16, 'Gem of Mind', 10, 1.07, 0, 0, 0, CURDATE()), + (11, 1, 16, 'Gem of Time', 2, 9.10, 0, 0, 0, CURDATE()), + (12, 4, 16, 'Mark I' , 20, 3.06, 0, 0, 0, CURDATE()), + (13, 2, 8, 'Gem of Mind', 15, 1.30, 0, 0, 0, CURDATE()); INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`) VALUES @@ -549,64 +550,68 @@ INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`) INSERT INTO `vn`.`saleComponent`(`saleFk`, `componentFk`, `value`) VALUES - ( 1, 15, 0.58), - ( 1, 23, 6.5), - ( 1, 28, 20.72), - ( 1, 29, -18.72), - ( 1, 39, 0.02), - ( 2, 15, 0.058), - ( 2, 21, 0.002), - ( 2, 28, 5.6), - ( 2, 29, -4.6), - ( 2, 39, 0.01), - ( 3, 15, 0.58), - ( 3, 23, 6.5), - ( 3, 28, 20.72), - ( 3, 29, -18.72), - ( 3, 39, 0.02), - ( 4, 15, 0.051), - ( 4, 21, -0.001), - ( 4, 28, 20.72), - ( 4, 29, -19.72), - ( 4, 37, 2), - ( 4, 39, 0.01), - ( 5, 15, 0.58), - ( 5, 23, 6.5), - ( 5, 28, 20.72), - ( 5, 29, -18.72), - ( 5, 39, 0.02), - ( 6, 23, 6.5), - ( 7, 15, 0.29), - ( 7, 28, 5.6), - ( 7, 29, -4.6), - ( 7, 39, 0.01), - ( 8, 15, 0.254), - ( 8, 21, -0.004), - ( 8, 28, 20.72), - ( 8, 29, -19.72), - ( 8, 37, 2), - ( 8, 39, 0.01), - ( 9, 15, 0.58), - ( 9, 23, 6.5), - ( 9, 28, 20.72), - ( 9, 29, -18.72), - ( 9, 39, 0.02), - ( 10, 15, 0.058), - ( 10, 21, 0.002), - ( 10, 28, 5.6), - ( 10, 29, -4.6), - ( 10, 39, 0.01), - ( 11, 15, 0.58), - ( 11, 23, 6.5), - ( 11, 28, 20.72), - ( 11, 29, -18.72), - ( 11, 39, 0.02), - ( 12, 15, 0.051), - ( 12, 22, -0.001), - ( 12, 28, 20.72), - ( 12, 29, -19.72), - ( 12, 37, 2), - ( 12, 39, 0.01); + (1, 15, 0.58), + (1, 23, 6.5), + (1, 28, 20.72), + (1, 29, -18.72), + (1, 39, 0.02), + (2, 15, 0.058), + (2, 21, 0.002), + (2, 28, 5.6), + (2, 29, -4.6), + (2, 39, 0.01), + (3, 15, 0.58), + (3, 23, 6.5), + (3, 28, 20.72), + (3, 29, -18.72), + (3, 39, 0.02), + (4, 15, 0.051), + (4, 21, -0.001), + (4, 28, 20.72), + (4, 29, -19.72), + (4, 37, 2), + (4, 39, 0.01), + (5, 15, 0.58), + (5, 23, 6.5), + (5, 28, 20.72), + (5, 29, -18.72), + (5, 39, 0.02), + (6, 23, 6.5), + (7, 15, 0.29), + (7, 28, 5.6), + (7, 29, -4.6), + (7, 39, 0.01), + (8, 15, 0.254), + (8, 21, -0.004), + (8, 28, 20.72), + (8, 29, -19.72), + (8, 37, 2), + (8, 39, 0.01), + (9, 15, 0.58), + (9, 23, 6.5), + (9, 28, 20.72), + (9, 29, -18.72), + (9, 39, 0.02), + (10, 15, 0.058), + (10, 21, 0.002), + (10, 28, 5.6), + (10, 29, -4.6), + (10, 39, 0.01), + (11, 15, 0.58), + (11, 23, 6.5), + (11, 28, 20.72), + (11, 29, -18.72), + (11, 39, 0.02), + (12, 15, 0.051), + (12, 22, -0.001), + (12, 28, 20.72), + (12, 29, -19.72), + (12, 37, 2), + (12, 39, 0.01), + (13, 15, 0.29), + (13, 28, 5.6), + (13, 29, -4.6), + (13, 39, 0.01); INSERT INTO `vn`.`saleTracking`(`saleFk`, `isChecked`, `created`, `originalQuantity`, `workerFk`, `actionFk`, `id`, `stateFk`) VALUES