更新深茂售后

parent 2c8832fd
Showing with 2 additions and 3 deletions
......@@ -462,9 +462,7 @@ class OrderService
->keyby("rec_id")
->toArray();
$temp = [];
$return_amount_all = 0;
foreach ($returnItems as $k=>$v){
$recId = $v["rec_id"];
$orderGoodsInfo = \Arr::get($orderItemsArr,$recId);
......@@ -479,12 +477,13 @@ class OrderService
"after_sale_price"=>$v["return_price"], // 售后单价
"return_amount"=>$v["return_amount"], // 售后金额
];
$return_amount_all += $v["return_amount"];
}
$return_amount_all = 0;
$temp = array_values($temp);
foreach ($temp as $c=>&$a){
$a["no"] = $c+1;
$return_amount_all += $a["return_amount"];
}
return ["return_amount_all"=>$return_amount_all,"items"=>$temp];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment