Merge pull request #1346 from internetee/fix-registrar-url-condition-in-pdf

Fix invoice pdf url display
This commit is contained in:
Timo Võhmar 2020-08-26 11:38:29 +03:00 committed by GitHub
commit 902c61501b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@
%dd= @invoice.buyer_reg_no %dd= @invoice.buyer_reg_no
- if @invoice.buyer_address.present? - if @invoice.buyer_address.present?
%dt= t(:address) %dt= Invoice.human_attribute_name :address
%dd= @invoice.buyer_address %dd= @invoice.buyer_address
- if @invoice.buyer_country.present? - if @invoice.buyer_country.present?
@ -207,7 +207,7 @@
%dt= t(:phone) %dt= t(:phone)
%dd= @invoice.buyer_phone %dd= @invoice.buyer_phone
- if @invoice.buyer_phone.present? - if @invoice.buyer_url.present?
%dt= t(:url) %dt= t(:url)
%dd= @invoice.buyer_url %dd= @invoice.buyer_url