End of day commit

This commit is contained in:
2014-07-21 20:31:11 +02:00
parent 2fec0b3bb6
commit 8ca59c4e38
27 changed files with 258 additions and 94 deletions
@@ -15,6 +15,12 @@ module Suppliers
end
end
def cancel
@order = current_supplier.find_order(params[:id])
@order.cancel!
render json: @order
end
def show
@order = current_supplier.find_order(params[:id])
respond_to do |format|