mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:17:35 -05:00 
			
		
		
		
	Merge line item discount rounding fix
This commit is contained in:
		
							parent
							
								
									e56bdcf44d
								
							
						
					
					
						commit
						6ac1982aef
					
				@ -549,7 +549,7 @@ class InvoiceRepository extends BaseRepository
 | 
			
		||||
                if ($invoice->is_amount_discount) {
 | 
			
		||||
                    $lineTotal -= $discount;
 | 
			
		||||
                } else {
 | 
			
		||||
                    $lineTotal -= $lineTotal * $discount / 100;
 | 
			
		||||
                    $lineTotal -= round($lineTotal * $discount / 100, 2);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user