close #650 Fixed: Invoice TOTAL Calculation Mistake between create and showing/paying times
This commit is contained in:
parent
1d63b2d85a
commit
b722dee962
@ -50,7 +50,7 @@ class CreateBillItem
|
|||||||
|
|
||||||
// Apply discount to tax
|
// Apply discount to tax
|
||||||
if ($this->discount) {
|
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)) {
|
if (!empty($item_id)) {
|
||||||
|
@ -50,7 +50,7 @@ class CreateInvoiceItem
|
|||||||
|
|
||||||
// Apply discount to tax
|
// Apply discount to tax
|
||||||
if ($this->discount) {
|
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)) {
|
if (!empty($item_id)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user