CHANGE_BDS
This commit is contained in:
parent
7bc0d3a41c
commit
41ae567a9a
@ -1590,6 +1590,7 @@ class MasterController extends AdminController
|
|||||||
'status' => true,
|
'status' => true,
|
||||||
'cd_ac_pk' => $insert,
|
'cd_ac_pk' => $insert,
|
||||||
'data' => $cd_data,
|
'data' => $cd_data,
|
||||||
|
'received_data' => $data,
|
||||||
'cd_ac_no'=>$data['cd_ac_no'],
|
'cd_ac_no'=>$data['cd_ac_no'],
|
||||||
'message' => 'CD Account number created successfully',
|
'message' => 'CD Account number created successfully',
|
||||||
"FOR BDS PURPOSE"
|
"FOR BDS PURPOSE"
|
||||||
|
|||||||
@ -339,7 +339,7 @@ class PolicyTransactionController extends BaseController
|
|||||||
$data['policy_with_corr'] = 1;
|
$data['policy_with_corr'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] === 1) ? 1 : 0;
|
$data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] == 1) ? 1 : 0;
|
||||||
|
|
||||||
|
|
||||||
if ($data['ct_type'] == "") {
|
if ($data['ct_type'] == "") {
|
||||||
@ -1189,7 +1189,7 @@ class PolicyTransactionController extends BaseController
|
|||||||
// $data['is_cd_reduce_from_bds'] = 1;
|
// $data['is_cd_reduce_from_bds'] = 1;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
$data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] === 1) ? 1 : 0;
|
$data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] == 1) ? 1 : 0;
|
||||||
|
|
||||||
|
|
||||||
if (empty($data['data_received_date'])) {
|
if (empty($data['data_received_date'])) {
|
||||||
|
|||||||
@ -390,6 +390,24 @@
|
|||||||
<input id="ref" value="" type="text" class="form-control" name="ref">
|
<input id="ref" value="" type="text" class="form-control" name="ref">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="addon_policy"> Status <span id="base_danger"class="text-danger">*</span></label>
|
||||||
|
<select class="form-control" id="policy_status" name="status" required>
|
||||||
|
<option value="" selected>Select Status</option>
|
||||||
|
<?php
|
||||||
|
if (isset($policy_status) && count($policy_status)) {
|
||||||
|
foreach ($policy_status as $key => $value) {
|
||||||
|
if($key == 'pending'){
|
||||||
|
echo "<option value=" . $key . " selected>" . $value . "</option>";
|
||||||
|
}else{
|
||||||
|
echo "<option value=" . $key . ">" . $value . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <div class="form-group col-md-3">
|
<!-- <div class="form-group col-md-3">
|
||||||
<label for="ppteam">PP Team</label>
|
<label for="ppteam">PP Team</label>
|
||||||
<select class="form-control" id="ppteam" name="ppteam">
|
<select class="form-control" id="ppteam" name="ppteam">
|
||||||
@ -422,9 +440,9 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<!-- <hr> -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-md-3">
|
<!-- <div class="form-group col-md-3">
|
||||||
<label for="addon_policy"> Status <span id="base_danger"class="text-danger">*</span></label>
|
<label for="addon_policy"> Status <span id="base_danger"class="text-danger">*</span></label>
|
||||||
<select class="form-control" id="policy_status" name="status" required>
|
<select class="form-control" id="policy_status" name="status" required>
|
||||||
<option value="" selected>Select Status</option>
|
<option value="" selected>Select Status</option>
|
||||||
@ -440,7 +458,7 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<!-- <div class="form-group col-md-3">
|
<!-- <div class="form-group col-md-3">
|
||||||
<label for="bp_cgst">Latest Action Date</label>
|
<label for="bp_cgst">Latest Action Date</label>
|
||||||
@ -1185,7 +1203,6 @@
|
|||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var team_id = [];
|
var team_id = [];
|
||||||
var role_id = <?php echo get_role_id(); ?>;
|
var role_id = <?php echo get_role_id(); ?>;
|
||||||
let isClientFormSubmitting = false;
|
let isClientFormSubmitting = false;
|
||||||
@ -3569,13 +3586,16 @@ $("#CDMasterForm").submit(function(event) {
|
|||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
||||||
|
console.log("CD FORM SUBMIT RESPONSE : ", res);
|
||||||
|
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
|
||||||
if(res.status == true){
|
if(res.status == true){
|
||||||
appendCDAccountNumber(res.data, unique_id, res.cd_ac_pk)
|
appendCDAccountNumber(res.data, unique_id, res.cd_ac_pk);
|
||||||
$('#cd_ac_pk_for_leader').val(res.id)
|
$('#cd_ac_pk_for_leader').val(res.cd_ac_pk)
|
||||||
$('#cd_current_balance_'+unique_id).val(res.opening_bal);
|
console.log('cd_current_balance instance', $('#cd_current_balance_'+unique_id))
|
||||||
|
$('#cd_current_balance_'+unique_id).val(res.received_data.opening_bal);
|
||||||
|
|
||||||
toastr.success(res.message, 'Success');
|
toastr.success(res.message, 'Success');
|
||||||
}else{
|
}else{
|
||||||
@ -4000,8 +4020,8 @@ $('#policy_no').change(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.close').on('click', function(){
|
$('.close').on('click', function(){
|
||||||
$('#client_form')[0].reset();
|
// $('#client_form')[0].reset();
|
||||||
$('#vehicle_form')[0].reset();
|
// $('#vehicle_form')[0].reset();
|
||||||
$('#CDMasterForm')[0].reset();
|
$('#CDMasterForm')[0].reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -4456,12 +4476,12 @@ function populateTable(dataArray, cd_ac_pk) {
|
|||||||
var selectElement = cell.find('select');
|
var selectElement = cell.find('select');
|
||||||
console.log('selectElement', selectElement);
|
console.log('selectElement', selectElement);
|
||||||
selectElement.val(cd_ac_pk).prop('selected', true);
|
selectElement.val(cd_ac_pk).prop('selected', true);
|
||||||
selectElement.toggleClass('readonly-select', !!disable_td)
|
selectElement.toggleClass('readonly-select', !!disable_td);
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
console.log('selectElement setTimeout', selectElement);
|
console.log('selectElement setTimeout', selectElement);
|
||||||
selectElement.find('option[value="' + cd_ac_pk + '"]').prop('selected', true);
|
selectElement.find('option[value="' + cd_ac_pk + '"]').prop('selected', true);
|
||||||
selectElement.toggleClass('readonly-select', !!disable_td)
|
selectElement.toggleClass('readonly-select', !!disable_td)
|
||||||
}, 2000)
|
}, 2000);
|
||||||
break;
|
break;
|
||||||
case 3: // CD AMOUNT
|
case 3: // CD AMOUNT
|
||||||
console.log('------- CD AMOUNT -------')
|
console.log('------- CD AMOUNT -------')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user