|
@ -56,12 +56,14 @@ |
|
|
when 2 then '已审核' |
|
|
when 2 then '已审核' |
|
|
when 3 then '审核未通过' end as state, |
|
|
when 3 then '审核未通过' end as state, |
|
|
SUM(pbd.amount) AS amountTotal, |
|
|
SUM(pbd.amount) AS amountTotal, |
|
|
pba.thisPayAmount, |
|
|
|
|
|
SUM(pbd.taxAmount) AS taxAmount, |
|
|
SUM(pbd.taxAmount) AS taxAmount, |
|
|
SUM(pbd.count) AS countTotal, |
|
|
SUM(pbd.count) AS countTotal, |
|
|
pb.`remarks`, |
|
|
pb.`remarks`, |
|
|
pb.`createByName`, |
|
|
pb.`createByName`, |
|
|
pb.`modifyTime` |
|
|
pb.`modifyTime`, |
|
|
|
|
|
pba.prepayment AS thisPayAmount, |
|
|
|
|
|
pbe.receiveStateValue, |
|
|
|
|
|
pbe.deliveryStateValue |
|
|
FROM |
|
|
FROM |
|
|
purchase_bill pb |
|
|
purchase_bill pb |
|
|
LEFT JOIN purchase_bill_detail pbd |
|
|
LEFT JOIN purchase_bill_detail pbd |
|
|