Sha256: e175b8e9391e0ee396896e25adefcb53e359d10f12f04071a0c2bce4df6295e2

Contents?: true

Size: 386 Bytes

Versions: 149

Compression:

Stored size: 386 Bytes

Contents

//= require spree/backend/translation
//= require solidus_admin/accounting

Spree.formatMoney = function(amount, currency) {
  var currencyInfo = Spree.currencyInfo[currency];

  var thousand = Spree.t('currency_delimiter');
  var decimal = Spree.t('currency_separator');

  return accounting.formatMoney(amount, currencyInfo[0], currencyInfo[1], thousand, decimal, currencyInfo[2]);
}

Version data entries

149 entries across 149 versions & 2 rubygems

Version Path
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/assets/javascripts/spree/backend/format_money.js
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/assets/javascripts/spree/backend/format_money.js
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/assets/javascripts/spree/backend/format_money.js
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/assets/javascripts/spree/backend/format_money.js
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.7.0 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.6.1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.6.0 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.6.0.rc1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.5.0 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.5.0.rc1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.5.0.beta2 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.5.0.beta1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.4.2 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.4.1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.3.1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.2.2 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.4.0 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.4.0.rc1 app/assets/javascripts/spree/backend/format_money.js
solidus_backend-2.4.0.beta1 app/assets/javascripts/spree/backend/format_money.js