FIX_ENDORSEMENT_NOT_LIST_IN_BDS_REPORT
This commit is contained in:
parent
190838db3d
commit
1c5a03d748
@ -2719,13 +2719,20 @@
|
|||||||
";
|
";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
$result = $query->getResultArray();
|
$result = $query->getResultArray();
|
||||||
|
// dd($result);
|
||||||
// dd($this->db->getLastQuery());
|
// dd($this->db->getLastQuery());
|
||||||
|
|
||||||
$keys = [];
|
$keys = [];
|
||||||
$filtered = [];
|
$filtered = [];
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$key = $row['statement_month'].'|'.$row['insurer_name'].'|'.$row['policy_no'];
|
|
||||||
|
$endorsement_number = "-";
|
||||||
|
if(!empty($row['endorsement_no'])){
|
||||||
|
$endorsement_number = $row['endorsement_no'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$key = $row['statement_month'].'|'.$row['insurer_name'].'|'.$row['policy_no'] . '|' . $endorsement_number;
|
||||||
|
|
||||||
// If uploaded record exists, always keep it and override previous
|
// If uploaded record exists, always keep it and override previous
|
||||||
if ($row['statement_uploaded'] === 'statement uploaded') {
|
if ($row['statement_uploaded'] === 'statement uploaded') {
|
||||||
@ -2740,6 +2747,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result = array_values($filtered);
|
$result = array_values($filtered);
|
||||||
|
// dd($result);
|
||||||
|
|
||||||
$runningBilled = [];
|
$runningBilled = [];
|
||||||
$totalIrdaMap = [];
|
$totalIrdaMap = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user