From f39429f6d08beb12e45608a50d3723dd57be7141 Mon Sep 17 00:00:00 2001 From: Hadi Date: Mon, 15 May 2023 15:05:06 +0430 Subject: [PATCH] taxID validation fixed --- src/Moadian.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Moadian.php b/src/Moadian.php index fe20ec3..2bb1a43 100644 --- a/src/Moadian.php +++ b/src/Moadian.php @@ -54,7 +54,7 @@ public function inquiryByReferenceNumbers(array $refNums) public function getEconomicCodeInformation(string $taxID) { - if (strlen($taxID)>9 || strlen($taxID) < 12) + if (strlen($taxID) < 9 || strlen($taxID) >= 12) throw new MoadianException('$taxID must be between 10 and 11 digits'); return $this->client->getEconomicCodeInformation($taxID);