diff --git a/db/changes/10390-constitution/00-department.sql b/db/changes/10390-constitution/00-department.sql
new file mode 100644
index 000000000..e882296ad
--- /dev/null
+++ b/db/changes/10390-constitution/00-department.sql
@@ -0,0 +1,33 @@
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=96;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=95;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=115;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=123;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=94;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=101;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=80;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=125;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=98;
+UPDATE vn.department
+ SET notificationEmail='direccioncomercial@verdnatura.es'
+ WHERE id=92;
+UPDATE vn.department
+ SET notificationEmail=''
+ WHERE id=43;
\ No newline at end of file
diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql
index dd21ca847..b480a6d78 100644
--- a/db/dump/fixtures.sql
+++ b/db/dump/fixtures.sql
@@ -796,25 +796,26 @@ INSERT INTO `vn`.`itemFamily`(`code`, `description`)
('SER', 'Services'),
('VT', 'Sales');
-INSERT INTO `vn`.`item`(`id`, `typeFk`, `size`, `inkFk`, `stems`, `originFk`, `description`, `producerFk`, `intrastatFk`, `expenceFk`, `comment`, `relevancy`, `image`, `subName`, `minPrice`, `stars`, `family`, `isFloramondo`)
+INSERT INTO `vn`.`item`(`id`, `typeFk`, `size`, `inkFk`, `stems`, `originFk`, `description`, `producerFk`, `intrastatFk`, `expenceFk`,
+ `comment`, `relevancy`, `image`, `subName`, `minPrice`, `stars`, `family`, `isFloramondo`, `genericFk`)
VALUES
- (1, 2, 70, 'YEL', 1, 1, NULL, 1, 06021010, 2000000000, NULL, 0, '1', NULL, 0, 1, 'VT', 0),
- (2, 2, 70, 'BLU', 1, 2, NULL, 1, 06021010, 2000000000, NULL, 0, '2', NULL, 0, 2, 'VT', 0),
- (3, 1, 60, 'YEL', 1, 3, NULL, 1, 05080000, 4751000000, NULL, 0, '3', NULL, 0, 5, 'VT', 0),
- (4, 1, 60, 'YEL', 1, 1, 'Increases block', 1, 05080000, 4751000000, NULL, 0, '4', NULL, 0, 3, 'VT', 0),
- (5, 3, 30, 'RED', 1, 2, NULL, 2, 06021010, 4751000000, NULL, 0, '5', NULL, 0, 3, 'VT', 0),
- (6, 5, 30, 'RED', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '6', NULL, 0, 4, 'VT', 0),
- (7, 5, 90, 'BLU', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '7', NULL, 0, 4, 'VT', 0),
- (8, 2, 70, 'YEL', 1, 1, NULL, 1, 06021010, 2000000000, NULL, 0, '8', NULL, 0, 5, 'VT', 0),
- (9, 2, 70, 'BLU', 1, 2, NULL, 1, 06021010, 2000000000, NULL, 0, '9', NULL, 0, 4, 'VT', 1),
- (10, 1, 60, 'YEL', 1, 3, NULL, 1, 05080000, 4751000000, NULL, 0, '10', NULL, 0, 4, 'VT', 0),
- (11, 1, 60, 'YEL', 1, 1, NULL, 1, 05080000, 4751000000, NULL, 0, '11', NULL, 0, 4, 'VT', 0),
- (12, 3, 30, 'RED', 1, 2, NULL, 2, 06021010, 4751000000, NULL, 0, '12', NULL, 0, 3, 'VT', 0),
- (13, 5, 30, 'RED', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '13', NULL, 0, 2, 'VT', 1),
- (14, 5, 90, 'BLU', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 4, 'VT', 1),
- (15, 4, NULL, NULL, NULL, 1, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 0, 'EMB', 0),
- (16, 6, NULL, NULL, NULL, 1, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 0, 'EMB', 0),
- (71, 6, NULL, NULL, NULL, 1, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 0, 'VT', 0);
+ (1, 2, 70, 'YEL', 1, 1, NULL, 1, 06021010, 2000000000, NULL, 0, '1', NULL, 0, 1, 'VT', 0, NULL),
+ (2, 2, 70, 'BLU', 1, 2, NULL, 1, 06021010, 2000000000, NULL, 0, '2', NULL, 0, 2, 'VT', 0, NULL),
+ (3, 1, 60, 'YEL', 1, 3, NULL, 1, 05080000, 4751000000, NULL, 0, '3', NULL, 0, 5, 'VT', 0, NULL),
+ (4, 1, 60, 'YEL', 1, 1, 'Increases block', 1, 05080000, 4751000000, NULL, 0, '4', NULL, 0, 3, 'VT', 0, NULL),
+ (5, 3, 30, 'RED', 1, 2, NULL, 2, 06021010, 4751000000, NULL, 0, '5', NULL, 0, 3, 'VT', 0, NULL),
+ (6, 5, 30, 'RED', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '6', NULL, 0, 4, 'VT', 0, NULL),
+ (7, 5, 90, 'BLU', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '7', NULL, 0, 4, 'VT', 0, NULL),
+ (8, 2, 70, 'YEL', 1, 1, NULL, 1, 06021010, 2000000000, NULL, 0, '8', NULL, 0, 5, 'VT', 0, NULL),
+ (9, 2, 70, 'BLU', 1, 2, NULL, 1, 06021010, 2000000000, NULL, 0, '9', NULL, 0, 4, 'VT', 1, NULL),
+ (10, 1, 60, 'YEL', 1, 3, NULL, 1, 05080000, 4751000000, NULL, 0, '10', NULL, 0, 4, 'VT', 0, NULL),
+ (11, 1, 60, 'YEL', 1, 1, NULL, 1, 05080000, 4751000000, NULL, 0, '11', NULL, 0, 4, 'VT', 0, NULL),
+ (12, 3, 30, 'RED', 1, 2, NULL, 2, 06021010, 4751000000, NULL, 0, '12', NULL, 0, 3, 'VT', 0, NULL),
+ (13, 5, 30, 'RED', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '13', NULL, 0, 2, 'VT', 1, NULL),
+ (14, 5, 90, 'BLU', 1, 2, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 4, 'VT', 1, NULL),
+ (15, 4, NULL, NULL, NULL, 1, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 0, 'EMB', 0, NULL),
+ (16, 6, NULL, NULL, NULL, 1, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 0, 'EMB', 0, NULL),
+ (71, 6, NULL, NULL, NULL, 1, NULL, NULL, 06021010, 4751000000, NULL, 0, '', NULL, 0, 0, 'VT', 0, NULL);
-- Update the taxClass after insert of the items
UPDATE `vn`.`itemTaxCountry` SET `taxClassFk` = 2
@@ -2418,4 +2419,7 @@ INSERT INTO `vn`.`expeditionScan` (`id`, `expeditionFk`, `scanned`, `palletFk`)
(9, 9, CURDATE(), 1),
(10, 10, CURDATE(), 1);
-CALL `cache`.`last_buy_refresh`(FALSE);
\ No newline at end of file
+CALL `cache`.`last_buy_refresh`(FALSE);
+
+UPDATE `vn`.`item` SET `genericFk` = 9
+ WHERE `id` = 2;
\ No newline at end of file
diff --git a/e2e/helpers/puppeteer.js b/e2e/helpers/puppeteer.js
index dace276be..abd76b434 100644
--- a/e2e/helpers/puppeteer.js
+++ b/e2e/helpers/puppeteer.js
@@ -27,7 +27,7 @@ export async function getBrowser() {
args,
defaultViewport: null,
headless: headless,
- slowMo: 5, // slow down by ms
+ slowMo: 1, // slow down by ms
// ignoreDefaultArgs: ['--disable-extensions'],
// executablePath: '/usr/bin/google-chrome-stable',
// executablePath: '/usr/bin/firefox-developer-edition',
diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js
index 84f5cdd0f..24b87b398 100644
--- a/e2e/helpers/selectors.js
+++ b/e2e/helpers/selectors.js
@@ -382,6 +382,7 @@ export default {
relevancy: 'vn-item-basic-data vn-input-number[ng-model="$ctrl.item.relevancy"]',
origin: 'vn-autocomplete[ng-model="$ctrl.item.originFk"]',
compression: 'vn-item-basic-data vn-input-number[ng-model="$ctrl.item.compression"]',
+ generic: 'vn-autocomplete[ng-model="$ctrl.item.genericFk"]',
isFragile: 'vn-check[ng-model="$ctrl.item.isFragile"]',
longName: 'vn-textfield[ng-model="$ctrl.item.longName"]',
isActiveCheckbox: 'vn-check[label="Active"]',
diff --git a/e2e/paths/04-item/02_basic_data.spec.js b/e2e/paths/04-item/02_basic_data.spec.js
index defefe279..0bbb6ad12 100644
--- a/e2e/paths/04-item/02_basic_data.spec.js
+++ b/e2e/paths/04-item/02_basic_data.spec.js
@@ -23,15 +23,17 @@ describe('Item Edit basic data path', () => {
it(`should edit the item basic data`, async() => {
await page.clearInput(selectors.itemBasicData.name);
await page.write(selectors.itemBasicData.name, 'Rose of Purity');
- await page.autocompleteSearch(selectors.itemBasicData.type, 'Anthurium');
- await page.autocompleteSearch(selectors.itemBasicData.intrastat, 'Coral y materiales similares');
- await page.clearInput(selectors.itemBasicData.relevancy);
- await page.write(selectors.itemBasicData.relevancy, '1');
- await page.autocompleteSearch(selectors.itemBasicData.origin, 'Spain');
- await page.clearInput(selectors.itemBasicData.compression);
- await page.write(selectors.itemBasicData.compression, '2');
await page.clearInput(selectors.itemBasicData.longName);
await page.write(selectors.itemBasicData.longName, 'RS Rose of Purity');
+ await page.autocompleteSearch(selectors.itemBasicData.type, 'Anthurium');
+ await page.autocompleteSearch(selectors.itemBasicData.intrastat, 'Coral y materiales similares');
+ await page.autocompleteSearch(selectors.itemBasicData.origin, 'Spain');
+ await page.clearInput(selectors.itemBasicData.relevancy);
+ await page.write(selectors.itemBasicData.relevancy, '1');
+ await page.clearInput(selectors.itemBasicData.compression);
+ await page.write(selectors.itemBasicData.compression, '2');
+ await page.clearInput(selectors.itemBasicData.generic);
+ await page.autocompleteSearch(selectors.itemBasicData.generic, '16');
await page.waitToClick(selectors.itemBasicData.isActiveCheckbox);
await page.waitToClick(selectors.itemBasicData.priceInKgCheckbox);
await page.waitToClick(selectors.itemBasicData.isFragile);
@@ -101,6 +103,13 @@ describe('Item Edit basic data path', () => {
expect(result).toEqual('2');
});
+ it(`should confirm the item generic was edited`, async() => {
+ const result = await page
+ .waitToGetProperty(selectors.itemBasicData.generic, 'value');
+
+ expect(result).toEqual('16 - Pallet');
+ });
+
it(`should confirm the item long name was edited`, async() => {
const result = await page
.waitToGetProperty(selectors.itemBasicData.longName, 'value');
diff --git a/front/core/styles/icons/salixfont.css b/front/core/styles/icons/salixfont.css
index 3ca829282..29f956379 100644
--- a/front/core/styles/icons/salixfont.css
+++ b/front/core/styles/icons/salixfont.css
@@ -129,13 +129,13 @@
.icon-columndelete:before {
content: "\e91d";
}
-.icon-complementos:before {
+.icon-accessory:before {
content: "\e91e";
}
.icon-components:before {
content: "\e91f";
}
-.icon-confeccion:before {
+.icon-handmade:before {
content: "\e920";
}
.icon-consignatarios:before {
@@ -180,7 +180,7 @@
.icon-fixedPrice:before {
content: "\e92e";
}
-.icon-flor:before {
+.icon-flower:before {
content: "\e92f";
}
.icon-frozen:before {
@@ -207,7 +207,7 @@
.icon-history:before {
content: "\e937";
}
-.icon-Inactivo:before {
+.icon-disabled:before {
content: "\e938";
}
.icon-info:before {
@@ -285,7 +285,7 @@
.icon-photo:before {
content: "\e951";
}
-.icon-planta:before {
+.icon-plant:before {
content: "\e952";
}
.icon-stowaway:before {
@@ -300,13 +300,13 @@
.icon-regentry:before {
content: "\e956";
}
-.icon-reserva:before {
+.icon-reserve:before {
content: "\e957";
}
.icon-revision:before {
content: "\e958";
}
-.icon-riesgo:before {
+.icon-risk:before {
content: "\e959";
}
.icon-services:before {
@@ -372,7 +372,7 @@
.icon-unavailable:before {
content: "\e96e";
}
-.icon-verde:before {
+.icon-greenery:before {
content: "\e96f";
}
.icon-volume:before {
diff --git a/modules/client/front/descriptor/index.html b/modules/client/front/descriptor/index.html
index d1a88aee7..6ae1f690e 100644
--- a/modules/client/front/descriptor/index.html
+++ b/modules/client/front/descriptor/index.html
@@ -82,7 +82,7 @@