|
@@ -2279,7 +2279,7 @@ class Payment extends Base
|
|
|
if(empty($payinfo)) return error_show(1005,'对账单信息未找到');
|
|
|
$cgdlist =Db::name("pay_info")->alias("a")
|
|
|
->leftJoin("cgd_info b","a.cgdNo=b.sequenceNo")
|
|
|
- ->leftJoin("order_category c","a.cgdNo=c.code and order_type=2 and ((c.open_type=1 and c.spuCode==b.goodNo )or (c.open_type=2 and c.spuCode<>b.goodNo)")
|
|
|
+ ->leftJoin("order_category c","a.cgdNo=c.code and order_type=2 and ((c.open_type=1 and c.spuCode=b.goodNo )or (c.open_type=2 and c.spuCode<>b.goodNo)")
|
|
|
->where(["a.payNo"=>$param['payNo'],"a.status"=>1,"a.is_del"=>0])
|
|
|
->field("a.payNo'对账单号',b.sequenceNo '采购单编号',b.qrdCode '销售单编号',b.supplierName '供货商',b.companyName '业务公司',
|
|
|
b.goodName '商品名称',b.goodUnit '单位',(b.goodNum-b.thNum) '商品数量',b.goodPrice'商品单价',b.totalPrice'总货款',b.tax/100 '税率',
|