1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/app/views/archive/_vat.json.jbuilder

8 lines
269 B
Plaintext
Raw Normal View History

2019-03-12 12:15:14 +01:00
# frozen_string_literal: true
json.amount do
json.without_tax number_to_currency((price - (price * vat_rate)) / 100.0)
json.all_taxes_included number_to_currency(price / 100.0)
json.vat_rate vat_rate.positive? ? number_to_percentage(vat_rate * 100) : 'none'
2019-03-12 12:15:14 +01:00
end