v-Brocloni pirms 3 gadiem
vecāks
revīzija
e8436d5022
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      addons/unishop/controller/Order.php

+ 2
- 1
addons/unishop/controller/Order.php Parādīt failu

@@ -244,7 +244,8 @@ class Order extends Base
$product = new \app\admin\model\unishop\Product();
foreach ($list as $val){
try {
$product->where(["id"=>$val['product_id']])->setInc("stock", $val["number"])->setInc("real_sales",-$val["number"]);
$product->where(["id"=>$val['product_id']])->setInc("stock", $val["number"]);
$product->where(["id"=>$val['product_id']])->setInc("real_sales",-$val["number"]);
}catch (Exception $e){
print_r($e);die;
}


Notiek ielāde…
Atcelt
Saglabāt