feat : catering
This commit is contained in:
@@ -34,6 +34,7 @@ class CycleListService extends CateringBaseService
|
||||
{
|
||||
$cycleCateringLogs = $this->orderOptionCateringLogModel
|
||||
->where('cycle_id',$this->cycleId)
|
||||
->where('kitchen_id',$this->kitchenId)
|
||||
->select(['site_id','quantity','status','id'])
|
||||
->get();
|
||||
|
||||
@@ -51,6 +52,7 @@ class CycleListService extends CateringBaseService
|
||||
{
|
||||
$count = $this->orderOptionCateringLogModel
|
||||
->where('cycle_id',$this->cycleId)
|
||||
->where('kitchen_id',$this->kitchenId)
|
||||
->sum('quantity') ?? 0;
|
||||
|
||||
return $this->return->success('success',['count' => $count]);
|
||||
|
||||
Reference in New Issue
Block a user