Commit 0c5c6b5c authored by Javier Hernández's avatar Javier Hernández 🤓

Output 3 Test fixes

parent 37d5eca0
...@@ -57,7 +57,7 @@ class RecipeBuilder { ...@@ -57,7 +57,7 @@ class RecipeBuilder {
logger.info { "1 $imported $pres ${it.name}: ${it.taxes!!.afterTaxesAmount}" } logger.info { "1 $imported $pres ${it.name}: ${it.taxes!!.afterTaxesAmount}" }
} }
logger.info { "Sales Taxes: $salesTaxes" } logger.info { "Sales Taxes: ${TaxesCalculator.round(salesTaxes)}" }
logger.info { "Total: ${TaxesCalculator.round(totalAmount)}" } logger.info { "Total: ${TaxesCalculator.round(totalAmount)}" }
} }
......
...@@ -38,7 +38,7 @@ class TaxesCalculator { ...@@ -38,7 +38,7 @@ class TaxesCalculator {
// kotlin's round rounds automatically // kotlin's round rounds automatically
return Taxes().apply { return Taxes().apply {
taxesAmount = round( product.basePrice * applicableTaxes / 100) taxesAmount = round005( product.basePrice * applicableTaxes / 100)
afterTaxesAmount = round(product.basePrice.plus(taxesAmount)) afterTaxesAmount = round(product.basePrice.plus(taxesAmount))
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment