mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fix
This commit is contained in:
parent
f2416b3b91
commit
bbb72875e3
@ -1302,7 +1302,9 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
|
|
||||||
if ($this->discount != 0) {
|
if ($this->discount != 0) {
|
||||||
if ($this->is_amount_discount) {
|
if ($this->is_amount_discount) {
|
||||||
$total -= $invoiceTotal ? ($total / ($invoiceTotal + $this->discount) * $this->discount) : 0;
|
if ($invoiceTotal + $this->discount != 0) {
|
||||||
|
$total -= $invoiceTotal ? ($total / ($invoiceTotal + $this->discount) * $this->discount) : 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$total *= (100 - $this->discount) / 100;
|
$total *= (100 - $this->discount) / 100;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user