diff --git a/application/controllers/Config.php b/application/controllers/Config.php
index 03c746ab1..be3639045 100644
--- a/application/controllers/Config.php
+++ b/application/controllers/Config.php
@@ -224,6 +224,7 @@ class Config extends Secure_Controller
public function save_receipt()
{
$batch_save_data = array (
+ 'receipt_template' => $this->input->post('receipt_template'),
'receipt_show_taxes' => $this->input->post('receipt_show_taxes') != NULL,
'receipt_show_total_discount' => $this->input->post('receipt_show_total_discount') != NULL,
'receipt_show_description' => $this->input->post('receipt_show_description') != NULL,
diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php
index 9ff7222f8..a37de6c5a 100644
--- a/application/controllers/Sales.php
+++ b/application/controllers/Sales.php
@@ -340,7 +340,7 @@ class Sales extends Secure_Controller
$data['total'] = $this->sale_lib->get_total();
$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_time'] = date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'));
$data['transaction_date'] = date($this->config->item('dateformat'));
$data['show_stock_locations'] = $this->Stock_location->show_locations('sales');
$data['comments'] = $this->sale_lib->get_comment();
@@ -664,17 +664,19 @@ class Sales extends Secure_Controller
public function receipt($sale_id)
{
- $sale_data = $this->_load_sale_data($sale_id);
-
- $this->load->view('sales/receipt', $sale_data);
+ $data = $this->_load_sale_data($sale_id);
+
+ $this->load->view('sales/receipt', $data);
+
$this->sale_lib->clear_all();
}
public function invoice($sale_id)
{
- $sale_data = $this->_load_sale_data($sale_id);
+ $data = $this->_load_sale_data($sale_id);
+
+ $this->load->view('sales/invoice', $data);
- $this->load->view('sales/invoice', $sale_data);
$this->sale_lib->clear_all();
}
diff --git a/application/language/de-CH/config_lang.php b/application/language/de-CH/config_lang.php
index 0231deb7f..9fe06a15e 100644
--- a/application/language/de-CH/config_lang.php
+++ b/application/language/de-CH/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Zeige MWSt";
$lang["config_receipt_show_total_discount"] = "Zeige Gesamtrabatt";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Berechne Durchschnittseinkaufspreis";
$lang["config_recv_invoice_format"] = "Format Eingangsrechnung";
$lang["config_return_policy_required"] = "Rücknahmepolitik erforderlich";
diff --git a/application/language/en/config_lang.php b/application/language/en/config_lang.php
index c5a0bb173..a9e73b635 100644
--- a/application/language/en/config_lang.php
+++ b/application/language/en/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Receivings Invoice Format";
$lang["config_return_policy_required"] = "Return policy is a required field";
diff --git a/application/language/es/config_lang.php b/application/language/es/config_lang.php
index 0dd5426d2..eca395e04 100644
--- a/application/language/es/config_lang.php
+++ b/application/language/es/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Mostrar impuestos";
$lang["config_receipt_show_total_discount"] = "Mostrar Descuento Total";
$lang["config_receipt_show_description"] = "Mostrar descripcion";
$lang["config_receipt_show_serialnumber"] = "Mostra numero de serie";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc precio promedio (Recepción)";
$lang["config_recv_invoice_format"] = "Formato de Factura de Recepción";
$lang["config_return_policy_required"] = "Política de Devolución es requerida";
diff --git a/application/language/fr/config_lang.php b/application/language/fr/config_lang.php
index 856bee5f9..b6e4c44f2 100644
--- a/application/language/fr/config_lang.php
+++ b/application/language/fr/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Receivings Invoice Format";
$lang["config_return_policy_required"] = "Le Message est un champ requis";
diff --git a/application/language/hr-HR/config_lang.php b/application/language/hr-HR/config_lang.php
index f60dce45e..4cf4abc1b 100644
--- a/application/language/hr-HR/config_lang.php
+++ b/application/language/hr-HR/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Prikaži porez";
$lang["config_receipt_show_total_discount"] = "Pokaži ukupni popust";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Računaj prosječnu cijenu (primke)";
$lang["config_recv_invoice_format"] = "Oblik ulaznog računa(primke)";
$lang["config_return_policy_required"] = "Polje za povratne obavijesti je potrebno";
diff --git a/application/language/hu-HU/config_lang.php b/application/language/hu-HU/config_lang.php
index 901bc86b8..edb8ae01e 100644
--- a/application/language/hu-HU/config_lang.php
+++ b/application/language/hu-HU/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Adók mutatása";
$lang["config_receipt_show_total_discount"] = "Összes kedvezmény mutatása";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Átl. Ár számitása (visszáru)";
$lang["config_recv_invoice_format"] = "Visszatérítési számla formátum";
$lang["config_return_policy_required"] = "Return policy is a required field";
diff --git a/application/language/id/config_lang.php b/application/language/id/config_lang.php
index d6c6110cc..bc139b448 100644
--- a/application/language/id/config_lang.php
+++ b/application/language/id/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Format Nota";
$lang["config_return_policy_required"] = "Kebijakan retur wajib diisi";
diff --git a/application/language/nl-BE/config_lang.php b/application/language/nl-BE/config_lang.php
index 3d75e2bc3..e9e7757aa 100755
--- a/application/language/nl-BE/config_lang.php
+++ b/application/language/nl-BE/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Toon VAT";
$lang["config_receipt_show_total_discount"] = "Toon Totale Korting";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Formattering Order #";
$lang["config_return_policy_required"] = "De retourvoorwaarden moeten ingevuld worden";
diff --git a/application/language/pt-BR/config_lang.php b/application/language/pt-BR/config_lang.php
index 8f84fd3e5..da836a784 100644
--- a/application/language/pt-BR/config_lang.php
+++ b/application/language/pt-BR/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Mostrar Impostos";
$lang["config_receipt_show_total_discount"] = "Mostrar total desconto";
$lang["config_receipt_show_description"] = "Exibir descrição";
$lang["config_receipt_show_serialnumber"] = "Exibir número serial";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc Médio de Preço (Recebimento)";
$lang["config_recv_invoice_format"] = "Formato da fatura de recebimento";
$lang["config_return_policy_required"] = "A política de devolução é um campo obrigatório";
diff --git a/application/language/ru/config_lang.php b/application/language/ru/config_lang.php
index ab111df8b..6a47a944a 100644
--- a/application/language/ru/config_lang.php
+++ b/application/language/ru/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Receivings Invoice Format";
$lang["config_return_policy_required"] = "Возвратний полис обязательный пробел";
diff --git a/application/language/th/config_lang.php b/application/language/th/config_lang.php
index d2282cac6..ba522b127 100644
--- a/application/language/th/config_lang.php
+++ b/application/language/th/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "ใบส่งของ";
$lang["config_return_policy_required"] = "ต้องกรอกเงื่อนไขการคืนสินค้า";
diff --git a/application/language/tr/config_lang.php b/application/language/tr/config_lang.php
index dbda960a0..e94435c84 100644
--- a/application/language/tr/config_lang.php
+++ b/application/language/tr/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Receivings Invoice Format";
$lang["config_return_policy_required"] = "İade Politikası zorunlu alandır";
diff --git a/application/language/zh/config_lang.php b/application/language/zh/config_lang.php
index 5876b8572..2fb51eb94 100755
--- a/application/language/zh/config_lang.php
+++ b/application/language/zh/config_lang.php
@@ -151,6 +151,9 @@ $lang["config_receipt_show_taxes"] = "Show Taxes";
$lang["config_receipt_show_total_discount"] = "Show Total Discount";
$lang["config_receipt_show_description"] = "Show Description";
$lang["config_receipt_show_serialnumber"] = "Show Serial Number";
+$lang["config_receipt_template"] = "Receipt Template";
+$lang["config_receipt_default"] = "Default";
+$lang["config_receipt_short"] = "Short";
$lang["config_receiving_calculate_average_price"] = "Calc avg. Price (Receiving)";
$lang["config_recv_invoice_format"] = "Receivings Invoice Format";
$lang["config_return_policy_required"] = "退換貨政策為必填";
diff --git a/application/views/configs/receipt_config.php b/application/views/configs/receipt_config.php
index 45bbc2c0a..091e6f63d 100644
--- a/application/views/configs/receipt_config.php
+++ b/application/views/configs/receipt_config.php
@@ -4,6 +4,18 @@
lang->line('config_receipt_show_taxes'), 'receipt_show_taxes', array('class' => 'control-label col-xs-2')); ?>
diff --git a/application/views/sales/receipt.php b/application/views/sales/receipt.php
index 626bc92e4..f188bb961 100644
--- a/application/views/sales/receipt.php
+++ b/application/views/sales/receipt.php
@@ -43,197 +43,6 @@ $(document).ready(function()
 ' . $this->lang->line('sales_takings'), array('class'=>'btn btn-info btn-sm', 'id'=>'show_takings_button')); ?>
-
-
-
-
-
-
lang->line('customers_customer').": ".$customer; ?>
-
-
-
lang->line('sales_id').": ".$sale_id; ?>
-
-
-
lang->line('sales_invoice_number').": ".$invoice_number; ?>
-
-
-
lang->line('employees_employee').": ".$employee; ?>
-
-
-
-
- | lang->line('sales_description_abbrv'); ?> |
- lang->line('sales_price'); ?> |
- lang->line('sales_quantity'); ?> |
- lang->line('sales_total'); ?> |
-
- $item)
- {
- ?>
-
- |
- |
- |
- Appconfig->get('receipt_show_total_discount') ? 'total' : 'discounted_total')]); ?> |
-
-
- Appconfig->get('receipt_show_description'))
- {
- ?>
- |
-
- Appconfig->get('receipt_show_serialnumber'))
- {
- ?>
- |
-
-
- 0)
- {
- ?>
-
- | lang->line("sales_discount_included")?> |
- |
-
-
-
-
- Appconfig->get('receipt_show_total_discount') && $discount > 0)
- {
- ?>
-
- | lang->line('sales_sub_total'); ?> |
- |
-
-
- | lang->line('sales_discount'); ?>: |
- |
-
-
-
- Appconfig->get('receipt_show_taxes'))
- {
- ?>
-
- | lang->line('sales_sub_total'); ?> |
- config->item('tax_included') ? $tax_exclusive_subtotal : $discounted_subtotal); ?> |
-
- $value)
- {
- ?>
-
- | : |
- |
-
-
-
-
-
-
-
- Appconfig->get('receipt_show_taxes') && !($this->Appconfig->get('receipt_show_total_discount') && $discount > 0)); ?>
-
- | lang->line('sales_total'); ?> |
- |
-
-
-
- | |
-
-
- $payment)
- {
- $only_sale_check &= $payment['payment_type'] == $this->lang->line('sales_check');
- $splitpayment=explode(':',$payment['payment_type']);
- $show_giftcard_remainder |= $splitpayment[0] == $this->lang->line('sales_giftcard');
- ?>
-
- | |
- |
-
-
-
-
- | |
-
-
-
-
- | lang->line('sales_giftcard_balance'); ?> |
- |
-
-
-
- | lang->line($amount_change >= 0 ? ($only_sale_check ? 'sales_check_balance' : 'sales_change_due') : 'sales_amount_due') ; ?> |
- |
-
-
-
-
- config->item('return_policy')); ?>
-
-
-
-

-
-
-
-
-load->view("partial/footer"); ?>
+load->view("sales/" . $this->config->item('receipt_template')); ?>
+load->view("partial/footer"); ?>
\ No newline at end of file
diff --git a/application/views/sales/receipt_default.php b/application/views/sales/receipt_default.php
new file mode 100644
index 000000000..7b935a5d6
--- /dev/null
+++ b/application/views/sales/receipt_default.php
@@ -0,0 +1,191 @@
+
+
+
+
+
+
lang->line('customers_customer').": ".$customer; ?>
+
+
+
lang->line('sales_id').": ".$sale_id; ?>
+
+
+
lang->line('sales_invoice_number').": ".$invoice_number; ?>
+
+
+
lang->line('employees_employee').": ".$employee; ?>
+
+
+
+
+ | lang->line('sales_description_abbrv'); ?> |
+ lang->line('sales_price'); ?> |
+ lang->line('sales_quantity'); ?> |
+ lang->line('sales_total'); ?> |
+
+ $item)
+ {
+ ?>
+
+ |
+ |
+ |
+ Appconfig->get('receipt_show_total_discount') ? 'total' : 'discounted_total')]); ?> |
+
+
+ Appconfig->get('receipt_show_description'))
+ {
+ ?>
+ |
+
+ Appconfig->get('receipt_show_serialnumber'))
+ {
+ ?>
+ |
+
+
+ 0)
+ {
+ ?>
+
+ | lang->line("sales_discount_included")?> |
+ |
+
+
+
+
+ Appconfig->get('receipt_show_total_discount') && $discount > 0)
+ {
+ ?>
+
+ | lang->line('sales_sub_total'); ?> |
+ |
+
+
+ | lang->line('sales_discount'); ?>: |
+ |
+
+
+
+ Appconfig->get('receipt_show_taxes'))
+ {
+ ?>
+
+ | lang->line('sales_sub_total'); ?> |
+ config->item('tax_included') ? $tax_exclusive_subtotal : $discounted_subtotal); ?> |
+
+ $value)
+ {
+ ?>
+
+ | : |
+ |
+
+
+
+
+
+
+
+ Appconfig->get('receipt_show_taxes') && !($this->Appconfig->get('receipt_show_total_discount') && $discount > 0)); ?>
+
+ | lang->line('sales_total'); ?> |
+ |
+
+
+
+ | |
+
+
+ $payment)
+ {
+ $only_sale_check &= $payment['payment_type'] == $this->lang->line('sales_check');
+ $splitpayment=explode(':',$payment['payment_type']);
+ $show_giftcard_remainder |= $splitpayment[0] == $this->lang->line('sales_giftcard');
+ ?>
+
+ | |
+ |
+
+
+
+
+ | |
+
+
+
+
+ | lang->line('sales_giftcard_balance'); ?> |
+ |
+
+
+
+ | lang->line($amount_change >= 0 ? ($only_sale_check ? 'sales_check_balance' : 'sales_change_due') : 'sales_amount_due') ; ?> |
+ |
+
+
+
+
+ config->item('return_policy')); ?>
+
+
+
+

+
+
+
\ No newline at end of file
diff --git a/application/views/sales/receipt_short.php b/application/views/sales/receipt_short.php
new file mode 100644
index 000000000..ce486c6e7
--- /dev/null
+++ b/application/views/sales/receipt_short.php
@@ -0,0 +1,185 @@
+
+
+
+
+
+
lang->line('customers_customer').": ".$customer; ?>
+
+
+
lang->line('sales_id').": ".$sale_id; ?>
+
+
+
lang->line('recvs_invoice_number').": ".$invoice_number; ?>
+
+
+
lang->line('employees_employee').": ".$employee; ?>
+
+
+
+
+ | lang->line('sales_description_abbrv'); ?> |
+ lang->line('sales_quantity'); ?> |
+ lang->line('sales_total'); ?> |
+
+ $item)
+ {
+ ?>
+
+ |
+
+
+ |
+ |
+ Appconfig->get('receipt_show_total_discount') ? 'total' : 'discounted_total')]); ?> |
+
+
+ Appconfig->get('receipt_show_description'))
+ {
+ ?>
+ |
+
+ Appconfig->get('receipt_show_serialnumber'))
+ {
+ ?>
+ |
+
+
+ 0)
+ {
+ ?>
+
+ | lang->line("sales_discount_included")?> |
+ |
+
+
+
+
+ Appconfig->get('receipt_show_total_discount') && $discount > 0)
+ {
+ ?>
+
+ | lang->line('sales_sub_total'); ?> |
+ |
+
+
+ | lang->line('sales_discount'); ?>: |
+ |
+
+
+
+ Appconfig->get('receipt_show_taxes'))
+ {
+ ?>
+
+ | lang->line('sales_sub_total'); ?> |
+ config->item('tax_included') ? $tax_exclusive_subtotal : $discounted_subtotal); ?> |
+
+ $value)
+ {
+ ?>
+
+ | : |
+ |
+
+
+
+
+
+
+
+ Appconfig->get('receipt_show_taxes') && !($this->Appconfig->get('receipt_show_total_discount') && $discount > 0)); ?>
+
+ | lang->line('sales_total'); ?> |
+ |
+
+
+
+ $payment)
+ {
+ $only_sale_check &= $payment['payment_type'] == $this->lang->line('sales_check');
+ $splitpayment=explode(':',$payment['payment_type']);
+ $show_giftcard_remainder |= $splitpayment[0] == $this->lang->line('sales_giftcard');
+ ?>
+
+ | |
+ |
+
+
+
+
+
+ | lang->line('sales_giftcard_balance'); ?> |
+ |
+
+
+
+ | lang->line($amount_change >= 0 ? ($only_sale_check ? 'sales_check_balance' : 'sales_change_due') : 'sales_amount_due') ; ?> |
+ |
+
+
+
+
+ config->item('return_policy')); ?>
+
+
+
+

+
+
+
\ No newline at end of file
diff --git a/database/2.4_to_3.0.sql b/database/2.4_to_3.0.sql
index 8a3eeeec6..fbca2b54a 100644
--- a/database/2.4_to_3.0.sql
+++ b/database/2.4_to_3.0.sql
@@ -40,18 +40,19 @@ ALTER TABLE `ospos_customers`
UPDATE `ospos_app_config` SET `key` = 'receipt_show_total_discount' WHERE `key` = 'show_total_discount';
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
- ('receipt_show_description', '1'),
- ('receipt_show_serialnumber', '1'),
- ('invoice_enable', '1'),
- ('country_codes', 'us'),
- ('notify_horizontal_position', 'right'),
- ('notify_vertical_position', 'top'),
- ('payment_options_order', 'cashdebitcredit'),
- ('protocol', 'mail'),
- ('mailpath', '/usr/sbin/sendmail'),
- ('smtp_port', '465'),
- ('smtp_timeout', '5'),
- ('smtp_crypto', 'ssl');
+('receipt_show_description', '1'),
+('receipt_show_serialnumber', '1'),
+('invoice_enable', '1'),
+('country_codes', 'us'),
+('notify_horizontal_position', 'right'),
+('notify_vertical_position', 'top'),
+('payment_options_order', 'cashdebitcredit'),
+('protocol', 'mail'),
+('mailpath', '/usr/sbin/sendmail'),
+('smtp_port', '465'),
+('smtp_timeout', '5'),
+('smtp_crypto', 'ssl'),
+('receipt_template', 'receipt_default');
DELETE FROM `ospos_app_config` WHERE `key` = 'use_invoice_template';
diff --git a/database/database.sql b/database/database.sql
index d3ce2ee6d..a4be257c0 100644
--- a/database/database.sql
+++ b/database/database.sql
@@ -76,7 +76,8 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('mailpath', '/usr/sbin/sendmail'),
('smtp_port', '465'),
('smtp_timeout', '5'),
-('smtp_crypto', 'ssl');
+('smtp_crypto', 'ssl'),
+('receipt_template', 'receipt_default');
-- --------------------------------------------------------
diff --git a/database/migrate_phppos_dist.sql b/database/migrate_phppos_dist.sql
index fb63ca5e7..8d58763e5 100644
--- a/database/migrate_phppos_dist.sql
+++ b/database/migrate_phppos_dist.sql
@@ -76,7 +76,8 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('mailpath', '/usr/sbin/sendmail'),
('smtp_port', '465'),
('smtp_timeout', '5'),
-('smtp_crypto', 'ssl');
+('smtp_crypto', 'ssl'),
+('receipt_template', 'receipt_default');
-- --------------------------------------------------------
diff --git a/database/tables.sql b/database/tables.sql
index 38cdfffd1..6df0d4430 100644
--- a/database/tables.sql
+++ b/database/tables.sql
@@ -76,7 +76,8 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('mailpath', '/usr/sbin/sendmail'),
('smtp_port', '465'),
('smtp_timeout', '5'),
-('smtp_crypto', 'ssl');
+('smtp_crypto', 'ssl'),
+('receipt_template', 'receipt_default');
-- --------------------------------------------------------
diff --git a/translations/config_lang.csv b/translations/config_lang.csv
index 419889df4..690f79a06 100644
--- a/translations/config_lang.csv
+++ b/translations/config_lang.csv
@@ -150,6 +150,9 @@ config_receipt_show_taxes,Adók mutatása,Zeige MWSt,Toon VAT,Mostrar impuestos,
config_receipt_show_total_discount,Összes kedvezmény mutatása,Zeige Gesamtrabatt,Toon Totale Korting,Mostrar Descuento Total,Show Total Discount,Show Total Discount,Show Total Discount,Show Total Discount,Show Total Discount,Show Total Discount,Show Total Discount,Mostrar total desconto,Pokaži ukupni popust
config_receipt_show_description,Show Description,Show Description,Show Description,Mostrar descripcion,Show Description,Show Description,Show Description,Show Description,Show Description,Show Description,Show Description,Exibir descrição,Show Description
config_receipt_show_serialnumber,Show Serial Number,Show Serial Number,Show Serial Number,Mostra numero de serie,Show Serial Number,Show Serial Number,Show Serial Number,Show Serial Number,Show Serial Number,Show Serial Number,Show Serial Number,Exibir número serial,Show Serial Number
+config_receipt_template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template,Receipt Template
+config_receipt_default,Default,Default,Default,Default,Default,Default,Default,Default,Default,Default,Default,Default,Default
+config_receipt_short,Short,Short,Short,Short,Short,Short,Short,Short,Short,Short,Short,Short,Short
config_receiving_calculate_average_price,Átl. Ár számitása (visszáru),Berechne Durchschnittseinkaufspreis,Calc avg. Price (Receiving),Calc precio promedio (Recepción),Calc avg. Price (Receiving),Calc avg. Price (Receiving),Calc avg. Price (Receiving),Calc avg. Price (Receiving),Calc avg. Price (Receiving),Calc avg. Price (Receiving),Calc avg. Price (Receiving),Calc Médio de Preço (Recebimento),Računaj prosječnu cijenu (primke)
config_recv_invoice_format,Visszatérítési számla formátum,Format Eingangsrechnung,Formattering Order #,Formato de Factura de Recepción,Receivings Invoice Format,Receivings Invoice Format,Receivings Invoice Format,Receivings Invoice Format,ใบส่งของ,Receivings Invoice Format,Format Nota,Formato da fatura de recebimento,Oblik ulaznog računa(primke)
config_return_policy_required,Return policy is a required field,Rücknahmepolitik erforderlich,De retourvoorwaarden moeten ingevuld worden,Política de Devolución es requerida,Return policy is a required field,Le Message est un champ requis,退換貨政策為必填,Возвратний полис обязательный пробел,ต้องกรอกเงื่อนไขการคืนสินค้า,İade Politikası zorunlu alandır,Kebijakan retur wajib diisi,A política de devolução é um campo obrigatório,Polje za povratne obavijesti je potrebno