|
|
@@ -39,12 +39,16 @@ class DeductController extends BaseController
|
|
|
util::fail('金额要大于0');
|
|
|
}
|
|
|
|
|
|
+ $staff = $this->shopAdmin;
|
|
|
+ if($staff->finance == 0){
|
|
|
+ util::fail('没有财务权限');
|
|
|
+ }
|
|
|
+
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
|
|
|
$shop = $this->shop;
|
|
|
- $staff = $this->shopAdmin;
|
|
|
$staffId = $staff->id;
|
|
|
$staffName = $staff->name;
|
|
|
$params = [
|