提交 d1ad6aaa authored 作者: chengye's avatar chengye

销账测试

上级 73a70a85
...@@ -278,6 +278,7 @@ class Invoice extends Base ...@@ -278,6 +278,7 @@ class Invoice extends Base
->leftJoin(['em_payment_invoice_balance'=>'epib'],'epib.invoice_id=epi.invoice_id') ->leftJoin(['em_payment_invoice_balance'=>'epib'],'epib.invoice_id=epi.invoice_id')
->where('epib.balance','>',0) ->where('epib.balance','>',0)
->where('epi.invoice_id','=',$invoice_id)->select(); ->where('epi.invoice_id','=',$invoice_id)->select();
dd($payments);
//如果没有找到记录 证明并没有形成对应关系 //如果没有找到记录 证明并没有形成对应关系
if($payments->isEmpty()) { if($payments->isEmpty()) {
...@@ -357,7 +358,6 @@ class Invoice extends Base ...@@ -357,7 +358,6 @@ class Invoice extends Base
*/ */
private function writeOff($paymentIds,$invoiceIds){ private function writeOff($paymentIds,$invoiceIds){
dd($paymentIds);
//获取可销账缴费单 //获取可销账缴费单
$payments = EmPayment::where('payment_id','in',$paymentIds)->select(); $payments = EmPayment::where('payment_id','in',$paymentIds)->select();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论