Fixed production errors #1699

This commit is contained in:
Joan Sanchez 2019-09-19 08:58:42 +02:00
parent 8cb10759d3
commit 4d894365eb
3 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ ext install dbaeumer.vscode-eslint
You will need to install globally the following items.
```
# npm install -g karma-cli gulp-cli nodemon
# npm install -g jest gulp-cli nodemon
```
## Linux Only Prerequisites

View File

@ -570,7 +570,8 @@ INSERT INTO `vn`.`itemCategory`(`id`, `name`, `display`, `color`, `icon`)
(4, 'Handmade', 1, NULL, 'icon-handmade'),
(5, 'Artificial', 1, NULL, 'icon-artificial'),
(6, 'Green', 1, NULL, 'icon-greenery'),
(7, 'Accessories', 1, NULL, 'icon-accessory');
(7, 'Accessories', 1, NULL, 'icon-accessory'),
(8, 'Fruit', 1, NULL, 'icon-fruit');
INSERT INTO `vn`.`itemType`(`id`, `code`, `name`, `categoryFk`, `life`,`workerFk`, `isPackaging`)
VALUES

View File

@ -107,6 +107,8 @@ module.exports = Self => {
});
function cannotHaveET(err) {
if (!this.fi) return;
let tin = this.fi.toUpperCase();
let cannotHaveET = /^[A-B]/.test(tin);