Skip to content

Commit

Permalink
[#2501] Reordered the invoice selects to be 'User - number'
Browse files Browse the repository at this point in the history
  • Loading branch information
edavis10 committed May 13, 2009
1 parent 7e62997 commit 15be7d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/accounts_payables/_autocomplete.html.erb
@@ -1,5 +1,5 @@
<ul>
<% @vendor_invoices.each do |invoice| %>
<li id="<%= invoice.id %>"><%= invoice.number %><span class="informal"> - <%= invoice.user_names %></span></li>
<li id="<%= invoice.id %>"><span class="informal"><%= invoice.user_names %> - </span><%= invoice.number %></li>
<% end %>
</ul>
2 changes: 1 addition & 1 deletion app/views/accounts_payables/timesheet.html.erb
Expand Up @@ -7,7 +7,7 @@
<p>
<%= select_tag('id',
content_tag('option', "-- Invoices --", :value => '') +
options_for_select(@vendor_invoices.sort {|a,b| a.user_names <=> b.user_names }.collect {|vendor_invoice| ["#{vendor_invoice.number} - #{vendor_invoice.user_names}", vendor_invoice.id]}),
options_for_select(@vendor_invoices.sort {|a,b| a.user_names <=> b.user_names }.collect {|vendor_invoice| ["#{vendor_invoice.user_names} - #{vendor_invoice.number}", vendor_invoice.id]}),
:include_blank => true ) %>
</p>

Expand Down

0 comments on commit 15be7d0

Please sign in to comment.