Added translation. taxClassCode.sql removed
gitea/salix/2113-item_data_add_instrastat This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-02-18 07:21:35 +01:00
parent 7d8e88e884
commit fe8a0b4583
4 changed files with 16 additions and 38 deletions

View File

@ -1,23 +0,0 @@
ALTER TABLE `vn`.`taxClassCode`
DROP FOREIGN KEY `taxClassCode_ibfk_2`,
DROP FOREIGN KEY `taxClassCode_ibfk_1`;
ALTER TABLE `vn`.`taxClassCode`
ADD COLUMN `id` INT NOT NULL AUTO_INCREMENT FIRST,
DROP PRIMARY KEY,
ADD PRIMARY KEY (`id`),
DROP INDEX `iva_codigo_id` ;
ALTER TABLE `vn`.`taxClassCode`
ADD UNIQUE INDEX `taxClassCode_unique` (`taxClassFk` ASC, `effectived` ASC, `taxCodeFk` ASC) VISIBLE;
ALTER TABLE `vn`.`taxClassCode`
ADD CONSTRAINT `taxClassCode_taxClassFk`
FOREIGN KEY (`taxClassFk`)
REFERENCES `vn`.`taxClass` (`id`)
ON DELETE RESTRICT
ON UPDATE CASCADE,
ADD CONSTRAINT `taxClassCode_taxCodeFk`
FOREIGN KEY (`taxCodeFk`)
REFERENCES `vn`.`taxCode` (`id`)
ON DELETE RESTRICT
ON UPDATE CASCADE;

View File

@ -687,11 +687,11 @@ INSERT INTO `vn`.`taxClass`(`id`, `description`, `code`)
(1, 'Reduced VAT', 'R'),
(2, 'General VAT', 'G');
INSERT INTO `vn`.`taxClassCode`(`id`, `taxClassFk`, `effectived`, `taxCodeFk`)
INSERT INTO `vn`.`taxClassCode`(`taxClassFk`, `effectived`, `taxCodeFk`)
VALUES
(1, 1, CURDATE(), 1),
(2, 1, CURDATE(), 21),
(3, 2, CURDATE(), 2);
(1, CURDATE(), 1),
(1, CURDATE(), 21),
(2, CURDATE(), 2);
INSERT INTO `vn`.`intrastat`(`id`, `description`, `taxClassFk`, `taxCodeFk`)
VALUES

View File

@ -7,21 +7,20 @@
}
},
"properties": {
"id": {
"type": "number",
"id": true
},
"effectived": {
"type": "date",
"required": true
},
"taxClassFk": {
"type": "number",
"required": true
"required": true,
"id": 1
},
"taxCodeFk": {
"type": "number",
"required": true
"required": true,
"id": 2
},
"effectived": {
"type": "date",
"required": true,
"id": 3
}
},
"relations": {

View File

@ -6,3 +6,5 @@ Full name calculates based on tags 1-3. Is not recommended to change it manually
Is active: Activo
Expense: Gasto
Price in kg: Precio en kg
New intrastat: Nuevo intrastat
Identifier: Identificador