diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php
index 1c84ad3fe..e8917f403 100644
--- a/application/helpers/table_helper.php
+++ b/application/helpers/table_helper.php
@@ -77,9 +77,9 @@ function get_sales_manage_sale_data_row($sale, $controller)
$table_data_row.='
'.to_currency( $sale['change_due'] ).' | ';
$table_data_row.=''.$sale['payment_type'].' | ';
$table_data_row.=''.$sale['invoice_number'].' | ';
- $table_data_row.=''.anchor($controller_name."/edit/" . $sale['sale_id'], '', array('class'=>'modal-dlg modal-btn-delete modal-btn-submit', 'title'=>$CI->lang->line($controller_name.'_update'))).' | ';
- $table_data_row.=''.anchor($controller_name."/receipt/" . $sale['sale_id'], '', array('title'=>$CI->lang->line('sales_show_receipt'))).' | ';
- $table_data_row.=''.anchor($controller_name."/invoice/" . $sale['sale_id'], '', array('title'=>$CI->lang->line('sales_show_invoice'))).' | ';
+ $table_data_row.=''.anchor($controller_name."/edit/" . $sale['sale_id'], '', array('class'=>'modal-dlg modal-btn-delete modal-btn-submit print_hide', 'title'=>$CI->lang->line($controller_name.'_update'))).' | ';
+ $table_data_row.=''.anchor($controller_name."/receipt/" . $sale['sale_id'], '', array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_receipt'))).' | ';
+ $table_data_row.=''.anchor($controller_name."/invoice/" . $sale['sale_id'], '', array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_invoice'))).' | ';
$table_data_row.='';
return $table_data_row;
diff --git a/application/views/partial/print_receipt.php b/application/views/partial/print_receipt.php
index 0450b4cae..bcfdcaf75 100644
--- a/application/views/partial/print_receipt.php
+++ b/application/views/partial/print_receipt.php
@@ -1,11 +1,8 @@
-
+}
+
+
+ $(window).load(function()
+ {
+ // executes when complete page is fully loaded, including all frames, objects and images
+ printdoc();
+ });
\ No newline at end of file
+?>
+
\ No newline at end of file
diff --git a/application/views/sales/invoice.php b/application/views/sales/invoice.php
index 94b82c663..f3a49d7c0 100755
--- a/application/views/sales/invoice.php
+++ b/application/views/sales/invoice.php
@@ -8,11 +8,11 @@ if (isset($error_message))
}
?>
-load->view('partial/print_receipt', array('print_after_sale', $print_after_sale, 'selected_printer'=>'invoice_printer')); ?>
+load->view('partial/print_receipt', array('print_after_sale'=>$print_after_sale, 'selected_printer'=>'invoice_printer')); ?>
@@ -25,7 +25,7 @@ if (isset($error_message))
if(isset($customer))
{
?>
-
+
@@ -51,7 +51,7 @@ if (isset($error_message))