.container
  %h1 Receipts

  = paginate @receipts

  - @receipts.each do |receipt|
    %div.panel.panel-default
      %div.panel-heading
        = time_ago_in_words(receipt.date)
        ago
        (#{receipt.date.to_s(:long)})

      %div.panel-body
        %table.table
          %thead
            %tr
              %th Stock Code
              %th Desc
              %th Qty
              %th Total
          %tbody
            - receipt.line_items.each do |line_item|
              %tr
                %td= line_item.product.stock_code
                %td= line_item.product.description
                %td= line_item.quantity
                %td
                  = "$" + "%.2f" % line_item.total_inc_gst

.container
  %h1 Receipts

  = paginate @receipts

  - @receipts.each do |receipt|
    %div.panel.panel-default
      %div.panel-heading
        = time_ago_in_words(receipt.date)
        ago
        (#{receipt.date.to_s(:long)})

      %div.panel-body
        %table.table
          %thead
            %tr
              %th Stock Code
              %th Description
              %th Quantity
              %th Total
          %tbody
            - receipt.line_items.each do |line_item|
              %tr
                %td= line_item.product.stock_code
                %td= line_item.product.description
                %td= line_item.quantity
                %td
                  = "$" + "%.2f" % line_item.total_inc_gst

Use full words in headings
Use full words in headings
