CHANGE_bds_issue-final-fix-4 - VADIVEL J 2025-10-31 15:41

This commit is contained in:
vadivelJ96 2025-10-31 15:41:34 +05:30
parent 313a72065c
commit 8378bce809
2 changed files with 7 additions and 3 deletions

View File

@ -1851,7 +1851,7 @@
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,, '%b %Y') AS policy_issue_month,
DATE_FORMAT( policy_transaction.policy_issue_date, '%b %Y') AS policy_issue_month,
CASE
WHEN 1 = 1 THEN 'no statement uploaded'

View File

@ -168,10 +168,14 @@
}else{
if(isset($uniqueAgreedAmountList[$uniqueAgreedAmountPerInsurer]) ){
$pastMonth = explode("-",$uniqueRecord )[1] ;
$currentMonth = $policy_updated_month ;
$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['multiple_months'] = true;
$row['multiple_months'] = $pastMonth == $currentMonth ? false : true ;
}
else{
$row['outstanding_amt'] = $row['total_irda_amt'] - $row['billed_amt'];