From 034b26f82d0af435a2d2fbd929f5c161c0e908f6 Mon Sep 17 00:00:00 2001 From: Xavier POITAU Date: Thu, 22 Nov 2012 14:14:02 +0100 Subject: [PATCH] When you set the "Fees by carrier, geographical zone, and ranges" (in the "Shipping" tab), the prices are tax excluded and displayed with 2 decimals, but the price is saved with 6 decimals in the database. So when you define a shipping fee with 6 decimals it is saved without problem, but when you come back to edit the values, they are rounded (2 decimals) so you are forced to edit the values again, or else saving will replace the previous 6-decimals values with the displayed 2-decimals values. Having 6 decimals displayed in the BO (not rounded, raw value from the database) is necessary because these values are tax excluded and are displayed tax included on the FO. --- .../themes/default/template/controllers/shipping/content.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/shipping/content.tpl b/admin-dev/themes/default/template/controllers/shipping/content.tpl index 9f987c54d..30ffaa88d 100644 --- a/admin-dev/themes/default/template/controllers/shipping/content.tpl +++ b/admin-dev/themes/default/template/controllers/shipping/content.tpl @@ -78,7 +78,7 @@ type="text" class="fees_{$range[$rangeIdentifier]}" onchange="this.value = this.value.replace(/,/g, \'.\');" name="fees_{$zone['id_zone']}_{$range[$rangeIdentifier]}" onkeyup="clearAllFees({$range[$rangeIdentifier]})" - value="{$price|string_format:"%.2f"}" + value="{$price|string_format:"%.6f"}" style="width: 45px;" /> {$currency->getSign('right')} {l s='(tax excl.)'}