|
|
@@ -7,6 +7,7 @@ use biz\shop\classes\MainClass;
|
|
|
use biz\shop\classes\ShopCapitalClass;
|
|
|
use biz\stat\classes\StatOutClass;
|
|
|
use biz\stat\classes\StatRefundClass;
|
|
|
+use biz\stock\classes\GoodsStockRecordClass;
|
|
|
use bizHd\base\services\BaseService;
|
|
|
use bizHd\custom\classes\CustomClass;
|
|
|
use bizHd\goods\classes\GoodsClass;
|
|
|
@@ -194,6 +195,7 @@ class HdRefundService extends BaseService
|
|
|
'price' => $price,
|
|
|
];
|
|
|
HdRefundGoodsClass::addData($saveGoods, $refundSn, $post);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -212,10 +214,10 @@ class HdRefundService extends BaseService
|
|
|
$main = MainClass::getLockById($mainId);
|
|
|
$shop = ShopClass::getLockById($shopId);
|
|
|
if (empty($main)) {
|
|
|
- util::fail('main信息缺失');
|
|
|
+ util::fail('main信息缺失呢');
|
|
|
}
|
|
|
if (empty($shop)) {
|
|
|
- util::fail('没有找到门店58');
|
|
|
+ util::fail('没有找到门店,编号15860');
|
|
|
}
|
|
|
//总支出增加
|
|
|
$currentTotalExpend = bcadd($main->totalExpend, $refundPrice, 2);
|
|
|
@@ -241,9 +243,9 @@ class HdRefundService extends BaseService
|
|
|
];
|
|
|
ShopCapitalClass::addCapital($capitalData);
|
|
|
//当天和当月支出统计
|
|
|
- StatOutClass::updateOrInsert($main, $shop, $refundPrice);
|
|
|
+ //StatOutClass::updateOrInsert($main, $shop, $refundPrice);
|
|
|
//退款统计
|
|
|
- StatRefundClass::replace($main, $shop, $payWay, $refundPrice);
|
|
|
+ //StatRefundClass::replace($main, $shop, $payWay, $refundPrice);
|
|
|
|
|
|
if ($onlinePay == dict::getDict('onlinePay', 'yes')) {
|
|
|
//退款流程
|