Preisänderungen beim Abrechnen können auch global angewandt werden.

This commit is contained in:
davidrabel 2012-07-18 22:16:08 +02:00
parent 7b7d50a235
commit 2c1385c9ce
3 changed files with 9 additions and 3 deletions

View file

@ -136,7 +136,7 @@ class Finance::BalancingController < ApplicationController
def update_order_article
@order_article = OrderArticle.find(params[:id])
begin
@order_article.update_article_and_price!(params[:article], params[:price], params[:order_article])
@order_article.update_article_and_price!(params[:article], params[:price], params[:order_article], params[:price_global])
render :update do |page|
page["edit_box"].hide
page["summary"].replace_html :partial => 'summary', :locals => {:order => @order_article.order}