diff --git a/application/helpers/dateformat_helper.php b/application/helpers/dateformat_helper.php index db5039338..b403cb4c0 100644 --- a/application/helpers/dateformat_helper.php +++ b/application/helpers/dateformat_helper.php @@ -31,15 +31,15 @@ function dateformat_jquery($php_format) 'Y' => 'yy', 'y' => 'y', // Time - 'a' => '', - 'A' => '', + 'a' => 'tt', + 'A' => 'TT', 'B' => '', - 'g' => '', - 'G' => '', - 'h' => '', - 'H' => '', - 'i' => '', - 's' => '', + 'g' => 'h', + 'G' => 'H', + 'h' => 'hh', + 'H' => 'HH', + 'i' => 'mm', + 's' => 'ss', 'u' => '' ); $jqueryui_format = ""; diff --git a/application/views/sales/form.php b/application/views/sales/form.php index 527d12c0c..89c496b34 100755 --- a/application/views/sales/form.php +++ b/application/views/sales/form.php @@ -14,8 +14,8 @@
- lang->line('sales_date').':', 'date', array('class'=>'required')); ?> -
'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($sale_info['sale_time'])), 'class'=>'date'));?> + lang->line('sales_date').':', 'date'); ?> +
'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($sale_info['sale_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
@@ -24,10 +24,10 @@
- 'invoice_number','size'=>10, 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?> + 'invoice_number', 'size'=>10, 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?> lang->line('sales_send_invoice')?> - 'invoice_number','value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?> + 'invoice_number', 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
@@ -49,7 +49,7 @@
lang->line('sales_comment').':', 'comment'); ?>
- 'comment','value'=>$sale_info['comment'],'rows'=>'4','cols'=>'23', 'id'=>'comment'));?> + 'comment', 'value'=>$sale_info['comment'], 'rows'=>'4','cols'=>'23', 'id'=>'comment'));?>
@@ -76,20 +76,19 @@