231801_test_to_master #1519

Merged
alexm merged 490 commits from 231801_test_to_master into master 2023-05-12 06:29:59 +00:00
1 changed files with 1 additions and 4 deletions
Showing only changes of commit fb59371d54 - Show all commits

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();