update for Moadian plugin

This commit is contained in:
Gloomy 2025-08-06 10:29:40 +00:00
parent 40fbedb6d1
commit 21fb6b7c09

View file

@ -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;
} }