门店保证金统计修改
This commit is contained in:
parent
cb8edc5a67
commit
0a96bcd30b
@ -629,6 +629,7 @@ class WorkbenchLogic extends BaseLogic
|
|||||||
//总的营业额的统计 总的利润的统计 总的成本合集的统计 总的加到保证金的
|
//总的营业额的统计 总的利润的统计 总的成本合集的统计 总的加到保证金的
|
||||||
$all = StoreOrder::where(['paid' => YesNoEnum::YES, 'store_id' => $params['store_id']]);
|
$all = StoreOrder::where(['paid' => YesNoEnum::YES, 'store_id' => $params['store_id']]);
|
||||||
$deposit_all = StoreFinanceFlow::where(['store_id' => $params['store_id'], 'status' => YesNoEnum::YES])
|
$deposit_all = StoreFinanceFlow::where(['store_id' => $params['store_id'], 'status' => YesNoEnum::YES])
|
||||||
|
->where('financial_type', OrderEnum::ORDER_MARGIN)
|
||||||
->sum('number');
|
->sum('number');
|
||||||
|
|
||||||
$cash_all = StoreCashFinanceFlow::where('store_id', $params['store_id'])
|
$cash_all = StoreCashFinanceFlow::where('store_id', $params['store_id'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user