# 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? ? "#{vat_rate * 100} %" : 'none' end