lib/polish_invoicer/presenter.rb in polish_invoicer-0.0.22 vs lib/polish_invoicer/presenter.rb in polish_invoicer-0.0.23
- old
+ new
@@ -29,11 +29,11 @@
def remove_redundand_params
@out.delete(:price)
end
def copy_additional_params
- %w[net_value vat_value gross_value].each do |field|
+ %w[net_value vat_value gross_value exchanged_tax].each do |field|
@out[field.to_sym] = @invoice.send(field)
end
end
def format_dates
@@ -43,10 +43,10 @@
@out[field.to_sym] = v.strftime '%d.%m.%Y'
end
end
def format_prices
- %w[net_value vat_value gross_value].each do |field|
+ %w[net_value vat_value gross_value exchanged_tax].each do |field|
v = @invoice.send(field)
next unless v
@out[field.to_sym] = sprintf('%02.2f', v).tr('.', ',')
end
end