|
@@ -61,7 +61,7 @@ class InvoiceOrder extends \think\Model{
|
|
|
->field('b.sequenceNo,b.goodNo,b.goodName,a.goodNum,a.goodPrice,a.totalPrice,c.merge_code,c.cat_code,c.cat_name,c.short_name,c.tax,c.inv_good_name')
|
|
|
->findOrEmpty();
|
|
|
} else{
|
|
|
- $payNo = PayInvoice::where(['hpNo'=>$code])->value("payNo");
|
|
|
+ $payNo = PayInvoice::where(['hpNo'=>$code])->value("payNo","");
|
|
|
$info = PayInfo::alias('a')
|
|
|
->join('cgd_info b','a.cgdNo=b.sequenceNo','left')
|
|
|
->join('order_category c','b.sequenceNo=c.code and b.goodNo=c.spuCode and c.order_type=2','left')
|
|
@@ -70,7 +70,7 @@ class InvoiceOrder extends \think\Model{
|
|
|
c.merge_code,c.cat_code,c.cat_name,c.short_name,c.tax,c.inv_good_name')
|
|
|
->findOrEmpty();
|
|
|
}
|
|
|
- $info->isEmpty()??$info['balance_amount']= bcsub($info['totalPrice'],InvoiceOrder::getInvoiceOrderTotalFee($info['sequenceNo']),2); $info['balance_amount']= bcsub($info['totalPrice'],InvoiceOrder::getInvoiceOrderTotalFee($info['sequenceNo']),2);
|
|
|
+ $info->isEmpty()??($info['balance_amount']= bcsub($info['totalPrice'],InvoiceOrder::getInvoiceOrderTotalFee($info['sequenceNo']),2));
|
|
|
return $info;
|
|
|
}
|
|
|
}
|