Allow for modification of the invoice comment (refs: #69f890)

This commit is contained in:
Paul van Tilburg 2012-01-02 14:05:03 +01:00
parent 0abad65328
commit 768d2d55f6
1 changed files with 4 additions and 1 deletions

View File

@ -795,7 +795,10 @@ module StopTime::Controllers
@task = Task.find(task_id)
if @input.has_key? "update"
@task["customer"] = Customer.find(@input["customer"])
@task["name"] = @input["name"] unless @input["name"].blank?
@task.name = @input["name"] unless @input["name"].blank?
if @task.billed? and @input["invoice_comment"].present?
@task.invoice_comment = @input["invoice_comment"]
end
case @input.type
when "fixed_cost"
@task.fixed_cost = @input.fixed_cost