.footer.fs12 - if @invoice - if @invoice.resource_type == 'WorkOrder' and @invoice.resource&.work_order_type == 'Proposal' strong .text-left | *Price based on proposal. - unless @invoice.company.vendor_setting(@invoice.vendor).is_not_applicable? .border.text-left - if @invoice.due_date? and @invoice.date_of_issue? - if (difference = @invoice.due_date - @invoice.date_of_issue) > 0 = "Payment Terms: Due in #{difference.to_i} days" - else = "Payment Terms: Due On Receipt" - else = "Payment Terms: #{@invoice.terms.blank? ? 'Due On Receipt' : @invoice.terms} days" .grey-background .row .col-xs-6 = "Remit Payments to: #{@invoice.vendor.name}" .col-xs-6 - number = @invoice.vendor.contacts.first.try(:phone) - if number = "Phone: #{number_to_phone(number, area_code: false)[2..-1]}" |     | Fax: span.ml5 = @invoice.vendor&.fax .row span = @invoice.vendor&.payment_address&.full_address - else .border.text-left - if invoice.due_date? and invoice.date_of_issue? - if (difference = invoice.due_date - invoice.date_of_issue) > 0 = "Payment Terms: Due in #{difference.to_i} days" - else = "Payment Terms: Due On Receipt" - else = "Payment Terms: #{invoice.terms.blank? ? 'Due On Receipt' : invoice.terms} days" .grey-background .row .col-xs-6 = "Remit Payments to: #{invoice.vendor.name}" .col-xs-6 - number = invoice.vendor.contacts.first.try(:phone) - if number = "Phone: #{number_to_phone(number, area_code: false)[2..-1]}" |     | Fax: span.ml5 = invoice.vendor&.fax .row span = invoice.vendor&.payment_address&.full_address