update for Moadian plugin
This commit is contained in:
parent
40fbedb6d1
commit
21fb6b7c09
|
@ -1187,14 +1187,14 @@ class TaxSettingsController extends AbstractController
|
||||||
$buyerEconomicCode = null;
|
$buyerEconomicCode = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($buyerPostalCode) || trim($buyerPostalCode) === '' || count_chars($buyerPostalCode) != 10) {
|
if (empty($buyerPostalCode) || trim($buyerPostalCode) === '') {
|
||||||
$buyerPostalCode = null;
|
$buyerPostalCode = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$personType = 1;
|
$personType = 1;
|
||||||
|
|
||||||
if (count_chars($buyerNationalId ) == 11) {
|
if (strlen($buyerNationalId) == 11) {
|
||||||
$personType = 2;
|
$personType = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue