更新
This commit is contained in:
parent
a2653dcd36
commit
21b191979f
@ -180,6 +180,9 @@
|
|||||||
$year_refund_plan_amount = FinanceReturnedMoney::whereYear('return_date',$year)->sum('amount');
|
$year_refund_plan_amount = FinanceReturnedMoney::whereYear('return_date',$year)->sum('amount');
|
||||||
//年度回款金额
|
//年度回款金额
|
||||||
$year_refund_amount = FinanceReturnedRecord::whereYear('return_date',$year)->sum('amount');
|
$year_refund_amount = FinanceReturnedRecord::whereYear('return_date',$year)->sum('amount');
|
||||||
|
|
||||||
|
$outstanding_payment= bcsub($year_refund_plan_amount,$year_refund_amount);
|
||||||
|
|
||||||
$invoice_series = [
|
$invoice_series = [
|
||||||
'name' => '开票金额',
|
'name' => '开票金额',
|
||||||
'data' => []
|
'data' => []
|
||||||
@ -210,6 +213,7 @@
|
|||||||
'refund_plan_series' => $refund_plan_series,
|
'refund_plan_series' => $refund_plan_series,
|
||||||
'refund_series' => $refund_series,
|
'refund_series' => $refund_series,
|
||||||
'column' => $column,
|
'column' => $column,
|
||||||
|
'outstanding_payment' => $outstanding_payment,
|
||||||
];
|
];
|
||||||
return $this->success('success',$result);
|
return $this->success('success',$result);
|
||||||
}
|
}
|
||||||
@ -324,6 +328,8 @@
|
|||||||
$year_payment_plan_amount = FinancePaymentPlan::whereYear('pay_date',$year)->sum('amount');
|
$year_payment_plan_amount = FinancePaymentPlan::whereYear('pay_date',$year)->sum('amount');
|
||||||
//年度付款金额
|
//年度付款金额
|
||||||
$year_payment_amount = FinancePaymentApply::whereYear('pay_date',$year)->sum('amount');
|
$year_payment_amount = FinancePaymentApply::whereYear('pay_date',$year)->sum('amount');
|
||||||
|
//未回款金额
|
||||||
|
$year_outstanding_amount = FinancePaymentApply::whereYear('pay_date',$year)->sum('amount');
|
||||||
$invoice_series = [
|
$invoice_series = [
|
||||||
'name' => '收票金额',
|
'name' => '收票金额',
|
||||||
'data' => []
|
'data' => []
|
||||||
@ -336,6 +342,10 @@
|
|||||||
'name' => '付款金额',
|
'name' => '付款金额',
|
||||||
'data' => []
|
'data' => []
|
||||||
];
|
];
|
||||||
|
$outstanding_payment= [
|
||||||
|
'name' => '未回款金额',
|
||||||
|
'data' => []
|
||||||
|
];
|
||||||
foreach($column as &$v){
|
foreach($column as &$v){
|
||||||
$month = $v;
|
$month = $v;
|
||||||
if($month < 10){
|
if($month < 10){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user