close #650 Fixed: Invoice TOTAL Calculation Mistake between create and showing/paying times

This commit is contained in:
cuneytsenturk 2018-11-29 11:50:23 +03:00
parent 1d63b2d85a
commit b722dee962
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class CreateBillItem
// Apply discount to tax
if ($this->discount) {
$item_discount_amount = $item_amount * ($this->discount / 100);
$item_discount_amount = $item_amount - ($item_amount * ($this->discount / 100));
}
if (!empty($item_id)) {

View File

@ -50,7 +50,7 @@ class CreateInvoiceItem
// Apply discount to tax
if ($this->discount) {
$item_discount_amount = $item_amount * ($this->discount / 100);
$item_discount_amount = $item_amount - ($item_amount * ($this->discount / 100));
}
if (!empty($item_id)) {