#9809 update model and fixtures

This commit is contained in:
Bernat 2019-02-11 10:13:58 +01:00
parent 7365a1e001
commit d614dd34f3
2 changed files with 21 additions and 18 deletions

View File

@ -3,18 +3,21 @@
"description": "Companies",
"base": "VnModel",
"options": {
"mysql": {
"table": "company"
}
"mysql": {
"table": "company"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"code": {
"type": "String"
}
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"code": {
"type": "String"
},
"expired": {
"type": "date"
}
}
}
}

View File

@ -328,13 +328,13 @@ INSERT INTO `vn`.`bankEntity`(`id`, `countryFk`, `name`, `bic`)
VALUES
( 241, 442, 'ES111122333344111122221111', 128);
INSERT INTO `vn`.`company`(`id`, `code`, `supplierAccountFk`, `workerManagerFk`, `companyCode`, `sage200Company`)
INSERT INTO `vn`.`company`(`id`, `code`, `supplierAccountFk`, `workerManagerFk`, `companyCode`, `sage200Company`, `expired`)
VALUES
( 69 , 'CCs', NULL, 30, NULL, 0),
( 442 , 'VNL', 241, 30, 2 , 1),
( 567 , 'VNH', NULL, 30, NULL, 4),
( 791 , 'FTH', NULL, 30, NULL, 3),
( 1381, 'ORN', NULL, 30, NULL, 7);
( 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);
INSERT INTO `vn`.`invoiceOut`(`id`,`ref`, `serial`, `amount`, `issued`,`clientFk`, `created`, `companyFk`, `dued`, `booked`, `bankFk`, `pdf`)
VALUES