Фикс исключения превышения количества ставок НДС в массиве

pull/2/head
Anthony Axenov 2020-05-28 00:38:48 +08:00
parent a619b06a48
commit 954843e3ad
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class VatArray extends Entity
{
$max_items = SellSchema::get()->properties->receipt->properties->vats->maxItems;
if ((!empty($vats) && count($vats) >= $max_items) || count($this->vats) >= $max_items) {
throw new AtolTooManyVatsException($max_items);
throw new AtolTooManyVatsException(count($vats), $max_items);
}
return true;
}