|
|
@@ -11,6 +11,7 @@ use bizGhs\book\classes\BookItemCustomClass;
|
|
|
use bizGhs\custom\models\Custom;
|
|
|
use bizGhs\ghs\classes\GhsBalanceChangeClass;
|
|
|
use bizGhs\shop\classes\MainClass;
|
|
|
+use bizGhs\shop\classes\ShopMoneyClass;
|
|
|
use bizGhs\shop\classes\TotalDebtChangeClass;
|
|
|
use bizGhs\ghs\classes\GhsBalanceClass;
|
|
|
use bizGhs\ghs\classes\GhsRechargeClass;
|
|
|
@@ -434,8 +435,22 @@ class CustomClass extends BaseClass
|
|
|
// 现金充值,同步更新表 xhMain 的 money 字段
|
|
|
if ($payWay == 4) {
|
|
|
$m = \bizGhs\shop\classes\MainClass::getById($mainId, true, 'id, money');
|
|
|
+ $balance = $m->money;
|
|
|
$m->money = bcadd($m->money, $amount);
|
|
|
$m->save();
|
|
|
+
|
|
|
+ $event = $staffName . '存入' . $amount . '元';
|
|
|
+ $data = [
|
|
|
+ 'amount' => $amount,
|
|
|
+ 'balance' => $balance,
|
|
|
+ 'io' => 1,
|
|
|
+ 'mainId' => $mainId,
|
|
|
+ 'capitalType' => $capitalType,
|
|
|
+ 'ptStyle' => dict::getDict('ptStyle', 'ghs'),
|
|
|
+ 'event' => $event,
|
|
|
+ 'remark' => $remark,
|
|
|
+ ];
|
|
|
+ ShopMoneyClass::addData($data);
|
|
|
}
|
|
|
|
|
|
return ['custom' => $custom, 'ghs' => $ghsInfo, 'customRecharge' => $cRecharge, 'ghsRecharge' => $gRecharge];
|