FIX_PLACMENT_DATE
This commit is contained in:
parent
e190a4d4e4
commit
996de270b2
@ -2404,8 +2404,8 @@ class LeadsController extends BaseController
|
|||||||
$data = [
|
$data = [
|
||||||
'proposel_data' => json_encode($lead_update_data),
|
'proposel_data' => json_encode($lead_update_data),
|
||||||
'status' => 'won',
|
'status' => 'won',
|
||||||
'placement_date' => date('Y-m-d', strtotime($params['placement_date']) ?? "") ?? null,
|
'placement_date' => !empty($params['placement_date']) ? change_date_format($params['placement_date']) : null,
|
||||||
'payment_date' => date('Y-m-d', strtotime($params['payment_date'] ?? "")) ?? null,
|
'payment_date' => !empty($params['payment_date']) ? change_date_format($params['payment_date']) : null,
|
||||||
'utr_no' => $params['utr_no'] ?? null,
|
'utr_no' => $params['utr_no'] ?? null,
|
||||||
'is_cd' => $params['is_cd'] ?? null ,
|
'is_cd' => $params['is_cd'] ?? null ,
|
||||||
'premium_amount' => $params['premium_amount'] ?? null,
|
'premium_amount' => $params['premium_amount'] ?? null,
|
||||||
|
|||||||
@ -774,7 +774,7 @@ $("#endorsement_form_id").submit(function(event) {
|
|||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
|
||||||
console.log('inception_form_response', res)
|
console.log('ENDORSEMENT FOR SUBMIT RESPONSE : ', res);
|
||||||
|
|
||||||
if (res.status == true) {
|
if (res.status == true) {
|
||||||
toastr.success(res.message, 'Success');
|
toastr.success(res.message, 'Success');
|
||||||
@ -2315,9 +2315,13 @@ function getURLParamsForReport()
|
|||||||
|
|
||||||
function onlyNumbers(event)
|
function onlyNumbers(event)
|
||||||
{
|
{
|
||||||
var charcode;
|
var charcode = event.which || event.keyCode;
|
||||||
charcode = event.which || event.keyCode;
|
|
||||||
if (charcode >= 48 && charcode <= 57 || charcode == 46) return true;
|
// Allow: 0-9 (48-57), dot (46), minus (45)
|
||||||
|
if ((charcode >= 48 && charcode <= 57) || charcode === 46 || charcode === 45) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user