mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-13 10:13:59 -04:00
Show invoice icon if invoices enabled in config (#507)
Fix limit query for customers table (#507) Add reference to translation when no persons found (#507)
This commit is contained in:
@@ -24,7 +24,7 @@ class Customers extends Person_controller
|
||||
$limit = $this->input->get('limit');
|
||||
$offset = $this->input->get('offset');
|
||||
|
||||
$customers = $this->Customer->search($search, $offset, $limit);
|
||||
$customers = $this->Customer->search($search, $limit, $offset);
|
||||
$total_rows = $this->Customer->get_found_rows($search);
|
||||
|
||||
$data_rows = array();
|
||||
|
||||
@@ -19,6 +19,7 @@ function get_sales_manage_table_headers()
|
||||
if($CI->config->item('invoice_enable') == TRUE)
|
||||
{
|
||||
$headers[] = array('invoice_number' => $CI->lang->line('sales_invoice_number'));
|
||||
$headers[] = array('invoice' => ' ');
|
||||
}
|
||||
|
||||
return transform_headers(array_merge($headers, array(array( 'receipt' => ' ' ))));
|
||||
|
||||
@@ -31,7 +31,7 @@ $(document).ready(function()
|
||||
success:function(response)
|
||||
{
|
||||
dialog_support.hide();
|
||||
table_support.handle_submit('customers', response);
|
||||
table_support.handle_submit('<?php echo site_url('customers'); ?>', response);
|
||||
},
|
||||
dataType:'json'
|
||||
});
|
||||
|
||||
@@ -31,7 +31,7 @@ $(document).ready(function()
|
||||
success:function(response)
|
||||
{
|
||||
dialog_support.hide();
|
||||
table_support.handle_submit(response);
|
||||
table_support.handle_submit('<?php echo site_url('items'); ?>', response);
|
||||
},
|
||||
dataType:'json'
|
||||
});
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
return '<?php echo $this->lang->line('common_search'); ?>';
|
||||
},
|
||||
formatNoMatches: function () {
|
||||
return '<?php echo $this->lang->line($controller_name . '_no_' . $controller_name .'_to_display'); ?>';
|
||||
return '<?php echo $this->lang->line(preg_match('(customers|suppliers|employees)', $controller_name) ?
|
||||
'common_no_persons_to_display' : $controller_name . '_no_' . $controller_name .'_to_display'); ?>';
|
||||
},
|
||||
formatPaginationSwitch: function () {
|
||||
return '<?php echo $this->lang->line('tables_hide_show_pagination'); ?>';
|
||||
|
||||
Reference in New Issue
Block a user