Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Redondear a 2 digitos el total.

  • Loading branch information...
commit 4b97fd359949f0cf44cab4ad0f20d495e4cb4919 1 parent 1c13485
@miloops authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bravo/bill.rb
View
2  lib/bravo/bill.rb
@@ -40,7 +40,7 @@ def exchange_rate
end
def total
- @total = net.zero? ? 0 : net + iva_sum
+ @total = net.zero? ? 0 : (net + iva_sum).round(2)
end
def iva_sum
Please sign in to comment.
Something went wrong with that request. Please try again.