mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-25 04:44:13 +00:00
Item
- пересчёт НДС при изменении цены, количества и акциза
This commit is contained in:
parent
2260233e3f
commit
c077f98cf9
@ -199,7 +199,7 @@ class Item extends Entity
|
||||
throw new NegativeItemPriceException($this->getName(), $rubles);
|
||||
}
|
||||
$this->price = $rubles;
|
||||
//$this->calcSum();
|
||||
$this->getVat()?->setSum($this->getSum());
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -232,6 +232,7 @@ class Item extends Entity
|
||||
throw new NegativeItemQuantityException($this->getName(), $quantity);
|
||||
}
|
||||
$this->quantity = $quantity;
|
||||
$this->getVat()?->setSum($this->getSum());
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -497,6 +498,7 @@ class Item extends Entity
|
||||
throw new NegativeItemExciseException($this->getName(), $excise);
|
||||
}
|
||||
$this->excise = $excise;
|
||||
$this->getVat()?->setSum($this->getSum());
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user