From 95c31b5a547eeb15c11df4f362f3c8f3cfb5f184 Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Wed, 3 Jan 2024 12:40:39 +0200 Subject: [PATCH] fixed invalid vat label in pdf --- app/models/invoice.rb | 1 - app/views/common/pdf.html.erb | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) 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) %>