From c1c96a2af0db0f69ee1a7c1f98d7f792bdd988be Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 4 Oct 2013 21:38:42 +0200 Subject: [PATCH] Fix the invoice template to show IBAN/BIC (closes: #688d33) If IBAN/BIC is set, it is shown instead of the normal account number. SEPA solves the problem that needs IBAN/BIC is conditionally shown (which is not possible). --- templates/invoice.tex.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/invoice.tex.erb b/templates/invoice.tex.erb index cdc2692..7da04d2 100644 --- a/templates/invoice.tex.erb +++ b/templates/invoice.tex.erb @@ -56,8 +56,8 @@ term=30, accountno=<%= @company.accountno %>, accountname=<%= @company.accountname %>, -<% unless @company.accountiban.blank? %> iban=<% @company.accountiban %>, -<% end %><% unless @company.bank_bic.blank? %> bic=<% @company.bank_bic %>, +<% unless @company.accountiban.blank? %> iban=<%= @company.accountiban %>, +<% end %><% unless @company.bank_bic.blank? %> bic=<%= @company.bank_bic %>, <% end %><% unless @company.vatno.blank? %> vatno=<%= @company.vatno %>, <% end %><% unless @company.chamber.blank? %> chamber=<%= @company.chamber %> <% end %>}