<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,9 +4,13 @@
       %th.first Name
       %th.headerSortDown Count
       %th Amount
+      %th ASP
   %tbody
     - for tag in tags
+      - count = tag.count
+      - sum = current_user.items.find_tagged_with(tag).sum(&amp;:value)
       %tr
         %td.vendor= link_to h(tag.name), tag
-        %td.count= number_with_delimiter tag.count
-        %td.sum= number_with_delimiter(color_explicit_money(current_user.items.find_tagged_with(tag).sum(&amp;:value)))
\ No newline at end of file
+        %td.count= number_with_delimiter count
+        %td.sum= number_with_delimiter(color_explicit_money(sum))
+        %td.sum= color_explicit_money((sum / count.to_f).round)
\ No newline at end of file</diff>
      <filename>app/views/tags/_tags.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -6,9 +6,13 @@
       %th.first.headerSortDown Name
       %th Count
       %th Amount
+      %th ASP
   %tbody
     - for vendor in @vendors
+      - count = vendor.items.count_from(current_user)
+      - sum = vendor.items.sum_from(current_user)
       %tr
         %td.vendor= link_to h(vendor.name), vendor
-        %td.count= number_with_delimiter vendor.items.count_from(current_user)
-        %td.sum= number_with_delimiter color_explicit_money(vendor.items.sum_from(current_user))
\ No newline at end of file
+        %td.count= number_with_delimiter count
+        %td.sum= number_with_delimiter color_explicit_money(sum)
+        %td.sum= color_explicit_money((sum / count.to_f).round)
\ No newline at end of file</diff>
      <filename>app/views/vendors/index.html.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>78b85002c25d557acdf18ef7bd783d7717376f55</id>
    </parent>
  </parents>
  <author>
    <name>Jordan McKible</name>
    <email>jordan@mckible.com</email>
  </author>
  <url>http://github.com/jmckible/stardate/commit/5a96a0bf2b2490b02b749b446cb7bfb40f2ebe3e</url>
  <id>5a96a0bf2b2490b02b749b446cb7bfb40f2ebe3e</id>
  <committed-date>2009-09-27T19:33:05-07:00</committed-date>
  <authored-date>2009-09-27T19:33:05-07:00</authored-date>
  <message>ASP for vendor and tags.</message>
  <tree>86a5606089582faf7b7d5340877e23c87a513582</tree>
  <committer>
    <name>Jordan McKible</name>
    <email>jordan@mckible.com</email>
  </committer>
</commit>
