dream 6 maanden geleden
bovenliggende
commit
aa5e034a52
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      Modules/Home/Model/SalesroomModel.class.php

+ 2 - 2
Modules/Home/Model/SalesroomModel.class.php

@@ -731,9 +731,9 @@ class SalesroomModel{
 	    $used_quantity  = 0;
 	    $sales_hexiao_info = M('lionfish_comshop_order_goods_saleshexiao')->where(array('order_id'=>$order_id,'order_goods_id'=>$order_goods_id))->find();
 	    if($sales_hexiao_info['hexiao_type'] == 1){
-	        $used_quantity = ($sales_hexiao_info['goods_quantity'] - $sales_hexiao_info['refund_quantity']) - floor($sales_hexiao_info['remain_hexiao_count']/$sales_hexiao_info['one_hexiao_count']);
+	        $used_quantity = ($sales_hexiao_info['goods_quantity'] - $sales_hexiao_info['refund_quantity']) - floor($sales_hexiao_info['hexiao_count']/$sales_hexiao_info['one_hexiao_count']);
 	    }else{
-	        if($sales_hexiao_info['remain_hexiao_count'] == 0){
+	        if($sales_hexiao_info['hexiao_count'] == 0){
 	            $used_quantity = $sales_hexiao_info['goods_quantity'] - $sales_hexiao_info['refund_quantity'];
 	        }else{
 	            $used_quantity = 0;