- invoice = @invoice || invoice .footer.fs12 - if invoice - if invoice.resource_type == 'WorkOrder' and invoice.resource&.work_order_type == 'Proposal' strong .text-left | *Price based on proposal. - if invoice.new_record? or invoice.draft? - unless invoice.company.vendor_setting(invoice.vendor).invoice_terms_not_applicable? .border.text-left = "Payment Terms: #{invoice.terms} days" if invoice.terms.present? - else .border.text-left = "Payment Terms: #{invoice.terms} days" if invoice.terms.present? .grey-background .row .col-xs-6 = "Remit Payments to: #{invoice.vendor.name}" .col-xs-6 - number = invoice.vendor.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