CHANGE_ADD_NEW_FIELD_AGREED_%
This commit is contained in:
parent
f7863825c2
commit
8834821409
@ -3292,6 +3292,7 @@ class LeadsController extends BaseController
|
||||
'no_of_installment' => $params['no_of_installment'] ?? null,
|
||||
'is_installment' => $params['is_installment'] ?? null,
|
||||
'acm_id' => $params['acm_pk'] ?? null,
|
||||
'agreed_percentage' => $params['agreed_percentage'] ?? null,
|
||||
];
|
||||
|
||||
if(isset($params['tpa_id']) && !empty($params['tpa_id'])){
|
||||
|
||||
@ -107,6 +107,7 @@ class LeadsModel extends Model
|
||||
'quote_received_insurer',
|
||||
'acm_id',
|
||||
'policy_with_correction',
|
||||
'agreed_percentage',
|
||||
];
|
||||
|
||||
|
||||
|
||||
@ -903,6 +903,11 @@
|
||||
<input id="is_cd_switch" type="checkbox" name = "is_cd" value = "1" data-toggle="toggle" data-on="With CD" data-off="Without CD" data-onstyle="info" data-offstyle="primary" data-style="border" data-width="219" <?= isset($lead_data['is_cd']) && $lead_data['is_cd'] != 1 ? '' : 'checked' ?>>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="agreed_percentage">Agreed Percentage (%)</label>
|
||||
<input type="number" class="form-control" id="agreed_percentage" name="agreed_percentage" placeholder="Enter Agreed Percentage (%)" minlength="0" maxlength="100" step="0.01" value="<?= isset($lead_data['agreed_percentage']) ? $lead_data['agreed_percentage'] : "" ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="premium_amount">Pre Amount include GST</label>
|
||||
<input type="text" class="form-control" id="premium_amount" name="premium_amount" placeholder="Enter Premium Amount" value="<?= isset($lead_data['premium_amount']) ? $lead_data['premium_amount'] : "" ?>">
|
||||
@ -4410,6 +4415,7 @@ function constructURL_ForPlacementMailSend(return_type = false) {
|
||||
let is_cd = $("#is_cd_switch").is(":checked") ? 1 : 0;
|
||||
let utr_no = $('#utr_no').val();
|
||||
let premium_amount = $('#premium_amount').val();
|
||||
let agreed_percentage = $('#agreed_percentage').val();
|
||||
let total_amount = $('#total_amount').val();
|
||||
let cd_amount = $('#cd_amount').val();
|
||||
let subject = $('#placement_subject').val();
|
||||
@ -4483,8 +4489,9 @@ function constructURL_ForPlacementMailSend(return_type = false) {
|
||||
formData.append('tpa_id', tpa_id);
|
||||
formData.append('acm_email', acm_email);
|
||||
formData.append('acm_pk', acm_pk);
|
||||
formData.append('agreed_percentage', agreed_percentage);
|
||||
|
||||
// Prepare plain key-value object
|
||||
// Prepare plain key-value object
|
||||
let dataObj = {
|
||||
lead_id: lead_id,
|
||||
file_type: RFQ_or_QCR == 2 ? 'qcr' : 'rfq',
|
||||
@ -4510,7 +4517,8 @@ function constructURL_ForPlacementMailSend(return_type = false) {
|
||||
is_installment: is_installment,
|
||||
tpa_id: tpa_id,
|
||||
acm_email: acm_email,
|
||||
acm_pk: acm_pk
|
||||
acm_pk: acm_pk,
|
||||
agreed_percentage: agreed_percentage,
|
||||
};
|
||||
|
||||
if(return_type == false){
|
||||
@ -7645,4 +7653,9 @@ function appendMultiFileData(data) {
|
||||
}
|
||||
}
|
||||
|
||||
$('#agreed_percentage').on('input', function () {
|
||||
let v = parseFloat(this.value);
|
||||
this.value = (v < 0) ? 0 : (v > 100 ? 100 : v);
|
||||
});
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user