This commit is contained in:
shengchanzhe 2024-01-27 13:47:34 +08:00
parent a2653dcd36
commit 21b191979f

View File

@ -180,6 +180,9 @@
$year_refund_plan_amount = FinanceReturnedMoney::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 = [
'name' => '开票金额',
'data' => []
@ -210,6 +213,7 @@
'refund_plan_series' => $refund_plan_series,
'refund_series' => $refund_series,
'column' => $column,
'outstanding_payment' => $outstanding_payment,
];
return $this->success('success',$result);
}
@ -324,6 +328,8 @@
$year_payment_plan_amount = FinancePaymentPlan::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 = [
'name' => '收票金额',
'data' => []
@ -336,6 +342,10 @@
'name' => '付款金额',
'data' => []
];
$outstanding_payment= [
'name' => '未回款金额',
'data' => []
];
foreach($column as &$v){
$month = $v;
if($month < 10){