Changed 'Delete Customer' wording on Sales register screen to 'Remove Customer'.

~Tom

git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@20 c3eb156b-1dc0-44e1-88ae-e38439141b53
This commit is contained in:
pappastech
2011-07-10 15:43:02 +00:00
parent a9af0eccf3
commit 14cae3d427
4 changed files with 9 additions and 8 deletions

View File

@@ -171,9 +171,9 @@ class Sales extends Secure_area
$this->_reload();
}
function delete_customer()
function remove_customer()
{
$this->sale_lib->delete_customer();
$this->sale_lib->remove_customer();
$this->_reload();
}

View File

@@ -20,6 +20,7 @@ $lang['common_comments']='Comments';
$lang['common_edit']='edit';
$lang['common_search']='Search';
$lang['common_delete']='Delete';
$lang['common_remove']='Remove';
$lang['common_view_recent_sales']='View Recent Sales';
$lang['common_you_are_using_ospos']='You are using Open Source Point Of Sale Version';
$lang['common_please_visit_my']='Please visit my';

View File

@@ -349,7 +349,7 @@ class Sale_lib
$sale_id = $pieces[1];
$this->empty_cart();
$this->delete_customer();
$this->remove_customer();
foreach($this->CI->Sale->get_sale_items($sale_id)->result() as $row)
{
@@ -373,7 +373,7 @@ class Sale_lib
function copy_entire_sale($sale_id)
{
$this->empty_cart();
$this->delete_customer();
$this->remove_customer();
foreach($this->CI->Sale->get_sale_items($sale_id)->result() as $row)
{
@@ -390,7 +390,7 @@ class Sale_lib
function copy_entire_suspended_sale($sale_id)
{
$this->empty_cart();
$this->delete_customer();
$this->remove_customer();
foreach($this->CI->Sale_suspended->get_sale_items($sale_id)->result() as $row)
{
@@ -416,7 +416,7 @@ class Sale_lib
$this->CI->session->unset_userdata('cart');
}
function delete_customer()
function remove_customer()
{
$this->CI->session->unset_userdata('customer');
}
@@ -433,7 +433,7 @@ class Sale_lib
$this->clear_comment();
$this->clear_email_receipt();
$this->empty_payments();
$this->delete_customer();
$this->remove_customer();
}
function get_taxes()

View File

@@ -185,7 +185,7 @@ else
if(isset($customer))
{
echo $this->lang->line("sales_customer").': <b>'.$customer. '</b><br />';
echo anchor("sales/delete_customer",'['.$this->lang->line('common_delete').' '.$this->lang->line('customers_customer').']');
echo anchor("sales/remove_customer",'['.$this->lang->line('common_remove').' '.$this->lang->line('customers_customer').']');
}
else
{