Commit 21df4996 authored by hangjun83's avatar hangjun83

百化工具类bug修复

parent 80db0bcc
...@@ -349,14 +349,16 @@ class BhOrdersService ...@@ -349,14 +349,16 @@ class BhOrdersService
} }
//查询是否已经开票,如果开票不能进行退货 //查询是否已经开票,如果开票不能进行退货
$dpdetail = $dbConnect->table('dpdetail') if($refundInfo->refund_nums > $futuresNum){
->where('si_id',$orderitem['si_id']) $dpdetail = $dbConnect->table('dpdetail')
->get(); ->where('si_id',$orderitem['si_id'])
$dpdetail = $dpdetail->toArray(); ->get();
if(count($dpdetail) > 0){ $dpdetail = $dpdetail->toArray();
foreach($dpdetail as $detail){ if(count($dpdetail) > 0){
if(floatval($detail->dpd_invoiced) > 0) { foreach($dpdetail as $detail){
throw new \logicexception('以开票的数据不能退货!',500); if(floatval($detail->dpd_invoiced) > 0) {
throw new \logicexception('以开票的数据不能退货!',500);
}
} }
} }
} }
......
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 to comment