Skip to content

Commit

Permalink
fixed vat code in pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Sep 25, 2023
1 parent bfe35bf commit 638a487
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/views/common/pdf.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -215,21 +215,22 @@
<hr/>
<dl class="dl-horizontal">
<dt>
<%= t('billing_profiles.name') %>
<%= t('billing_profiles.name') %>
</dt>
<dd>
<%= @invoice.billing_name %>
<%= @invoice.billing_name %>
</dd>

<% if @invoice.billing_vat_code %>
<dt><%= t('billing_profiles.vat_code') %></dt>
<dd><%= @invoice.billing_vat_code %></dd>
<% if @invoice.vat_code.present? %>
<dt><%= t('billing_profiles.vat_code') %></dt>
<dd>
<%= @invoice.vat_code %>
</dd>
<% end %>


<dt><%= t('billing_profiles.address') %></dt>
<dd>
<%= @invoice.billing_address %>
<%= @invoice.billing_address %>
</dd>
</dl>
</div>
Expand Down

0 comments on commit 638a487

Please sign in to comment.