mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for UBL
This commit is contained in:
parent
2a389b5ac8
commit
180dce1772
@ -138,9 +138,9 @@ class InvoiceItem extends EntityModel
|
|||||||
|
|
||||||
if ($this->discount != 0) {
|
if ($this->discount != 0) {
|
||||||
if ($this->invoice->is_amount_discount) {
|
if ($this->invoice->is_amount_discount) {
|
||||||
$cost -= $discount / $this->qty;
|
$cost -= $this->discount / $this->qty;
|
||||||
} else {
|
} else {
|
||||||
$cost -= $cost * $discount / 100;
|
$cost -= $cost * $this->discount / 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user