notifer:GWM
This commit is contained in:
parent
b5cddc9adb
commit
8b3aff7a52
@ -279,4 +279,11 @@ function getData($table,$id,$business_id)
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function editBusiness()
|
||||||
|
{
|
||||||
|
$data['is_master_data_entered'] = 1;
|
||||||
|
$this->db->where('uid',user()->business_id);
|
||||||
|
$this->db->update('business',$data);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -788,6 +788,7 @@ public function editLocationForm()
|
|||||||
redirect('asset/masterDataList');
|
redirect('asset/masterDataList');
|
||||||
} else {
|
} else {
|
||||||
$userData = $this->MY_Model->insert($action, $table);
|
$userData = $this->MY_Model->insert($action, $table);
|
||||||
|
if($business->is_master_data_entered == 0){ $this->MY_Model->editBusiness(); }
|
||||||
redirect('asset/masterDataList');
|
redirect('asset/masterDataList');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -823,6 +824,7 @@ public function editThirdPartyForm()
|
|||||||
redirect('asset/masterDataList');
|
redirect('asset/masterDataList');
|
||||||
} else {
|
} else {
|
||||||
$userData = $this->MY_Model->insert($action, $table);
|
$userData = $this->MY_Model->insert($action, $table);
|
||||||
|
if($business->is_master_data_entered == 0){ $this->MY_Model->editBusiness(); }
|
||||||
redirect('asset/masterDataList');
|
redirect('asset/masterDataList');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- top tiles -->
|
<!-- top tiles -->
|
||||||
<div class="row" style="display: inline-block;" >
|
<div class="row" style="display: inline-block;" >
|
||||||
<div class="tile_count">
|
<div class="tile_count">
|
||||||
@ -259,6 +260,24 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /page content -->
|
<!-- /page content -->
|
||||||
|
|
||||||
|
<input type="hidden" value="<?php if(is_admin() || is_user()){ echo $business->is_master_data_entered; } ?>" id="master_key_exist" >
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( document ).ready(function() {
|
||||||
|
var master_value = $("#master_key_exist").val();
|
||||||
|
if(master_value == 0)
|
||||||
|
{
|
||||||
|
new PNotify({
|
||||||
|
title: 'Master Data Not Exist',
|
||||||
|
text: 'pls enter master data.',
|
||||||
|
hide: false,
|
||||||
|
styling: 'bootstrap3'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@ -62,7 +62,10 @@
|
|||||||
<script src="<?php echo base_url(); ?>/assets/default/pdfmake/build/vfs_fonts.js"></script>
|
<script src="<?php echo base_url(); ?>/assets/default/pdfmake/build/vfs_fonts.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- PNotify -->
|
||||||
|
<script src="<?php echo base_url(); ?>/assets/default/pnotify/dist/pnotify.js"></script>
|
||||||
|
<script src="<?php echo base_url(); ?>/assets/default/pnotify/dist/pnotify.buttons.js"></script>
|
||||||
|
<script src="<?php echo base_url(); ?>/assets/default/pnotify/dist/pnotify.nonblock.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,10 @@
|
|||||||
<!-- style.css -->
|
<!-- style.css -->
|
||||||
<link href="<?php echo base_url(); ?>/assets/default/customize/style.css" rel="stylesheet">
|
<link href="<?php echo base_url(); ?>/assets/default/customize/style.css" rel="stylesheet">
|
||||||
|
|
||||||
|
<!-- PNotify -->
|
||||||
|
<link href="<?php echo base_url(); ?>/assets/default/pnotify/dist/pnotify.css" rel="stylesheet">
|
||||||
|
<link href="<?php echo base_url(); ?>/assets/default/pnotify/dist/pnotify.buttons.css" rel="stylesheet">
|
||||||
|
<link href="<?php echo base_url(); ?>/assets/default/pnotify/dist/pnotify.nonblock.css" rel="stylesheet">
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user