|
@@ -22,7 +22,8 @@ class HouseKeepingController extends JBaseController
|
|
|
if ($id) {
|
|
|
$criteria->user_id('==', new MongoId($id));
|
|
|
}
|
|
|
- $criteria->store_id('==', intval($store_id));
|
|
|
+ $je = JEmploye::get(new MongoId($id));
|
|
|
+ $criteria->store_id('==', $je->owned_stores);
|
|
|
|
|
|
$cursor = HouseKeeping::model()->findAll($criteria);
|
|
|
$rows = CommonFn::getRowsFromCursor($cursor);
|