修改查询统计字段

This commit is contained in:
liu 2024-06-18 11:16:48 +08:00
parent a546ddd353
commit c9750921f1

View File

@ -572,7 +572,7 @@ class WorkbenchLogic extends BaseLogic
$cash_today = StoreCashFinanceFlow::where('store_id',$params['store_id'])
->whereDay('create_time')
->where('status',YesNoEnum::YES)
->sum('receipts');
->sum('receivable');
//总的营业额的统计 总的利润的统计 总的成本合集的统计 总的加到保证金的
$all = StoreOrder::where(['paid'=>YesNoEnum::YES,'store_id'=>$params['store_id']]);
@ -593,7 +593,7 @@ class WorkbenchLogic extends BaseLogic
$cash_all = StoreCashFinanceFlow::where('store_id',$params['store_id'])
->where('status',YesNoEnum::YES)
->whereMonth('create_time', $params['month'])
->sum('receipts');
->sum('receivable');
}
$turnover_all = $all
->sum('pay_price');