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

Output 3 Test fixes

parent 37d5eca0
......@@ -57,7 +57,7 @@ class RecipeBuilder {
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)}" }
}
......
......@@ -38,7 +38,7 @@ class TaxesCalculator {
// kotlin's round rounds automatically
return Taxes().apply {
taxesAmount = round( product.basePrice * applicableTaxes / 100)
taxesAmount = round005( product.basePrice * applicableTaxes / 100)
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