CHANGE_bds_issue-final-fix-4 - VADIVEL J 2025-10-31 15:41
This commit is contained in:
parent
313a72065c
commit
8378bce809
@ -1851,7 +1851,7 @@
|
|||||||
policy_transaction.ref AS ref,
|
policy_transaction.ref AS ref,
|
||||||
DATE_FORMAT(policy_transaction.policy_issue_date, '%d %b %Y') AS policy_issue_date,
|
DATE_FORMAT(policy_transaction.policy_issue_date, '%d %b %Y') AS policy_issue_date,
|
||||||
|
|
||||||
DATE_FORMAT( policy_transaction.policy_issue_date,, '%b %Y') AS policy_issue_month,
|
DATE_FORMAT( policy_transaction.policy_issue_date, '%b %Y') AS policy_issue_month,
|
||||||
|
|
||||||
CASE
|
CASE
|
||||||
WHEN 1 = 1 THEN 'no statement uploaded'
|
WHEN 1 = 1 THEN 'no statement uploaded'
|
||||||
|
|||||||
@ -168,10 +168,14 @@
|
|||||||
}else{
|
}else{
|
||||||
|
|
||||||
if(isset($uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer]) ){
|
if(isset($uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer]) ){
|
||||||
|
|
||||||
|
$pastMonth = explode("-",$uniqueRecord )[1] ;
|
||||||
|
$currentMonth = $policy_updated_month ;
|
||||||
|
|
||||||
$uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer] -= $row['billed_amt'];
|
$uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer] -= $row['billed_amt'];
|
||||||
$row['total_irda_amt'] = 0;
|
$row['total_irda_amt'] = $pastMonth == $currentMonth ? $row['total_irda_amt'] : 0 ;
|
||||||
$row['outstanding_amt'] = $uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer];
|
$row['outstanding_amt'] = $uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer];
|
||||||
$row['multiple_months'] = true;
|
$row['multiple_months'] = $pastMonth == $currentMonth ? false : true ;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$row['outstanding_amt'] = $row['total_irda_amt'] - $row['billed_amt'];
|
$row['outstanding_amt'] = $row['total_irda_amt'] - $row['billed_amt'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user