2019-12-05 13:20:11 +00:00
CREATE SCHEMA IF NOT EXISTS ` vn2008 ` ;
2019-12-11 14:01:01 +00:00
CREATE SCHEMA IF NOT EXISTS ` tmp ` ;
2019-12-05 13:20:11 +00:00
2018-09-06 08:42:43 +00:00
ALTER TABLE ` vn ` . ` itemTaxCountry ` AUTO_INCREMENT = 1 ;
2019-11-12 10:13:20 +00:00
ALTER TABLE ` vn ` . ` address ` AUTO_INCREMENT = 1 ;
2019-09-17 11:52:29 +00:00
ALTER TABLE ` vn ` . ` zoneGeo ` AUTO_INCREMENT = 1 ;
2019-12-11 14:01:01 +00:00
ALTER TABLE ` vn ` . ` ticket ` AUTO_INCREMENT = 1 ;
2018-09-06 08:42:43 +00:00
2019-05-23 07:30:29 +00:00
INSERT INTO ` vn ` . ` ticketConfig ` ( ` id ` , ` scopeDays ` )
2019-09-04 07:06:08 +00:00
VALUES
2019-05-23 07:30:29 +00:00
( ' 1 ' , ' 6 ' ) ;
2019-11-12 10:13:20 +00:00
2019-11-21 06:24:31 +00:00
INSERT INTO ` vn ` . ` bionicConfig ` ( ` generalInflationCoeficient ` , ` minimumDensityVolumetricWeight ` , ` verdnaturaVolumeBox ` , ` itemCarryBox ` )
VALUES
( 1 . 30 , 167 . 00 , 138000 , 71 ) ;
2019-12-27 07:49:51 +00:00
INSERT INTO ` vn ` . ` chatConfig ` ( ` host ` , ` api ` )
2020-03-30 12:28:29 +00:00
VALUES
2019-12-27 07:49:51 +00:00
( ' https://chat.verdnatura.es ' , ' https://chat.verdnatura.es/api/v1 ' ) ;
2019-12-20 12:51:04 +00:00
INSERT IGNORE INTO ` vn ` . ` greugeConfig ` ( ` id ` , ` freightPickUpPrice ` )
VALUES
( ' 1 ' , ' 11 ' ) ;
INSERT INTO ` vn ` . ` packagingConfig ` ( ` upperGap ` )
VALUES
( ' 10 ' ) ;
2019-12-16 07:48:12 +00:00
UPDATE ` account ` . ` role ` SET id = 100 WHERE id = 0 ;
2020-03-09 08:00:03 +00:00
CALL ` account ` . ` role_sync ` ;
2019-12-16 07:48:12 +00:00
2019-05-08 06:48:47 +00:00
INSERT INTO ` account ` . ` user ` ( ` id ` , ` name ` , ` nickname ` , ` password ` , ` role ` , ` active ` , ` email ` , ` lang ` )
2020-02-20 08:31:09 +00:00
SELECT id , name , CONCAT ( name , ' Nick ' ) , MD5 ( ' nightmare ' ) , id , 1 , CONCAT ( name , ' @mydomain.com ' ) , ' en '
2019-12-16 07:48:12 +00:00
FROM ` account ` . ` role ` WHERE id < > 20
ORDER BY id ;
2018-02-22 09:03:58 +00:00
2020-09-21 11:24:43 +00:00
INSERT INTO ` account ` . ` account ` ( ` id ` )
SELECT id FROM ` account ` . ` user ` ;
2020-05-15 11:11:23 +00:00
INSERT INTO ` vn ` . ` worker ` ( ` id ` , ` code ` , ` firstName ` , ` lastName ` , ` userFk ` , ` bossFk ` )
SELECT id , UPPER ( LPAD ( role , 3 , ' 0 ' ) ) , name , name , id , 9
2018-02-22 09:03:58 +00:00
FROM ` vn ` . ` user ` ;
2019-11-12 10:13:20 +00:00
UPDATE ` vn ` . ` worker ` SET bossFk = NULL WHERE id = 20 ;
2020-10-02 10:23:48 +00:00
UPDATE ` vn ` . ` worker ` SET bossFk = 20 WHERE id = 1 OR id = 9 ;
UPDATE ` vn ` . ` worker ` SET bossFk = 19 WHERE id = 18 ;
2019-05-17 11:27:51 +00:00
2019-11-12 10:13:20 +00:00
DELETE FROM ` vn ` . ` worker ` WHERE firstName = ' customer ' ;
2018-03-05 13:59:26 +00:00
2019-11-12 10:13:20 +00:00
INSERT INTO ` hedera ` . ` tpvConfig ` ( ` id ` , ` currency ` , ` terminal ` , ` transactionType ` , ` maxAmount ` , ` employeeFk ` , ` testUrl ` )
VALUES
( 1 , 978 , 1 , 0 , 2000 , 9 , 0 ) ;
2020-03-09 08:00:03 +00:00
2020-01-03 13:31:02 +00:00
INSERT INTO ` account ` . ` user ` ( ` id ` , ` name ` , ` nickname ` , ` password ` , ` role ` , ` active ` , ` email ` , ` lang ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-02-20 08:31:09 +00:00
( 101 , ' BruceWayne ' , ' Bruce Wayne ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' BruceWayne@mydomain.com ' , ' es ' ) ,
( 102 , ' PetterParker ' , ' Petter Parker ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' PetterParker@mydomain.com ' , ' en ' ) ,
( 103 , ' ClarkKent ' , ' Clark Kent ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' ClarkKent@mydomain.com ' , ' fr ' ) ,
( 104 , ' TonyStark ' , ' Tony Stark ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' TonyStark@mydomain.com ' , ' es ' ) ,
( 105 , ' MaxEisenhardt ' , ' Max Eisenhardt ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 1 , ' MaxEisenhardt@mydomain.com ' , ' pt ' ) ,
( 106 , ' DavidCharlesHaller ' , ' David Charles Haller ' , ' ac754a330530832ba1bf7687f577da91 ' , 1 , 1 , ' DavidCharlesHaller@mydomain.com ' , ' en ' ) ,
( 107 , ' HankPym ' , ' Hank Pym ' , ' ac754a330530832ba1bf7687f577da91 ' , 1 , 1 , ' HankPym@mydomain.com ' , ' en ' ) ,
( 108 , ' CharlesXavier ' , ' Charles Xavier ' , ' ac754a330530832ba1bf7687f577da91 ' , 1 , 1 , ' CharlesXavier@mydomain.com ' , ' en ' ) ,
( 109 , ' BruceBanner ' , ' Bruce Banner ' , ' ac754a330530832ba1bf7687f577da91 ' , 1 , 1 , ' BruceBanner@mydomain.com ' , ' en ' ) ,
( 110 , ' JessicaJones ' , ' Jessica Jones ' , ' ac754a330530832ba1bf7687f577da91 ' , 1 , 1 , ' JessicaJones@mydomain.com ' , ' en ' ) ,
( 111 , ' Missing ' , ' Missing ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 0 , NULL , ' en ' ) ,
( 112 , ' Trash ' , ' Trash ' , ' ac754a330530832ba1bf7687f577da91 ' , 2 , 0 , NULL , ' en ' ) ;
2017-10-18 12:48:39 +00:00
2020-03-09 08:00:03 +00:00
INSERT INTO ` account ` . ` mailAlias ` ( ` id ` , ` alias ` , ` description ` , ` isPublic ` )
VALUES
( 1 , ' general ' , ' General mailing list ' , FALSE ) ,
( 2 , ' it ' , ' IT department ' , TRUE ) ,
( 3 , ' sales ' , ' Sales department ' , TRUE ) ;
INSERT INTO ` account ` . ` mailAliasAccount ` ( ` mailAlias ` , ` account ` )
VALUES
2020-09-21 14:43:17 +00:00
( 1 , 1 ) ,
( 1 , 18 ) ,
( 3 , 18 ) ,
( 1 , 9 ) ,
( 2 , 9 ) ;
2020-03-09 08:00:03 +00:00
INSERT INTO ` account ` . ` mailForward ` ( ` account ` , ` forwardTo ` )
VALUES
2020-09-21 14:43:17 +00:00
( 1 , ' employee@domain.local ' ) ;
2020-03-09 08:00:03 +00:00
2020-05-15 11:11:23 +00:00
INSERT INTO ` vn ` . ` worker ` ( ` id ` , ` code ` , ` firstName ` , ` lastName ` , ` userFk ` , ` bossFk ` , ` phone ` )
2018-03-07 12:07:48 +00:00
VALUES
2020-05-15 11:11:23 +00:00
( 106 , ' LGN ' , ' David Charles ' , ' Haller ' , 106 , 19 , 432978106 ) ,
( 107 , ' ANT ' , ' Hank ' , ' Pym ' , 107 , 19 , 432978107 ) ,
( 108 , ' DCX ' , ' Charles ' , ' Xavier ' , 108 , 19 , 432978108 ) ,
( 109 , ' HLK ' , ' Bruce ' , ' Banner ' , 109 , 19 , 432978109 ) ,
( 110 , ' JJJ ' , ' Jessica ' , ' Jones ' , 110 , 19 , 432978110 ) ;
2018-03-07 12:07:48 +00:00
2019-06-07 07:18:54 +00:00
INSERT INTO ` vn ` . ` country ` ( ` id ` , ` country ` , ` isUeeMember ` , ` code ` , ` currencyFk ` , ` ibanLength ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-01-28 08:03:20 +00:00
( 1 , ' España ' , 1 , ' ES ' , 1 , 24 ) ,
2019-11-14 07:16:52 +00:00
( 2 , ' Italia ' , 1 , ' IT ' , 1 , 27 ) ,
( 3 , ' Alemania ' , 1 , ' DE ' , 1 , 22 ) ,
( 4 , ' Rumania ' , 1 , ' RO ' , 1 , 24 ) ,
( 5 , ' Holanda ' , 1 , ' NL ' , 1 , 18 ) ,
( 8 , ' Portugal ' , 1 , ' PT ' , 1 , 27 ) ,
2020-01-24 08:47:24 +00:00
( 13 , ' Ecuador ' , 0 , ' EC ' , 1 , 24 ) ,
2019-11-14 07:16:52 +00:00
( 19 , ' Francia ' , 1 , ' FR ' , 1 , 27 ) ,
( 30 , ' Canarias ' , 1 , ' IC ' , 1 , 24 ) ;
2017-10-18 12:48:39 +00:00
2020-03-09 08:00:03 +00:00
INSERT INTO ` hedera ` . ` language ` ( ` code ` , ` name ` , ` orgName ` , ` isActive ` )
VALUES
( ' ca ' , ' Català ' , ' Catalan ' , TRUE ) ,
( ' en ' , ' English ' , ' English ' , TRUE ) ,
( ' es ' , ' Español ' , ' Spanish ' , TRUE ) ,
( ' fr ' , ' Français ' , ' French ' , TRUE ) ,
( ' mn ' , ' Португалий ' , ' Mongolian ' , TRUE ) ,
( ' pt ' , ' Português ' , ' Portuguese ' , TRUE ) ;
2020-07-02 05:46:55 +00:00
INSERT INTO ` vn ` . ` warehouseAlias ` ( ` id ` , ` name ` )
VALUES
( 1 , ' Main Warehouse ' ) ,
( 2 , ' Silla ' ) ;
INSERT INTO ` vn ` . ` warehouse ` ( ` id ` , ` name ` , ` isComparative ` , ` isInventory ` , ` hasAvailable ` , ` isManaged ` , ` hasStowaway ` , ` hasDms ` , ` hasComission ` , ` aliasFk ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-07-02 05:46:55 +00:00
( 1 , ' Warehouse One ' , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 2 ) ,
( 2 , ' Warehouse Two ' , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 2 ) ,
( 3 , ' Warehouse Three ' , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 2 ) ,
( 4 , ' Warehouse Four ' , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 2 ) ,
( 5 , ' Warehouse Five ' , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 2 ) ;
2017-10-18 12:48:39 +00:00
2019-10-15 05:23:34 +00:00
INSERT INTO ` vn ` . ` sector ` ( ` id ` , ` description ` , ` warehouseFk ` , ` isPreviousPreparedByPacking ` , ` code ` , ` pickingPlacement ` , ` path ` )
VALUES
( 1 , ' First sector ' , 1 , 1 , ' FIRST ' , 999 , 999 ) ,
( 2 , ' Second sector ' , 2 , 0 , ' SECOND ' , 100 , 150 ) ;
2020-03-23 10:21:25 +00:00
INSERT INTO ` vn ` . ` parking ` ( ` id ` , ` column ` , ` row ` , ` sectorFk ` , ` code ` , ` pickingOrder ` )
VALUES
( ' 1 ' , ' 700 ' , ' 01 ' , ' 1 ' , ' 700-01 ' , ' 70001 ' ) ,
( ' 2 ' , ' 700 ' , ' 02 ' , ' 2 ' , ' 700-02 ' , ' 70002 ' ) ;
INSERT INTO ` vn ` . ` shelving ` ( ` code ` , ` parkingFk ` , ` isPrinted ` , ` priority ` , ` parked ` , ` userFk ` )
VALUES
( ' GVC ' , ' 1 ' , ' 0 ' , ' 1 ' , ' 0 ' , ' 106 ' ) ,
( ' HEJ ' , ' 2 ' , ' 0 ' , ' 1 ' , ' 0 ' , ' 106 ' ) ;
2020-08-27 06:24:21 +00:00
INSERT INTO ` vn ` . ` accountingType ` ( ` id ` , ` description ` , ` receiptDescription ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-08-27 06:24:21 +00:00
( 1 , ' Digital money ' , ' ' ) ,
( 2 , ' Cash ' , ' Cash ' ) ,
( 3 , ' Card ' , ' Pay on receipt ' ) ,
( 4 , ' Stolen Money ' , ' ' ) ,
( 5 , ' Miscellaneous ' , ' ' ) ;
2017-10-18 12:48:39 +00:00
2019-09-17 11:52:29 +00:00
INSERT INTO ` vn ` . ` currency ` ( ` id ` , ` code ` , ` name ` , ` ratio ` )
VALUES
( 1 , ' EUR ' , ' Euro ' , 1 ) ,
( 2 , ' USD ' , ' Dollar USA ' , 1 . 4 ) ,
( 3 , ' GBP ' , ' Libra ' , 1 ) ,
( 4 , ' JPY ' , ' Yen Japones ' , 1 ) ;
2018-11-19 09:34:45 +00:00
INSERT INTO ` vn ` . ` bank ` ( ` id ` , ` bank ` , ` account ` , ` cash ` , ` entityFk ` , ` isActive ` , ` currencyFk ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-08-27 06:24:21 +00:00
( 1 , ' Pay on receipt ' , ' 0000000000 ' , 3 , 0 , 1 , 1 ) ,
( 2 , ' Cash ' , ' 1111111111 ' , 2 , 0 , 1 , 1 ) ;
2017-10-18 12:48:39 +00:00
2020-01-23 11:58:38 +00:00
INSERT INTO ` vn ` . ` deliveryMethod ` ( ` id ` , ` code ` , ` description ` )
VALUES
( 1 , ' AGENCY ' , ' Agencia ' ) ,
( 2 , ' DELIVERY ' , ' Reparto ' ) ,
( 3 , ' PICKUP ' , ' Recogida ' ) ,
( 4 , ' OTHER ' , ' Otros ' ) ;
2018-09-24 10:57:21 +00:00
INSERT INTO ` vn ` . ` agency ` ( ` id ` , ` name ` , ` warehouseFk ` , ` isVolumetric ` , ` bankFk ` , ` warehouseAliasFk ` )
2017-10-18 12:48:39 +00:00
VALUES
2018-10-01 11:46:09 +00:00
( 1 , ' inhouse pickup ' , 1 , 0 , 1 , 1 ) ,
( 2 , ' Super-Man delivery ' , 1 , 0 , 1 , 1 ) ,
( 3 , ' Teleportation device ' , 1 , 0 , 1 , 1 ) ,
( 4 , ' Entanglement ' , 1 , 0 , 1 , 1 ) ,
( 5 , ' Quantum break device ' , 1 , 0 , 1 , 1 ) ,
( 6 , ' Walking ' , 1 , 0 , 1 , 1 ) ,
( 7 , ' Silla247 ' , 1 , 0 , 1 , 1 ) ,
( 8 , ' Silla247Expensive ' , 1 , 0 , 1 , 1 ) ,
2019-06-07 11:07:23 +00:00
( 9 , ' Refund ' , 1 , 0 , 1 , 1 ) ,
( 10 , ' Other agency ' , 1 , 0 , 1 , 1 ) ;
2017-10-18 12:48:39 +00:00
2018-01-26 13:12:41 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 1 WHERE ` name ` = ' inhouse pickup ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 2 WHERE ` name ` = ' Super-Man delivery ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 3 WHERE ` name ` = ' Teleportation device ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 4 WHERE ` name ` = ' Entanglement ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 5 WHERE ` name ` = ' Quantum break device ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 6 WHERE ` name ` = ' Walking ' ;
2018-07-30 13:21:12 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 7 WHERE ` name ` = ' Silla247 ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 8 WHERE ` name ` = ' Silla247Expensive ' ;
2019-06-07 11:07:23 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 23 WHERE ` name ` = ' Refund ' ;
UPDATE ` vn ` . ` agencyMode ` SET ` id ` = 10 WHERE ` name ` = ' Other agency ' ;
2017-10-18 12:48:39 +00:00
2020-03-26 16:41:40 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 3 WHERE ` id ` = 1 ;
2018-07-31 11:49:54 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 1 WHERE ` id ` = 2 ;
2018-06-29 06:32:22 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 2 WHERE ` id ` = 3 ;
2018-07-31 11:49:54 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 1 WHERE ` id ` = 4 ;
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 1 WHERE ` id ` = 5 ;
2018-06-27 06:28:21 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 2 WHERE ` id ` = 6 ;
2018-07-30 13:21:12 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 1 WHERE ` id ` = 7 ;
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 1 WHERE ` id ` = 8 ;
2018-09-21 13:01:51 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 4 WHERE ` id ` = 23 ;
2019-01-15 13:37:15 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` deliveryMethodFk ` = 1 WHERE ` id ` = 10 ;
2018-04-11 12:02:41 +00:00
2019-05-02 09:23:54 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` web ` = 1 ;
2018-07-04 06:30:33 +00:00
2018-09-24 10:57:21 +00:00
UPDATE ` vn ` . ` agencyMode ` SET ` code ` = ' refund ' WHERE ` id ` = 23 ;
2018-01-26 13:12:41 +00:00
INSERT INTO ` vn ` . ` payMethod ` ( ` id ` , ` name ` , ` graceDays ` , ` outstandingDebt ` , ` ibanRequired ` )
2017-10-18 12:48:39 +00:00
VALUES
2017-12-11 11:33:27 +00:00
( 1 , ' PayMethod one ' , 0 , 001 , 0 ) ,
( 2 , ' PayMethod two ' , 10 , 001 , 0 ) ,
( 3 , ' PayMethod three ' , 0 , 001 , 0 ) ,
( 4 , ' PayMethod with IBAN ' , 0 , 001 , 1 ) ,
( 5 , ' PayMethod five ' , 10 , 001 , 0 ) ;
2017-10-18 12:48:39 +00:00
2018-04-11 09:22:09 +00:00
INSERT INTO ` vn ` . ` payDem ` ( ` id ` , ` payDem ` )
VALUES
( 1 , 10 ) ,
( 2 , 20 ) ;
2019-07-29 13:02:43 +00:00
INSERT INTO ` vn ` . ` province ` ( ` id ` , ` name ` , ` countryFk ` , ` warehouseFk ` )
2017-10-18 12:48:39 +00:00
VALUES
2019-07-29 13:02:43 +00:00
( 1 , ' Province one ' , 1 , NULL ) ,
( 2 , ' Province two ' , 1 , NULL ) ,
( 3 , ' Province three ' , 1 , NULL ) ,
2020-01-28 08:03:20 +00:00
( 4 , ' Province four ' , 2 , NULL ) ,
( 5 , ' Province five ' , 13 , NULL ) ;
2017-10-18 12:48:39 +00:00
2019-06-13 11:08:11 +00:00
INSERT INTO ` vn ` . ` town ` ( ` id ` , ` name ` , ` provinceFk ` )
VALUES
( 1 , ' Valencia ' , 1 ) ,
( 2 , ' Silla ' , 1 ) ,
( 3 , ' Algemesi ' , 1 ) ,
2020-03-02 08:30:54 +00:00
( 4 , ' Alzira ' , 1 ) ,
( 5 , ' Quito ' , 5 ) ;
2019-06-13 11:08:11 +00:00
2019-09-04 07:06:08 +00:00
INSERT INTO ` vn ` . ` postCode ` ( ` code ` , ` townFk ` , ` geoFk ` )
2019-06-13 11:08:11 +00:00
VALUES
2019-09-04 07:06:08 +00:00
( ' 46000 ' , 1 , 6 ) ,
( ' 46460 ' , 2 , 6 ) ,
( ' 46680 ' , 3 , 6 ) ,
2020-03-02 08:30:54 +00:00
( ' 46600 ' , 4 , 7 ) ,
( ' EC170150 ' , 5 , 8 ) ;
2019-06-13 11:08:11 +00:00
2018-01-26 13:12:41 +00:00
INSERT INTO ` vn ` . ` clientType ` ( ` id ` , ` code ` , ` type ` )
2017-10-18 12:48:39 +00:00
VALUES
( 1 , ' normal ' , ' Normal ' ) ,
( 2 , ' internalUse ' , ' Autoconsumo ' ) ,
( 3 , ' handMaking ' , ' Confección ' ) ,
( 4 , ' loses ' , ' Mermas ' ) ;
INSERT INTO ` vn ` . ` cplusTerIdNif ` ( ` id ` , ` description ` )
VALUES
( 1 , ' NIF ' ) ;
2018-01-26 13:12:41 +00:00
INSERT INTO ` vn ` . ` contactChannel ` ( ` id ` , ` name ` )
2017-10-18 12:48:39 +00:00
VALUES
( 1 , ' Rumors on the streets ' ) ,
( 2 , ' Metropolis newspaper ' ) ,
( 3 , ' Daily Bugle ' ) ,
( 4 , ' GCN Channel ' ) ,
( 5 , ' The Newspaper ' ) ;
2020-09-11 12:51:58 +00:00
2020-01-17 06:24:57 +00:00
INSERT INTO ` vn ` . ` client ` ( ` id ` , ` name ` , ` fi ` , ` socialName ` , ` contact ` , ` street ` , ` city ` , ` postcode ` , ` phone ` , ` mobile ` , ` fax ` , ` isRelevant ` , ` email ` , ` iban ` , ` dueDay ` , ` accountingAccount ` , ` isEqualizated ` , ` provinceFk ` , ` hasToInvoice ` , ` credit ` , ` countryFk ` , ` isActive ` , ` gestdocFk ` , ` quality ` , ` payMethodFk ` , ` created ` , ` isToBeMailed ` , ` contactChannelFk ` , ` hasSepaVnl ` , ` hasCoreVnl ` , ` hasCoreVnh ` , ` riskCalculated ` , ` clientTypeFk ` , ` mailAddress ` , ` cplusTerIdNifFk ` , ` hasToInvoiceByAddress ` , ` isTaxDataChecked ` , ` isFreezed ` , ` creditInsurance ` , ` isCreatedAsServed ` , ` hasInvoiceSimplified ` , ` salesPersonFk ` , ` isVies ` , ` eypbc ` )
VALUES
( 101 , ' Bruce Wayne ' , ' 84612325V ' , ' Batman ' , ' Alfred ' , ' 1007 Mountain Drive, Gotham ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' BruceWayne@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 0 , NULL , 0 , 0 , 18 , 0 , 1 ) ,
( 102 , ' Petter Parker ' , ' 87945234L ' , ' Spider man ' , ' Aunt May ' , ' 20 Ingram Street ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' PetterParker@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 0 , NULL , 0 , 0 , 18 , 0 , 1 ) ,
( 103 , ' Clark Kent ' , ' 06815934E ' , ' Super man ' , ' lois lane ' , ' 344 Clinton Street ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' ClarkKent@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 0 , 19 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 0 , NULL , 0 , 0 , 18 , 0 , 1 ) ,
( 104 , ' Tony Stark ' , ' 06089160W ' , ' Iron man ' , ' Pepper Potts ' , ' 10880 Malibu Point ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' TonyStark@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 0 , NULL , 0 , 0 , 18 , 0 , 1 ) ,
( 105 , ' Max Eisenhardt ' , ' 251628698 ' , ' Magneto ' , ' Rogue ' , ' Unknown Whereabouts ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' MaxEisenhardt@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 8 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 1 , NULL , 0 , 0 , 18 , 0 , 1 ) ,
( 106 , ' DavidCharlesHaller ' , ' 53136686Q ' , ' Legion ' , ' Charles Xavier ' , ' Evil hideout ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' DavidCharlesHaller@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 0 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 0 , NULL , 0 , 0 , 19 , 0 , 1 ) ,
( 107 , ' Hank Pym ' , ' 09854837G ' , ' Ant man ' , ' Hawk ' , ' Anthill ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' HankPym@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 0 , 0 , NULL , 0 , 0 , 19 , 0 , 1 ) ,
( 108 , ' Charles Xavier ' , ' 22641921P ' , ' Professor X ' , ' Beast ' , ' 3800 Victory Pkwy, Cincinnati, OH 45207, USA ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' CharlesXavier@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 1 , 1 , NULL , 0 , 0 , 19 , 0 , 1 ) ,
( 109 , ' Bruce Banner ' , ' 16104829E ' , ' Hulk ' , ' Black widow ' , ' Somewhere in New York ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' BruceBanner@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 0 , 0 , NULL , 0 , 0 , 19 , 0 , 1 ) ,
( 110 , ' Jessica Jones ' , ' 58282869H ' , ' Jessica Jones ' , ' Luke Cage ' , ' NYCC 2015 Poster ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , ' JessicaJones@mydomain.com ' , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 1 , NULL , 1 , 1 , 0 , 0 , NULL , 0 , 0 , NULL , 0 , 1 ) ,
( 111 , ' Missing ' , NULL , ' Missing man ' , ' Anton ' , ' The space ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , NULL , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 4 , NULL , 1 , 0 , 1 , 0 , NULL , 1 , 0 , NULL , 0 , 1 ) ,
( 112 , ' Trash ' , NULL , ' Garbage man ' , ' Unknown name ' , ' New York city ' , ' Silla ' , 46460 , 1111111111 , 222222222 , 333333333 , 1 , NULL , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1 , 5 , 1 , 1 , 1 , ' 0000-00-00 ' , 4 , NULL , 1 , 0 , 1 , 0 , NULL , 1 , 0 , NULL , 0 , 1 ) ;
2019-12-17 08:11:28 +00:00
INSERT INTO ` vn ` . ` client ` ( ` id ` , ` name ` , ` fi ` , ` socialName ` , ` contact ` , ` street ` , ` city ` , ` postcode ` , ` isRelevant ` , ` email ` , ` iban ` , ` dueDay ` , ` accountingAccount ` , ` isEqualizated ` , ` provinceFk ` , ` hasToInvoice ` , ` credit ` , ` countryFk ` , ` isActive ` , ` gestdocFk ` , ` quality ` , ` payMethodFk ` , ` created ` , ` isTaxDataChecked ` )
SELECT id , name , CONCAT ( RPAD ( CONCAT ( id , 9 ) , 8 , id ) , ' A ' ) , CONCAT ( name , ' Social ' ) , CONCAT ( name , ' Contact ' ) , CONCAT ( name , ' Street ' ) , ' SILLA ' , 46460 , 1 , CONCAT ( name , ' @mydomain.com ' ) , NULL , 0 , 1234567890 , 0 , 1 , 1 , 300 , 1 , 1 , NULL , 10 , 5 , CURDATE ( ) , 1
2019-03-07 06:51:29 +00:00
FROM ` account ` . ` role ` ` r `
WHERE ` r ` . ` hasLogin ` = 1 ;
2018-01-03 11:00:59 +00:00
2018-04-18 11:40:09 +00:00
INSERT INTO ` vn ` . ` clientManaCache ` ( ` clientFk ` , ` mana ` , ` dated ` )
VALUES
2019-05-08 06:48:47 +00:00
( 101 , 50 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 102 , 100 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 103 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 104 , - 30 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ;
2018-04-18 11:40:09 +00:00
2019-03-04 06:57:52 +00:00
INSERT INTO ` vn ` . ` address ` ( ` id ` , ` nickname ` , ` street ` , ` city ` , ` postalCode ` , ` provinceFk ` , ` phone ` , ` mobile ` , ` isActive ` , ` clientFk ` , ` agencyModeFk ` , ` longitude ` , ` latitude ` , ` isEqualizated ` , ` isDefaultAddress ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-10-31 10:05:16 +00:00
( 1 , ' Bruce Wayne ' , ' 1007 Mountain Drive, Gotham ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 101 , 2 , NULL , NULL , 0 , 1 ) ,
( 2 , ' Petter Parker ' , ' 20 Ingram Street ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 102 , 2 , NULL , NULL , 0 , 1 ) ,
( 3 , ' Clark Kent ' , ' 344 Clinton Street ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 103 , 2 , NULL , NULL , 0 , 1 ) ,
( 4 , ' Tony Stark ' , ' 10880 Malibu Point ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 104 , 2 , NULL , NULL , 0 , 1 ) ,
( 5 , ' Max Eisenhardt ' , ' Unknown Whereabouts ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 105 , 2 , NULL , NULL , 0 , 1 ) ,
( 6 , ' DavidCharlesHaller ' , ' Evil hideout ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 106 , 2 , NULL , NULL , 0 , 1 ) ,
( 7 , ' Hank Pym ' , ' Anthill ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 107 , 2 , NULL , NULL , 0 , 1 ) ,
( 8 , ' Charles Xavier ' , ' 3800 Victory Pkwy, Cincinnati, OH 45207, USA ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 108 , 2 , NULL , NULL , 0 , 1 ) ,
( 9 , ' Bruce Banner ' , ' Somewhere in New York ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 1 ) ,
( 10 , ' Jessica Jones ' , ' NYCC 2015 Poster ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 110 , 2 , NULL , NULL , 0 , 1 ) ,
( 11 , ' Missing ' , ' The space ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 111 , 10 , NULL , NULL , 0 , 1 ) ,
( 12 , ' Trash ' , ' New York city ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 112 , 10 , NULL , NULL , 0 , 1 ) ,
( 101 , ' Somewhere in Thailand ' , ' address 01 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 102 , ' Somewhere in Poland ' , ' address 02 ' , ' Silla ' , 46460 , 1 , 3333333333 , 444444444 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 103 , ' Somewhere in Japan ' , ' address 03 ' , ' Silla ' , 46460 , 1 , 3333333333 , 444444444 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 104 , ' Somewhere in Spain ' , ' address 04 ' , ' Silla ' , 46460 , 1 , 3333333333 , 444444444 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 105 , ' Somewhere in Potugal ' , ' address 05 ' , ' Silla ' , 46460 , 1 , 5555555555 , 666666666 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 106 , ' Somewhere in UK ' , ' address 06 ' , ' Silla ' , 46460 , 1 , 5555555555 , 666666666 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 107 , ' Somewhere in Valencia ' , ' address 07 ' , ' Silla ' , 46460 , 1 , 5555555555 , 666666666 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 108 , ' Somewhere in Silla ' , ' address 08 ' , ' Silla ' , 46460 , 1 , 5555555555 , 666666666 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 109 , ' Somewhere in London ' , ' address 09 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 110 , ' Somewhere in Algemesi ' , ' address 10 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 111 , ' Somewhere in Carlet ' , ' address 11 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 112 , ' Somewhere in Campanar ' , ' address 12 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 113 , ' Somewhere in Malilla ' , ' address 13 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 114 , ' Somewhere in France ' , ' address 14 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 115 , ' Somewhere in Birmingham ' , ' address 15 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 116 , ' Somewhere in Scotland ' , ' address 16 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 117 , ' Somewhere in nowhere ' , ' address 17 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 118 , ' Somewhere over the rainbow ' , ' address 18 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 119 , ' Somewhere in Alberic ' , ' address 19 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 120 , ' Somewhere in Montortal ' , ' address 20 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 109 , 2 , NULL , NULL , 0 , 0 ) ,
( 121 , ' the bat cave ' , ' address 21 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 101 , 2 , NULL , NULL , 0 , 0 ) ,
( 122 , ' NY roofs ' , ' address 22 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 102 , 2 , NULL , NULL , 0 , 0 ) ,
( 123 , ' The phone box ' , ' address 23 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 103 , 2 , NULL , NULL , 0 , 0 ) ,
( 124 , ' Stark tower Silla ' , ' address 24 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 104 , 2 , NULL , NULL , 0 , 0 ) ,
( 125 , ' The plastic cell ' , ' address 25 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 105 , 2 , NULL , NULL , 0 , 0 ) ,
( 126 , ' Many places ' , ' address 26 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 106 , 2 , NULL , NULL , 0 , 0 ) ,
( 127 , ' Your pocket ' , ' address 27 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 107 , 2 , NULL , NULL , 0 , 0 ) ,
( 128 , ' Cerebro ' , ' address 28 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 108 , 2 , NULL , NULL , 0 , 0 ) ,
( 129 , ' Luke Cages Bar ' , ' address 29 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 1 , 110 , 2 , NULL , NULL , 0 , 0 ) ,
( 130 , ' Non valid address ' , ' address 30 ' , ' Silla ' , 46460 , 1 , 1111111111 , 222222222 , 0 , 101 , 2 , NULL , NULL , 0 , 0 ) ;
2019-02-28 07:55:34 +00:00
2019-03-07 06:51:29 +00:00
INSERT INTO ` vn ` . ` address ` ( ` nickname ` , ` street ` , ` city ` , ` postalCode ` , ` provinceFk ` , ` isActive ` , ` clientFk ` , ` agencyModeFk ` , ` isDefaultAddress ` )
SELECT name , CONCAT ( name , ' Street ' ) , ' SILLA ' , 46460 , 1 , 1 , id , 2 , 1
FROM ` account ` . ` role ` ` r `
WHERE ` r ` . ` hasLogin ` = 1 ;
2019-02-28 07:55:34 +00:00
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 1 WHERE id = 101 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 2 WHERE id = 102 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 3 WHERE id = 103 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 4 WHERE id = 104 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 5 WHERE id = 105 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 6 WHERE id = 106 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 7 WHERE id = 107 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 8 WHERE id = 108 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 9 WHERE id = 109 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 10 WHERE id = 110 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 11 WHERE id = 200 ;
UPDATE ` vn ` . ` client ` SET defaultAddressFk = 12 WHERE id = 400 ;
2017-10-18 12:48:39 +00:00
2019-05-30 11:45:13 +00:00
DROP TEMPORARY TABLE IF EXISTS tmp . address ;
CREATE TEMPORARY TABLE tmp . address
SELECT * FROM ` vn ` . ` address ` ;
UPDATE ` vn ` . ` client ` ` c `
JOIN ` tmp ` . ` address ` ` a ` ON ` a ` . ` clientFk ` = ` c ` . ` id `
SET ` c ` . ` defaultAddressFk ` = ` a ` . ` id `
WHERE ` defaultAddressFk ` IS NULL ;
DROP TEMPORARY TABLE tmp . address ;
2019-03-07 06:51:29 +00:00
2018-02-07 15:45:40 +00:00
INSERT INTO ` vn ` . ` clientCredit ` ( ` id ` , ` clientFk ` , ` workerFk ` , ` amount ` , ` created ` )
2017-10-18 12:48:39 +00:00
VALUES
2018-08-01 11:24:38 +00:00
( 1 , 101 , 5 , 300 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 2 , 101 , 5 , 900 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) ) ,
( 3 , 101 , 5 , 800 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) ) ,
( 4 , 101 , 5 , 700 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) ) ,
( 5 , 101 , 5 , 600 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 MONTH ) ) ,
( 6 , 101 , 5 , 500 , DATE_ADD ( CURDATE ( ) , INTERVAL - 6 MONTH ) ) ,
( 7 , 101 , 5 , 400 , DATE_ADD ( CURDATE ( ) , INTERVAL - 7 MONTH ) ) ,
( 8 , 101 , 9 , 300 , DATE_ADD ( CURDATE ( ) , INTERVAL - 8 MONTH ) ) ,
( 9 , 101 , 9 , 200 , DATE_ADD ( CURDATE ( ) , INTERVAL - 9 MONTH ) ) ,
2018-03-05 13:59:26 +00:00
( 10 , 101 , 9 , 100 , DATE_ADD ( CURDATE ( ) , INTERVAL - 10 MONTH ) ) ,
2018-08-01 11:24:38 +00:00
( 11 , 101 , 9 , 50 , DATE_ADD ( CURDATE ( ) , INTERVAL - 11 MONTH ) ) ,
2018-03-05 13:59:26 +00:00
( 12 , 102 , 9 , 800 , CURDATE ( ) ) ,
2018-08-01 11:24:38 +00:00
( 14 , 104 , 9 , 90 , CURDATE ( ) ) ,
( 15 , 105 , 9 , 90 , CURDATE ( ) ) ;
2017-10-18 12:48:39 +00:00
2018-02-07 15:45:40 +00:00
INSERT INTO ` vn ` . ` clientCreditLimit ` ( ` id ` , ` maxAmount ` , ` roleFk ` )
2017-10-18 12:48:39 +00:00
VALUES
2018-03-05 13:59:26 +00:00
( 1 , 9999999 , 20 ) ,
( 2 , 10000 , 21 ) ,
( 3 , 600 , 13 ) ;
2017-10-18 12:48:39 +00:00
2018-02-07 15:45:40 +00:00
INSERT INTO ` vn ` . ` clientObservation ` ( ` id ` , ` clientFk ` , ` workerFk ` , ` text ` , ` created ` )
2017-10-18 12:48:39 +00:00
VALUES
2019-03-04 07:13:09 +00:00
( 1 , 101 , 1 , ' Madness, as you know, is like gravity, all it takes is a little push ' , CURDATE ( ) ) ,
( 2 , 102 , 1 , ' With great power, comes great responsibility ' , CURDATE ( ) ) ,
( 3 , 103 , 3 , ' this is a job for Super-Man! ' , CURDATE ( ) ) ,
( 4 , 104 , 3 , ' yes... I am Iron-Man ' , CURDATE ( ) ) ,
( 5 , 105 , 5 , ' They do understand. Our mutant powers make us superior ' , CURDATE ( ) ) ,
( 6 , 106 , 5 , ' My name is Legion, for we are many! ' , CURDATE ( ) ) ,
( 7 , 107 , 9 , ' I think our first move should be calling the Avengers.. ' , CURDATE ( ) ) ,
( 8 , 108 , 9 , ' Just because someone stumbles and loses their path, does not mean they are lost forever. ' , CURDATE ( ) ) ,
2019-12-05 13:20:11 +00:00
( 9 , 109 , 18 , ' HULK SMASH! ... ' , CURDATE ( ) ) ,
( 10 , 110 , 18 , ' They say everyone is born a hero. But if you let it, life will push you over the line until you are the villain. ' , CURDATE ( ) ) ;
2017-10-18 12:48:39 +00:00
2020-10-21 08:13:04 +00:00
INSERT INTO ` vn ` . ` observationType ` ( ` id ` , ` description ` , ` code ` )
2018-02-01 07:32:48 +00:00
VALUES
2020-10-21 08:13:04 +00:00
( 1 , ' observation one ' , ' observation one ' ) ,
( 2 , ' observation two ' , ' observation two ' ) ,
( 3 , ' observation three ' , ' observation three ' ) ,
( 4 , ' comercial ' , ' salesPerson ' ) ,
( 5 , ' delivery ' , ' delivery ' ) ;
2018-02-01 07:32:48 +00:00
2019-03-25 14:16:56 +00:00
INSERT INTO ` vn ` . ` addressObservation ` ( ` id ` , ` addressFk ` , ` observationTypeFk ` , ` description ` )
2018-02-01 07:32:48 +00:00
VALUES
2019-06-19 05:20:02 +00:00
( 1 , 121 , 1 , ' under the floor ' ) ,
( 2 , 121 , 2 , ' wears leather and goes out at night ' ) ,
2020-10-30 09:07:53 +00:00
( 3 , 121 , 3 , ' care with the dog ' ) ,
( 5 , 122 , 5 , ' Delivery after 10am ' ) ;
2018-02-01 07:32:48 +00:00
2017-10-18 12:48:39 +00:00
INSERT INTO ` vn ` . ` creditClassification ` ( ` id ` , ` client ` , ` dateStart ` , ` dateEnd ` )
VALUES
2018-03-05 13:59:26 +00:00
( 1 , 101 , CURDATE ( ) , CURDATE ( ) ) ,
( 2 , 102 , CURDATE ( ) , CURDATE ( ) ) ,
( 3 , 103 , CURDATE ( ) , CURDATE ( ) ) ,
( 4 , 104 , CURDATE ( ) , CURDATE ( ) ) ,
( 5 , 105 , CURDATE ( ) , CURDATE ( ) ) ;
2017-10-18 12:48:39 +00:00
2018-03-06 07:55:54 +00:00
INSERT INTO ` vn ` . ` creditInsurance ` ( ` id ` , ` creditClassification ` , ` credit ` , ` creationDate ` , ` grade ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 1 , 3000 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , NULL ) ,
( 2 , 2 , 6000 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , NULL ) ,
( 3 , 3 , 10000 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , NULL ) ;
2018-03-06 07:55:54 +00:00
2019-11-22 13:34:28 +00:00
INSERT INTO ` vn ` . ` companyGroup ` ( ` id ` , ` code ` )
2017-10-18 12:48:39 +00:00
VALUES
( 1 , ' Wayne Industries ' ) ;
2018-04-13 06:11:40 +00:00
2018-07-30 18:16:25 +00:00
INSERT INTO ` vn ` . ` bankEntity ` ( ` id ` , ` countryFk ` , ` name ` , ` bic ` )
VALUES
2019-05-08 06:48:47 +00:00
( 128 , 1 , ' The Best Bank ' , ' BBKKESMMMMMM ' ) ,
( 2100 , 1 , ' Caixa Bank ' , ' CAIXESBB ' ) ;
2018-07-30 18:16:25 +00:00
2019-03-25 14:16:56 +00:00
INSERT INTO ` vn ` . ` supplierAccount ` ( ` id ` , ` supplierFk ` , ` iban ` , ` bankEntityFk ` )
2018-07-30 18:16:25 +00:00
VALUES
2019-05-08 06:48:47 +00:00
( 241 , 442 , ' ES111122333344111122221111 ' , 128 ) ;
2018-07-30 18:16:25 +00:00
2019-03-25 14:16:56 +00:00
INSERT INTO ` vn ` . ` company ` ( ` id ` , ` code ` , ` supplierAccountFk ` , ` workerManagerFk ` , ` companyCode ` , ` sage200Company ` , ` expired ` )
2018-04-13 06:11:40 +00:00
VALUES
2019-05-08 06:48:47 +00:00
( 69 , ' CCs ' , NULL , 30 , NULL , 0 , NULL ) ,
( 442 , ' VNL ' , 241 , 30 , 2 , 1 , NULL ) ,
( 567 , ' VNH ' , NULL , 30 , NULL , 4 , NULL ) ,
( 791 , ' FTH ' , NULL , 30 , NULL , 3 , ' 2015-11-30 ' ) ,
( 1381 , ' ORN ' , NULL , 30 , NULL , 7 , NULL ) ;
2017-10-18 12:48:39 +00:00
2019-07-24 10:42:33 +00:00
INSERT INTO ` vn ` . ` invoiceOut ` ( ` id ` , ` serial ` , ` amount ` , ` issued ` , ` clientFk ` , ` created ` , ` companyFk ` , ` dued ` , ` booked ` , ` bankFk ` , ` hasPdf ` )
2017-10-18 12:48:39 +00:00
VALUES
2020-01-02 10:10:26 +00:00
( 1 , ' T ' , 1014 . 24 , CURDATE ( ) , 101 , CURDATE ( ) , 442 , CURDATE ( ) , CURDATE ( ) , 1 , 1 ) ,
2019-06-27 10:38:30 +00:00
( 2 , ' T ' , 121 . 36 , CURDATE ( ) , 102 , CURDATE ( ) , 442 , CURDATE ( ) , CURDATE ( ) , 1 , 1 ) ,
( 3 , ' T ' , 8 . 88 , CURDATE ( ) , 103 , CURDATE ( ) , 442 , CURDATE ( ) , CURDATE ( ) , 1 , 1 ) ,
( 4 , ' T ' , 8 . 88 , CURDATE ( ) , 103 , CURDATE ( ) , 442 , CURDATE ( ) , CURDATE ( ) , 1 , 1 ) ,
2020-01-02 10:10:26 +00:00
( 5 , ' A ' , 8 . 88 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 103 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 442 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 1 ) ;
2018-04-16 13:16:30 +00:00
2019-03-25 14:16:56 +00:00
UPDATE ` vn ` . ` invoiceOut ` SET ref = ' T1111111 ' WHERE id = 1 ;
UPDATE ` vn ` . ` invoiceOut ` SET ref = ' T2222222 ' WHERE id = 2 ;
UPDATE ` vn ` . ` invoiceOut ` SET ref = ' T3333333 ' WHERE id = 3 ;
UPDATE ` vn ` . ` invoiceOut ` SET ref = ' T4444444 ' WHERE id = 4 ;
UPDATE ` vn ` . ` invoiceOut ` SET ref = ' A1111111 ' WHERE id = 5 ;
2019-03-28 10:55:23 +00:00
INSERT INTO ` vn ` . ` invoiceOutTax ` ( ` invoiceOutFk ` , ` taxableBase ` , ` vat ` , ` pgcFk ` )
VALUES
2019-07-30 09:57:28 +00:00
( 1 , 895 . 76 , 89 . 58 , 4722000010 ) ,
( 1 , 33 . 80 , 7 . 10 , 4722000021 ) ,
( 2 , 110 . 33 , 11 . 03 , 4770000010 ) ,
( 3 , 8 . 07 , 0 . 81 , 4770000010 ) ,
( 4 , 8 . 07 , 0 . 81 , 4770000010 ) ,
( 5 , 8 . 07 , 0 . 81 , 4770000010 ) ;
2019-06-27 10:38:30 +00:00
2019-07-29 09:37:44 +00:00
INSERT INTO ` vn ` . ` expence ` ( ` id ` , ` taxTypeFk ` , ` name ` , ` isWithheld ` )
VALUES
( 2000000000 , 1 , ' Inmovilizado pendiente ' , 0 ) ,
( 2000000000 , 3 , ' Compra de bienes de inmovilizado ' , 0 ) ,
( 4751000000 , 0 , ' Retenciones ' , 1 ) ,
( 4751000000 , 1 , ' Retenciones ' , 1 ) ,
( 4751000000 , 6 , ' Retencion ' , 0 ) ,
( 6210000567 , 0 , ' Alquiler VNH ' , 0 ) ,
2020-10-01 14:45:28 +00:00
( 7001000000 , 1 , ' Mercaderia ' , 0 ) ,
( 7050000000 , 1 , ' Prestacion de servicios ' , 1 ) ;
2019-07-29 09:37:44 +00:00
2019-07-01 09:56:16 +00:00
INSERT INTO ` vn ` . ` invoiceOutExpence ` ( ` id ` , ` invoiceOutFk ` , ` amount ` , ` expenceFk ` , ` created ` )
2019-06-27 10:38:30 +00:00
VALUES
( 1 , 1 , 813 . 06 , 2000000000 , CURDATE ( ) ) ,
( 2 , 1 , 33 . 80 , 4751000000 , CURDATE ( ) ) ,
( 3 , 1 , 70 . 70 , 6210000567 , CURDATE ( ) ) ,
( 4 , 2 , 110 . 33 , 2000000000 , CURDATE ( ) ) ,
( 5 , 3 , 8 . 07 , 2000000000 , CURDATE ( ) ) ,
( 6 , 4 , 8 . 07 , 2000000000 , CURDATE ( ) ) ,
( 7 , 5 , 8 . 07 , 2000000000 , CURDATE ( ) ) ;
2019-03-25 14:16:56 +00:00
2019-04-29 09:40:54 +00:00
INSERT INTO ` vn ` . ` taxArea ` ( ` code ` , ` claveOperacionFactura ` , ` CodigoTransaccion ` )
VALUES
2019-05-08 06:48:47 +00:00
( ' CEE ' , 1 , 10 ) ,
( ' EQU ' , 0 , 1 ) ,
( ' NATIONAL ' , 0 , 1 ) ,
( ' WORLD ' , 2 , 15 ) ;
2019-04-29 09:40:54 +00:00
INSERT INTO ` vn ` . ` invoiceOutSerial ` ( ` code ` , ` description ` , ` isTaxed ` , ` taxAreaFk ` , ` isCEE ` )
VALUES
( ' A ' , ' Global nacional ' , 1 , ' NATIONAL ' , 0 ) ,
( ' T ' , ' Española rapida ' , 1 , ' NATIONAL ' , 0 ) ,
( ' V ' , ' Intracomunitaria global ' , 0 , ' CEE ' , 1 ) ;
2020-01-27 08:45:13 +00:00
INSERT INTO ` vn ` . ` zone ` ( ` id ` , ` name ` , ` hour ` , ` agencyModeFk ` , ` travelingDays ` , ` price ` , ` bonus ` , ` m3Max ` )
2019-07-05 12:16:33 +00:00
VALUES
2020-03-23 22:57:11 +00:00
( 1 , ' Zone pickup A ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 1 , 0 , 0 , 0 , 30 . 50 ) ,
( 2 , ' Zone pickup B ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 1 , 0 , 0 , 0 , 30 . 50 ) ,
( 3 , ' Zone 247 A ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 7 , 1 , 2 , 0 , 40 . 50 ) ,
( 4 , ' Zone 247 B ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 7 , 1 , 2 , 0 , 40 . 50 ) ,
( 5 , ' Zone expensive A ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 8 , 1 , 1000 , 0 , 50 . 50 ) ,
( 6 , ' Zone expensive B ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 8 , 1 , 1000 , 0 , 50 . 50 ) ,
( 7 , ' Zone refund ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 23 , 0 , 0 , 0 , 60 . 50 ) ,
( 8 , ' Zone others ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 10 , 0 , 0 , 0 , 60 . 50 ) ,
( 9 , ' Zone superMan ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 2 , 0 , 0 , 0 , NULL ) ,
( 10 , ' Zone teleportation ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 3 , 0 , 0 , 0 , NULL ) ,
( 11 , ' Zone pickup C ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 1 , 0 , 0 , 0 , NULL ) ,
( 12 , ' Zone entanglement ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 4 , 0 , 0 , 0 , NULL ) ,
( 13 , ' Zone quantum break ' , CONCAT ( CURRENT_DATE ( ) , ' ' , TIME ( ' 23:59 ' ) ) , 5 , 0 , 0 , 0 , NULL ) ;
2019-07-05 12:16:33 +00:00
2019-10-31 11:54:16 +00:00
INSERT INTO ` vn ` . ` zoneWarehouse ` ( ` id ` , ` zoneFk ` , ` warehouseFk ` )
VALUES
( 1 , 1 , 1 ) ,
( 2 , 2 , 2 ) ,
( 3 , 3 , 1 ) ,
( 4 , 4 , 2 ) ,
( 5 , 5 , 1 ) ,
( 6 , 6 , 2 ) ,
( 7 , 7 , 1 ) ,
( 8 , 8 , 1 ) ,
( 9 , 9 , 1 ) ,
( 10 , 10 , 3 ) ,
( 11 , 11 , 5 ) ,
( 12 , 12 , 4 ) ,
( 13 , 13 , 5 ) ;
2020-07-02 05:46:55 +00:00
INSERT INTO ` vn ` . ` zoneClosure ` ( ` zoneFk ` , ` dated ` , ` hour ` )
VALUES
( 1 , CURDATE ( ) , ' 23:59 ' ) ,
( 2 , CURDATE ( ) , ' 23:59 ' ) ,
( 3 , CURDATE ( ) , ' 23:59 ' ) ,
( 4 , CURDATE ( ) , ' 23:59 ' ) ,
( 5 , CURDATE ( ) , ' 23:59 ' ) ,
( 6 , CURDATE ( ) , ' 23:59 ' ) ,
( 7 , CURDATE ( ) , ' 23:59 ' ) ,
( 8 , CURDATE ( ) , ' 23:59 ' ) ,
( 9 , CURDATE ( ) , ' 23:59 ' ) ,
( 10 , CURDATE ( ) , ' 23:59 ' ) ,
( 11 , CURDATE ( ) , ' 23:59 ' ) ,
( 12 , CURDATE ( ) , ' 23:59 ' ) ,
( 13 , CURDATE ( ) , ' 23:59 ' ) ;
2020-02-20 14:15:50 +00:00
INSERT INTO ` vn ` . ` zoneConfig ` ( ` scope ` ) VALUES ( ' 1 ' ) ;
2019-10-31 11:54:16 +00:00
2019-10-17 12:30:52 +00:00
INSERT INTO ` vn ` . ` route ` ( ` id ` , ` time ` , ` workerFk ` , ` created ` , ` vehicleFk ` , ` agencyModeFk ` , ` description ` , ` m3 ` , ` cost ` , ` started ` , ` finished ` , ` zoneFk ` )
VALUES
( 1 , ' 1899-12-30 12:15:00 ' , 56 , CURDATE ( ) , 1 , 1 , ' first route ' , 1 . 8 , 10 , CURDATE ( ) , CURDATE ( ) , 1 ) ,
( 2 , ' 1899-12-30 13:20:00 ' , 56 , CURDATE ( ) , 1 , 2 , ' second route ' , 0 . 2 , 20 , CURDATE ( ) , CURDATE ( ) , 9 ) ,
( 3 , ' 1899-12-30 14:30:00 ' , 56 , CURDATE ( ) , 2 , 3 , ' third route ' , 0 . 5 , 30 , CURDATE ( ) , CURDATE ( ) , 10 ) ,
( 4 , ' 1899-12-30 15:45:00 ' , 56 , CURDATE ( ) , 3 , 4 , ' fourth route ' , 0 , 40 , CURDATE ( ) , CURDATE ( ) , 12 ) ,
( 5 , ' 1899-12-30 16:00:00 ' , 56 , CURDATE ( ) , 4 , 5 , ' fifth route ' , 0 . 1 , 50 , CURDATE ( ) , CURDATE ( ) , 13 ) ,
( 6 , NULL , 57 , CURDATE ( ) , 5 , 7 , ' sixth route ' , 1 . 7 , 60 , CURDATE ( ) , CURDATE ( ) , 3 ) ,
( 7 , NULL , 57 , CURDATE ( ) , 6 , 8 , ' seventh route ' , 0 , 70 , CURDATE ( ) , CURDATE ( ) , 5 ) ;
2020-09-11 12:51:58 +00:00
INSERT INTO ` vn ` . ` ticket ` ( ` id ` , ` priority ` , ` agencyModeFk ` , ` warehouseFk ` , ` routeFk ` , ` shipped ` , ` landed ` , ` clientFk ` , ` nickname ` , ` addressFk ` , ` refFk ` , ` isDeleted ` , ` zoneFk ` , ` zonePrice ` , ` zoneBonus ` , ` created ` )
VALUES
( 1 , 3 , 1 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , INTERVAL + 1 DAY ) , 101 , ' Bat cave ' , 121 , ' T1111111 ' , 0 , 1 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 2 , 1 , 1 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , INTERVAL + 1 DAY ) , 104 , ' Stark tower ' , 124 , ' T1111111 ' , 0 , 1 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 3 , 1 , 7 , 1 , 6 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , INTERVAL + 1 DAY ) , 104 , ' Stark tower ' , 124 , ' T2222222 ' , 0 , 3 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) ) ,
( 4 , 3 , 2 , 1 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , INTERVAL + 1 DAY ) , 104 , ' Stark tower ' , 124 , ' T3333333 ' , 0 , 9 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) ) ,
( 5 , 3 , 3 , 3 , 3 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , INTERVAL + 1 DAY ) , 104 , ' Stark tower ' , 124 , ' T4444444 ' , 0 , 10 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) ) ,
( 6 , 1 , 3 , 3 , 3 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , INTERVAL + 1 DAY ) , 101 , ' Mountain Drive Gotham ' , 1 , ' A1111111 ' , 0 , 10 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 7 , NULL , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 101 , ' Mountain Drive Gotham ' , 1 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 8 , NULL , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 101 , ' Bat cave ' , 121 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 9 , NULL , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 104 , ' Stark tower ' , 124 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 10 , 1 , 1 , 5 , 1 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 102 , ' Ingram Street ' , 2 , NULL , 0 , 1 , 5 , 1 , CURDATE ( ) ) ,
( 11 , 1 , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 102 , ' NY roofs ' , 122 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 12 , 1 , 1 , 1 , 1 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 103 , ' Phone Box ' , 123 , NULL , 0 , 1 , 5 , 1 , CURDATE ( ) ) ,
( 13 , 1 , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 103 , ' Phone Box ' , 123 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 14 , 1 , 2 , 1 , NULL , CURDATE ( ) , CURDATE ( ) , 104 , ' Malibu Point ' , 4 , NULL , 0 , 9 , 5 , 1 , CURDATE ( ) ) ,
( 15 , 1 , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 105 , ' An incredibly long alias for testing purposes ' , 125 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 16 , 1 , 7 , 1 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 106 , ' Many Places ' , 126 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 17 , 1 , 7 , 2 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 106 , ' Many Places ' , 126 , NULL , 0 , 3 , 5 , 1 , CURDATE ( ) ) ,
( 18 , 1 , 4 , 4 , 4 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 108 , ' Cerebro ' , 128 , NULL , 0 , 12 , 5 , 1 , CURDATE ( ) ) ,
( 19 , 1 , 5 , 5 , NULL , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 109 , ' Somewhere in Thailand ' , 129 , NULL , 1 , NULL , 5 , 1 , CURDATE ( ) ) ,
( 20 , 1 , 5 , 5 , 3 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , INTERVAL + 1 DAY ) , 109 , ' Somewhere in Thailand ' , 129 , NULL , 0 , 13 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 21 , NULL , 5 , 5 , 5 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , INTERVAL + 1 DAY ) , 109 , ' Somewhere in Holland ' , 102 , NULL , 0 , 13 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 22 , NULL , 5 , 5 , 5 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , INTERVAL + 1 DAY ) , 109 , ' Somewhere in Japan ' , 103 , NULL , 0 , 13 , 5 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 23 , NULL , 8 , 1 , 7 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 101 , ' address 21 ' , 121 , NULL , 0 , 5 , 5 , 1 , CURDATE ( ) ) ,
( 24 , NULL , 8 , 1 , 7 , CURDATE ( ) , CURDATE ( ) , 101 , ' Bruce Wayne ' , 1 , NULL , 0 , 5 , 5 , 1 , CURDATE ( ) ) ;
2019-06-20 12:42:47 +00:00
2018-03-12 12:55:18 +00:00
INSERT INTO ` vn ` . ` ticketObservation ` ( ` id ` , ` ticketFk ` , ` observationTypeFk ` , ` description ` )
VALUES
2019-07-01 09:56:16 +00:00
( 1 , 11 , 1 , ' ready ' ) ,
( 2 , 2 , 2 , ' do it fast please ' ) ,
( 3 , 3 , 3 , ' Faster faster fasteeeeeer!!! ' ) ,
( 4 , 4 , 3 , ' Deliver before 8am ' ) ,
( 5 , 13 , 3 , ' You can run from the disappointments you are trying to forget. But its only when you embrace your past that you truly move forward. Maybe I never get to go home again, but I found my way there. And I am glad I did. ' ) ,
( 6 , 14 , 3 , ' Careful, armed warhead ' ) ,
( 7 , 23 , 1 , ' under the floor ' ) ,
( 8 , 23 , 2 , ' wears leather and goes out at night ' ) ,
( 9 , 23 , 3 , ' care with the dog ' ) ,
( 10 , 23 , 4 , ' Reclama ticket: 8 ' ) ,
2020-10-30 09:07:53 +00:00
( 11 , 24 , 4 , ' Reclama ticket: 7 ' ) ,
( 12 , 11 , 5 , ' Delivery after 10am ' ) ;
2018-03-12 12:55:18 +00:00
2020-03-27 08:10:30 +00:00
-- FIX for state hours on local, inter_afterInsert
UPDATE vncontrol . inter SET odbc_date = DATE_ADD ( CURDATE ( ) , INTERVAL - 10 SECOND ) ;
2019-12-16 07:48:12 +00:00
INSERT INTO ` vn ` . ` ticketTracking ` ( ` ticketFk ` , ` stateFk ` , ` workerFk ` , ` created ` )
VALUES
2020-03-04 08:26:12 +00:00
( 1 , 16 , 5 , DATE_ADD ( NOW ( ) , INTERVAL - 1 MONTH ) ) ,
( 2 , 16 , 5 , DATE_ADD ( NOW ( ) , INTERVAL - 1 MONTH ) ) ,
( 3 , 16 , 5 , DATE_ADD ( NOW ( ) , INTERVAL - 2 MONTH ) ) ,
( 4 , 16 , 5 , DATE_ADD ( NOW ( ) , INTERVAL - 3 MONTH ) ) ,
( 5 , 16 , 18 , DATE_ADD ( NOW ( ) , INTERVAL - 4 MONTH ) ) ,
( 6 , 16 , 18 , DATE_ADD ( NOW ( ) , INTERVAL - 1 MONTH ) ) ,
( 7 , 10 , 18 , NOW ( ) ) ,
( 8 , 5 , 19 , NOW ( ) ) ,
( 9 , 5 , 19 , NOW ( ) ) ,
( 10 , 5 , 19 , NOW ( ) ) ,
( 11 , 3 , 19 , NOW ( ) ) ,
( 12 , 3 , 19 , NOW ( ) ) ,
( 13 , 3 , 19 , NOW ( ) ) ,
( 14 , 3 , 19 , NOW ( ) ) ,
2020-08-20 06:45:03 +00:00
( 15 , 2 , 19 , NOW ( ) ) ,
2020-03-04 08:26:12 +00:00
( 16 , 3 , 19 , NOW ( ) ) ,
2020-08-20 06:45:03 +00:00
( 17 , 2 , 19 , NOW ( ) ) ,
( 18 , 2 , 19 , NOW ( ) ) ,
( 19 , 2 , 19 , NOW ( ) ) ,
2020-03-04 08:26:12 +00:00
( 20 , 1 , 19 , DATE_ADD ( NOW ( ) , INTERVAL + 1 MONTH ) ) ,
( 21 , 1 , 19 , DATE_ADD ( NOW ( ) , INTERVAL + 1 MONTH ) ) ,
( 22 , 1 , 19 , DATE_ADD ( NOW ( ) , INTERVAL + 1 MONTH ) ) ,
( 23 , 16 , 21 , NOW ( ) ) ,
( 24 , 16 , 21 , NOW ( ) ) ;
2017-10-18 12:48:39 +00:00
2019-01-16 12:03:49 +00:00
INSERT INTO ` vn ` . ` stowaway ` ( ` id ` , ` shipFk ` , ` created ` )
VALUES
2019-06-19 07:03:45 +00:00
( 12 , 13 , CURDATE ( ) ) ;
2019-01-16 12:03:49 +00:00
2019-12-10 11:42:14 +00:00
INSERT INTO ` vn ` . ` deliveryPoint ` ( ` id ` , ` name ` , ` ubication ` )
2017-10-18 12:48:39 +00:00
VALUES
2019-12-10 11:42:14 +00:00
( 1 , ' Silla ' , ' 46460 Av Espioca 100-Silla ' ) ;
INSERT INTO ` vn ` . ` vehicle ` ( ` id ` , ` numberPlate ` , ` tradeMark ` , ` model ` , ` companyFk ` , ` warehouseFk ` , ` description ` , ` m3 ` , ` isActive ` , ` deliveryPointFk ` )
VALUES
( 1 , ' 3333-BAT ' , ' WAYNE INDUSTRIES ' , ' BATMOBILE ' , 442 , 1 , ' The ultimate war machine ' , 50 , 1 , 1 ) ,
( 2 , ' 1111-IMK ' , ' STARK INDUSTRIES ' , ' MARK-III ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-III ' , 18 , 1 , 1 ) ,
( 3 , ' 2222-IMK ' , ' STARK INDUSTRIES ' , ' MARK-VI ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-VI ' , 16 , 1 , 1 ) ,
( 4 , ' 3333-IMK ' , ' STARK INDUSTRIES ' , ' MARK-VII ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-VII ' , 14 , 1 , 1 ) ,
( 5 , ' 4444-IMK ' , ' STARK INDUSTRIES ' , ' MARK-XLII ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-XLII ' , 13 , 1 , 1 ) ,
( 6 , ' 5555-IMK ' , ' STARK INDUSTRIES ' , ' MARK-XLV ' , 442 , 1 , ' Iron-Man Heavy Armor MARK-XLV ' , 12 , 0 , 1 ) ;
2017-10-18 12:48:39 +00:00
2019-11-19 12:40:29 +00:00
INSERT INTO ` vn ` . ` config ` ( ` id ` , ` mdbServer ` , ` fakeEmail ` , ` defaultersMaxAmount ` , ` inventoried ` )
2017-10-18 12:48:39 +00:00
VALUES
2019-11-19 12:40:29 +00:00
( 1 , ' beta-server ' , ' nightmare@mydomain.com ' , ' 200 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ;
2018-01-04 10:43:28 +00:00
2019-11-21 06:24:31 +00:00
INSERT INTO ` vn ` . ` greugeType ` ( ` id ` , ` name ` , ` code ` )
2018-01-04 10:43:28 +00:00
VALUES
2019-11-21 06:24:31 +00:00
( 1 , ' Diff ' , ' diff ' ) ,
( 2 , ' Recover ' , ' recover ' ) ,
( 3 , ' Mana ' , ' mana ' ) ,
( 4 , ' Reclaim ' , ' reclaim ' ) ,
( 5 , ' Heritage ' , ' heritage ' ) ,
2019-12-20 09:59:17 +00:00
( 6 , ' Miscellaneous ' , ' miscellaneous ' ) ,
( 7 , ' Freight Pickup ' , ' freightPickUp ' ) ;
2018-01-04 10:43:28 +00:00
INSERT INTO ` vn ` . ` greuge ` ( ` id ` , ` clientFk ` , ` description ` , ` amount ` , ` shipped ` , ` created ` , ` greugeTypeFk ` , ` ticketFk ` )
VALUES
2019-06-14 10:27:41 +00:00
( 1 , 101 , ' some diff charges ' , - 19 . 99 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 1 , 1 ) ,
( 2 , 101 , ' more diff charges ' , 60 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 2 , 1 ) ,
( 3 , 101 , ' even more! diff charges ' , - 9 . 99 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 3 , 1 ) ,
( 4 , 101 , ' insane diff charges ' , 60 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 4 , 1 ) ,
( 5 , 101 , ' gargantuous diff charges ' , - 9 . 99 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 5 , 1 ) ,
( 6 , 101 , ' diff charges ' , 88 . 30 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 6 , 1 ) ,
( 7 , 101 , ' unaffordable diff charges ' , - 39 . 12 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 1 , 1 ) ,
( 8 , 101 , ' some recovery charges ' , 29 . 35 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 2 , 1 ) ,
( 9 , 101 , ' some manna charges ' , - 9 . 99 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 3 , 1 ) ,
( 10 , 101 , ' some claim charges ' , 13 . 13 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 4 , 1 ) ,
( 11 , 101 , ' some heritage charges ' , - 15 . 99 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 5 , 1 ) ,
( 12 , 101 , ' some miscellaneous charges ' , 58 . 00 , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , CURDATE ( ) , 6 , 1 ) ;
2018-01-04 11:33:25 +00:00
INSERT INTO ` vn ` . ` mandateType ` ( ` id ` , ` name ` )
VALUES
( 1 , ' B2B ' ) ,
2019-05-08 08:42:26 +00:00
( 2 , ' CORE ' ) ,
( 3 , ' LCR ' ) ;
2018-01-04 11:33:25 +00:00
INSERT INTO ` vn ` . ` mandate ` ( ` id ` , ` clientFk ` , ` companyFk ` , ` code ` , ` created ` , ` mandateTypeFk ` )
VALUES
2018-03-05 13:59:26 +00:00
( 1 , 102 , 442 , ' 1-1 ' , CURDATE ( ) , 2 ) ;
2018-01-04 11:33:25 +00:00
2019-11-26 13:15:43 +00:00
INSERT INTO ` vn ` . ` itemCategory ` ( ` id ` , ` name ` , ` display ` , ` color ` , ` icon ` , ` code ` )
2018-01-24 07:06:49 +00:00
VALUES
2019-11-26 13:15:43 +00:00
( 1 , ' Plant ' , 1 , ' B92A26 ' , ' icon-plant ' , ' plant ' ) ,
( 2 , ' Flower ' , 2 , ' dcf711 ' , ' icon-flower ' , ' flower ' ) ,
( 3 , ' Logistic ' , 0 , ' b9f711 ' , NULL , ' logistical ' ) ,
( 4 , ' Handmade ' , 1 , NULL , ' icon-handmade ' , ' handmade ' ) ,
( 5 , ' Artificial ' , 1 , NULL , ' icon-artificial ' , ' artificial ' ) ,
( 6 , ' Green ' , 1 , NULL , ' icon-greenery ' , ' greenery ' ) ,
( 7 , ' Accessories ' , 1 , NULL , ' icon-accessory ' , ' accessory ' ) ,
( 8 , ' Fruit ' , 1 , NULL , ' icon-fruit ' , ' fruit ' ) ;
2018-01-24 07:06:49 +00:00
2018-08-06 18:10:39 +00:00
INSERT INTO ` vn ` . ` itemType ` ( ` id ` , ` code ` , ` name ` , ` categoryFk ` , ` life ` , ` workerFk ` , ` isPackaging ` )
2018-01-24 07:06:49 +00:00
VALUES
2020-06-12 07:18:19 +00:00
( 1 , ' CRI ' , ' Crisantemo ' , 2 , 31 , 35 , 0 ) ,
( 2 , ' ITG ' , ' Anthurium ' , 1 , 31 , 35 , 0 ) ,
( 3 , ' WPN ' , ' Paniculata ' , 2 , 31 , 35 , 0 ) ,
( 4 , ' PRT ' , ' Delivery ports ' , 3 , NULL , 35 , 1 ) ,
( 5 , ' CON ' , ' Container ' , 3 , NULL , 35 , 1 ) ,
( 6 , ' ALS ' , ' Alstroemeria ' , 1 , 31 , 35 , 0 ) ;
2018-02-19 08:42:40 +00:00
2020-09-09 11:49:03 +00:00
INSERT INTO ` vn ` . ` ink ` ( ` id ` , ` name ` , ` picture ` , ` showOrder ` , ` hex ` )
2018-01-24 07:06:49 +00:00
VALUES
2020-09-10 09:34:32 +00:00
( ' YEL ' , ' Yellow ' , 1 , 1 , ' F4D03F ' ) ,
( ' BLU ' , ' Blue ' , 1 , 2 , ' 5DADE2 ' ) ,
( ' RED ' , ' Red ' , 1 , 3 , ' EC7063 ' ) ,
( ' SLV ' , ' Silver ' , 1 , 4 , ' CACFD2 ' ) ,
( ' BRW ' , ' Brown ' , 1 , 5 , ' DC7633 ' ) ;
2018-01-24 07:06:49 +00:00
INSERT INTO ` vn ` . ` origin ` ( ` id ` , ` code ` , ` name ` )
VALUES
2018-02-01 07:32:48 +00:00
( 1 , ' SPA ' , ' Spain ' ) ,
( 2 , ' HOL ' , ' Holand ' ) ,
( 3 , ' VLC ' , ' Valencia ' ) ;
2018-01-24 07:06:49 +00:00
INSERT INTO ` vn ` . ` producer ` ( ` id ` , ` name ` )
VALUES
2018-02-01 07:32:48 +00:00
( 1 , ' Marvel Studios ' ) ,
( 2 , ' Nordic Mythology ' ) ;
2018-01-24 07:06:49 +00:00
INSERT INTO ` vn ` . ` taxType ` ( ` id ` , ` nickname ` , ` isAccrued ` , ` serial ` , ` TIPOOPE ` , ` description ` , ` countryFk ` )
VALUES
2018-08-01 11:24:38 +00:00
( 1 , ' National ' , 1 , ' R ' , ' I ' , ' national VAT ' , 1 ) ,
2019-05-08 06:48:47 +00:00
( 2 , ' European ' , 0 , ' E ' , ' I ' , ' europe VAT ' , 1 ) ;
2018-01-24 07:06:49 +00:00
INSERT INTO ` vn ` . ` taxCode ` ( ` id ` , ` dated ` , ` code ` , ` taxTypeFk ` , ` rate ` , ` equalizationTax ` , ` type ` , ` link ` , ` isActive ` , ` updated ` , ` transactionCode ` )
VALUES
2018-08-01 11:24:38 +00:00
( 1 , CURDATE ( ) , ' 1111111111 ' , 1 , 7 . 0 , 0 . 0 , ' R ' , 1 , 1 , CURDATE ( ) , 1 ) ,
( 2 , CURDATE ( ) , ' 2222222222 ' , 2 , 16 . 0 , 0 . 0 , ' G ' , 2 , 1 , CURDATE ( ) , 1 ) ,
2019-05-08 06:48:47 +00:00
( 21 , CURDATE ( ) , ' 3333333333 ' , 1 , 7 . 0 , 0 . 0 , ' R ' , 3 , 1 , CURDATE ( ) , 1 ) ,
2018-07-24 09:32:10 +00:00
( 108 , CURDATE ( ) , ' 4444444444 ' , 2 , 8 . 0 , 0 . 0 , ' R ' , 4 , 1 , CURDATE ( ) , 1 ) ;
2018-01-24 07:06:49 +00:00
INSERT INTO ` vn ` . ` taxClass ` ( ` id ` , ` description ` , ` code ` )
VALUES
2020-02-17 11:47:03 +00:00
( 1 , ' Reduced VAT ' , ' R ' ) ,
2018-02-01 07:32:48 +00:00
( 2 , ' General VAT ' , ' G ' ) ;
2020-02-17 11:47:03 +00:00
2020-02-18 06:21:35 +00:00
INSERT INTO ` vn ` . ` taxClassCode ` ( ` taxClassFk ` , ` effectived ` , ` taxCodeFk ` )
2020-02-17 11:47:03 +00:00
VALUES
2020-02-18 06:21:35 +00:00
( 1 , CURDATE ( ) , 1 ) ,
( 1 , CURDATE ( ) , 21 ) ,
( 2 , CURDATE ( ) , 2 ) ;
2018-01-24 07:06:49 +00:00
INSERT INTO ` vn ` . ` intrastat ` ( ` id ` , ` description ` , ` taxClassFk ` , ` taxCodeFk ` )
VALUES
2019-05-08 06:48:47 +00:00
( 05080000 , ' Coral y materiales similares ' , 2 , 2 ) ,
2018-02-16 12:01:04 +00:00
( 06021010 , ' Plantas vivas: Esqueje/injerto, Vid ' , 1 , 1 ) ;
2018-01-24 07:06:49 +00:00
2020-08-27 15:54:43 +00:00
INSERT INTO ` vn ` . ` item ` ( ` id ` , ` typeFk ` , ` size ` , ` inkFk ` , ` stems ` , ` originFk ` , ` description ` , ` producerFk ` , ` intrastatFk ` , ` isOnOffer ` , ` expenceFk ` , ` isBargain ` , ` comment ` , ` relevancy ` , ` image ` , ` taxClassFk ` , ` subName ` , ` minPrice ` )
VALUES
2020-09-04 10:40:23 +00:00
( 1 , 2 , 70 , ' YEL ' , 1 , 1 , NULL , 1 , 06021010 , 0 , 2000000000 , 0 , NULL , 0 , 67 , 1 , NULL , 0 ) ,
( 2 , 2 , 70 , ' BLU ' , 1 , 2 , NULL , 1 , 06021010 , 0 , 2000000000 , 0 , NULL , 0 , 66 , 1 , NULL , 0 ) ,
( 3 , 1 , 60 , ' YEL ' , 1 , 3 , NULL , 1 , 05080000 , 0 , 4751000000 , 0 , NULL , 0 , 65 , 1 , NULL , 0 ) ,
( 4 , 1 , 60 , ' YEL ' , 1 , 1 , ' Increases block ' , 1 , 05080000 , 1 , 4751000000 , 0 , NULL , 0 , 69 , 2 , NULL , 0 ) ,
( 5 , 3 , 30 , ' RED ' , 1 , 2 , NULL , 2 , 06021010 , 1 , 4751000000 , 0 , NULL , 0 , 74 , 2 , NULL , 0 ) ,
( 6 , 5 , 30 , ' RED ' , 1 , 2 , NULL , NULL , 06021010 , 0 , 4751000000 , 0 , NULL , 0 , 62 , 2 , NULL , 0 ) ,
( 7 , 5 , 90 , ' BLU ' , 1 , 2 , NULL , NULL , 06021010 , 0 , 4751000000 , 0 , NULL , 0 , 64 , 2 , NULL , 0 ) ,
( 8 , 2 , 70 , ' YEL ' , 1 , 1 , NULL , 1 , 06021010 , 0 , 2000000000 , 0 , NULL , 0 , 75 , 1 , NULL , 0 ) ,
( 9 , 2 , 70 , ' BLU ' , 1 , 2 , NULL , 1 , 06021010 , 0 , 2000000000 , 0 , NULL , 0 , 76 , 1 , NULL , 0 ) ,
( 10 , 1 , 60 , ' YEL ' , 1 , 3 , NULL , 1 , 05080000 , 0 , 4751000000 , 0 , NULL , 0 , 77 , 1 , NULL , 0 ) ,
( 11 , 1 , 60 , ' YEL ' , 1 , 1 , NULL , 1 , 05080000 , 1 , 4751000000 , 0 , NULL , 0 , 78 , 2 , NULL , 0 ) ,
( 12 , 3 , 30 , ' RED ' , 1 , 2 , NULL , 2 , 06021010 , 1 , 4751000000 , 0 , NULL , 0 , 82 , 2 , NULL , 0 ) ,
( 13 , 5 , 30 , ' RED ' , 1 , 2 , NULL , NULL , 06021010 , 0 , 4751000000 , 0 , NULL , 0 , 83 , 2 , NULL , 0 ) ,
( 14 , 5 , 90 , ' BLU ' , 1 , 2 , NULL , NULL , 06021010 , 0 , 4751000000 , 0 , NULL , 0 , 84 , 2 , NULL , 0 ) ,
2020-09-25 12:50:04 +00:00
( 15 , 4 , NULL , NULL , NULL , 1 , NULL , NULL , 06021010 , 0 , 4751000000 , 0 , NULL , 0 , 88 , 2 , NULL , 0 ) ,
( 16 , 4 , NULL , NULL , NULL , 1 , NULL , NULL , 06021010 , 0 , 4751000000 , 0 , NULL , 0 , 88 , 2 , NULL , 0 ) ,
2020-09-02 13:20:28 +00:00
( 71 , 4 , NULL , NULL , NULL , 1 , NULL , NULL , 06021010 , 1 , 4751000000 , 0 , NULL , 0 , 88 , 2 , NULL , 0 ) ;
2018-01-24 07:06:49 +00:00
2020-09-25 12:50:04 +00:00
INSERT INTO ` vn ` . ` priceFixed ` ( ` id ` , ` itemFk ` , ` rate0 ` , ` rate1 ` , ` rate2 ` , ` rate3 ` , ` started ` , ` ended ` , ` bonus ` , ` warehouseFk ` , ` created ` )
VALUES
( 1 , 1 , 0 , 0 , 2 . 5 , 2 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 0 , 1 , CURDATE ( ) ) ,
2020-09-29 05:37:29 +00:00
( 2 , 3 , 10 , 10 , 10 , 10 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 0 , 1 , CURDATE ( ) ) ,
( 3 , 5 , 8 . 5 , 10 , 7 . 5 , 6 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 1 , 2 , CURDATE ( ) ) ;
2020-09-25 12:50:04 +00:00
2018-03-15 12:47:47 +00:00
INSERT INTO ` vn ` . ` expedition ` ( ` id ` , ` agencyModeFk ` , ` ticketFk ` , ` isBox ` , ` created ` , ` itemFk ` , ` counter ` , ` checked ` , ` workerFk ` )
VALUES
2019-06-27 11:20:30 +00:00
( 1 , 1 , 1 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 1 , 1 , 18 ) ,
( 2 , 1 , 1 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 2 , 1 , 18 ) ,
( 3 , 1 , 1 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 2 , 3 , 1 , 18 ) ,
( 4 , 1 , 1 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 4 , 4 , 1 , 18 ) ,
( 5 , 1 , 2 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 1 , 1 , 18 ) ,
( 6 , 7 , 3 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , 1 , 1 , 1 , 18 ) ,
( 7 , 2 , 4 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , 1 , 1 , 1 , 18 ) ,
( 8 , 3 , 5 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , 1 , 1 , 1 , 18 ) ,
( 9 , 3 , 6 , 71 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 1 , 1 , 18 ) ,
( 10 , 7 , 7 , 71 , CURDATE ( ) , 1 , 1 , 1 , 18 ) ;
2018-03-15 12:47:47 +00:00
2020-07-16 05:43:07 +00:00
INSERT INTO ` vn ` . ` expeditionBoxVol ` ( ` boxFk ` , ` m3 ` , ` ratio ` )
VALUES
( 71 , 0 . 141 , 1 ) ;
2018-03-15 12:47:47 +00:00
2018-03-12 12:55:18 +00:00
INSERT INTO ` vn ` . ` packaging ` ( ` id ` , ` volume ` , ` width ` , ` height ` , ` depth ` , ` isPackageReturnable ` , ` created ` , ` itemFk ` , ` price ` )
VALUES
2019-10-24 10:49:18 +00:00
( 1 , 0 . 00 , 10 , 10 , 0 , 1 , CURDATE ( ) , 6 , 1 . 50 ) ,
( 2 , 100 . 00 , 20 , 20 , 0 , 1 , CURDATE ( ) , 7 , 1 . 00 ) ,
( 3 , 14000 . 00 , 0 , 0 , 0 , 1 , CURDATE ( ) , NULL , 0 ) ,
( 4 , 218000 . 00 , 0 , 0 , 0 , 0 , CURDATE ( ) , NULL , 0 ) ,
( 5 , 292000 . 00 , 0 , 0 , 0 , 0 , CURDATE ( ) , NULL , 0 ) ,
( 94 , 140875 . 00 , 49 . 00 , 115 . 00 , 25 . 00 , 0 , CURDATE ( ) , 71 , 0 . 00 ) ,
( ' cc ' , 1640038 . 00 , 56 . 00 , 220 . 00 , 128 . 00 , 1 , CURDATE ( ) , 15 , 90 . 00 ) ,
( ' pallet 100 ' , 2745600 . 00 , 100 . 00 , 220 . 00 , 120 . 00 , 1 , CURDATE ( ) , 16 , 0 . 00 ) ;
2018-03-12 12:55:18 +00:00
INSERT INTO ` vn ` . ` ticketPackaging ` ( ` id ` , ` ticketFk ` , ` packagingFk ` , ` quantity ` , ` created ` , ` pvp ` )
VALUES
2019-03-25 14:16:56 +00:00
( 1 , 1 , 2 , 2 , CURDATE ( ) , NULL ) ,
( 2 , 2 , 2 , 1 , CURDATE ( ) , NULL ) ,
( 3 , 3 , 2 , 4 , CURDATE ( ) , NULL ) ;
2018-03-12 12:55:18 +00:00
INSERT INTO ` vn ` . ` sale ` ( ` id ` , ` itemFk ` , ` ticketFk ` , ` concept ` , ` quantity ` , ` price ` , ` discount ` , ` reserved ` , ` isPicked ` , ` created ` )
VALUES
2019-06-27 07:03:03 +00:00
( 1 , 1 , 1 , ' Ranged weapon longbow 2m ' , 5 , 100 . 39 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 2 , 2 , 1 , ' Melee weapon combat fist 15cm ' , 10 , 7 . 07 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 3 , 1 , 1 , ' Ranged weapon longbow 2m ' , 2 , 100 . 39 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 4 , 4 , 1 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 69 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 5 , 1 , 2 , ' Ranged weapon longbow 2m ' , 1 , 110 . 33 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 6 , 1 , 3 , ' Ranged weapon longbow 2m ' , 1 , 110 . 33 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) ) ,
2019-09-17 11:52:29 +00:00
( 7 , 2 , 11 , ' Melee weapon combat fist 15cm ' , 15 , 7 . 44 , 0 , 0 , 0 , CURDATE ( ) ) ,
2019-06-27 07:03:03 +00:00
( 8 , 4 , 11 , ' Melee weapon heavy shield 1x0.5m ' , 10 , 1 . 79 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 9 , 1 , 16 , ' Ranged weapon longbow 2m ' , 1 , 103 . 49 , 0 , 0 , 0 , CURDATE ( ) ) ,
2020-02-12 09:39:46 +00:00
( 10 , 2 , 16 , ' Melee weapon combat fist 15cm ' , 10 , 7 . 09 , 0 , 0 , 0 , CURDATE ( ) ) ,
2019-06-27 07:03:03 +00:00
( 11 , 1 , 16 , ' Ranged weapon longbow 2m ' , 1 , 103 . 49 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 12 , 4 , 16 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 71 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 13 , 2 , 8 , ' Melee weapon combat fist 15cm ' , 10 , 7 . 08 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 14 , 1 , 8 , ' Ranged weapon longbow 2m ' , 2 , 103 . 49 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 15 , 1 , 19 , ' Ranged weapon longbow 2m ' , 1 , 103 . 49 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 16 , 2 , 20 , ' Melee weapon combat fist 15cm ' , 20 , 7 . 07 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 17 , 2 , 22 , ' Melee weapon combat fist 15cm ' , 30 , 7 . 07 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 18 , 4 , 22 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 69 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 19 , 1 , 4 , ' Ranged weapon longbow 2m ' , 1 , 8 . 07 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) ) ,
( 20 , 1 , 5 , ' Ranged weapon longbow 2m ' , 1 , 8 . 07 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) ) ,
( 21 , 1 , 6 , ' Ranged weapon longbow 2m ' , 1 , 8 . 07 , 0 , 0 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 22 , 1 , 7 , ' Ranged weapon longbow 2m ' , 1 , 8 . 07 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 23 , 1 , 9 , ' Ranged weapon longbow 2m ' , 1 , 8 . 07 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 24 , 1 , 10 , ' Ranged weapon longbow 2m ' , 1 , 8 . 07 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 25 , 4 , 12 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 72 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 26 , 4 , 13 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 72 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 27 , 4 , 14 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 72 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 28 , 4 , 15 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 72 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 29 , 4 , 17 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 72 , 0 , 0 , 0 , CURDATE ( ) ) ,
2019-07-01 09:56:16 +00:00
( 30 , 4 , 18 , ' Melee weapon heavy shield 1x0.5m ' , 20 , 1 . 72 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 31 , 2 , 23 , ' Melee weapon combat fist 15cm ' , - 5 , 7 . 08 , 0 , 0 , 0 , CURDATE ( ) ) ,
( 32 , 1 , 24 , ' Ranged weapon longbow 2m ' , - 1 , 8 . 07 , 0 , 0 , 0 , CURDATE ( ) ) ;
2018-03-12 12:55:18 +00:00
2018-03-14 11:06:21 +00:00
INSERT INTO ` vn ` . ` saleChecked ` ( ` saleFk ` , ` isChecked ` )
VALUES
2019-03-25 14:16:56 +00:00
( 1 , 0 ) ,
( 2 , 1 ) ;
2018-04-13 11:07:52 +00:00
INSERT INTO ` vn ` . ` saleComponent ` ( ` saleFk ` , ` componentFk ` , ` value ` )
VALUES
2019-06-27 07:03:03 +00:00
( 1 , 28 , 50 ) ,
( 1 , 29 , 49 . 4 ) ,
( 1 , 39 , 0 . 994 ) ,
( 2 , 28 , 5 ) ,
( 2 , 29 , 2 ) ,
( 2 , 39 , 0 . 07 ) ,
( 3 , 28 , 50 ) ,
( 3 , 29 , 49 . 4 ) ,
( 3 , 39 , 0 . 994 ) ,
( 4 , 28 , 1 . 25 ) ,
( 4 , 29 , 0 . 42 ) ,
( 4 , 39 , 0 . 017 ) ,
( 5 , 17 , 9 . 94 ) ,
( 5 , 28 , 50 ) ,
( 5 , 29 , 49 . 4 ) ,
( 5 , 39 , 0 . 994 ) ,
( 6 , 17 , 9 . 94 ) ,
( 6 , 28 , 50 ) ,
( 6 , 29 , 49 . 4 ) ,
( 6 , 39 , 0 . 994 ) ,
2019-09-17 11:52:29 +00:00
( 7 , 15 , 0 . 0199 ) ,
2019-06-27 07:03:03 +00:00
( 7 , 17 , 0 . 35 ) ,
( 7 , 28 , 5 ) ,
( 7 , 29 , 2 ) ,
( 7 , 39 , 0 . 07 ) ,
( 8 , 15 , 0 . 0199 ) ,
( 8 , 17 , 0 . 084 ) ,
( 8 , 28 , 1 . 25 ) ,
( 8 , 29 , 0 . 42 ) ,
( 8 , 39 , 0 . 017 ) ,
( 9 , 15 , 3 . 0949 ) ,
( 9 , 21 , 0 . 001 ) ,
2020-02-12 09:39:46 +00:00
( 9 , 28 , 53 ) ,
( 9 , 29 , 46 . 4 ) ,
2019-06-27 07:03:03 +00:00
( 9 , 39 , 0 . 994 ) ,
2020-02-12 09:39:46 +00:00
( 10 , 15 , 0 . 0199 ) ,
( 10 , 28 , 7 ) ,
( 10 , 29 , 0 ) ,
2019-06-27 07:03:03 +00:00
( 10 , 39 , 0 . 07 ) ,
( 11 , 15 , 3 . 0949 ) ,
( 11 , 21 , 0 . 001 ) ,
2020-02-12 09:39:46 +00:00
( 11 , 28 , 53 ) ,
( 11 , 29 , 46 . 4 ) ,
2019-06-27 07:03:03 +00:00
( 11 , 39 , 0 . 994 ) ,
( 12 , 15 , 0 . 0199 ) ,
( 12 , 21 , 0 . 003 ) ,
2020-02-12 09:39:46 +00:00
( 12 , 28 , 2 . 25 ) ,
( 12 , 29 , - 0 . 58 ) ,
2019-06-27 07:03:03 +00:00
( 12 , 39 , 0 . 017 ) ,
( 13 , 15 , 0 . 114 ) ,
( 13 , 28 , 5 ) ,
( 13 , 29 , 2 ) ,
( 13 , 39 , 0 . 07 ) ,
( 14 , 15 , 3 . 0949 ) ,
( 14 , 28 , 50 ) ,
( 14 , 29 , 49 . 4 ) ,
( 14 , 39 , 0 . 994 ) ,
( 15 , 15 , 3 . 0949 ) ,
( 15 , 28 , 50 ) ,
( 15 , 29 , 49 . 4 ) ,
( 15 , 39 , 0 . 994 ) ,
( 16 , 28 , 5 ) ,
( 16 , 29 , 2 ) ,
( 16 , 39 , 0 . 07 ) ,
( 17 , 28 , 5 ) ,
( 17 , 29 , 2 ) ,
( 17 , 39 , 0 . 07 ) ,
( 18 , 28 , 1 . 25 ) ,
( 18 , 29 , 0 . 42 ) ,
( 18 , 39 , 0 . 017 ) ,
( 19 , 17 , 0 . 7 ) ,
( 19 , 22 , 0 . 3 ) ,
( 19 , 28 , 5 ) ,
( 19 , 29 , 2 ) ,
2019-03-25 14:16:56 +00:00
( 19 , 39 , 0 . 02 ) ,
2019-06-27 07:03:03 +00:00
( 20 , 17 , 0 . 7 ) ,
( 20 , 22 , 0 . 3 ) ,
( 20 , 28 , 5 ) ,
( 20 , 29 , 2 ) ,
2019-03-25 14:16:56 +00:00
( 20 , 39 , 0 . 02 ) ,
2019-06-27 07:03:03 +00:00
( 21 , 17 , 0 . 7 ) ,
( 21 , 22 , 0 . 3 ) ,
( 21 , 28 , 5 ) ,
( 21 , 29 , 2 ) ,
2019-03-25 14:16:56 +00:00
( 21 , 39 , 0 . 02 ) ,
2019-06-27 07:03:03 +00:00
( 22 , 17 , 0 . 7 ) ,
( 22 , 22 , 0 . 3 ) ,
( 22 , 28 , 5 ) ,
( 22 , 29 , 2 ) ,
2019-03-25 14:16:56 +00:00
( 22 , 39 , 0 . 02 ) ,
2019-06-27 07:03:03 +00:00
( 23 , 17 , 0 . 7 ) ,
( 23 , 22 , 0 . 3 ) ,
( 23 , 28 , 5 ) ,
( 23 , 29 , 2 ) ,
2019-03-25 14:16:56 +00:00
( 23 , 39 , 0 . 02 ) ,
2019-06-27 07:03:03 +00:00
( 24 , 17 , 0 . 7 ) ,
( 24 , 22 , 0 . 3 ) ,
( 24 , 28 , 5 ) ,
( 24 , 29 , 2 ) ,
2019-06-14 10:27:41 +00:00
( 24 , 39 , 0 . 02 ) ,
2019-06-27 07:03:03 +00:00
( 25 , 17 , 0 . 033 ) ,
( 25 , 28 , 1 . 25 ) ,
( 25 , 29 , 0 . 42 ) ,
( 25 , 39 , 0 . 017 ) ,
( 26 , 17 , 0 . 033 ) ,
( 26 , 28 , 1 . 25 ) ,
( 26 , 29 , 0 . 42 ) ,
( 26 , 39 , 0 . 017 ) ,
( 27 , 17 , 0 . 033 ) ,
( 27 , 28 , 1 . 25 ) ,
( 27 , 29 , 0 . 42 ) ,
( 27 , 39 , 0 . 017 ) ,
( 28 , 17 , 0 . 033 ) ,
( 28 , 28 , 1 . 25 ) ,
( 28 , 29 , 0 . 42 ) ,
( 28 , 39 , 0 . 017 ) ,
( 29 , 17 , 0 . 033 ) ,
( 29 , 28 , 1 . 25 ) ,
( 29 , 29 , 0 . 42 ) ,
( 29 , 39 , 0 . 017 ) ,
( 30 , 17 , 0 . 033 ) ,
( 30 , 28 , 1 . 25 ) ,
( 30 , 29 , 0 . 42 ) ,
2019-07-01 09:56:16 +00:00
( 30 , 39 , 0 . 017 ) ,
( 31 , 28 , 5 ) ,
( 31 , 29 , 2 ) ,
( 31 , 36 , 0 . 01 ) ,
( 31 , 39 , 0 . 07 ) ,
( 32 , 28 , 50 ) ,
( 32 , 29 , 49 . 4 ) ,
( 32 , 36 , - 92 . 324 ) ,
( 32 , 39 , 0 . 994 ) ;
2018-04-13 11:07:52 +00:00
2020-03-23 10:21:25 +00:00
INSERT INTO ` vn ` . ` itemShelving ` ( ` id ` , ` itemFk ` , ` shelvingFk ` , ` shelve ` , ` deep ` , ` quantity ` , ` visible ` , ` available ` , ` grouping ` , ` packing ` , ` level ` , ` userFk ` )
VALUES
( ' 1 ' , ' 2 ' , ' GVC ' , ' A ' , ' 0 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 106 ' ) ,
( ' 2 ' , ' 4 ' , ' HEJ ' , ' A ' , ' 0 ' , ' 2 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 1 ' , ' 106 ' ) ;
INSERT INTO ` vn ` . ` itemShelvingSale ` ( ` itemShelvingFk ` , ` saleFk ` , ` quantity ` , ` created ` , ` userFk ` )
VALUES
( ' 1 ' , ' 1 ' , ' 1 ' , ' ' , ' 106 ' ) ,
( ' 2 ' , ' 2 ' , ' 5 ' , ' ' , ' 106 ' ) ,
( ' 1 ' , ' 7 ' , ' 1 ' , ' ' , ' 106 ' ) ,
( ' 2 ' , ' 8 ' , ' 5 ' , ' ' , ' 106 ' ) ;
2019-12-04 10:09:36 +00:00
INSERT INTO ` vncontrol ` . ` accion ` ( ` accion_id ` , ` accion ` )
VALUES
( 3 , ' ACTION ONE ' ) ,
( 4 , ' ACTIOn TWO ' ) ;
2018-07-24 05:34:14 +00:00
INSERT INTO ` vn ` . ` saleTracking ` ( ` saleFk ` , ` isChecked ` , ` created ` , ` originalQuantity ` , ` workerFk ` , ` actionFk ` , ` id ` , ` stateFk ` )
2018-06-21 08:57:37 +00:00
VALUES
2019-03-25 14:16:56 +00:00
( 1 , 0 , CURDATE ( ) , 5 , 55 , 3 , 1 , 14 ) ,
( 1 , 1 , CURDATE ( ) , 5 , 54 , 3 , 2 , 8 ) ,
( 2 , 1 , CURDATE ( ) , 10 , 40 , 4 , 3 , 8 ) ,
( 3 , 1 , CURDATE ( ) , 2 , 40 , 4 , 4 , 8 ) ;
2018-06-21 08:57:37 +00:00
2018-02-16 13:58:51 +00:00
INSERT INTO ` vn ` . ` itemBarcode ` ( ` id ` , ` itemFk ` , ` code ` )
VALUES
2019-04-10 07:32:29 +00:00
( 1 , 1 , 1111111111 ) ,
( 2 , 1 , 2222222222 ) ,
( 3 , 1 , 3333333333 ) ,
( 4 , 2 , 4444444444 ) ;
2018-02-16 13:58:51 +00:00
2018-02-19 12:39:31 +00:00
INSERT INTO ` vn ` . ` itemPlacement ` ( ` id ` , ` itemFk ` , ` warehouseFk ` , ` code ` )
2018-02-16 13:58:51 +00:00
VALUES
2020-05-15 11:11:23 +00:00
( 1 , 1 , 1 , ' A11 ' ) ,
( 2 , 1 , 2 , ' A22 ' ) ,
( 3 , 1 , 3 , ' A33 ' ) ,
( 4 , 2 , 1 , ' A44 ' ) ;
2018-02-16 13:58:51 +00:00
2020-03-30 12:28:29 +00:00
INSERT INTO ` vn ` . ` collection ` ( ` id ` , ` workerFk ` , ` stateFk ` )
VALUES
( 1 , 106 , 5 ) ,
( 2 , 106 , 14 ) ;
INSERT INTO ` vn ` . ` parking ` ( ` column ` , ` row ` , ` sectorFk ` , ` code ` , ` pickingOrder ` )
VALUES
( ' 100 ' , ' 01 ' , 1 , ' 100-01 ' , 1 ) ;
INSERT INTO ` vn ` . ` shelving ` ( ` code ` , ` parkingFk ` , ` priority ` , ` userFk ` )
VALUES
( ' UXN ' , 1 , 1 , 106 ) ;
INSERT INTO ` vn ` . ` itemShelving ` ( ` itemFk ` , ` shelvingFk ` , ` shelve ` , ` deep ` , ` quantity ` , ` visible ` , ` available ` , ` grouping ` , ` packing ` , ` level ` , ` userFk ` )
VALUES
( 1 , ' UXN ' , ' A ' , 2 , 12 , 12 , 12 , 12 , 12 , 1 , 106 ) ;
INSERT INTO ` vn ` . ` ticketCollection ` ( ` ticketFk ` , ` collectionFk ` , ` level ` )
VALUES
( 1 , 1 , 1 ) ;
2018-02-19 08:42:40 +00:00
INSERT INTO ` edi ` . ` genus ` ( ` genus_id ` , ` latin_genus_name ` , ` entry_date ` , ` expiry_date ` , ` change_date_time ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , ' Abelia ' , CURDATE ( ) , NULL , CURDATE ( ) ) ,
( 2 , ' Abies ' , CURDATE ( ) , NULL , CURDATE ( ) ) ,
( 3 , ' Abutilon ' , CURDATE ( ) , NULL , CURDATE ( ) ) ;
2018-02-19 08:42:40 +00:00
INSERT INTO ` edi ` . ` specie ` ( ` specie_id ` , ` genus_id ` , ` latin_species_name ` , ` entry_date ` , ` expiry_date ` , ` change_date_time ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 1 , ' grandiflora ' , CURDATE ( ) , NULL , CURDATE ( ) ) ,
( 2 , 2 , ' procera ' , CURDATE ( ) , NULL , CURDATE ( ) ) ,
( 3 , 3 , ' decurrens ' , CURDATE ( ) , NULL , CURDATE ( ) ) ,
( 4 , 3 , ' dealbata ' , CURDATE ( ) , NULL , CURDATE ( ) ) ;
2018-02-19 08:42:40 +00:00
INSERT INTO ` vn ` . ` itemBotanical ` ( ` itemFk ` , ` botanical ` , ` genusFk ` , ` specieFk ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , ' Hedera helix ' , 1 , 1 ) ,
( 2 , NULL , 2 , 2 ) ,
( 3 , ' Cycas revoluta ' , 2 , NULL ) ,
( 4 , ' Polygonum ' , NULL , NULL ) ;
2018-02-19 08:42:40 +00:00
2018-02-01 07:32:48 +00:00
INSERT INTO ` vn ` . ` itemTag ` ( ` id ` , ` itemFk ` , ` tagFk ` , ` value ` , ` priority ` )
VALUES
2020-09-25 12:50:04 +00:00
( 1 , 1 , 56 , ' Ranged weapon ' , 1 ) ,
( 2 , 1 , 58 , ' longbow ' , 2 ) ,
( 3 , 1 , 27 , ' 2m ' , 3 ) ,
( 4 , 1 , 36 , ' Stark Industries ' , 4 ) ,
( 5 , 1 , 1 , ' Brown ' , 5 ) ,
( 6 , 1 , 67 , ' +1 precission ' , 6 ) ,
( 7 , 1 , 23 , ' 1 ' , 7 ) ,
( 8 , 2 , 56 , ' Melee weapon ' , 1 ) ,
( 9 , 2 , 58 , ' combat fist ' , 2 ) ,
( 10 , 2 , 27 , ' 15cm ' , 3 ) ,
( 11 , 2 , 36 , ' Stark Industries ' , 4 ) ,
( 12 , 2 , 1 , ' Silver ' , 5 ) ,
( 13 , 2 , 67 , ' Concussion ' , 6 ) ,
( 14 , 2 , 23 , ' 2 ' , 7 ) ,
( 15 , 3 , 56 , ' Ranged weapon ' , 1 ) ,
( 16 , 3 , 58 , ' sniper rifle ' , 2 ) ,
( 17 , 3 , 4 , ' 300mm ' , 3 ) ,
( 18 , 3 , 36 , ' Stark Industries ' , 4 ) ,
( 19 , 3 , 1 , ' Green ' , 5 ) ,
( 20 , 3 , 67 , ' precission ' , 6 ) ,
( 21 , 3 , 23 , ' 3 ' , 7 ) ,
( 22 , 4 , 56 , ' Melee weapon ' , 1 ) ,
( 23 , 4 , 58 , ' heavy shield ' , 2 ) ,
( 24 , 4 , 4 , ' 1x0.5m ' , 3 ) ,
( 25 , 4 , 36 , ' Stark Industries ' , 4 ) ,
( 26 , 4 , 1 , ' Black ' , 5 ) ,
( 27 , 4 , 67 , ' containtment ' , 6 ) ,
( 28 , 4 , 23 , ' 4 ' , 7 ) ,
( 29 , 5 , 56 , ' Ranged weapon ' , 1 ) ,
( 30 , 5 , 58 , ' pistol ' , 2 ) ,
( 31 , 5 , 27 , ' 9mm ' , 3 ) ,
( 32 , 5 , 36 , ' Stark Industries ' , 4 ) ,
( 33 , 5 , 1 , ' Silver ' , 5 ) ,
( 34 , 5 , 67 , ' rapid fire ' , 6 ) ,
( 35 , 5 , 23 , ' 5 ' , 7 ) ,
( 36 , 6 , 56 , ' Container ' , 1 ) ,
( 37 , 6 , 58 , ' ammo box ' , 2 ) ,
( 38 , 6 , 27 , ' 1m ' , 3 ) ,
( 39 , 6 , 36 , ' Stark Industries ' , 4 ) ,
( 40 , 6 , 1 , ' Green ' , 5 ) ,
( 41 , 6 , 67 , ' supply ' , 6 ) ,
( 42 , 6 , 23 , ' 6 ' , 7 ) ,
( 43 , 7 , 56 , ' Container ' , 1 ) ,
( 44 , 7 , 58 , ' medical box ' , 2 ) ,
( 45 , 7 , 27 , ' 1m ' , 3 ) ,
( 46 , 7 , 36 , ' Stark Industries ' , 4 ) ,
( 47 , 7 , 1 , ' White ' , 5 ) ,
( 48 , 7 , 67 , ' supply ' , 6 ) ,
( 49 , 7 , 23 , ' 7 ' , 7 ) ,
( 50 , 8 , 56 , ' Ranged Reinforced weapon ' , 1 ) ,
( 51 , 8 , 58 , ' +1 longbow ' , 2 ) ,
( 52 , 8 , 27 , ' 2m ' , 3 ) ,
( 53 , 8 , 36 , ' Stark Industries ' , 4 ) ,
( 54 , 8 , 1 , ' Brown ' , 5 ) ,
( 55 , 8 , 67 , ' precission ' , 6 ) ,
( 56 , 8 , 23 , ' 8 ' , 7 ) ,
( 57 , 9 , 56 , ' Melee Reinforced weapon ' , 1 ) ,
( 58 , 9 , 58 , ' combat fist ' , 2 ) ,
( 59 , 9 , 27 , ' 15cm ' , 3 ) ,
( 60 , 9 , 36 , ' Stark Industries ' , 4 ) ,
( 61 , 9 , 1 , ' Silver ' , 5 ) ,
( 62 , 9 , 67 , ' Concussion ' , 6 ) ,
( 63 , 9 , 23 , ' 9 ' , 7 ) ,
( 64 , 10 , 56 , ' Ranged Reinforced weapon ' , 1 ) ,
( 65 , 10 , 58 , ' sniper rifle ' , 2 ) ,
( 66 , 10 , 4 , ' 300mm ' , 3 ) ,
( 67 , 10 , 36 , ' Stark Industries ' , 4 ) ,
( 68 , 10 , 1 , ' Green ' , 5 ) ,
( 69 , 10 , 67 , ' precission ' , 6 ) ,
( 70 , 10 , 23 , ' 10 ' , 7 ) ,
( 71 , 11 , 56 , ' Melee Reinforced weapon ' , 1 ) ,
( 72 , 11 , 58 , ' heavy shield ' , 2 ) ,
( 73 , 11 , 4 , ' 1x0.5m ' , 3 ) ,
( 74 , 11 , 36 , ' Stark Industries ' , 4 ) ,
( 75 , 11 , 1 , ' Black ' , 5 ) ,
( 76 , 11 , 67 , ' containtment ' , 6 ) ,
( 77 , 11 , 23 , ' 11 ' , 7 ) ,
( 78 , 12 , 56 , ' Ranged Reinforced weapon ' , 1 ) ,
( 79 , 12 , 58 , ' pistol ' , 2 ) ,
( 80 , 12 , 27 , ' 9mm ' , 3 ) ,
( 81 , 12 , 36 , ' Stark Industries ' , 4 ) ,
( 82 , 12 , 1 , ' Silver ' , 5 ) ,
( 83 , 12 , 67 , ' rapid fire ' , 6 ) ,
( 84 , 12 , 23 , ' 12 ' , 7 ) ,
( 85 , 13 , 56 , ' Chest ' , 1 ) ,
( 86 , 13 , 58 , ' ammo box ' , 2 ) ,
( 87 , 13 , 27 , ' 1m ' , 3 ) ,
( 88 , 13 , 36 , ' Stark Industries ' , 4 ) ,
( 89 , 13 , 1 , ' Green ' , 5 ) ,
( 90 , 13 , 67 , ' supply ' , 6 ) ,
( 91 , 13 , 23 , ' 13 ' , 7 ) ,
( 92 , 14 , 56 , ' Chest ' , 1 ) ,
( 93 , 14 , 58 , ' medical box ' , 2 ) ,
( 94 , 14 , 27 , ' 1m ' , 3 ) ,
( 95 , 14 , 36 , ' Stark Industries ' , 4 ) ,
( 96 , 14 , 1 , ' White ' , 5 ) ,
( 97 , 14 , 67 , ' supply ' , 6 ) ,
( 98 , 14 , 23 , ' 1 ' , 7 ) ,
( 99 , 15 , 92 , ' Shipping cost ' , 2 ) ,
( 100 , 16 , 92 , ' Shipping cost ' , 2 ) ,
( 101 , 71 , 92 , ' Shipping cost ' , 2 ) ;
2018-02-06 13:03:09 +00:00
2018-05-17 12:28:15 +00:00
INSERT INTO ` vn ` . ` itemTypeTag ` ( ` id ` , ` itemTypeFk ` , ` tagFk ` , ` priority ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 1 , 1 , 0 ) ,
( 2 , 2 , 2 , 0 ) ,
( 3 , 3 , 3 , 1 ) ,
( 4 , 1 , 4 , 1 ) ,
( 5 , 1 , 5 , 1 ) ;
2018-05-17 12:28:15 +00:00
2019-07-05 12:16:33 +00:00
CALL ` vn ` . ` itemRefreshTags ` ( NULL ) ;
2018-02-07 07:47:04 +00:00
INSERT INTO ` vn ` . ` itemLog ` ( ` id ` , ` originFk ` , ` userFk ` , ` action ` , ` description ` )
2018-02-06 13:03:09 +00:00
VALUES
2018-04-05 12:58:26 +00:00
( ' 1 ' , ' 1 ' , ' 1 ' , ' insert ' , ' We made a change! ' ) ;
2018-02-28 14:52:24 +00:00
2018-03-01 13:02:51 +00:00
INSERT INTO ` vn ` . ` recovery ` ( ` id ` , ` clientFk ` , ` started ` , ` finished ` , ` amount ` , ` period ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 101 , DATE_ADD ( CURDATE ( ) , INTERVAL - 7 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , 50 , 7 ) ,
( 2 , 102 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 MONTH ) , CURDATE ( ) , 100 , 1 ) ,
( 3 , 102 , CURDATE ( ) , DATE_ADD ( CURDATE ( ) , INTERVAL 1 MONTH ) , 50 , 7 ) ,
( 4 , 103 , CURDATE ( ) , NULL , 50 , 7 ) ;
2018-03-20 14:01:49 +00:00
2018-03-21 08:35:04 +00:00
INSERT INTO ` vn ` . ` annualAverageInvoiced ` ( ` clientFk ` , ` invoiced ` )
VALUES
2019-05-08 06:48:47 +00:00
( 101 , 1500 ) ,
( 102 , 100 ) ,
( 103 , 1000 ) ,
( 104 , 500 ) ,
( 105 , 5000 ) ;
2018-04-11 09:22:09 +00:00
2020-11-02 07:32:46 +00:00
INSERT INTO ` vn ` . ` supplier ` ( ` id ` , ` name ` , ` nickname ` , ` account ` , ` countryFk ` , ` nif ` , ` isFarmer ` , ` commission ` , ` created ` , ` isActive ` , ` street ` , ` city ` , ` provinceFk ` , ` postCode ` , ` payMethodFk ` , ` payDemFk ` , ` payDay ` , ` taxTypeSageFk ` , ` withholdingSageFk ` , ` transactionTypeSageFk ` )
2018-04-11 09:22:09 +00:00
VALUES
2020-11-02 07:32:46 +00:00
( 1 , ' Plants SL ' , ' Plants nick ' , 4100000001 , 1 , ' 06089160W ' , 0 , 0 , CURDATE ( ) , 1 , ' supplier address 1 ' , ' PONTEVEDRA ' , 1 , 15214 , 1 , 1 , 15 , 4 , 1 , 1 ) ,
2020-11-02 13:30:33 +00:00
( 2 , ' Farmer King ' , ' The farmer ' , 4000020002 , 1 , ' 87945234L ' , 1 , 0 , CURDATE ( ) , 1 , ' supplier address 2 ' , ' SILLA ' , 2 , 43022 , 1 , 2 , 10 , 93 , 2 , 8 ) ,
( 442 , ' Verdnatura Levante SL ' , ' Verdnatura ' , 5115000442 , 1 , ' 06815934E ' , 0 , 0 , CURDATE ( ) , 1 , ' supplier address 3 ' , ' SILLA ' , 1 , 43022 , 1 , 2 , 15 , 6 , 9 , 3 ) ;
2018-04-17 09:20:00 +00:00
2020-10-30 09:23:42 +00:00
INSERT INTO ` vn ` . ` supplierContact ` ( ` id ` , ` supplierFk ` , ` phone ` , ` mobile ` , ` email ` , ` observation ` , ` name ` )
VALUES
( 1 , 1 , 123121212 , 654789123 , ' supplier1@email.es ' , ' observation1 ' , ' the boss ' ) ,
( 2 , 1 , 987456132 , NULL , NULL , NULL , ' the salesperson ' ) ,
( 3 , 2 , 321654987 , NULL , ' supplier2@email.es ' , NULL , NULL ) ,
( 4 , 442 , 321654987 , NULL , NULL , ' observation442 ' , NULL ) ;
2018-04-17 09:20:00 +00:00
INSERT INTO ` cache ` . ` cache_calc ` ( ` id ` , ` cache_id ` , ` cacheName ` , ` params ` , ` last_refresh ` , ` expires ` , ` created ` , ` connection_id ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 2 , ' available ' , CONCAT_WS ( ' / ' , 1 , CURDATE ( ) ) , CURRENT_TIMESTAMP ( ) , DATE_ADD ( CURRENT_TIMESTAMP ( ) , INTERVAL 15 MINUTE ) , CURDATE ( ) , NULL ) ,
( 2 , 4 , ' last_buy ' , CONCAT_WS ( ' / ' , 1 , CURDATE ( ) ) , CURRENT_TIMESTAMP ( ) , DATE_ADD ( CURRENT_TIMESTAMP ( ) , INTERVAL 15 MINUTE ) , CURDATE ( ) , NULL ) ,
( 3 , 8 , ' visible ' , CONCAT_WS ( ' / ' , 1 , CURDATE ( ) ) , CURRENT_TIMESTAMP ( ) , DATE_ADD ( CURRENT_TIMESTAMP ( ) , INTERVAL 15 MINUTE ) , CURDATE ( ) , NULL ) ;
2018-04-29 11:47:33 +00:00
2018-05-03 11:24:35 +00:00
INSERT INTO ` vn ` . ` ticketWeekly ` ( ` ticketFk ` , ` weekDay ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 0 ) ,
( 2 , 1 ) ,
( 3 , 2 ) ,
( 4 , 4 ) ,
( 5 , 6 ) ;
2018-05-07 10:31:48 +00:00
2019-10-24 10:49:18 +00:00
INSERT INTO ` vn ` . ` travel ` ( ` id ` , ` shipped ` , ` landed ` , ` warehouseInFk ` , ` warehouseOutFk ` , ` agencyFk ` , ` m3 ` , ` kg ` , ` ref ` , ` totalEntries ` )
2018-05-07 10:31:48 +00:00
VALUES
2019-10-24 10:49:18 +00:00
( 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , 1 , 2 , 1 , 100 . 00 , 1000 , ' first travel ' , 1 ) ,
2019-10-24 12:43:11 +00:00
( 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 2 , 1 , 150 , 2000 , ' second travel ' , 2 ) ,
2019-10-24 10:49:18 +00:00
( 3 , CURDATE ( ) , CURDATE ( ) , 1 , 2 , 1 , 0 . 00 , 0 . 00 , ' third travel ' , 1 ) ,
2019-10-24 12:43:11 +00:00
( 4 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 2 , 1 , 50 . 00 , 500 , ' fourth travel ' , 0 ) ,
2019-10-24 10:49:18 +00:00
( 5 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 3 , 2 , 1 , 50 . 00 , 500 , ' fifth travel ' , 1 ) ,
( 6 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 4 , 2 , 1 , 50 . 00 , 500 , ' sixth travel ' , 1 ) ,
2020-08-12 12:23:13 +00:00
( 7 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 5 , 2 , 1 , 50 . 00 , 500 , ' seventh travel ' , 2 ) ,
( 8 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 5 , 2 , 1 , 50 . 00 , 500 , ' eight travel ' , 1 ) ;
2020-02-18 09:33:17 +00:00
2020-05-20 12:06:51 +00:00
INSERT INTO ` vn ` . ` entry ` ( ` id ` , ` supplierFk ` , ` created ` , ` travelFk ` , ` isConfirmed ` , ` companyFk ` , ` ref ` , ` isInventory ` , ` isRaid ` , ` notes ` , ` evaNotes ` )
2020-05-20 11:19:02 +00:00
VALUES
( 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 1 , 442 , ' Movement 1 ' , 0 , 0 , ' ' , ' ' ) ,
2020-05-20 12:06:51 +00:00
( 2 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 2 , 0 , 442 , ' Movement 2 ' , 0 , 0 , ' this is the note two ' , ' observation two ' ) ,
2020-05-20 11:19:02 +00:00
( 3 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 3 , 0 , 442 , ' Movement 3 ' , 0 , 0 , ' this is the note three ' , ' observation three ' ) ,
( 4 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 2 , 0 , 69 , ' Movement 4 ' , 0 , 0 , ' this is the note four ' , ' observation four ' ) ,
( 5 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 5 , 0 , 442 , ' Movement 5 ' , 0 , 0 , ' this is the note five ' , ' observation five ' ) ,
( 6 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 6 , 0 , 442 , ' Movement 6 ' , 0 , 0 , ' this is the note six ' , ' observation six ' ) ,
( 7 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 7 , 0 , 442 , ' Movement 7 ' , 0 , 0 , ' this is the note seven ' , ' observation seven ' ) ,
( 8 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 7 , 0 , 442 , ' Movement 8 ' , 1 , 1 , ' ' , ' ' ) ;
2018-05-09 05:20:30 +00:00
2020-01-22 13:34:45 +00:00
INSERT INTO ` vn ` . ` claimRatio ` ( ` clientFk ` , ` yearSale ` , ` claimAmount ` , ` claimingRate ` , ` priceIncreasing ` , ` packingRate ` )
2018-05-09 05:20:30 +00:00
VALUES
2019-05-08 06:48:47 +00:00
( 101 , 500 , NULL , 0 . 00 , 0 . 00 , 1 . 00 ) ,
2019-10-24 10:49:18 +00:00
( 102 , 1000 , 2 . 00 , 0 . 01 , 0 . 05 , 1 . 00 ) ,
2019-05-08 06:48:47 +00:00
( 103 , 2000 , 0 . 00 , 0 . 00 , 0 . 02 , 1 . 00 ) ,
( 104 , 2500 , 150 . 00 , 0 . 02 , 0 . 10 , 1 . 00 ) ;
2018-06-01 10:36:20 +00:00
2020-01-16 12:39:32 +00:00
INSERT INTO ` bs ` . ` waste ` ( ` buyer ` , ` year ` , ` week ` , ` family ` , ` saleTotal ` , ` saleWaste ` , ` rate ` )
VALUES
2020-01-21 08:33:26 +00:00
( ' CharlesXavier ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Carnation ' , ' 1062 ' , ' 51 ' , ' 4.8 ' ) ,
( ' CharlesXavier ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Carnation Colombia ' , ' 35074 ' , ' 687 ' , ' 2.0 ' ) ,
( ' CharlesXavier ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Carnation Mini ' , ' 1777 ' , ' 13 ' , ' 0.7 ' ) ,
( ' CharlesXavier ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Carnation Short ' , ' 9182 ' , ' 59 ' , ' 0.6 ' ) ,
( ' DavidCharlesHaller ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Containers ' , ' -74 ' , ' 0 ' , ' 0.0 ' ) ,
( ' DavidCharlesHaller ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Packagings ' , ' -7 ' , ' 0 ' , ' 0.0 ' ) ,
( ' DavidCharlesHaller ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Freight ' , ' 1100 ' , ' 0 ' , ' 0.0 ' ) ,
( ' HankPym ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Funeral Accessories ' , ' 848 ' , ' -187 ' , ' -22.1 ' ) ,
( ' HankPym ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Miscellaneous Accessories ' , ' 186 ' , ' 0 ' , ' 0.0 ' ) ,
( ' HankPym ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) ) , WEEK ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 WEEK ) , 1 ) , ' Adhesives ' , ' 277 ' , ' 0 ' , ' 0.0 ' ) ;
2020-01-16 12:39:32 +00:00
2020-08-27 15:54:43 +00:00
INSERT INTO ` vn ` . ` buy ` ( ` id ` , ` entryFk ` , ` itemFk ` , ` buyingValue ` , ` quantity ` , ` packageFk ` , ` stickers ` , ` freightValue ` , ` packageValue ` , ` comissionValue ` , ` packing ` , ` grouping ` , ` groupingMode ` , ` location ` , ` price1 ` , ` price2 ` , ` price3 ` , ` producer ` , ` printedStickers ` , ` isChecked ` , ` isIgnored ` , ` weight ` , ` created ` )
VALUES
( 1 , 1 , 1 , 50 , 5000 , 4 , 1 , 1 . 500 , 1 . 500 , 0 . 000 , 1 , 1 , 1 , NULL , 0 . 00 , 99 . 6 , 99 . 4 , NULL , 0 , 1 , 0 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) ) ,
( 2 , 2 , 1 , 50 , 100 , 4 , 1 , 1 . 500 , 1 . 500 , 0 . 000 , 1 , 1 , 1 , NULL , 0 . 00 , 99 . 6 , 99 . 4 , NULL , 0 , 1 , 0 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 3 , 3 , 1 , 50 , 100 , 4 , 1 , 1 . 500 , 1 . 500 , 0 . 000 , 1 , 1 , 0 , NULL , 0 . 00 , 99 . 6 , 99 . 4 , NULL , 0 , 1 , 0 , 1 , CURDATE ( ) ) ,
( 4 , 2 , 2 , 5 , 450 , 3 , 1 , 1 . 000 , 1 . 000 , 0 . 000 , 10 , 10 , 0 , NULL , 0 . 00 , 7 . 30 , 7 . 00 , NULL , 0 , 1 , 0 , 2 . 5 , CURDATE ( ) ) ,
( 5 , 3 , 3 , 55 , 500 , 5 , 1 , 1 . 000 , 1 . 000 , 0 . 000 , 1 , 1 , 0 , NULL , 0 . 00 , 78 . 3 , 75 . 6 , NULL , 0 , 1 , 0 , 2 . 5 , CURDATE ( ) ) ,
( 6 , 4 , 8 , 50 , 1000 , 4 , 1 , 1 . 000 , 1 . 000 , 0 . 000 , 1 , 1 , 1 , NULL , 0 . 00 , 99 . 6 , 99 . 4 , NULL , 0 , 1 , 0 , 2 . 5 , CURDATE ( ) ) ,
( 7 , 4 , 9 , 20 , 1000 , 3 , 1 , 0 . 500 , 0 . 500 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 30 . 50 , 29 . 00 , NULL , 0 , 1 , 0 , 2 . 5 , CURDATE ( ) ) ,
( 8 , 4 , 4 , 1 . 25 , 1000 , 3 , 1 , 0 . 500 , 0 . 500 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 1 . 75 , 1 . 67 , NULL , 0 , 1 , 0 , 2 . 5 , CURDATE ( ) ) ,
( 9 , 4 , 4 , 1 . 25 , 1000 , 3 , 1 , 0 . 500 , 0 . 500 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 1 . 75 , 1 . 67 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ,
( 10 , 5 , 1 , 50 , 10 , 4 , 1 , 2 . 500 , 2 . 500 , 0 . 000 , 1 , 1 , 1 , NULL , 0 . 00 , 99 . 6 , 99 . 4 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ,
( 11 , 5 , 4 , 1 . 25 , 10 , 3 , 1 , 2 . 500 , 2 . 500 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 1 . 75 , 1 . 67 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ,
( 12 , 6 , 4 , 1 . 25 , 0 , 3 , 1 , 2 . 500 , 2 . 500 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 1 . 75 , 1 . 67 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ,
( 13 , 7 , 1 , 50 , 0 , 3 , 1 , 2 . 000 , 2 . 000 , 0 . 000 , 1 , 1 , 1 , NULL , 0 . 00 , 99 . 6 , 99 . 4 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ,
( 14 , 7 , 2 , 5 , 0 , 3 , 1 , 2 . 000 , 2 . 000 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 7 . 30 , 7 . 00 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ,
( 15 , 7 , 4 , 1 . 25 , 0 , 3 , 1 , 2 . 000 , 2 . 000 , 0 . 000 , 10 , 10 , 1 , NULL , 0 . 00 , 1 . 75 , 1 . 67 , NULL , 0 , 1 , 0 , 4 , CURDATE ( ) ) ;
2018-06-01 10:36:20 +00:00
2020-08-12 11:07:58 +00:00
INSERT INTO ` hedera ` . ` order ` ( ` id ` , ` date_send ` , ` customer_id ` , ` delivery_method_id ` , ` agency_id ` , ` address_id ` , ` company_id ` , ` note ` , ` source_app ` , ` confirmed ` , ` total ` , ` date_make ` , ` first_row_stamp ` , ` confirm_date ` )
VALUES
( 1 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , INTERVAL + 1 DAY ) , 101 , 3 , 1 , 121 , 442 , NULL , ' TPV ' , 1 , ' 155.89 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 2 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , INTERVAL + 1 DAY ) , 104 , 3 , 1 , 124 , 442 , NULL , ' WEB ' , 1 , ' 100.10 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 3 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , INTERVAL + 1 DAY ) , 104 , 1 , 2 , 124 , 442 , NULL , ' ANDROID ' , 1 , ' 107.25 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) ) ,
( 4 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , INTERVAL + 1 DAY ) , 104 , 1 , 2 , 124 , 442 , NULL , ' SALIX ' , 1 , ' 10.01 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) ) ,
( 5 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , INTERVAL + 1 DAY ) , 104 , 1 , 3 , 124 , 442 , NULL , ' SALIX ' , 1 , ' 10.01 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) ) ,
( 6 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , INTERVAL + 1 DAY ) , 101 , 1 , 3 , 1 , 442 , NULL , ' SALIX ' , 1 , ' 10.01 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) ) ,
( 7 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 101 , 2 , 7 , 1 , 442 , NULL , ' SALIX ' , 0 , ' 10.01 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 8 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 101 , 2 , 7 , 121 , 442 , NULL , ' SALIX ' , 0 , ' 123.53 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 9 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 104 , 2 , 7 , 124 , 442 , NULL , ' SALIX ' , 0 , ' 10.01 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 10 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 102 , 3 , 1 , 2 , 442 , NULL , ' SALIX ' , 0 , ' 10.01 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 11 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 102 , 2 , 7 , 122 , 442 , NULL , ' SALIX ' , 0 , ' 60.90 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 12 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 103 , 3 , 1 , 3 , 442 , NULL , ' SALIX ' , 0 , ' 72.60 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 13 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 103 , 1 , 2 , 123 , 442 , NULL , ' SALIX ' , 0 , ' 72.60 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 14 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 104 , 1 , 2 , 4 , 442 , NULL , ' SALIX ' , 0 , ' 72.60 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 15 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 105 , 1 , 3 , 125 , 442 , NULL , ' SALIX ' , 0 , ' 72.60 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 16 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 106 , 2 , 7 , 126 , 442 , NULL , ' SALIX ' , 0 , ' 155.89 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 17 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 107 , 1 , 4 , 127 , 442 , NULL , ' SALIX ' , 0 , ' 72.60 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 18 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 108 , 1 , 4 , 128 , 442 , NULL , ' SALIX ' , 0 , ' 72.60 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 19 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) , 109 , 1 , 5 , 129 , 442 , NULL , ' SALIX ' , 0 , ' 16.50 ' , CURDATE ( ) , CURDATE ( ) , CURDATE ( ) ) ,
( 20 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , INTERVAL + 1 DAY ) , 109 , 1 , 5 , 101 , 442 , NULL , ' SALIX ' , 0 , ' 21.45 ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 21 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , INTERVAL + 1 DAY ) , 109 , 1 , 5 , 102 , 442 , NULL , ' SALIX ' , 0 , ' 0.00 ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ,
( 22 , DATE_ADD ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , INTERVAL + 1 DAY ) , 109 , 1 , 5 , 103 , 442 , NULL , ' SALIX ' , 0 , ' 148.50 ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) ) ;
2018-10-03 06:26:05 +00:00
2018-06-20 06:30:16 +00:00
INSERT INTO ` hedera ` . ` orderRow ` ( ` id ` , ` orderFk ` , ` itemFk ` , ` warehouseFk ` , ` shipment ` , ` amount ` , ` price ` , ` rate ` , ` created ` , ` saleFk ` )
VALUES
2019-06-14 10:27:41 +00:00
( 1 , 1 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 5 , 9 . 10 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 ) ,
( 2 , 1 , 2 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 10 , 1 . 07 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 2 ) ,
( 3 , 1 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 2 , 9 . 10 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 3 ) ,
( 4 , 1 , 4 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 20 , 3 . 06 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 4 ) ,
( 5 , 2 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 10 , 9 . 10 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 5 ) ,
( 6 , 3 , 1 , 2 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , 15 , 6 . 50 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 2 MONTH ) , 6 ) ,
( 7 , 11 , 2 , 1 , CURDATE ( ) , 15 , 1 . 30 , 0 , CURDATE ( ) , 7 ) ,
( 8 , 11 , 4 , 1 , CURDATE ( ) , 10 , 3 . 26 , 0 , CURDATE ( ) , 8 ) ,
( 9 , 16 , 1 , 1 , CURDATE ( ) , 5 , 9 . 10 , 0 , CURDATE ( ) , 9 ) ,
( 10 , 16 , 2 , 1 , CURDATE ( ) , 10 , 1 . 07 , 0 , CURDATE ( ) , 10 ) ,
( 11 , 16 , 1 , 1 , CURDATE ( ) , 2 , 9 . 10 , 0 , CURDATE ( ) , 11 ) ,
( 12 , 16 , 4 , 1 , CURDATE ( ) , 20 , 3 . 06 , 0 , CURDATE ( ) , 12 ) ,
( 13 , 8 , 2 , 1 , CURDATE ( ) , 15 , 1 . 30 , 0 , CURDATE ( ) , 13 ) ,
( 14 , 8 , 1 , 1 , CURDATE ( ) , 10 , 9 . 28 , 0 , CURDATE ( ) , 14 ) ,
( 15 , 19 , 1 , 1 , CURDATE ( ) , 10 , 1 . 50 , 0 , CURDATE ( ) , 15 ) ,
( 16 , 20 , 2 , 1 , CURDATE ( ) , 15 , 1 . 30 , 0 , CURDATE ( ) , 16 ) ,
( 17 , 22 , 2 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 30 , 2 . 30 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 17 ) ,
( 18 , 22 , 4 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 20 , 3 . 00 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 MONTH ) , 18 ) ,
( 19 , 4 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , 1 , 9 . 10 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 3 MONTH ) , 19 ) ,
( 20 , 5 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , 1 , 9 . 10 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 4 MONTH ) , 20 ) ,
( 21 , 6 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 9 . 10 , 0 , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 21 ) ,
( 22 , 7 , 1 , 1 , CURDATE ( ) , 1 , 9 . 10 , 0 , CURDATE ( ) , 22 ) ,
( 23 , 9 , 1 , 1 , CURDATE ( ) , 1 , 9 . 10 , 0 , CURDATE ( ) , 23 ) ,
( 24 , 10 , 1 , 1 , CURDATE ( ) , 1 , 9 . 10 , 0 , CURDATE ( ) , 24 ) ,
( 25 , 12 , 4 , 1 , CURDATE ( ) , 20 , 3 . 00 , 0 , CURDATE ( ) , 25 ) ,
( 26 , 13 , 4 , 1 , CURDATE ( ) , 20 , 3 . 00 , 0 , CURDATE ( ) , 26 ) ,
( 27 , 14 , 4 , 1 , CURDATE ( ) , 20 , 3 . 00 , 0 , CURDATE ( ) , 27 ) ,
( 28 , 15 , 4 , 1 , CURDATE ( ) , 20 , 3 . 00 , 0 , CURDATE ( ) , 28 ) ,
( 29 , 17 , 4 , 1 , CURDATE ( ) , 20 , 3 . 00 , 0 , CURDATE ( ) , 29 ) ,
( 30 , 18 , 4 , 1 , CURDATE ( ) , 20 , 3 . 00 , 0 , CURDATE ( ) , 30 ) ;
2018-10-10 09:17:55 +00:00
INSERT INTO ` hedera ` . ` orderRowComponent ` ( ` rowFk ` , ` componentFk ` , ` price ` )
VALUES
2019-06-14 10:27:41 +00:00
( 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 . 0114 ) ,
( 7 , 28 , 5 . 6 ) ,
( 7 , 29 , - 4 . 6 ) ,
( 7 , 39 , 0 . 01 ) ,
( 8 , 15 , 0 . 0016 ) ,
( 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 . 2899 ) ,
( 13 , 28 , 5 . 6 ) ,
( 13 , 29 , - 4 . 6 ) ,
( 13 , 39 , 0 . 01 ) ,
( 14 , 15 , 0 . 58 ) ,
( 14 , 23 , 6 . 5 ) ,
( 14 , 28 , 20 . 72 ) ,
( 14 , 29 , - 18 . 72 ) ,
( 14 , 39 , 0 . 02 ) ,
( 15 , 15 , 0 . 58 ) ,
( 15 , 23 , 6 . 5 ) ,
( 15 , 28 , 20 . 72 ) ,
( 15 , 29 , - 18 . 72 ) ,
( 15 , 39 , 0 . 02 ) ,
( 16 , 15 , 0 . 058 ) ,
( 16 , 21 , 0 . 002 ) ,
( 16 , 28 , 5 . 6 ) ,
( 16 , 29 , - 4 . 6 ) ,
( 16 , 39 , 0 . 01 ) ,
( 17 , 15 , 0 . 058 ) ,
( 17 , 21 , 0 . 002 ) ,
( 17 , 28 , 5 . 6 ) ,
( 17 , 29 , - 4 . 6 ) ,
( 17 , 39 , 0 . 01 ) ,
( 18 , 15 , 0 . 051 ) ,
( 18 , 22 , - 0 . 001 ) ,
( 18 , 28 , 20 . 72 ) ,
( 18 , 29 , - 19 . 72 ) ,
( 18 , 37 , 2 ) ,
( 18 , 39 , 0 . 01 ) ,
( 19 , 15 , 0 . 58 ) ,
( 19 , 23 , 6 . 5 ) ,
( 19 , 28 , 20 . 72 ) ,
( 19 , 29 , - 18 . 72 ) ,
( 19 , 39 , 0 . 02 ) ,
( 20 , 15 , 0 . 58 ) ,
( 20 , 23 , 6 . 5 ) ,
( 20 , 28 , 20 . 72 ) ,
( 20 , 29 , - 18 . 72 ) ,
( 20 , 39 , 0 . 02 ) ,
( 21 , 15 , 0 . 58 ) ,
( 21 , 23 , 6 . 5 ) ,
( 21 , 28 , 20 . 72 ) ,
( 21 , 29 , - 18 . 72 ) ,
( 21 , 39 , 0 . 02 ) ,
( 22 , 15 , 0 . 58 ) ,
( 22 , 23 , 6 . 5 ) ,
( 22 , 28 , 20 . 72 ) ,
( 22 , 29 , - 18 . 72 ) ,
( 22 , 39 , 0 . 02 ) ,
( 23 , 15 , 0 . 58 ) ,
( 23 , 23 , 6 . 5 ) ,
( 23 , 28 , 20 . 72 ) ,
( 23 , 29 , - 18 . 72 ) ,
( 23 , 39 , 0 . 02 ) ,
( 24 , 15 , 0 . 58 ) ,
( 24 , 23 , 6 . 5 ) ,
( 24 , 28 , 20 . 72 ) ,
( 24 , 29 , - 18 . 72 ) ,
( 24 , 39 , 0 . 02 ) ,
( 25 , 15 , 0 . 051 ) ,
( 25 , 22 , - 0 . 001 ) ,
( 25 , 28 , 20 . 72 ) ,
( 25 , 29 , - 19 . 72 ) ,
( 25 , 37 , 2 ) ,
( 25 , 39 , 0 . 01 ) ,
( 26 , 15 , 0 . 051 ) ,
( 26 , 22 , - 0 . 001 ) ,
( 26 , 28 , 20 . 72 ) ,
( 26 , 29 , - 19 . 72 ) ,
( 26 , 37 , 2 ) ,
( 26 , 39 , 0 . 01 ) ,
( 27 , 15 , 0 . 051 ) ,
( 27 , 22 , - 0 . 001 ) ,
( 27 , 28 , 20 . 72 ) ,
( 27 , 29 , - 19 . 72 ) ,
( 27 , 37 , 2 ) ,
( 27 , 39 , 0 . 01 ) ,
( 28 , 15 , 0 . 051 ) ,
( 28 , 22 , - 0 . 001 ) ,
( 28 , 28 , 20 . 72 ) ,
( 28 , 29 , - 19 . 72 ) ,
( 28 , 37 , 2 ) ,
( 28 , 39 , 0 . 01 ) ,
( 29 , 15 , 0 . 051 ) ,
( 29 , 22 , - 0 . 001 ) ,
( 29 , 28 , 20 . 72 ) ,
( 29 , 29 , - 19 . 72 ) ,
( 29 , 37 , 2 ) ,
( 29 , 39 , 0 . 01 ) ,
( 30 , 15 , 0 . 051 ) ,
( 30 , 22 , - 0 . 001 ) ,
( 30 , 28 , 20 . 72 ) ,
( 30 , 29 , - 19 . 72 ) ,
( 30 , 37 , 2 ) ,
( 30 , 39 , 0 . 01 ) ;
2018-06-25 10:27:27 +00:00
INSERT INTO ` vn ` . ` clientContact ` ( ` id ` , ` clientFk ` , ` name ` , ` phone ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 101 , ' contact 1 ' , 666777888 ) ,
( 2 , 101 , ' contact 2 ' , 111222333 ) ,
( 3 , 101 , ' contact 3 ' , 222333444 ) ,
( 4 , 102 , ' contact 1 ' , 876543219 ) ;
2018-06-25 10:27:27 +00:00
2020-06-30 08:16:22 +00:00
INSERT INTO ` vn ` . ` workerManaExcluded ` ( ` workerFk ` )
VALUES
( 9 ) ;
2018-06-26 09:28:29 +00:00
/*
el mana de los trabajadores lo podemos poner a mano en la tabla si lo calculamos antes ,
pero si hazemos alguna modificacion en alguna tabla que utiliza para calcularlo ya no seria correcto
La otra manera es poner el calculo con los 2 trabajadores que utilizamos ahora mismo para los tickets
* /
2019-11-26 13:15:43 +00:00
2018-06-26 09:28:29 +00:00
call vn . manaSpellersRequery ( 19 ) ;
2018-07-25 18:47:07 +00:00
call vn . manaSpellersRequery ( 18 ) ;
2018-07-30 12:10:09 +00:00
INSERT INTO ` vn ` . ` clientSample ` ( ` id ` , ` clientFk ` , ` typeFk ` , ` created ` , ` workerFk ` , ` userFk ` , ` companyFk ` )
2018-07-25 18:47:07 +00:00
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 101 , 1 , CURDATE ( ) , 18 , 18 , 442 ) ,
( 2 , 101 , 1 , CURDATE ( ) , 18 , 18 , 442 ) ,
( 3 , 101 , 2 , CURDATE ( ) , 18 , 18 , 442 ) ,
( 4 , 102 , 2 , CURDATE ( ) , 18 , 18 , 567 ) ,
( 5 , 102 , 3 , CURDATE ( ) , 19 , 19 , 567 ) ;
2018-07-30 12:10:09 +00:00
2020-05-18 11:46:45 +00:00
INSERT INTO ` vn ` . ` claimState ` ( ` id ` , ` code ` , ` description ` , ` roleFk ` , ` priority ` )
VALUES
( 1 , ' pending ' , ' Pendiente ' , 1 , 1 ) ,
( 2 , ' managed ' , ' Gestionado ' , 1 , 5 ) ,
2020-10-26 11:16:57 +00:00
( 3 , ' resolved ' , ' Resuelto ' , 72 , 7 ) ,
( 4 , ' canceled ' , ' Anulado ' , 72 , 6 ) ,
( 5 , ' disputed ' , ' Cuestionado ' , 72 , 3 ) ,
2020-05-18 11:46:45 +00:00
( 6 , ' mana ' , ' Mana ' , 1 , 4 ) ,
( 7 , ' inProgress ' , ' En Curso ' , 1 , 2 ) ;
2019-05-07 06:18:14 +00:00
2018-08-29 07:45:37 +00:00
INSERT INTO ` vn ` . ` claim ` ( ` id ` , ` ticketCreated ` , ` claimStateFk ` , ` observation ` , ` clientFk ` , ` workerFk ` , ` responsibility ` , ` isChargedToMana ` , ` created ` )
2018-07-30 12:10:09 +00:00
VALUES
2019-07-01 09:56:16 +00:00
( 1 , CURDATE ( ) , 1 , ' observation one ' , 101 , 18 , 3 , 0 , CURDATE ( ) ) ,
( 2 , CURDATE ( ) , 2 , ' observation two ' , 101 , 18 , 3 , 0 , CURDATE ( ) ) ,
( 3 , CURDATE ( ) , 3 , ' observation three ' , 101 , 18 , 1 , 1 , CURDATE ( ) ) ,
( 4 , CURDATE ( ) , 3 , ' observation four ' , 104 , 18 , 5 , 0 , CURDATE ( ) ) ;
2018-07-30 12:10:09 +00:00
INSERT INTO ` vn ` . ` claimBeginning ` ( ` id ` , ` claimFk ` , ` saleFk ` , ` quantity ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 1 , 7 , 5 ) ,
2019-07-02 12:44:36 +00:00
( 2 , 2 , 10 , 10 ) ,
( 3 , 3 , 22 , 1 ) ,
( 4 , 4 , 13 , 5 ) ;
2018-07-30 12:10:09 +00:00
2018-10-04 08:06:32 +00:00
INSERT INTO ` vn ` . ` claimDestination ` ( ` id ` , ` description ` , ` addressFk ` )
VALUES
2019-06-14 10:27:41 +00:00
( 1 , ' Bueno ' , NULL ) ,
2018-10-04 08:06:32 +00:00
( 2 , ' Basura/Perd. ' , 12 ) ,
2019-06-14 10:27:41 +00:00
( 3 , ' Confeccion ' , NULL ) ,
2019-05-08 06:48:47 +00:00
( 4 , ' Reclam.PRAG ' , 12 ) ,
( 5 , ' Corregido ' , 11 ) ;
2018-10-04 08:06:32 +00:00
2018-07-30 12:10:09 +00:00
INSERT INTO ` vn ` . ` claimDevelopment ` ( ` id ` , ` claimFk ` , ` claimResponsibleFk ` , ` workerFk ` , ` claimReasonFk ` , ` claimResultFk ` , ` claimRedeliveryFk ` , ` claimDestinationFk ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 1 , 1 , 21 , 1 , 1 , 2 , 5 ) ,
( 2 , 1 , 1 , 21 , 7 , 2 , 2 , 5 ) ,
( 3 , 2 , 7 , 21 , 9 , 3 , 2 , 5 ) ,
( 4 , 3 , 7 , 21 , 15 , 8 , 2 , 5 ) ,
( 5 , 4 , 7 , 21 , 7 , 8 , 2 , 5 ) ;
2018-07-30 12:10:09 +00:00
2019-07-01 09:56:16 +00:00
INSERT INTO ` vn ` . ` claimEnd ` ( ` id ` , ` saleFk ` , ` claimFk ` , ` workerFk ` , ` claimDestinationFk ` )
VALUES
( 1 , 31 , 4 , 21 , 2 ) ,
( 2 , 32 , 3 , 21 , 3 ) ;
2018-09-25 06:47:11 +00:00
INSERT INTO ` hedera ` . ` tpvMerchant ` ( ` id ` , ` description ` , ` companyFk ` , ` bankFk ` , ` secretKey ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , ' Arkham Bank ' , 442 , 1 , ' h12387193H10238 ' ) ,
( 2 , ' NewYork Bank ' , 442 , 1 , ' 7981ugsgd1hsdad ' ) ;
2018-10-01 11:46:09 +00:00
INSERT INTO ` hedera ` . ` tpvTransaction ` ( ` id ` , ` merchantFk ` , ` clientFk ` , ` receiptFk ` , ` amount ` , ` response ` , ` errorCode ` , ` status ` , ` created ` )
VALUES
( 1 , 1 , 101 , NULL , 2000 , NULL , ' SIS0042 ' , ' ok ' , CURDATE ( ) ) ,
( 2 , 1 , 101 , NULL , 1000 , NULL , ' SIS0051 ' , ' started ' , CURDATE ( ) ) ,
2019-02-20 13:01:05 +00:00
( 3 , 2 , 101 , NULL , 7268 , NULL , NULL , ' ok ' , CURDATE ( ) ) ,
( 4 , 2 , 101 , NULL , 4698 , NULL , NULL , ' started ' , CURDATE ( ) ) ,
( 5 , 1 , 104 , NULL , 2000 , NULL , ' SIS0043 ' , ' ok ' , CURDATE ( ) ) ,
( 6 , 2 , 104 , NULL , 4000 , NULL , ' SIS0044 ' , ' started ' , CURDATE ( ) ) ;
2018-10-03 06:26:05 +00:00
INSERT INTO ` vn ` . ` orderTicket ` ( ` orderFk ` , ` ticketFk ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 1 ) ,
( 2 , 2 ) ,
( 3 , 3 ) ,
( 4 , 4 ) ,
( 5 , 5 ) ,
( 6 , 6 ) ,
( 7 , 7 ) ,
( 8 , 8 ) ,
( 9 , 9 ) ,
( 10 , 10 ) ,
( 11 , 11 ) ,
( 12 , 12 ) ,
( 13 , 13 ) ,
( 14 , 14 ) ,
2019-06-14 10:27:41 +00:00
( 15 , 15 ) ,
( 16 , 16 ) ,
( 17 , 17 ) ,
( 18 , 18 ) ,
( 19 , 19 ) ,
( 20 , 20 ) ,
( 21 , 21 ) ,
( 22 , 22 ) ;
2018-10-05 10:21:52 +00:00
2018-10-05 12:57:58 +00:00
INSERT INTO ` vn ` . ` userConfig ` ( ` userFk ` , ` warehouseFk ` , ` companyFk ` )
2019-01-24 14:50:21 +00:00
VALUES
2019-05-08 06:48:47 +00:00
( 1 , 2 , 69 ) ,
( 5 , 1 , 442 ) ,
( 9 , 1 , 442 ) ,
2019-02-18 13:46:25 +00:00
( 18 , 3 , 567 ) ;
2018-10-16 12:44:48 +00:00
INSERT INTO ` vn ` . ` receipt ` ( ` id ` , ` invoiceFk ` , ` amountPaid ` , ` amountUnpaid ` , ` payed ` , ` workerFk ` , ` bankFk ` , ` clientFk ` , ` created ` , ` companyFk ` , ` isConciliate ` )
VALUES
2019-05-08 06:48:47 +00:00
( 1 , ' Cobro web ' , 100 . 50 , 0 . 00 , CURDATE ( ) , 9 , 1 , 101 , CURDATE ( ) , 442 , 1 ) ,
( 2 , ' Cobro web ' , 200 . 50 , 0 . 00 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 DAY ) , 9 , 1 , 101 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 DAY ) , 442 , 1 ) ,
( 3 , ' Cobro en efectivo ' , 300 . 00 , 100 . 00 , DATE_ADD ( CURDATE ( ) , INTERVAL - 10 DAY ) , 9 , 1 , 102 , DATE_ADD ( CURDATE ( ) , INTERVAL - 10 DAY ) , 442 , 0 ) ,
2019-11-07 10:19:05 +00:00
( 4 , ' Cobro en efectivo ' , 400 . 00 , - 50 . 00 , DATE_ADD ( CURDATE ( ) , INTERVAL - 15 DAY ) , 9 , 1 , 103 , DATE_ADD ( CURDATE ( ) , INTERVAL - 15 DAY ) , 442 , 0 ) ;
2018-10-30 08:43:17 +00:00
2019-11-22 13:34:28 +00:00
INSERT INTO ` vn ` . ` workerTeam ` ( ` id ` , ` team ` , ` workerFk ` )
2018-10-30 08:43:17 +00:00
VALUES
( 1 , 1 , 9 ) ,
( 2 , 1 , 18 ) ,
( 3 , 2 , 101 ) ,
( 4 , 2 , 102 ) ,
( 5 , 3 , 103 ) ,
2018-10-30 11:17:22 +00:00
( 6 , 3 , 104 ) ;
2019-11-13 12:22:39 +00:00
INSERT INTO ` vn ` . ` ticketRequest ` ( ` id ` , ` description ` , ` requesterFk ` , ` attenderFk ` , ` quantity ` , ` itemFk ` , ` price ` , ` isOk ` , ` saleFk ` , ` ticketFk ` , ` created ` )
2018-10-30 11:17:22 +00:00
VALUES
2019-04-18 09:02:28 +00:00
( 1 , ' Ranged weapon longbow 2m ' , 18 , 35 , 5 , 1 , 9 . 10 , 1 , 1 , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 15 DAY ) ) ,
( 2 , ' Melee weapon combat first 15cm ' , 18 , 35 , 10 , 2 , 1 . 07 , 0 , NULL , 1 , DATE_ADD ( CURDATE ( ) , INTERVAL - 15 DAY ) ) ,
2020-02-20 08:31:44 +00:00
( 3 , ' Melee weapon heavy shield 1x0.5m ' , 18 , 35 , 20 , NULL , 3 . 06 , NULL , NULL , 23 , CURDATE ( ) ) ,
2019-07-31 05:46:24 +00:00
( 4 , ' Melee weapon combat first 15cm ' , 18 , 35 , 15 , NULL , 1 . 30 , NULL , NULL , 11 , CURDATE ( ) ) ,
( 5 , ' Melee weapon combat first 15cm ' , 18 , 35 , 15 , 4 , 1 . 30 , 0 , NULL , 18 , CURDATE ( ) ) ;
2019-01-10 06:26:10 +00:00
2020-09-29 05:37:29 +00:00
INSERT INTO ` vn ` . ` ticketServiceType ` ( ` id ` , ` name ` , ` expenceFk ` )
2019-07-26 09:48:01 +00:00
VALUES
2020-09-29 05:37:29 +00:00
( 1 , ' Porte Agencia ' , 7001000000 ) ,
( 2 , ' Portes Retorno ' , 7001000000 ) ,
( 3 , ' Porte Carry ' , 7001000000 ) ,
( 4 , ' Cargo FITOSANITARIO ' , 4751000000 ) ,
( 5 , ' Documentos ' , 2000000000 ) ;
2019-07-26 09:48:01 +00:00
2019-12-12 13:28:58 +00:00
INSERT INTO ` vn ` . ` ticketService ` ( ` id ` , ` description ` , ` quantity ` , ` price ` , ` taxClassFk ` , ` ticketFk ` , ` ticketServiceTypeFk ` )
2019-01-15 11:28:13 +00:00
VALUES
2019-12-12 13:28:58 +00:00
( 1 , ' Documentos ' , 1 , 2 . 00 , 1 , 1 , 1 ) ,
( 2 , ' Porte Agencia ' , 1 , 10 . 00 , 1 , 2 , 1 ) ,
( 3 , ' Documentos ' , 1 , 5 . 50 , 1 , 11 , 1 ) ,
( 4 , ' Documentos ' , 1 , 2 . 00 , 1 , 9 , 1 ) ,
( 5 , ' Documentos ' , 1 , 2 . 00 , 1 , 8 , 1 ) ;
2019-01-21 10:35:37 +00:00
2019-06-04 10:54:41 +00:00
INSERT INTO ` pbx ` . ` sip ` ( ` user_id ` , ` extension ` )
2019-01-21 10:35:37 +00:00
VALUES
2019-06-04 10:54:41 +00:00
( 1 , 1010 ) ,
( 3 , 1101 ) ,
( 5 , 1102 ) ,
( 9 , 1201 ) ;
2019-01-24 06:36:26 +00:00
2019-03-26 09:25:11 +00:00
INSERT INTO ` postgresql ` . ` person ` ( ` person_id ` , ` name ` , ` nickname ` , ` nif ` , ` firstname ` , ` id_trabajador ` )
2019-04-16 06:42:44 +00:00
SELECT w . id , w . lastName , u . nickname , CONCAT ( RPAD ( CONCAT ( w . id , 9 ) , 8 , w . id ) , ' A ' ) , w . firstName , w . id
2019-03-26 09:25:11 +00:00
FROM ` vn ` . ` worker ` ` w `
JOIN ` account ` . ` user ` ` u ` ON ` u ` . ` id ` = ` w ` . ` userFk ` ;
2019-01-24 06:36:26 +00:00
INSERT INTO ` postgresql ` . ` person ` ( ` person_id ` , ` name ` , ` nickname ` , ` nif ` , ` firstname ` , ` id_trabajador ` )
VALUES
2019-07-03 06:29:40 +00:00
( 1000 , ' VERDNATURA LEVANTE SL ' , ' VNL ' , ' B78945612 ' , NULL , NULL ) ;
2019-01-24 06:36:26 +00:00
INSERT INTO ` postgresql ` . ` profile ` ( ` profile_id ` , ` person_id ` , ` profile_type_id ` )
2019-03-26 09:25:11 +00:00
SELECT p . person_id , p . person_id , 1
FROM ` postgresql ` . ` person ` ` p ` ;
INSERT INTO ` postgresql ` . ` business ` ( ` business_id ` , ` client_id ` , ` provider_id ` , ` date_start ` , ` date_end ` , ` workerBusiness ` , ` reasonEndFk ` )
2020-01-02 10:10:26 +00:00
SELECT p . profile_id , p . profile_id , 1000 , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 YEAR ) ) , ' -12-25 ' ) , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL + 1 YEAR ) ) , ' -01-25 ' ) , CONCAT ( ' E-46- ' , RPAD ( CONCAT ( p . profile_id , 9 ) , 8 , p . profile_id ) ) , NULL
2019-03-26 09:25:11 +00:00
FROM ` postgresql ` . ` profile ` ` p ` ;
INSERT INTO ` postgresql ` . ` business_labour ` ( ` business_id ` , ` notes ` , ` department_id ` , ` professional_category_id ` , ` incentivo ` , ` calendar_labour_type_id ` , ` porhoras ` , ` labour_agreement_id ` , ` workcenter_id ` )
SELECT b . business_id , NULL , 23 , 1 , 0 , 1 , 1 , 1 , 1
FROM ` postgresql ` . ` business ` ` b ` ;
2019-01-24 06:36:26 +00:00
2020-03-02 07:18:41 +00:00
UPDATE ` postgresql ` . ` business_labour ` bl
JOIN ` postgresql ` . ` business ` b ON b . business_id = bl . business_id
JOIN ` postgresql ` . ` profile ` pr ON pr . profile_id = b . client_id
JOIN ` postgresql ` . ` person ` p ON p . person_id = pr . person_id
SET bl . ` professional_category_id ` = 31
WHERE p . ` Id_trabajador ` = 110 ;
2020-10-02 10:23:48 +00:00
UPDATE ` postgresql ` . ` business_labour ` bl
SET bl . ` department_id ` = 43
WHERE business_id IN ( 18 , 19 ) ;
2019-01-24 06:36:26 +00:00
INSERT INTO ` postgresql ` . ` media ` ( ` media_id ` , ` media_type_id ` , ` value ` , ` sort ` )
VALUES
( 1 , 10 , 600123321 , 0 ) ,
( 2 , 10 , 700987987 , 0 ) ;
INSERT INTO ` postgresql ` . ` profile_media ` ( ` profile_media_id ` , ` profile_id ` , ` media_id ` )
VALUES
2019-03-26 09:25:11 +00:00
( 1 , 106 , 1 ) ,
( 2 , 107 , 2 ) ;
2019-03-15 11:58:26 +00:00
2019-03-22 11:51:44 +00:00
INSERT INTO ` vn ` . ` workCenter ` ( ` id ` , ` name ` , ` warehouseFk ` )
VALUES
( ' 1 ' , ' Silla ' , ' 1 ' ) ,
( ' 5 ' , ' Madrid ' , ' 5 ' ) ;
2019-07-29 13:02:43 +00:00
INSERT INTO ` vn ` . ` workCenterHoliday ` ( ` workCenterFk ` , ` days ` , ` year ` )
2019-03-22 11:51:44 +00:00
VALUES
( ' 1 ' , ' 27.5 ' , YEAR ( CURDATE ( ) ) ) ,
( ' 5 ' , ' 22 ' , YEAR ( CURDATE ( ) ) ) ,
( ' 1 ' , ' 24.5 ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 YEAR ) ) ) ,
( ' 5 ' , ' 23 ' , YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 YEAR ) ) ) ;
2020-06-27 10:16:56 +00:00
INSERT INTO ` postgresql ` . ` calendar_state ` ( ` calendar_state_id ` , ` type ` , ` rgb ` , ` code ` , ` holidayEntitlementRate ` )
2019-03-22 11:51:44 +00:00
VALUES
2020-06-27 10:16:56 +00:00
( 1 , ' Holidays ' , ' #FF4444 ' , ' holiday ' , 0 ) ,
( 2 , ' Leave of absence ' , ' #C71585 ' , ' absence ' , 0 ) ,
( 6 , ' Half holiday ' , ' #E65F00 ' , ' halfHoliday ' , 0 ) ,
( 20 , ' Furlough ' , ' #97B92F ' , ' furlough ' , 1 ) ,
( 21 , ' Furlough half day ' , ' #778899 ' , ' halfFurlough ' , 0 . 5 ) ;
2019-03-22 11:51:44 +00:00
INSERT INTO ` postgresql ` . ` calendar_employee ` ( ` business_id ` , ` calendar_state_id ` , ` date ` )
VALUES
2020-01-03 07:43:03 +00:00
( 106 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 10 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 10 DAY ) ) ) ,
( 106 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 11 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 11 DAY ) ) ) ,
( 106 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 12 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 12 DAY ) ) ) ,
( 106 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 20 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 20 DAY ) ) ) ,
( 106 , 2 , IF ( MONTH ( CURDATE ( ) ) > = 1 AND DAY ( CURDATE ( ) ) > 20 , DATE_ADD ( CURDATE ( ) , INTERVAL - 13 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 13 DAY ) ) ) ,
( 106 , 1 , IF ( MONTH ( CURDATE ( ) ) > = 1 AND DAY ( CURDATE ( ) ) > 20 , DATE_ADD ( CURDATE ( ) , INTERVAL - 14 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 14 DAY ) ) ) ,
( 106 , 2 , IF ( MONTH ( CURDATE ( ) ) > = 1 AND DAY ( CURDATE ( ) ) > 20 , DATE_ADD ( CURDATE ( ) , INTERVAL - 15 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 15 DAY ) ) ) ,
( 107 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 10 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 10 DAY ) ) ) ,
( 107 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 11 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 11 DAY ) ) ) ,
( 107 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 12 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 12 DAY ) ) ) ,
( 107 , 1 , IF ( MONTH ( CURDATE ( ) ) = 12 AND DAY ( CURDATE ( ) ) > 10 , DATE_ADD ( CURDATE ( ) , INTERVAL - 20 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 20 DAY ) ) ) ,
( 107 , 2 , IF ( MONTH ( CURDATE ( ) ) > = 1 AND DAY ( CURDATE ( ) ) > 20 , DATE_ADD ( CURDATE ( ) , INTERVAL - 13 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 13 DAY ) ) ) ,
( 107 , 1 , IF ( MONTH ( CURDATE ( ) ) > = 1 AND DAY ( CURDATE ( ) ) > 20 , DATE_ADD ( CURDATE ( ) , INTERVAL - 14 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 14 DAY ) ) ) ,
( 107 , 2 , IF ( MONTH ( CURDATE ( ) ) > = 1 AND DAY ( CURDATE ( ) ) > 20 , DATE_ADD ( CURDATE ( ) , INTERVAL - 15 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL 15 DAY ) ) ) ;
2019-04-03 13:16:32 +00:00
2019-12-12 08:46:29 +00:00
INSERT INTO ` vn ` . ` smsConfig ` ( ` id ` , ` uri ` , ` title ` )
2019-04-03 10:27:08 +00:00
VALUES
2019-12-12 08:46:29 +00:00
( ' 1 ' , ' https://websms.xtratelecom.es/api_php/server.wsdl ' , ' Verdnatura ' ) ;
2019-04-03 10:27:08 +00:00
2019-04-11 09:44:34 +00:00
INSERT INTO ` vn ` . ` sharingClient ` ( ` id ` , ` workerFk ` , ` started ` , ` ended ` , ` clientFk ` )
VALUES
( 1 , 19 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) , 101 ) ,
( 2 , 18 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) , 106 ) ;
INSERT INTO ` vn ` . ` sharingCart ` ( ` id ` , ` workerFk ` , ` started ` , ` ended ` , ` workerSubstitute ` , ` created ` )
VALUES
2019-05-17 11:27:51 +00:00
( 1 , 18 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 DAY ) , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) , 19 , DATE_ADD ( CURDATE ( ) , INTERVAL - 5 DAY ) ) ;
2019-03-28 07:05:36 +00:00
2019-09-17 11:52:29 +00:00
CALL ` vn ` . zoneGeo_calcTree ( ) ; -- this is an auto calculate for table vn.zoneGeo, columns: path,lft,rgt,depth,sons
2019-07-29 07:51:49 +00:00
2019-04-29 12:28:08 +00:00
INSERT INTO ` vn ` . ` zoneIncluded ` ( ` zoneFk ` , ` geoFk ` , ` isIncluded ` )
2019-03-28 07:05:36 +00:00
VALUES
2020-09-11 12:51:58 +00:00
( 1 , 3 , 0 ) ,
( 1 , 4 , 0 ) ,
( 1 , 5 , 0 ) ,
( 1 , 1 , 1 ) ,
( 2 , 3 , 0 ) ,
( 2 , 4 , 0 ) ,
( 2 , 5 , 0 ) ,
( 2 , 1 , 1 ) ,
( 3 , 3 , 0 ) ,
( 3 , 4 , 0 ) ,
( 3 , 5 , 0 ) ,
( 3 , 1 , 1 ) ,
( 4 , 3 , 0 ) ,
( 4 , 4 , 0 ) ,
( 4 , 5 , 0 ) ,
( 4 , 1 , 1 ) ,
( 5 , 3 , 1 ) ,
( 5 , 4 , 0 ) ,
( 5 , 5 , 1 ) ,
( 5 , 1 , 1 ) ,
( 6 , 3 , 1 ) ,
( 6 , 4 , 0 ) ,
( 6 , 5 , 1 ) ,
( 6 , 1 , 1 ) ,
( 7 , 3 , 0 ) ,
( 7 , 4 , 0 ) ,
( 7 , 5 , 0 ) ,
( 7 , 1 , 1 ) ,
( 8 , 3 , 0 ) ,
( 8 , 4 , 0 ) ,
( 8 , 5 , 0 ) ,
( 8 , 1 , 1 ) ,
( 10 , 10 , 1 ) ;
2019-03-28 07:05:36 +00:00
2019-11-18 15:31:37 +00:00
INSERT INTO ` vn ` . ` zoneEvent ` ( ` zoneFk ` , ` type ` , ` dated ` )
VALUES
2020-03-04 14:12:36 +00:00
( 1 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 2 , 2 , 9 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
2019-11-18 15:31:37 +00:00
( 1 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 3 , 3 , 10 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 1 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 4 , 4 , 11 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 1 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 5 , 5 , 12 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 1 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 6 , 6 , 13 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
2020-03-04 14:12:36 +00:00
( 2 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 2 , 2 , 9 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
2019-11-18 15:31:37 +00:00
( 2 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 3 , 3 , 10 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 2 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 4 , 4 , 11 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 2 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 5 , 5 , 12 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 2 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL ( IF ( DAYOFWEEK ( CURDATE ( ) ) < = 6 , 6 , 13 ) - DAYOFWEEK ( CURDATE ( ) ) ) DAY ) ) ,
( 3 , ' day ' , CURDATE ( ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 2 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 3 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 4 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 5 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 6 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 7 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 8 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 9 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 10 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 11 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 12 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 13 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 14 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 16 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 17 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 18 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 19 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 20 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 21 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 22 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 23 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 24 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 25 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 26 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 27 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 28 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 29 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 30 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 31 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 32 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 33 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 34 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 35 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 36 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 37 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 38 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 39 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 40 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 41 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 42 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 43 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 44 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 45 DAY ) ) ,
( 3 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 46 DAY ) ) ,
( 4 , ' day ' , CURDATE ( ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 2 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 3 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 4 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 5 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 6 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 7 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 8 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 9 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 10 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 11 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 12 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 13 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 14 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 16 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 17 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 18 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 19 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 20 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 21 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 22 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 23 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 24 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 25 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 26 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 27 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 28 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 29 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 30 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 31 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 32 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 33 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 34 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 35 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 36 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 37 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 38 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 39 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 40 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 41 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 42 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 43 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 44 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 45 DAY ) ) ,
( 4 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 46 DAY ) ) ,
( 5 , ' day ' , CURDATE ( ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 2 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 3 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 4 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 5 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 6 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 7 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 8 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 9 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 10 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 11 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 12 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 13 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 14 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 16 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 17 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 18 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 19 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 20 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 21 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 22 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 23 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 24 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 25 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 26 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 27 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 28 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 29 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 30 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 31 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 32 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 33 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 34 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 35 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 36 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 37 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 38 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 39 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 40 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 41 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 42 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 43 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 44 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 45 DAY ) ) ,
( 5 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 46 DAY ) ) ,
( 6 , ' day ' , CURDATE ( ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 2 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 3 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 4 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 5 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 6 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 7 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 8 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 9 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 10 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 11 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 12 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 13 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 14 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 15 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 16 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 17 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 18 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 19 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 20 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 21 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 22 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 23 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 24 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 25 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 26 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 27 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 28 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 29 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 30 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 31 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 32 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 33 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 34 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 35 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 36 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 37 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 38 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 39 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 40 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 41 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 42 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 43 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 44 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 45 DAY ) ) ,
( 6 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 46 DAY ) ) ,
( 7 , ' day ' , CURDATE ( ) ) ,
( 7 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 1 DAY ) ) ,
( 7 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 2 DAY ) ) ,
( 7 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 3 DAY ) ) ,
( 7 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 4 DAY ) ) ,
( 7 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 5 DAY ) ) ,
2020-03-23 22:57:11 +00:00
( 7 , ' day ' , DATE_ADD ( CURDATE ( ) , INTERVAL + 6 DAY ) ) ;
INSERT INTO ` vn ` . ` zoneEvent ` ( ` zoneFk ` , ` type ` , ` weekDays ` )
2020-05-19 06:46:42 +00:00
VALUES
( 8 , ' indefinitely ' , ' mon,tue,wed,thu,fri,sat,sun ' ) ,
( 10 , ' indefinitely ' , ' mon,tue,wed,thu,fri,sat,sun ' ) ;
2019-05-17 11:27:51 +00:00
2020-01-24 11:38:08 +00:00
INSERT INTO ` vn ` . ` workerTimeControl ` ( ` userFk ` , ` timed ` , ` manual ` , ` direction ` )
2019-05-17 11:27:51 +00:00
VALUES
2020-01-24 11:38:08 +00:00
( 106 , CONCAT ( CURDATE ( ) , ' 07:00 ' ) , TRUE , ' in ' ) ,
( 106 , CONCAT ( CURDATE ( ) , ' 10:00 ' ) , TRUE , ' middle ' ) ,
( 106 , CONCAT ( CURDATE ( ) , ' 10:10 ' ) , TRUE , ' middle ' ) ,
( 106 , CONCAT ( CURDATE ( ) , ' 15:00 ' ) , TRUE , ' out ' ) ;
2019-05-22 10:09:15 +00:00
2019-05-27 09:04:57 +00:00
INSERT INTO ` vn ` . ` dmsType ` ( ` id ` , ` name ` , ` path ` , ` readRoleFk ` , ` writeRoleFk ` , ` code ` )
VALUES
2020-09-11 12:51:58 +00:00
( 1 , ' Facturas Recibidas ' , ' recibidas ' , NULL , NULL , ' invoiceIn ' ) ,
( 2 , ' Doc oficial ' , ' oficial ' , NULL , NULL , ' officialDoc ' ) ,
( 3 , ' Laboral ' , ' laboral ' , 37 , 37 , ' hhrrData ' ) ,
( 4 , ' Albaranes recibidos ' , ' entradas ' , NULL , NULL , ' deliveryNote ' ) ,
( 5 , ' Otros ' , ' otros ' , 1 , 1 , ' miscellaneous ' ) ,
( 6 , ' Pruebas ' , ' pruebas ' , NULL , NULL , ' tests ' ) ,
( 7 , ' IAE Clientes ' , ' IAE_Clientes ' , 1 , 1 , ' economicActivitiesTax ' ) ,
( 8 , ' Fiscal ' , ' fiscal ' , NULL , NULL , ' fiscal ' ) ,
( 9 , ' Vehiculos ' , ' vehiculos ' , NULL , NULL , ' vehicles ' ) ,
( 10 , ' Plantillas ' , ' plantillas ' , NULL , NULL , ' templates ' ) ,
( 11 , ' Contratos ' , ' contratos ' , NULL , NULL , ' contracts ' ) ,
( 12 , ' ley de pagos ' , ' ley pagos ' , 1 , 1 , ' paymentsLaw ' ) ,
( 13 , ' Basura ' , ' basura ' , 1 , 1 , ' trash ' ) ,
( 14 , ' Ticket ' , ' tickets ' , 1 , 1 , ' ticket ' ) ,
( 15 , ' Presupuestos ' , ' Presupuestos ' , NULL , NULL , ' budgets ' ) ,
( 16 , ' Logistica ' , ' logistica ' , NULL , NULL , ' logistics ' ) ,
( 17 , ' cmr ' , ' cmr ' , NULL , NULL , ' cmr ' ) ,
( 18 , ' dua ' , ' dua ' , NULL , NULL , ' dua ' ) ,
( 19 , ' inmovilizado ' , ' inmovilizado ' , NULL , NULL , ' fixedAssets ' ) ,
( 20 , ' Reclamación ' , ' reclamacion ' , 1 , 1 , ' claim ' ) ;
2019-05-22 10:09:15 +00:00
2019-07-16 12:48:48 +00:00
INSERT INTO ` vn ` . ` dms ` ( ` id ` , ` dmsTypeFk ` , ` file ` , ` contentType ` , ` workerFk ` , ` warehouseFk ` , ` companyFk ` , ` hardCopyNumber ` , ` hasFile ` , ` reference ` , ` description ` , ` created ` )
2019-05-22 10:09:15 +00:00
VALUES
2020-04-03 15:52:47 +00:00
( 1 , 14 , ' 1.txt ' , ' text/plain ' , 5 , 1 , 442 , NULL , FALSE , ' Ticket:11 ' , ' Ticket:11 dms for the ticket ' , CURDATE ( ) ) ,
( 2 , 5 , ' 2.txt ' , ' text/plain ' , 5 , 1 , 442 , 1 , TRUE , ' Client:104 ' , ' Client:104 dms for the client ' , CURDATE ( ) ) ,
( 3 , 5 , ' 3.txt ' , ' text/plain ' , 5 , 1 , 442 , NULL , TRUE , ' Client: 104 ' , ' Client:104 readme ' , CURDATE ( ) ) ,
( 4 , 3 , ' 4.txt ' , ' text/plain ' , 5 , 1 , 442 , NULL , TRUE , ' Worker: 106 ' , ' Worker:106 readme ' , CURDATE ( ) ) ,
( 5 , 5 , ' 5.txt ' , ' text/plain ' , 5 , 1 , 442 , NULL , TRUE , ' travel: 1 ' , ' dmsForThermograph ' , CURDATE ( ) ) ,
( 6 , 5 , ' 6.txt ' , ' text/plain ' , 5 , 1 , 442 , NULL , TRUE , ' NotExists ' , ' DoesNotExists ' , CURDATE ( ) ) ;
2019-05-22 10:09:15 +00:00
INSERT INTO ` vn ` . ` ticketDms ` ( ` ticketFk ` , ` dmsFk ` )
VALUES
( 11 , 1 ) ;
INSERT INTO ` vn ` . ` clientDms ` ( ` clientFk ` , ` dmsFk ` )
VALUES
2019-08-12 12:07:30 +00:00
( 104 , 2 ) ,
( 104 , 3 ) ;
2019-06-03 07:20:20 +00:00
2020-04-03 15:52:47 +00:00
INSERT INTO ` vn ` . ` workerDocument ` ( ` id ` , ` worker ` , ` document ` , ` isReadableByWorker ` )
2019-11-22 13:34:20 +00:00
VALUES
2020-04-03 15:52:47 +00:00
( 1 , 106 , 4 , TRUE ) ,
( 2 , 107 , 3 , FALSE ) ;
2019-11-22 13:34:20 +00:00
2019-07-23 12:56:57 +00:00
INSERT INTO ` vn ` . ` device ` ( ` sn ` , ` model ` , ` userFk ` )
VALUES
( ' aaa ' , ' android ' , ' 9 ' ) ;
INSERT INTO ` vn ` . ` queuePriority ` ( ` id ` , ` priority ` )
VALUES
( 1 , ' Alta ' ) ,
( 2 , ' Normal ' ) ,
2019-10-18 06:36:33 +00:00
( 3 , ' Baja ' ) ;
2020-09-25 12:50:04 +00:00
INSERT INTO ` vn ` . ` workerTimeControlParams ` ( ` id ` , ` dayBreak ` , ` weekBreak ` , ` weekScope ` , ` dayWorkMax ` , ` dayStayMax ` , ` weekMaxBreak ` , ` weekMaxScope ` , ` askInOut ` )
2019-11-14 13:20:05 +00:00
VALUES
2020-09-25 12:50:04 +00:00
( 1 , 43200 , 129600 , 734400 , 43200 , 50400 , 259200 , 1296000 , 36000 ) ;
2019-11-26 13:15:43 +00:00
2019-12-20 09:40:12 +00:00
INSERT IGNORE INTO ` vn ` . ` greugeConfig ` ( ` id ` , ` freightPickUpPrice ` ) VALUES ( ' 1 ' , ' 11 ' ) ;
2020-01-09 09:49:09 +00:00
INSERT INTO ` vn ` . ` thermograph ` ( ` id ` , ` model ` )
VALUES
( ' TMM190901395 ' , ' TEMPMATE ' ) ,
( ' TL.BBA85422 ' , ' TL30 ' ) ,
2020-01-17 07:43:10 +00:00
( ' TZ1905012010 ' , ' DISPOSABLE ' ) ,
( ' 138350-0 ' , ' DISPOSABLE ' ) ;
2020-01-09 09:49:09 +00:00
INSERT INTO ` vn ` . ` travelThermograph ` ( ` thermographFk ` , ` created ` , ` warehouseFk ` , ` travelFk ` , ` temperature ` , ` result ` , ` dmsFk ` )
VALUES
2020-01-17 07:43:10 +00:00
( ' TMM190901395 ' , CURDATE ( ) , 1 , 1 , ' WARM ' , ' Ok ' , NULL ) ,
( ' TL.BBA85422 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 2 , 2 , ' COOL ' , ' Ok ' , NULL ) ,
( ' TL.BBA85422 ' , CURDATE ( ) , 2 , 1 , ' COOL ' , ' can not read the temperature ' , NULL ) ,
( ' TZ1905012010 ' , CURDATE ( ) , 1 , 1 , ' WARM ' , ' Temperature in range ' , 5 ) ,
2020-01-21 11:21:53 +00:00
( ' 138350-0 ' , DATE_ADD ( CURDATE ( ) , INTERVAL - 1 MONTH ) , 1 , 1 , ' WARM ' , NULL , 5 ) ,
2020-01-23 13:59:37 +00:00
( ' 138350-0 ' , CURDATE ( ) , 1 , NULL , ' COOL ' , NULL , NULL ) ;
2020-03-02 07:18:41 +00:00
REPLACE INTO ` vn ` . ` incoterms ` ( ` code ` , ` name ` )
2020-01-23 13:59:37 +00:00
VALUES
( ' FAS ' , ' Free Alongside Ship ' ) ;
2020-01-28 08:03:20 +00:00
2020-03-02 07:18:41 +00:00
REPLACE INTO ` vn ` . ` customsAgent ` ( ` id ` , ` fiscalName ` , ` street ` , ` nif ` , ` phone ` , ` email ` )
2020-01-28 08:03:20 +00:00
VALUES
( 1 , ' Agent one ' , ' 1007 Mountain Drive, Gotham ' , ' N1111111111 ' , ' 111111111 ' , ' agentone@gotham.com ' ) ,
2020-03-02 07:18:41 +00:00
( 2 , ' Agent two ' , ' 1007 Mountain Drive, Gotham ' , ' N2222222222 ' , ' 222222222 ' , ' agenttwo@gotham.com ' ) ;
2020-05-15 11:11:23 +00:00
INSERT INTO ` vn ` . ` tablet ` ( ` uuid ` , ` name ` , ` place ` , ` macwifi ` )
VALUES
( ' 1 ' , ' TEST ' , ' ON THE FIXTURES ' , ' 0 ' ) ,
( ' 2 ' , ' DEV ' , ' OTHER TABLET ' , ' 0 ' ) ;
2020-03-02 07:18:41 +00:00
INSERT INTO ` vn ` . ` tabletDepartment ` ( ` tabletFk ` , ` departmentFk ` )
VALUES
( 1 , 23 ) ,
( 2 , 1 ) ;
2020-10-20 10:47:37 +00:00
INSERT INTO ` vn ` . ` campaign ` ( ` code ` , ` dated ` )
VALUES
( ' valentinesDay ' , CONCAT ( YEAR ( CURDATE ( ) ) , ' -02-14 ' ) ) ,
( ' valentinesDay ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 YEAR ) ) , ' -02-14 ' ) ) ,
( ' valentinesDay ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 2 YEAR ) ) , ' -02-14 ' ) ) ,
( ' valentinesDay ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 3 YEAR ) ) , ' -02-14 ' ) ) ,
( ' mothersDay ' , CONCAT ( YEAR ( CURDATE ( ) ) , ' -05-05 ' ) ) ,
( ' mothersDay ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 YEAR ) ) , ' -05-05 ' ) ) ,
( ' mothersDay ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 2 YEAR ) ) , ' -05-05 ' ) ) ,
( ' mothersDay ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 3 YEAR ) ) , ' -05-05 ' ) ) ,
( ' allSaints ' , CONCAT ( YEAR ( CURDATE ( ) ) , ' -11-01 ' ) ) ,
( ' allSaints ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 1 YEAR ) ) , ' -11-01 ' ) ) ,
( ' allSaints ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 2 YEAR ) ) , ' -11-01 ' ) ) ,
( ' allSaints ' , CONCAT ( YEAR ( DATE_ADD ( CURDATE ( ) , INTERVAL - 3 YEAR ) ) , ' -11-01 ' ) ) ;
2020-05-15 11:11:23 +00:00