<commit_before>= wicked_pdf_stylesheet_link_tag "mail/all"

%table{:width => "100%"}
  %tbody
    %tr{ valign: "top" }
      %td{ :align => "left", colspan: 3 }
        %h6= "Issued on: #{Time.zone.now.strftime("%F")}"
    %tr{ valign: "top" }
      %td{ :align => "left" }
        %h4
          = "TAX INVOICE: "
          = "#{@order.number}"
      %td{width: "10%" }
        &nbsp;
      %td{ :align => "right" }
        %h4= @order.order_cycle.andand.name
    %tr{ valign: "top" }
      %td{ :align => "left" }
        %strong= "From: #{@order.distributor.name}"
        - if @order.distributor.abn.present?
          %br
          = "ABN: #{@order.distributor.abn}"
        %br
        = @order.distributor.address.full_address
        %br
        = @order.distributor.email
      %td{width: "10%" }
        &nbsp;
      %td{ :align => "right" }
        %strong= "To: #{@order.ship_address.full_name}"
        - if @order.customer.code.present?
          %br
          = "Code: #{@order.customer.code}"
        %br
        = @order.ship_address.full_address
        %br
        = "#{@order.customer.email},"
        = "#{@order.bill_address.phone}"

= render 'spree/admin/orders/invoice_table'

- if @order.special_instructions.present?
  %p.callout
    %strong
      = t :customer_instructions
  %p
    %em= @order.special_instructions
  %p
    &nbsp;

= render 'spree/order_mailer/payment'<commit_msg>Show the shops invoice text on old invoice template<commit_after>= wicked_pdf_stylesheet_link_tag "mail/all"

%table{:width => "100%"}
  %tbody
    %tr{ valign: "top" }
      %td{ :align => "left", colspan: 3 }
        %h6= "Issued on: #{Time.zone.now.strftime("%F")}"
    %tr{ valign: "top" }
      %td{ :align => "left" }
        %h4
          = "TAX INVOICE: "
          = "#{@order.number}"
      %td{width: "10%" }
        &nbsp;
      %td{ :align => "right" }
        %h4= @order.order_cycle.andand.name
    %tr{ valign: "top" }
      %td{ :align => "left" }
        %strong= "From: #{@order.distributor.name}"
        - if @order.distributor.abn.present?
          %br
          = "ABN: #{@order.distributor.abn}"
        %br
        = @order.distributor.address.full_address
        %br
        = @order.distributor.email
      %td{width: "10%" }
        &nbsp;
      %td{ :align => "right" }
        %strong= "To: #{@order.ship_address.full_name}"
        - if @order.customer.code.present?
          %br
          = "Code: #{@order.customer.code}"
        %br
        = @order.ship_address.full_address
        %br
        = "#{@order.customer.email},"
        = "#{@order.bill_address.phone}"

= render 'spree/admin/orders/invoice_table'

- if @order.special_instructions.present?
  %p.callout
    %strong
      = t :customer_instructions
  %p
    %em= @order.special_instructions
  %p
    &nbsp;

- if @order.distributor.invoice_text.present?
  %p
    = @order.distributor.invoice_text

= render 'spree/order_mailer/payment'
{'fraction_non_alphanumeric': 0.17425271739130435, 'fraction_numerical': 0.007472826086956522, 'mean_word_length': 2.1598712446351933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3740075', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1056, 'n_words': 187}