Merge pull request #176 from daN4cat/master

#165 Fix invoice wrong date on sale completion
This commit is contained in:
FrancescoUK committed 2015-09-27 16:39:52 +01:00
commit 22406d0c3a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ class Sales extends Secure_area
$data['discount']=$this->sale_lib->get_discount();
$data['receipt_title']=$this->lang->line('sales_receipt');
$data['transaction_time']= date($this->config->item('dateformat').' '.$this->config->item('timeformat'));
$data['transaction_date']= date($this->config->item('dateformat'), strtotime($data['transaction_time']));
$data['transaction_date']= date($this->config->item('dateformat'));
$data['show_stock_locations']=$this->Stock_location->show_locations('sales');
$customer_id=$this->sale_lib->get_customer();
$employee_id=$this->Employee->get_logged_in_employee_info()->person_id;
+1 -1
View File
@@ -53,7 +53,7 @@ if (isset($error_message))
<tr>
<td class="meta-head"><?php echo $this->lang->line('sales_amount_due'); ?></td>
<td><div class="due"><?php echo to_currency($total); ?></div></td>
<td><textarea rows="5" cols="6"><?php echo to_currency($total); ?></textarea></td>
</tr>
</table>