Added Swiss Franc

This commit is contained in:
Hillel Coren 2015-02-18 14:59:25 +02:00
parent ffebf2eb26
commit c1bc3f5a3f
4 changed files with 46 additions and 44 deletions

View File

@ -138,6 +138,8 @@ class ConstantsSeeder extends Seeder
Currency::create(array('name' => 'Norske Kroner', 'code' => 'NOK', 'symbol' => 'kr ', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'));
Currency::create(array('name' => 'New Zealand Dollar', 'code' => 'NZD', 'symbol' => '$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'));
Currency::create(array('name' => 'Vietnamese Dong', 'code' => 'VND', 'symbol' => 'VND ', 'precision' => '0', 'thousand_separator' => ',', 'decimal_separator' => '.'));
Currency::create(array('name' => 'Swiss Franc', 'code' => 'CHF', 'symbol' => 'CHF ', 'precision' => '2', 'thousand_separator' => '\'', 'decimal_separator' => '.'));
DatetimeFormat::create(array('format' => 'd/M/Y g:i a', 'label' => '10/Mar/2013'));
DatetimeFormat::create(array('format' => 'd-M-Yk g:i a', 'label' => '10-Mar-2013'));

View File

@ -33024,7 +33024,7 @@ function toggleDatePicker(field) {
function roundToTwo(num, toString) {
var val = +(Math.round(num + "e+2") + "e-2");
return toString ? val.toFixed(2) : val;
return toString ? val.toFixed(2) : val || 0;
}
function truncate(str, length) {

View File

@ -1501,7 +1501,7 @@ function toggleDatePicker(field) {
function roundToTwo(num, toString) {
var val = +(Math.round(num + "e+2") + "e-2");
return toString ? val.toFixed(2) : val;
return toString ? val.toFixed(2) : (val || 0);
}
function truncate(str, length) {