Sha256: 3cef4c50dfd2f00a2e3dc919166ff57480dca5655b7a13ecbfdfc967d579907c

Contents?: true

Size: 581 Bytes

Versions: 17

Compression:

Stored size: 581 Bytes

Contents

//= require_tree .

accounting.settings =
  currency:
    symbol : "€"   # default currency symbol is '$'
    format: "%v%s" # controls output: %s = symbol, %v = value/number (can be object: see below)
    decimal : ","  # decimal point separator
    thousand: "."  # thousands separator
    precision : 2   # decimal places

  number:
    precision : 2  # default precision on numbers is 0
    thousand: "."
    decimal : ","

window.display_euros = (amount, target) ->
  if isNaN amount
    target.text('Saisie invalide')
  else
    target.text(accounting.formatMoney(amount))

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dorsale-2.1.15 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.14 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.13 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.12 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.11 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.10 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.9 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.8 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.7 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.6 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.5 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.4 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.3 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.2 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.1 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.1.0 app/assets/javascripts/dorsale/billing_machine/all.coffee
dorsale-2.0.1 app/assets/javascripts/dorsale/billing_machine/all.coffee