From 3c63ab577b8fd518687d20ac186b05d923d0dc05 Mon Sep 17 00:00:00 2001 From: Irka Date: Thu, 31 Jul 2014 08:54:48 +0200 Subject: [PATCH] MT#8387 Introduce round for cents. --- share/templates/invoice/default/invoice_template_aux.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/share/templates/invoice/default/invoice_template_aux.tt b/share/templates/invoice/default/invoice_template_aux.tt index b83f0a8538..9823590372 100644 --- a/share/templates/invoice/default/invoice_template_aux.tt +++ b/share/templates/invoice/default/invoice_template_aux.tt @@ -134,6 +134,7 @@ # cent = Math.int( amount % 100) ; cent = Math.int( amount % 100) * ( base.power( money_signs - 2) ) ; cents = String.new(cent); + cents = cents.format("%.0f",cents); cents_format_string = "%0" _ money_signs _ "d"; cents = cents.format(cents_format_string); aux.val = full _ comma _ cents;