Skip to content

Commit

Permalink
Make receivings date readonly (opensourcepos#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
jekkos authored and zulfiqarpk92 committed Dec 5, 2020
1 parent 1e89430 commit 7c1239f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/views/receivings/form.php
Expand Up @@ -12,7 +12,13 @@
<div class="form-group form-group-sm">
<?php echo form_label($this->lang->line('receivings_date'), 'date', array('class'=>'control-label col-xs-3')); ?>
<div class='col-xs-8'>
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'class'=>'form-control input-sm'));?>
<?php echo form_input(array(
'name' => 'date',
'value' => to_datetime(strtotime($receiving_info['receiving_time'])),
'id' => 'datetime',
'class' => 'datetime form-control input-sm',
'readonly' => 'readonly'));
?>
</div>
</div>

Expand Down

0 comments on commit 7c1239f

Please sign in to comment.