Improved stockit: Creating/updating of stock_articles.\nTranslated deliveries and invoices.

This commit is contained in:
Benjamin Meichsner 2009-02-11 18:09:04 +01:00
parent 325d47b22f
commit 86b2b28dc9
19 changed files with 248 additions and 86 deletions

View file

@ -119,7 +119,7 @@ class DeliveriesController < ApplicationController
def in_place_edit_for_stock_quantity
stock_change = StockChange.find(params[:editorId])
if stock_change.update_attribute(:quantity, params[:value])
if stock_change.update_attributes(:quantity => params[:value])
render :inline => params[:value]
else
render :inline => "Ein Fehler ist aufgetreten."