Fix for UBL
This commit is contained in:
parent
2a389b5ac8
commit
180dce1772
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue