notifer:GWM
This commit is contained in:
parent
b5cddc9adb
commit
8b3aff7a52
@ -278,5 +278,12 @@ function getData($table,$id,$business_id)
|
||||
$query = $query->row();
|
||||
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');
|
||||
} else {
|
||||
$userData = $this->MY_Model->insert($action, $table);
|
||||
if($business->is_master_data_entered == 0){ $this->MY_Model->editBusiness(); }
|
||||
redirect('asset/masterDataList');
|
||||
}
|
||||
|
||||
@ -823,6 +824,7 @@ public function editThirdPartyForm()
|
||||
redirect('asset/masterDataList');
|
||||
} else {
|
||||
$userData = $this->MY_Model->insert($action, $table);
|
||||
if($business->is_master_data_entered == 0){ $this->MY_Model->editBusiness(); }
|
||||
redirect('asset/masterDataList');
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
|
||||
<!-- top tiles -->
|
||||
<div class="row" style="display: inline-block;" >
|
||||
<div class="tile_count">
|
||||
@ -257,8 +258,26 @@
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
<!-- 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 -->
|
||||
<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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user