产品订单自动收货调整,供应商余额结算调整

This commit is contained in:
2025-01-11 15:04:27 +08:00
parent 49f69494d6
commit 1ac9445af6
4 changed files with 25 additions and 13 deletions

View File

@@ -11,6 +11,7 @@ use common\models\oldDb\ProductOrder;
use common\models\oldDb\ProductOrderRefund;
use common\services\EplPayService;
use common\services\WechatService;
use EasyWeChat\Kernel\Exceptions\InvalidConfigException;
use yii\base\Exception;
use function GuzzleHttp\Promise\all;
@@ -87,6 +88,14 @@ class ProductRefundForm extends BaseModel
return ['操作成功'];
}
/**
* 退款操作
* @param $productOrderRefund
* @return true
* @throws Exception
* @throws InvalidConfigException
* @throws \yii\db\Exception
*/
public function refundMoney($productOrderRefund)
{
$orderNo = $productOrderRefund->order->order_no;