|
|
@@ -385,11 +385,11 @@ class ExpendController extends BaseController
|
|
|
util::fail('员工不存在');
|
|
|
}
|
|
|
|
|
|
- $shop = $this->shop;
|
|
|
- $admin = $this->admin;
|
|
|
-
|
|
|
$id = intval($post['id']);
|
|
|
$expend = ExpendClass::getById($id, true);
|
|
|
+ if ($expend->mainId != $this->mainId){
|
|
|
+ util::fail('没有找到支出数据');
|
|
|
+ }
|
|
|
$expend->delStaffId = $staffId;
|
|
|
$expend->delStaffName = $staff->name;
|
|
|
$rs = $expend->save();
|