refs #5540 quit logs
This commit is contained in:
parent
0e0db960af
commit
fb59371d54
|
@ -89,11 +89,8 @@ module.exports = Self => {
|
||||||
where: {id: this.countryFk}
|
where: {id: this.countryFk}
|
||||||
};
|
};
|
||||||
const country = await Self.app.models.Country.findOne(filter);
|
const country = await Self.app.models.Country.findOne(filter);
|
||||||
console.log(country);
|
|
||||||
const code = country ? country.code.toLowerCase() : null;
|
const code = country ? country.code.toLowerCase() : null;
|
||||||
console.log(code);
|
|
||||||
const countryCode = this.fi.toLowerCase().substring(0, 2);
|
const countryCode = this.fi.toLowerCase().substring(0, 2);
|
||||||
console.log(countryCode);
|
|
||||||
|
|
||||||
if (!this.fi || !validateTin(this.fi, code) || (this.isVies && countryCode == code))
|
if (!this.fi || !validateTin(this.fi, code) || (this.isVies && countryCode == code))
|
||||||
err();
|
err();
|
||||||
|
|
Loading…
Reference in New Issue