mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-25 14:04:07 +00:00
Фикс исключения превышения количества ставок НДС в массиве
This commit is contained in:
parent
a619b06a48
commit
954843e3ad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user