dever %!s(int64=3) %!d(string=hai) anos
pai
achega
ef16a69f2f
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      app/shop/src/Excel.php

+ 14 - 0
app/shop/src/Excel.php

@@ -273,6 +273,10 @@ class Excel
                     $sku = '';
                 }
 
+                if ($v['status'] == 8 || $v1['status'] == 3) {
+                    $num = $v1['num'];
+                }
+
                 $d = array
                 (
                     $info['name'],
@@ -341,6 +345,11 @@ class Excel
                     $sku = '';
                 }
 
+                if ($v['status'] == 8 || $v1['status'] == 3) {
+                    $num = $v1['num'];
+                    $v['refund_cash'] = $v1['price']*$v1['num'];
+                }
+
                 $d = array
                 (
                     $source,
@@ -422,6 +431,11 @@ class Excel
                     $sku = '';
                 }
 
+                if ($v['status'] == 8 || $v1['status'] == 3) {
+                    $num = $v1['num'];
+                    $v['refund_p_cash'] = $v1['p_price']*$v1['num'];
+                }
+
                 $d = array
                 (
                     $source,