mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	fix tax rounding issues
This commit is contained in:
		| @ -105,11 +105,13 @@ export default { | ||||
|     }, | ||||
|     taxAmount() { | ||||
|       if (this.tax.compound_tax && this.total) { | ||||
|         return ((this.total + this.totalTax) * this.tax.percent) / 100 | ||||
|         return Math.round( | ||||
|           ((this.total + this.totalTax) * this.tax.percent) / 100 | ||||
|         ) | ||||
|       } | ||||
|  | ||||
|       if (this.total && this.tax.percent) { | ||||
|         return (this.total * this.tax.percent) / 100 | ||||
|         return Math.round((this.total * this.tax.percent) / 100) | ||||
|       } | ||||
|  | ||||
|       return 0 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user