Refactoring of delivery-workflow. Added ability to add stock_changes after creating a delivery.

This commit is contained in:
Benjamin Meichsner 2009-05-17 16:11:39 +02:00
parent 43fc7b06f8
commit a8e35bd421
7 changed files with 66 additions and 101 deletions

View file

@ -9,4 +9,8 @@ module DeliveriesHelper
end
end
def stock_articles_for_select(supplier)
supplier.stock_articles.collect {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] }
end
end