diff --git a/app/models/invoice.rb b/app/models/invoice.rb index 06336a437..2925c5ca6 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -206,7 +206,6 @@ def tax_fresh_rate end end - def filename return unless title diff --git a/app/views/common/pdf.html.erb b/app/views/common/pdf.html.erb index 99088f251..addda100e 100644 --- a/app/views/common/pdf.html.erb +++ b/app/views/common/pdf.html.erb @@ -269,11 +269,7 @@ <%= t('invoices.vat_amount') %> - <%# if @invoice.billing_profile.present? %> - <%#= number_to_percentage(@invoice.billing_profile.vat_rate * 100, precision: 0) %> - <%# else %> - <%= number_to_percentage(@invoice.billing_vat_rate * 100, precision: 0) %> - <%# end %> + <%= number_to_percentage(@invoice.vat_rate * 100, precision: 0) %> <%= t('offers.price_in_currency', price: @invoice.vat) %>