An open source, stand-alone, customisable public spending data web app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
597 B

  1. %table
  2. %tr
  3. %th Date
  4. %th Ref.
  5. %th Transaction
  6. %th Supplier
  7. %th.right £
  8. - for payment in @payments
  9. %tr
  10. %td= payment.d.strftime("%d %b %Y")
  11. %td.right
  12. %a{ :href => "/payments/#{payment.id}" }
  13. = payment.id
  14. %td.right= payment.transaction_id
  15. %td
  16. %a{ :href => '/suppliers/' + payment.supplier.slug }
  17. = payment.supplier.name
  18. %td.right= commify(sprintf("%0d", payment.amount))
  19. %tr
  20. %td
  21. %td
  22. %td
  23. %td
  24. %strong TOTAL
  25. %td.right= commify(sprintf("%0d", @total))