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).
This commit is contained in:
Paul van Tilburg 2013-10-04 21:38:42 +02:00
parent 30fd5ec599
commit 7fcce37903
1 changed files with 2 additions and 2 deletions

View File

@ -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 %>}