Major supplier refactor making the whole system work better

This commit is contained in:
2014-08-07 15:50:06 +02:00
parent e61767fe78
commit b4353113e1
40 changed files with 6614 additions and 4354 deletions
+2
View File
@@ -58,6 +58,8 @@ class Supplier
# Set all known counters to zero
Qwaiter::Couchbase.flush_counters!
Qwaiter::Counter.connection.flush if Qwaiter::Counter.connection.respond_to?(:flush)
spec = Order.by_supplier_id_and_state(reduce: true, group_level: 2)
reset_order_counters_with_spec spec
end