|
- .grid_12
- %h2= @page_title = @directorate.name + " Directorate"
-
- %ul#breadcrumb
- %li.home
- %a{ :href => '/'} Home
- %li
- %a{ :href => '/directorates' } Directorates
- %li
- = @directorate.name
-
- %table
- %tr
- %th Date
- %th Service
- %th Supplier
- %th £
-
- - for payment in @directorate.payments
- %tr
- %td= payment.d.strftime("%d %b %Y")
- %td
- %a{ :href => '/services/' + payment.service.id.to_s }
- = payment.service.name
- %td
- %a{ :href => '/suppliers/' + payment.supplier.id.to_s }
- = payment.supplier.name
- %td.right= sprintf("%0d", payment.amount)
-
- %tr
- %td
- %td
- %td
- %strong TOTAL
- %td.right= sprintf("%0d", @total)
-
-
|