saturday fixed

This commit is contained in:
Yan
2017-07-01 20:02:14 +06:30
parent 51a779cbee
commit e9b1845ed2
7 changed files with 33 additions and 22 deletions

View File

@@ -30,6 +30,13 @@ class Origami::VoidController < BaseOrigamiController
table.save
end
# update complete order items in oqs
SaleOrder.where("sale_id = '#{ sale_id }'").find_each do |sodr|
AssignedOrderItem.where("order_id = '#{ sodr.order_id }'").find_each do |aoi|
aoi.delivery_status = 1
aoi.save
end
end
end
end