.grid_12 %ul#breadcrumb %li.home %a{ :href => '/'} Home %li %a{ :href => '/services' } Services %li %a{ :href => "/services/#{@service.slug}" } = @service.name %li Payments to Suppliers %h2= @page_title = "#{@service.name}: Payments to Suppliers" %p A service in the %a{ :href => '/directorates/' + @service.directorate.slug } = @service.directorate.name Directorate %p.noprint %a{ :href => "/services/#{@service.slug}" } « Suppliers by Spend summary for = @service.name %p.noprint.download %a{ :href => "/services/#{@service.slug}/payments.csv" } Download data as CSV %table %tr %th Date %th Ref. %th Supplier %th.right £ - for payment in @service.payments %tr %td= payment.d.strftime("%d %b %Y") %td.right %a{ :href => "/payments/#{payment.id}" } = payment.id %td %a{ :href => '/suppliers/' + payment.supplier.slug } = payment.supplier.name %td.right= commify(sprintf("%0d", payment.amount)) %tr %td %td %td %strong TOTAL %td.right= commify(sprintf("%0d", @total)) .clear
= haml_partial "comment_header"
Comments powered by Disqus