Allow for modification of the invoice comment (refs: #69f890)
This commit is contained in:
parent
0abad65328
commit
768d2d55f6
|
@ -795,7 +795,10 @@ module StopTime::Controllers
|
||||||
@task = Task.find(task_id)
|
@task = Task.find(task_id)
|
||||||
if @input.has_key? "update"
|
if @input.has_key? "update"
|
||||||
@task["customer"] = Customer.find(@input["customer"])
|
@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
|
case @input.type
|
||||||
when "fixed_cost"
|
when "fixed_cost"
|
||||||
@task.fixed_cost = @input.fixed_cost
|
@task.fixed_cost = @input.fixed_cost
|
||||||
|
|
Loading…
Reference in New Issue