提交 8e8e4dcf authored 作者: chengye's avatar chengye

page old

上级 3d2ae57c
......@@ -13,18 +13,18 @@ use think\facade\Log;
class WriteOff extends Controller
{
public function writeOffFromPayment($account_id,$payment_id){
public function writeOffFromPayment($payment_id){
Log::info('触发销账:'.$account_id.' | '.$payment_id);
Log::info('触发销账:{$payment_id}');
//获取缴费单对象
$payment = EmPayment::where('payment_id','=',$payment_id)->find();
//获取关联的账单对象
$invs = (new EmInvoice())->alias('ei')->field('ei.invoice_id')
->leftJoin(['em_payment_invoice'=>'epi'],'epi.invoice_id = ei.invoice_id')
->where('epi.payment_id','=',$payment_id)
->where('ei.payment_balance','neq',0)
->order('ei.invoice_id asc')
$invs = (new EmInvoice())->alias('a')->field('a.invoice_id')
->leftJoin(['em_payment_invoice'=>'b'],'b.invoice_id = a.invoice_id')
->where('b.payment_id','=',$payment_id)
->where('a.payment_balance','neq',0)
->order('a.invoice_id asc')
->select();
$invsArr = [];
......@@ -45,7 +45,7 @@ class WriteOff extends Controller
//如果可以完全销账 则继续销账
if($payment->balance > $payments_balance){
$invs = (new EmInvoice())->field('invoice_id')
->where('account_id','=',$account_id)
->where('account_id','=',$payment->account_id)
->where('payment_balance','neq',0)
->order('invoice_id asc')
->select();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>广厦项目管理系统beta版</title><link href=css/app.f5cc36b7.css rel=preload as=style><link href=js/app.aa6907c3.js rel=preload as=script><link href=css/app.f5cc36b7.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-cli-integration doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/app.aa6907c3.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>广厦项目管理系统beta版</title><link href=css/app.96f2bf7e.css rel=preload as=style><link href=js/app.81004bd3.js rel=preload as=script><link href=css/app.96f2bf7e.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-cli-integration doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/app.81004bd3.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论