Added more info to delivery/show for easier comparision of invoice amount and sum of delivered items.

This commit is contained in:
Benjamin Meichsner 2009-05-15 17:58:02 +02:00
parent 8bfa83118c
commit c03f3da21a
2 changed files with 10 additions and 1 deletions

View file

@ -3,7 +3,7 @@ class DeliveriesController < ApplicationController
before_filter :find_supplier, :exclude => :fill_new_stock_article_form
def index
@deliveries = @supplier.deliveries.find(:all)
@deliveries = @supplier.deliveries.all :order => 'delivered_on DESC'
respond_to do |format|
format.html # index.html.erb