Jelajahi Sumber

feat: EK-3320: 订单增加 Invoice 下载

zhangl 1 bulan lalu
induk
melakukan
1d09fcab99
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      common/libs/export/BaseExport.php

+ 2 - 2
common/libs/export/BaseExport.php

@@ -1597,8 +1597,8 @@ ORDER;
             $countyName = $oderList[0]['COUNTY'] ? Region::getCnName($oderList[0]['COUNTY']) : '';
             $countyName = $oderList[0]['COUNTY'] ? Region::getCnName($oderList[0]['COUNTY']) : '';
             $address = $provinceName . $cityName . $countyName . $oderList[0]['ADDRESS'];
             $address = $provinceName . $cityName . $countyName . $oderList[0]['ADDRESS'];
 
 
-            $paymentMethod = $oderList[0]['PAY_TYPE'] ?? '';
-            $paymentStatus = $oderList[0]['PAY_STATUS'] ?? '';
+            $paymentMethod = $oderList[0]['PAY_TYPE'] ?? 'Cash';
+            $paymentStatus = \Yii::$app->params['orderStatus'][$oderList[0]['STATUS']]['label'] ?? 'Paid';
 
 
             $orderTotalBv = 0;
             $orderTotalBv = 0;
             $orderTotalTaxAmount = 0;
             $orderTotalTaxAmount = 0;