refs #5540 quit logs

This commit is contained in:
Carlos Satorres 2023-04-28 14:38:49 +02:00
parent 0e0db960af
commit fb59371d54
1 changed files with 1 additions and 4 deletions

View File

@ -89,12 +89,9 @@ module.exports = Self => {
where: {id: this.countryFk}
};
const country = await Self.app.models.Country.findOne(filter);
console.log(country);
const code = country ? country.code.toLowerCase() : null;
console.log(code);
const countryCode = this.fi.toLowerCase().substring(0, 2);
console.log(countryCode);
if (!this.fi || !validateTin(this.fi, code) || (this.isVies && countryCode == code))
err();
done();