列表厨师判断
This commit is contained in:
parent
54f5653085
commit
c324d025d5
@ -75,11 +75,24 @@ class StoreFinanceFlowLists extends BaseAdminDataLists implements ListsSearchInt
|
||||
if (!empty($this->request->adminInfo['store_id'])) {
|
||||
$item['financial_pm'] = $item['financial_pm'] == 0 ? 1 : 0;
|
||||
}
|
||||
//厨师判断 other_uid不为空 user_ship=1厨师
|
||||
$cookCheck = 0;
|
||||
if(!empty($item['other_uid']) && $item['other_uid'] >0){
|
||||
$cookCheck = User::where('id', $item['other_uid'])->value('user_ship')??0;
|
||||
}
|
||||
if ($item['financial_pm'] == 0) {
|
||||
$item['number'] = '-' . $item['number'];
|
||||
$item['financial_type_name'] = '订单支出:' . OrderEnum::getFinancialType($item['financial_type']);
|
||||
$Identity = OrderEnum::getFinancialType($item['financial_type']);
|
||||
if($cookCheck == 1 && $item['financial_type'] ==12){
|
||||
$Identity ="厨师";
|
||||
}
|
||||
$item['financial_type_name'] = '订单支出:' .$Identity;
|
||||
} else {
|
||||
$item['financial_type_name'] = OrderEnum::getFinancialType($item['financial_type']) . '获得';
|
||||
$Identity = OrderEnum::getFinancialType($item['financial_type']);
|
||||
if($cookCheck == 1 && $item['financial_type'] ==12){
|
||||
$Identity ="厨师";
|
||||
}
|
||||
$item['financial_type_name'] = $Identity . '获得';
|
||||
$item['number'] = '+' . $item['number'];
|
||||
}
|
||||
$item['staff_name'] = SystemStoreStaff::where('id', $item['staff_id'])->value('staff_name');
|
||||
|
Loading…
x
Reference in New Issue
Block a user