CHANGE_THE_FIELD_NAME_SEZ_TO_ENABLE_SEZ : RV

This commit is contained in:
VENKATESHWARAN 2024-07-05 14:53:50 +05:30
parent 91ec327d19
commit 875f38caaa
3 changed files with 22 additions and 10 deletions

View File

@ -263,13 +263,25 @@ public function getBalances($clientId)
public function getDepositlistsummary($id)
{
// return $this->db->table('cash_deposit')
// ->select('insurer_id')
// ->select('SUM(CASE WHEN transaction_type = "Credit" THEN amount ELSE -amount END) AS balance')
// ->where('client_id', $id)
// ->groupBy('insurer_id')
// ->get()
// ->getResult();
return $this->db->table('cash_deposit')
->select('insurer_id')
->select('SUM(CASE WHEN transaction_type = "Credit" THEN amount ELSE -amount END) AS balance')
->where('client_id', $id)
->groupBy('insurer_id')
->get()
->getResult();
->select('cash_deposit.insurer_id, cash_deposit.cd_ac_no')
->select('(SUM(CASE WHEN cash_deposit.transaction_type = \'Credit\' THEN cash_deposit.amount ELSE -cash_deposit.amount END) + cd_master.opening_bal) AS balance')
->join('cd_master', 'cd_master.cd_ac_no = cash_deposit.cd_ac_no')
->where('cash_deposit.client_id', 56)
->groupBy(['cash_deposit.insurer_id', 'cash_deposit.cd_ac_no', 'cd_master.opening_bal'])
->orderBy('cash_deposit.insurer_id', 'DESC')
->orderBy('cash_deposit.cd_ac_no', 'DESC')
->get()
->getResult();
}

View File

@ -98,7 +98,7 @@
<span class="slider round" style="height: 27px;"></span>
</label>
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">SEZ</label>
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable SEZ</label>
</div>
</div>

View File

@ -15,9 +15,9 @@
<thead class="bg-light">
<tr>
<th class="font-weight-medium">Policy Type</th>
<th class="font-weight-medium">Bap</th>
<th class="font-weight-medium">Allocg</th>
<th class="font-weight-medium">Alloci</th>
<th class="font-weight-medium">BAP</th>
<th class="font-weight-medium">Category</th>
<th class="font-weight-medium">BAP Category</th>
<th class="font-weight-medium">Action</th>
</tr>
</thead>