refs #1408 Fixed bill total discount feature..
This commit is contained in:
@ -38,11 +38,16 @@ class CreateBillItem extends Job
|
||||
|
||||
$item_discounted_amount = $item_amount;
|
||||
|
||||
// Apply discount to amount
|
||||
// Apply line discount to amount
|
||||
if (!empty($this->request['discount'])) {
|
||||
$item_discounted_amount = $item_amount -= ($item_amount * ($this->request['discount'] / 100));
|
||||
}
|
||||
|
||||
// Apply global discount to amount
|
||||
if (!empty($this->request['global_discount'])) {
|
||||
$item_discounted_amount = $item_amount - ($item_amount * ($this->request['global_discount'] / 100));
|
||||
}
|
||||
|
||||
$tax_amount = 0;
|
||||
$item_taxes = [];
|
||||
$item_tax_total = 0;
|
||||
|
Reference in New Issue
Block a user