close #650 Fixed: Invoice TOTAL Calculation Mistake between create and showing/paying times
This commit is contained in:
		@@ -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)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user