Fix for UBL

This commit is contained in:
Hillel Coren 2018-06-10 10:38:55 +03:00
parent 2a389b5ac8
commit 180dce1772

View File

@ -138,9 +138,9 @@ class InvoiceItem extends EntityModel
if ($this->discount != 0) {
if ($this->invoice->is_amount_discount) {
$cost -= $discount / $this->qty;
$cost -= $this->discount / $this->qty;
} else {
$cost -= $cost * $discount / 100;
$cost -= $cost * $this->discount / 100;
}
}