|
|
@@ -7,6 +7,7 @@ use Yii;
|
|
|
use bizGhs\base\classes\BaseClass;
|
|
|
use bizGhs\order\traits\OrderTrait;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
|
+
|
|
|
class CgRefundClass extends BaseClass
|
|
|
{
|
|
|
use OrderTrait;
|
|
|
@@ -15,11 +16,11 @@ class CgRefundClass extends BaseClass
|
|
|
const STATUS_COMPLETE = 1; //已完成
|
|
|
|
|
|
const REFUND_TYPE_MONEY_GOOD = 1; //退款退货
|
|
|
- const REFUND_TYPE_MONEY= 2; // 仅退款
|
|
|
+ const REFUND_TYPE_MONEY = 2; // 仅退款
|
|
|
|
|
|
|
|
|
//2021.1.23 linqh 订单详情
|
|
|
- public static function getOrderDetail($orderSn,$shopId)
|
|
|
+ public static function getOrderDetail($orderSn, $shopId)
|
|
|
{
|
|
|
$orderData = self::orderExist(['orderSn' => $orderSn, 'shopId' => $shopId]);
|
|
|
$orderInfo = CgRefundItemClass::getOrderItemDetail($orderSn);
|
|
|
@@ -77,6 +78,7 @@ class CgRefundClass extends BaseClass
|
|
|
$tmp['name'] = $productData[$productId]['name'] ?? '';
|
|
|
$tmp['cover'] = $productData[$productId]['cover'] ?? '';
|
|
|
$tmp['itemPrice'] = $productData[$productId]['price'] ?? 0; //当时售卖的价格
|
|
|
+ $tmp['totalPrice'] = bcmul($tmp['itemPrice'], $tmp['itemNum'], 2);
|
|
|
$tmp['itemCost'] = $productData[$productId]['cost'] ?? 0; //当时成本价
|
|
|
$stockFormat = ProductClass::formatStock($tmp['itemStock'], $unitNum); // 库存总单位数量转大小单位的数量
|
|
|
$itemInfo = [
|