|
|
@@ -231,8 +231,6 @@ class ExpendController extends BaseController
|
|
|
//新增支出 ssh 20220710
|
|
|
public function actionAddExpend()
|
|
|
{
|
|
|
- $staff = $this->shopAdmin;
|
|
|
-
|
|
|
$mainId = $this->mainId;
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
if (in_array($mainId, [23390])) {
|
|
|
@@ -254,7 +252,6 @@ class ExpendController extends BaseController
|
|
|
$type = $post['type'] ?? -1;
|
|
|
$amount = $post['amount'] ?? 0;
|
|
|
$remark = $post['remark'] ?? '';
|
|
|
- $historyDate = $post['historyDate'] ?? '';
|
|
|
$bx = $post['bx'] ?? -1;
|
|
|
if (is_numeric($amount) == false || $amount <= 0) {
|
|
|
util::fail('请输入正确的金额');
|
|
|
@@ -317,6 +314,7 @@ class ExpendController extends BaseController
|
|
|
$staffName = $staff->name ?? '';
|
|
|
$ptStyle = dict::getDict('ptStyle', 'ghs');
|
|
|
$payTime = date("Y-m-d H:i:s");
|
|
|
+ $historyDate = $post['historyDate'] ?? '';
|
|
|
if (!empty($historyDate)) {
|
|
|
$payTime = $historyDate . date(" H:i:s");
|
|
|
}
|