Commit 21df4996 authored by hangjun83's avatar hangjun83

百化工具类bug修复

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