From 638a4871a1c9fd3dc1d05f4d9c54998efb5069e1 Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Fri, 22 Sep 2023 10:18:17 +0300 Subject: [PATCH] fixed vat code in pdf --- app/views/common/pdf.html.erb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/common/pdf.html.erb b/app/views/common/pdf.html.erb index 3d8eb1489..aa218385c 100644 --- a/app/views/common/pdf.html.erb +++ b/app/views/common/pdf.html.erb @@ -215,21 +215,22 @@
- <%= t('billing_profiles.name') %> + <%= t('billing_profiles.name') %>
- <%= @invoice.billing_name %> + <%= @invoice.billing_name %>
- <% if @invoice.billing_vat_code %> -
<%= t('billing_profiles.vat_code') %>
-
<%= @invoice.billing_vat_code %>
+ <% if @invoice.vat_code.present? %> +
<%= t('billing_profiles.vat_code') %>
+
+ <%= @invoice.vat_code %> +
<% end %> -
<%= t('billing_profiles.address') %>
- <%= @invoice.billing_address %> + <%= @invoice.billing_address %>