mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-25 05:54:09 +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);
|
throw new NegativeItemPriceException($this->getName(), $rubles);
|
||||||
}
|
}
|
||||||
$this->price = $rubles;
|
$this->price = $rubles;
|
||||||
//$this->calcSum();
|
$this->getVat()?->setSum($this->getSum());
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,6 +232,7 @@ class Item extends Entity
|
|||||||
throw new NegativeItemQuantityException($this->getName(), $quantity);
|
throw new NegativeItemQuantityException($this->getName(), $quantity);
|
||||||
}
|
}
|
||||||
$this->quantity = $quantity;
|
$this->quantity = $quantity;
|
||||||
|
$this->getVat()?->setSum($this->getSum());
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,6 +498,7 @@ class Item extends Entity
|
|||||||
throw new NegativeItemExciseException($this->getName(), $excise);
|
throw new NegativeItemExciseException($this->getName(), $excise);
|
||||||
}
|
}
|
||||||
$this->excise = $excise;
|
$this->excise = $excise;
|
||||||
|
$this->getVat()?->setSum($this->getSum());
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user