diff --git a/app/Views/attributes/item.php b/app/Views/attributes/item.php
index 9e113ba7b..d327724a9 100644
--- a/app/Views/attributes/item.php
+++ b/app/Views/attributes/item.php
@@ -85,7 +85,7 @@ foreach($definition_values as $definition_id => $definition_value)
\ No newline at end of file
+
diff --git a/app/Views/attributes/manage.php b/app/Views/attributes/manage.php
index a03deece8..d694f97d4 100644
--- a/app/Views/attributes/manage.php
+++ b/app/Views/attributes/manage.php
@@ -15,7 +15,7 @@
table_support.init({
resource: '',
headers: ,
- pageSize: settings['lines_per_page'] ?>,
+ pageSize: ,
uniqueId: 'definition_id'
});
});
diff --git a/app/Views/cashups/form.php b/app/Views/cashups/form.php
index aab5703f3..4629b3f0f 100644
--- a/app/Views/cashups/form.php
+++ b/app/Views/cashups/form.php
@@ -43,7 +43,7 @@
- settings['currency_symbol']) ?>
+
'open_amount_cash',
@@ -52,7 +52,7 @@
'value' => to_currency_no_money($cash_ups_info->open_amount_cash)
]) ?>
- settings['currency_symbol']) ?>
+
@@ -63,7 +63,7 @@
- settings['currency_symbol']) ?>
+
'transfer_amount_cash',
@@ -73,7 +73,7 @@
])
?>
- settings['currency_symbol']) ?>
+
@@ -106,7 +106,7 @@
- settings['currency_symbol']) ?>
+
'closed_amount_cash',
@@ -115,7 +115,7 @@
'value'=>to_currency_no_money($cash_ups_info->closed_amount_cash)]
) ?>
- settings['currency_symbol']) ?>
+
@@ -138,7 +138,7 @@
- settings['currency_symbol']) ?>
+
'closed_amount_due',
@@ -147,7 +147,7 @@
'value'=>to_currency_no_money($cash_ups_info->closed_amount_due)]
) ?>
- settings['currency_symbol']) ?>
+
@@ -158,7 +158,7 @@
- settings['currency_symbol']) ?>
+
'closed_amount_card',
@@ -167,7 +167,7 @@
'value'=>to_currency_no_money($cash_ups_info->closed_amount_card)]
) ?>
- settings['currency_symbol']) ?>
+
@@ -178,7 +178,7 @@
- settings['currency_symbol']) ?>
+
'closed_amount_check',
@@ -187,7 +187,7 @@
'value'=>to_currency_no_money($cash_ups_info->closed_amount_check)]
) ?>
- settings['currency_symbol']) ?>
+
@@ -198,7 +198,7 @@
- settings['currency_symbol']) ?>
+
'closed_amount_total',
@@ -209,7 +209,7 @@
]
) ?>
- settings['currency_symbol']) ?>
+
@@ -256,12 +256,12 @@ $(document).ready(function()
$('#open_date').datetimepicker({
- format: "settings['dateformat']) . ' ' . dateformat_bootstrap(config('OSPOS')->settings['timeformat']) ?>",
- startDate: "settings['dateformat'] . ' ' . esc(config('OSPOS')->settings['timeformat'], 'js'), mktime(0, 0, 0, 1, 1, 2010)) ?>",
+ format: "",
+ startDate: "",
settings['timeformat'];
+ $t = $config['timeformat'];
$m = $t[strlen($t)-1];
- if( strpos(config('OSPOS')->settings['timeformat'], 'a') !== false || strpos(config('OSPOS')->settings['timeformat'], 'A') !== false )
+ if( strpos($config['timeformat'], 'a') !== false || strpos($config['timeformat'], 'A') !== false )
{
?>
showMeridian: true,
@@ -283,12 +283,12 @@ $(document).ready(function()
});
$('#close_date').datetimepicker({
- format: "settings['dateformat']) . ' ' . dateformat_bootstrap(config('OSPOS')->settings['timeformat']) ?>",
- startDate: "settings['dateformat'] . ' ' . esc(config('OSPOS')->settings['timeformat'], 'js'), mktime(0, 0, 0, 1, 1, 2010)) ?>",
+ format: "",
+ startDate: "",
settings['timeformat'];
+ $t = $config['timeformat'];
$m = $t[strlen($t)-1];
- if( strpos(config('OSPOS')->settings['timeformat'], 'a') !== false || strpos(config('OSPOS')->settings['timeformat'], 'A') !== false )
+ if( strpos($config['timeformat'], 'a') !== false || strpos($config['timeformat'], 'A') !== false )
{
?>
showMeridian: true,
diff --git a/app/Views/cashups/manage.php b/app/Views/cashups/manage.php
index 513f0f728..998d1dead 100644
--- a/app/Views/cashups/manage.php
+++ b/app/Views/cashups/manage.php
@@ -27,7 +27,7 @@ $(document).ready(function()
table_support.init({
resource: '',
headers: ,
- pageSize: settings['lines_per_page'] ?>,
+ pageSize: ,
uniqueId: 'cashup_id',
queryParams: function() {
return $.extend(arguments[0], {
diff --git a/app/Views/configs/barcode_config.php b/app/Views/configs/barcode_config.php
index 00f3be399..a8f41bab4 100644
--- a/app/Views/configs/barcode_config.php
+++ b/app/Views/configs/barcode_config.php
@@ -12,7 +12,7 @@
@@ -27,7 +27,7 @@
'name' => 'barcode_width',
'id' => 'barcode_width',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['barcode_width']
+ 'value' => $config['barcode_width']
]) ?>
@@ -42,7 +42,7 @@
'name' => 'barcode_height',
'id' => 'barcode_height',
'class' => 'form-control input-sm required',
- 'value'=>config('OSPOS')->settings['barcode_height']
+ 'value'=>$config['barcode_height']
]) ?>
@@ -53,7 +53,7 @@
barcode_lib->listfonts('fonts'), 'attr'),
- esc(config('OSPOS')->settings['barcode_font'], 'attr'),
+ esc($config['barcode_font'], 'attr'),
['class' => 'form-control input-sm required']
) ?>
@@ -65,7 +65,7 @@
'name' => 'barcode_font_size',
'id' => 'barcode_font_size',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['barcode_font_size']
+ 'value' => $config['barcode_font_size']
]) ?>
@@ -77,7 +77,7 @@
'name' => 'allow_duplicate_barcodes',
'id' => 'allow_duplicate_barcodes',
'value' => 'allow_duplicate_barcodes',
- 'checked' => config('OSPOS')->settings['allow_duplicate_barcodes']
+ 'checked' => $config['allow_duplicate_barcodes']
]) ?>
 
@@ -93,7 +93,7 @@
'barcode_content',
'value' => 'id',
- 'checked' => config('OSPOS')->settings['barcode_content' === 'id']
+ 'checked' => $config['barcode_content' === 'id']
]) ?>
@@ -101,7 +101,7 @@
'barcode_content',
'value' => 'number',
- 'checked' => config('OSPOS')->settings['barcode_content'] === 'number']) ?>
+ 'checked' => $config['barcode_content'] === 'number']) ?>
 
@@ -110,7 +110,7 @@
'barcode_generate_if_empty',
'value' => 'barcode_generate_if_empty',
- 'checked' => config('OSPOS')->settings['barcode_generate_if_empty']
+ 'checked' => $config['barcode_generate_if_empty']
]) ?>
@@ -121,7 +121,7 @@
'control-label col-xs-2']) ?>
settings['barcode_formats']);
+ $barcode_formats = json_decode($config['barcode_formats']);
echo form_dropdown ([
'name' => 'barcode_formats[]',
'id' => 'barcode_formats',
@@ -146,7 +146,7 @@
'unit_price' => lang('Items.unit_price'),
'company_name' => lang('Suppliers.company_name')
],
- config('OSPOS')->settings['barcode_first_row'], ['class' => 'form-control input-sm']);
+ $config['barcode_first_row'], ['class' => 'form-control input-sm']);
?>
@@ -160,7 +160,7 @@
'item_code' => lang('Items.item_number'),
'company_name' => lang('Suppliers.company_name')
],
- config('OSPOS')->settings['barcode_second_row'], ['class' => 'form-control input-sm']) ?>
+ $config['barcode_second_row'], ['class' => 'form-control input-sm']) ?>
@@ -173,7 +173,7 @@
'item_code' => lang('Items.item_number'),
'company_name' => lang('Suppliers.company_name')
],
- config('OSPOS')->settings['barcode_third_row'], ['class' => 'form-control input-sm']) ?>
+ $config['barcode_third_row'], ['class' => 'form-control input-sm']) ?>
@@ -186,7 +186,7 @@
'name' => 'barcode_num_in_row',
'id' => 'barcode_num_in_row',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['barcode_num_in_row']
+ 'value' => $config['barcode_num_in_row']
]) ?>
@@ -199,7 +199,7 @@
'name' => 'barcode_page_width',
'id' => 'barcode_page_width',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['barcode_page_width']
+ 'value' => $config['barcode_page_width']
]) ?>
%
@@ -214,7 +214,7 @@
'name' => 'barcode_page_cellspacing',
'id' => 'barcode_page_cellspacing',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['barcode_page_cellspacing']
+ 'value' => $config['barcode_page_cellspacing']
]) ?>
px
diff --git a/app/Views/configs/email_config.php b/app/Views/configs/email_config.php
index 5d89e5be3..1b90dd51d 100644
--- a/app/Views/configs/email_config.php
+++ b/app/Views/configs/email_config.php
@@ -13,7 +13,7 @@
'sendmail' => 'sendmail',
'smtp' => 'smtp'
],
- esc(config('OSPOS')->settings['protocol'], 'attr'),
+ esc($config['protocol'], 'attr'),
['class' => 'form-control input-sm', 'id' => 'protocol'])
?>
@@ -26,7 +26,7 @@
'name' => 'mailpath',
'id' => 'mailpath',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['mailpath'], 'attr')
+ 'value' => esc($config['mailpath'], 'attr')
]) ?>
@@ -38,7 +38,7 @@
'name' => 'smtp_host',
'id' => 'smtp_host',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['smtp_host'], 'attr')
+ 'value' => esc($config['smtp_host'], 'attr')
]) ?>
@@ -50,7 +50,7 @@
'name' => 'smtp_port',
'id' => 'smtp_port',
'class' => 'form-control input-sm',
- 'value' => config('OSPOS')->settings['smtp_port']
+ 'value' => $config['smtp_port']
]) ?>
@@ -63,7 +63,7 @@
'tls' => 'TLS',
'ssl' => 'SSL'
],
- esc(config('OSPOS')->settings['smtp_crypto'], 'attr'),
+ esc($config['smtp_crypto'], 'attr'),
['class' => 'form-control input-sm', 'id' => 'smtp_crypto'])
?>
@@ -76,7 +76,7 @@
'name' => 'smtp_timeout',
'id' => 'smtp_timeout',
'class' => 'form-control input-sm',
- 'value' => config('OSPOS')->settings['smtp_timeout']
+ 'value' => $config['smtp_timeout']
]) ?>
@@ -90,7 +90,7 @@
'name' => 'smtp_user',
'id' => 'smtp_user',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['smtp_user'], 'attr')
+ 'value' => esc($config['smtp_user'], 'attr')
]) ?>
@@ -105,7 +105,7 @@
'name' => 'smtp_pass',
'id' => 'smtp_pass',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['smtp_pass'], 'attr')
+ 'value' => esc($config['smtp_pass'], 'attr')
]) ?>
diff --git a/app/Views/configs/general_config.php b/app/Views/configs/general_config.php
index 8480bf9de..9a5e4dca0 100644
--- a/app/Views/configs/general_config.php
+++ b/app/Views/configs/general_config.php
@@ -18,11 +18,11 @@
@@ -38,7 +38,7 @@
'floating_labels' => lang('Config.floating_labels'),
'input_groups' => lang('Config.input_groups')
],
- esc(config('OSPOS')->settings['login_form'], 'attr'),
+ esc($config['login_form'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -55,7 +55,7 @@
'type' => 'number',
'min' => 0,
'max' => 100,
- 'value' => config('OSPOS')->settings['default_sales_discount']
+ 'value' => $config['default_sales_discount']
]) ?>
'toggle',
'data-size' => 'normal',
'data-onstyle' => 'success',
- 'data-on' => '' . esc(config('OSPOS')->settings['currency_symbol'], 'attr').' ',
+ 'data-on' => '' . esc($config['currency_symbol'], 'attr').' ',
'data-off' => '% ',
- 'checked' => config('OSPOS')->settings['default_sales_discount_type']
+ 'checked' => $config['default_sales_discount_type']
]) ?>
@@ -85,7 +85,7 @@
'type' => 'number',
'min' => 0,
'max' => 100,
- 'value' => config('OSPOS')->settings['default_receivings_discount']
+ 'value' => $config['default_receivings_discount']
]) ?>
'toggle',
'data-size' => 'normal',
'data-onstyle' => 'success',
- 'data-on' => '' . esc(config('OSPOS')->settings['currency_symbol'], 'attr') . ' ',
+ 'data-on' => '' . esc($config['currency_symbol'], 'attr') . ' ',
'data-off' => '% ',
- 'checked' => config('OSPOS')->settings['default_receivings_discount_type']
+ 'checked' => $config['default_receivings_discount_type']
]) ?>
@@ -111,7 +111,7 @@
'name' => 'enforce_privacy',
'id' => 'enforce_privacy',
'value' => 'enforce_privacy',
- 'checked' => config('OSPOS')->settings['enforce_privacy']
+ 'checked' => $config['enforce_privacy']
]) ?>
 
@@ -127,7 +127,7 @@
'name' => 'receiving_calculate_average_price',
'id' => 'receiving_calculate_average_price',
'value' => 'receiving_calculate_average_price',
- 'checked' => config('OSPOS')->settings['receiving_calculate_average_price']
+ 'checked' => $config['receiving_calculate_average_price']
]) ?>
@@ -142,7 +142,7 @@
'type' => 'number',
'min' => 10,
'max' => 1000,
- 'value' => config('OSPOS')->settings['lines_per_page']
+ 'value' => $config['lines_per_page']
]) ?>
@@ -158,7 +158,7 @@
'top' => lang('Config.top'),
'bottom' => lang('Config.bottom')
],
- esc(config('OSPOS')->settings['notify_vertical_position'], 'attr'),
+ esc($config['notify_vertical_position'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -170,7 +170,7 @@
'center' => lang('Config.center'),
'right' => lang('Config.right')
],
- esc(config('OSPOS')->settings['notify_horizontal_position'], 'attr'),
+ esc($config['notify_horizontal_position'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -192,7 +192,7 @@
'type' => 'number',
'min' => 128,
'max' => 3840,
- 'value' => config('OSPOS')->settings['image_max_width'],
+ 'value' => $config['image_max_width'],
'data-toggle' => 'tooltip',
'data-placement' => 'top',
'title' => lang('Config.image_max_width_tooltip')
@@ -209,7 +209,7 @@
'type' => 'number',
'min' => 128,
'max' => 3840,
- 'value' => config('OSPOS')->settings['image_max_height'],
+ 'value' => $config['image_max_height'],
'data-toggle' => 'tooltip',
'data-placement' => 'top',
'title' => lang('Config.image_max_height_tooltip')
@@ -226,7 +226,7 @@
'type' => 'number',
'min' => 128,
'max' => 2048,
- 'value' => config('OSPOS')->settings['image_max_size'],
+ 'value' => $config['image_max_size'],
'data-toggle' => 'tooltip',
'data-placement' => 'top',
'title' => lang('Config.image_max_size_tooltip')
@@ -257,7 +257,7 @@
'name' => 'gcaptcha_enable',
'id' => 'gcaptcha_enable',
'value' => 'gcaptcha_enable',
- 'checked' => config('OSPOS')->settings['gcaptcha_enable']
+ 'checked' => $config['gcaptcha_enable']
]) ?>
@@ -274,7 +274,7 @@
'name' => 'gcaptcha_site_key',
'id' => 'gcaptcha_site_key',
'class' => 'form-control input-sm required',
- 'value' => esc(config('OSPOS')->settings['gcaptcha_site_key'], 'attr')
+ 'value' => esc($config['gcaptcha_site_key'], 'attr')
]) ?>
@@ -286,7 +286,7 @@
'name' => 'gcaptcha_secret_key',
'id' => 'gcaptcha_secret_key',
'class' => 'form-control input-sm required',
- 'value' => esc(config('OSPOS')->settings['gcaptcha_secret_key'], 'attr')
+ 'value' => esc($config['gcaptcha_secret_key'], 'attr')
]) ?>
@@ -306,7 +306,7 @@
'unit_price' => lang('Items.unit_price'),
'cost_price' => lang('Items.cost_price')
],
- esc(config('OSPOS')->settings['suggestions_first_column'], 'attr'),
+ esc($config['suggestions_first_column'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -323,7 +323,7 @@
'unit_price' => lang('Items.unit_price'),
'cost_price' => lang('Items.cost_price')
],
- esc(config('OSPOS')->settings['suggestions_second_column'], 'attr'),
+ esc($config['suggestions_second_column'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -340,7 +340,7 @@
'unit_price' => lang('Items.unit_price'),
'cost_price' => lang('Items.cost_price')
],
- esc(config('OSPOS')->settings['suggestions_third_column'], 'attr'),
+ esc($config['suggestions_third_column'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -356,14 +356,14 @@
'giftcard_number',
'value' => 'series',
- 'checked' => config('OSPOS')->settings['giftcard_number'] == 'series']) ?>
+ 'checked' => $config['giftcard_number'] == 'series']) ?>
'giftcard_number',
'value' => 'random',
- 'checked' => config('OSPOS')->settings['giftcard_number'] == 'random']) ?>
+ 'checked' => $config['giftcard_number'] == 'random']) ?>
@@ -376,7 +376,7 @@
'name' => 'derive_sale_quantity',
'id' => 'derive_sale_quantity',
'value' => 'derive_sale_quantity',
- 'checked' => config('OSPOS')->settings['derive_sale_quantity']
+ 'checked' => $config['derive_sale_quantity']
]) ?>
 
@@ -404,7 +404,7 @@
'name' => 'multi_pack_enabled',
'id' => 'multi_pack_enabled',
'value' => 'multi_pack_enabled',
- 'checked' => config('OSPOS')->settings['multi_pack_enabled']
+ 'checked' => $config['multi_pack_enabled']
]) ?>
@@ -416,7 +416,7 @@
'name' => 'include_hsn',
'id' => 'include_hsn',
'value' => 'include_hsn',
- 'checked' => config('OSPOS')->settings['include_hsn']
+ 'checked' => $config['include_hsn']
]) ?>
@@ -428,7 +428,7 @@
'name' => 'category_dropdown',
'id' => 'category_dropdown',
'value' => 'category_dropdown',
- 'checked' => config('OSPOS')->settings['category_dropdown']
+ 'checked' => $config['category_dropdown']
]) ?>
diff --git a/app/Views/configs/info_config.php b/app/Views/configs/info_config.php
index e711506ab..9f0e9dc96 100644
--- a/app/Views/configs/info_config.php
+++ b/app/Views/configs/info_config.php
@@ -19,7 +19,7 @@
'name' => 'company',
'id' => 'company',
'class' => 'form-control input-sm required',
- 'value' => esc(config('OSPOS')->settings['company'], 'attr')
+ 'value' => esc($config['company'], 'attr')
]) ?>
@@ -32,7 +32,7 @@
@@ -54,7 +54,7 @@
'name' => 'address',
'id' => 'address',
'class' => 'form-control input-sm required',
- 'value'=> esc(config('OSPOS')->settings['address'], 'attr')
+ 'value'=> esc($config['address'], 'attr')
]) ?>
@@ -68,7 +68,7 @@
'name' => 'website',
'id' => 'website',
'class' => 'form-control input-sm',
- 'value'=> esc(config('OSPOS')->settings['website'], 'url')
+ 'value'=> esc($config['website'], 'url')
]) ?>
@@ -84,7 +84,7 @@
'id' => 'email',
'type' => 'email',
'class' => 'form-control input-sm',
- 'value'=> esc(config('OSPOS')->settings['email'], 'attr')
+ 'value'=> esc($config['email'], 'attr')
]) ?>
@@ -99,7 +99,7 @@
'name' => 'phone',
'id' => 'phone',
'class' => 'form-control input-sm required',
- 'value'=> esc(config('OSPOS')->settings['phone'], 'attr')
+ 'value'=> esc($config['phone'], 'attr')
]) ?>
@@ -114,7 +114,7 @@
'name' => 'fax',
'id' => 'fax',
'class' => 'form-control input-sm',
- 'value'=> esc(config('OSPOS')->settings['fax'], 'attr')
+ 'value'=> esc($config['fax'], 'attr')
]) ?>
@@ -127,7 +127,7 @@
'name' => 'return_policy',
'id' => 'return_policy',
'class' => 'form-control input-sm required',
- 'value' => esc(config('OSPOS')->settings['return_policy'], 'attr')
+ 'value' => esc($config['return_policy'], 'attr')
]) ?>
diff --git a/app/Views/configs/invoice_config.php b/app/Views/configs/invoice_config.php
index df05fd592..378a9d1fe 100644
--- a/app/Views/configs/invoice_config.php
+++ b/app/Views/configs/invoice_config.php
@@ -17,7 +17,7 @@
'name' => 'invoice_enable',
'value' => 'invoice_enable',
'id' => 'invoice_enable',
- 'checked' => config('OSPOS')->settings['invoice_enable']
+ 'checked' => $config['invoice_enable']
]) ?>
@@ -25,7 +25,7 @@
@@ -36,7 +36,7 @@
'name' => 'recv_invoice_format',
'id' => 'recv_invoice_format',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['recv_invoice_format'], 'attr')
+ 'value' => esc($config['recv_invoice_format'], 'attr')
]) ?>
@@ -48,7 +48,7 @@
'name' => 'invoice_default_comments',
'id' => 'invoice_default_comments',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['invoice_default_comments'], 'attr')
+ 'value' => esc($config['invoice_default_comments'], 'attr')
]) ?>
@@ -60,7 +60,7 @@
'name' => 'invoice_email_message',
'id' => 'invoice_email_message',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['invoice_email_message'], 'attr')
+ 'value' => esc($config['invoice_email_message'], 'attr')
]) ?>
@@ -68,7 +68,7 @@
@@ -79,7 +79,7 @@
'name' => 'sales_invoice_format',
'id' => 'sales_invoice_format',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['sales_invoice_format'], 'attr')
+ 'value' => esc($config['sales_invoice_format'], 'attr')
]) ?>
@@ -92,7 +92,7 @@
'name' => 'last_used_invoice_number',
'id' => 'last_used_invoice_number',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['last_used_invoice_number']
+ 'value' => $config['last_used_invoice_number']
]) ?>
@@ -104,7 +104,7 @@
'name' => 'sales_quote_format',
'id' => 'sales_quote_format',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['sales_quote_format'], 'attr')
+ 'value' => esc($config['sales_quote_format'], 'attr')
]) ?>
@@ -117,7 +117,7 @@
'name' => 'last_used_quote_number',
'id' => 'last_used_quote_number',
'class' => 'form-control input-sm required',
- 'value'=>config('OSPOS')->settings['last_used_quote_number']
+ 'value'=>$config['last_used_quote_number']
]) ?>
@@ -129,7 +129,7 @@
'name' => 'quote_default_comments',
'id' => 'quote_default_comments',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['quote_default_comments'], 'attr')
+ 'value' => esc($config['quote_default_comments'], 'attr')
]) ?>
@@ -141,7 +141,7 @@
'name' => 'work_order_enable',
'value' => 'work_order_enable',
'id' => 'work_order_enable',
- 'checked' => config('OSPOS')->settings['work_order_enable']
+ 'checked' => $config['work_order_enable']
]) ?>
@@ -153,7 +153,7 @@
'name' => 'work_order_format',
'id' => 'work_order_format',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['work_order_format'], 'attr')
+ 'value' => esc($config['work_order_format'], 'attr')
]) ?>
@@ -166,7 +166,7 @@
'name' => 'last_used_work_order_number',
'id' => 'last_used_work_order_number',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['last_used_work_order_number']
+ 'value' => $config['last_used_work_order_number']
]) ?>
diff --git a/app/Views/configs/locale_config.php b/app/Views/configs/locale_config.php
index db1db67e3..1f8b9d3c3 100644
--- a/app/Views/configs/locale_config.php
+++ b/app/Views/configs/locale_config.php
@@ -16,8 +16,8 @@
'control-label col-xs-2']) ?>
- settings['number_locale'], 'attr'), ['class' => 'form-control input-sm', 'id' => 'number_locale']) ?>
- settings['number_locale'], 'attr')) ?>
+ 'form-control input-sm', 'id' => 'number_locale']) ?>
+
@@ -39,7 +39,7 @@
'name' => 'thousands_separator',
'id' => 'thousands_separator',
'value' => 'thousands_separator',
- 'checked' => config('OSPOS')->settings['thousands_separator']
+ 'checked' => $config['thousands_separator']
]) ?>
@@ -51,7 +51,7 @@
'name' => 'currency_symbol',
'id' => 'currency_symbol',
'class' => 'form-control input-sm number_locale',
- 'value' => esc(config('OSPOS')->settings['currency_symbol'], 'attr')
+ 'value' => esc($config['currency_symbol'], 'attr')
]) ?>
@@ -78,7 +78,7 @@
'1' => '1',
'2' => '2'
],
- config('OSPOS')->settings['currency_decimals'],
+ $config['currency_decimals'],
['class' => 'form-control input-sm']
) ?>
@@ -96,7 +96,7 @@
'3' => '3',
'4' => '4'
],
- config('OSPOS')->settings['tax_decimals'],
+ $config['tax_decimals'],
['class' => 'form-control input-sm']
) ?>
@@ -113,7 +113,7 @@
'2' => '2',
'3' => '3'
],
- config('OSPOS')->settings['quantity_decimals'],
+ $config['quantity_decimals'],
['class' => 'form-control input-sm']
) ?>
@@ -130,7 +130,7 @@
'1' => '1',
'2' => '2'
],
- config('OSPOS')->settings['cash_decimals'],
+ $config['cash_decimals'],
['class' => 'form-control input-sm']
) ?>
@@ -144,7 +144,7 @@
@@ -160,7 +160,7 @@
'creditdebitcash' => lang('Sales.credit') . ' / ' . lang('Sales.debit') . ' / ' . lang('Sales.cash'),
'creditcashdebit' => lang('Sales.credit') . ' / ' . lang('Sales.cash') . ' / ' . lang('Sales.debit')
],
- esc(config('OSPOS')->settings['payment_options_order'], 'attr'),
+ esc($config['payment_options_order'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -169,7 +169,7 @@
@@ -207,14 +207,14 @@
settings['dateformat'], 'attr'),
+ esc($config['dateformat'], 'attr'),
['class' => 'form-control input-sm']
) ?>
settings['timeformat'], ['class' => 'form-control input-sm']
+ $config['timeformat'], ['class' => 'form-control input-sm']
) ?>
@@ -226,7 +226,7 @@
'name' => 'date_or_time_format',
'id' => 'date_or_time_format',
'value' => 'date_or_time_format',
- 'checked' => config('OSPOS')->settings['date_or_time_format']
+ 'checked' => $config['date_or_time_format']
]) ?>
@@ -250,7 +250,7 @@
'11' => lang('Config.financial_year_nov'),
'12' => lang('Config.financial_year_dec')
],
- config('OSPOS')->settings['financial_year'], ['class' => 'form-control input-sm']
+ $config['financial_year'], ['class' => 'form-control input-sm']
) ?>
diff --git a/app/Views/configs/message_config.php b/app/Views/configs/message_config.php
index a135e031a..d261403ea 100644
--- a/app/Views/configs/message_config.php
+++ b/app/Views/configs/message_config.php
@@ -13,7 +13,7 @@
'name' => 'msg_uid',
'id' => 'msg_uid',
'class' => 'form-control input-sm required',
- 'value' => esc(config('OSPOS')->settings['msg_uid'], 'attr')
+ 'value' => esc($config['msg_uid'], 'attr')
]) ?>
@@ -28,7 +28,7 @@
'name' => 'msg_pwd',
'id' => 'msg_pwd',
'class' => 'form-control input-sm required',
- 'value' => esc(config('OSPOS')->settings['msg_pwd'], 'attr')
+ 'value' => esc($config['msg_pwd'], 'attr')
]) ?>
@@ -43,7 +43,7 @@
'name' => 'msg_src',
'id' => 'msg_src',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['msg_src'] == NULL ? esc(config('OSPOS')->settings['company'], 'attr') : esc(config('OSPOS')->settings['msg_src'], 'attr')
+ 'value' => $config['msg_src'] == NULL ? esc($config['company'], 'attr') : esc($config['msg_src'], 'attr')
]) ?>
@@ -56,7 +56,7 @@
'name' => 'msg_msg',
'id' => 'msg_msg',
'class' => 'form-control input-sm',
- 'value' => config('OSPOS')->settings['msg_msg'],
+ 'value' => $config['msg_msg'],
'placeholder' => lang('Config.msg_msg_placeholder')
]) ?>
diff --git a/app/Views/configs/receipt_config.php b/app/Views/configs/receipt_config.php
index d674638c7..f272ada48 100644
--- a/app/Views/configs/receipt_config.php
+++ b/app/Views/configs/receipt_config.php
@@ -12,7 +12,7 @@
'receipt_default' => lang('Config.receipt_default'),
'receipt_short' => lang('Config.receipt_short')
],
- esc(config('OSPOS')->settings['receipt_template'], 'attr'),
+ esc($config['receipt_template'], 'attr'),
['class' => 'form-control input-sm']
) ?>
@@ -29,7 +29,7 @@
'name' => 'receipt_font_size',
'id' => 'receipt_font_size',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['receipt_font_size']
+ 'value' => $config['receipt_font_size']
]) ?>
px
@@ -47,7 +47,7 @@
'name' => 'print_delay_autoreturn',
'id' => 'print_delay_autoreturn',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['print_delay_autoreturn']
+ 'value' => $config['print_delay_autoreturn']
]) ?>
s
@@ -61,7 +61,7 @@
'email_receipt_check_behaviour',
'value' => 'always',
- 'checked' => config('OSPOS')->settings['email_receipt_check_behaviour'] == 'always'
+ 'checked' => $config['email_receipt_check_behaviour'] == 'always'
]) ?>
@@ -69,7 +69,7 @@
'email_receipt_check_behaviour',
'value' => 'never',
- 'checked' => config('OSPOS')->settings['email_receipt_check_behaviour'] == 'never'
+ 'checked' => $config['email_receipt_check_behaviour'] == 'never'
]) ?>
@@ -77,7 +77,7 @@
'email_receipt_check_behaviour',
'value' => 'last',
- 'checked' => config('OSPOS')->settings['email_receipt_check_behaviour'] == 'last'
+ 'checked' => $config['email_receipt_check_behaviour'] == 'last'
]) ?>
@@ -91,7 +91,7 @@
'print_receipt_check_behaviour',
'value' => 'always',
- 'checked' => config('OSPOS')->settings['print_receipt_check_behaviour'] == 'always'
+ 'checked' => $config['print_receipt_check_behaviour'] == 'always'
]) ?>
@@ -99,7 +99,7 @@
'print_receipt_check_behaviour',
'value' => 'never',
- 'checked' => config('OSPOS')->settings['print_receipt_check_behaviour'] == 'never'
+ 'checked' => $config['print_receipt_check_behaviour'] == 'never'
]) ?>
@@ -107,7 +107,7 @@
'print_receipt_check_behaviour',
'value' => 'last',
- 'checked' => config('OSPOS')->settings['print_receipt_check_behaviour'] == 'last'
+ 'checked' => $config['print_receipt_check_behaviour'] == 'last'
]) ?>
@@ -121,7 +121,7 @@
'name' => 'receipt_show_company_name',
'value' => 'receipt_show_company_name',
'id' => 'receipt_show_company_name',
- 'checked' => config('OSPOS')->settings['receipt_show_company_name']
+ 'checked' => $config['receipt_show_company_name']
]) ?>
@@ -133,7 +133,7 @@
'name' => 'receipt_show_taxes',
'value' => 'receipt_show_taxes',
'id' => 'receipt_show_taxes',
- 'checked' => config('OSPOS')->settings['receipt_show_taxes']
+ 'checked' => $config['receipt_show_taxes']
]) ?>
@@ -145,7 +145,7 @@
'name' => 'receipt_show_tax_ind',
'value' => 'receipt_show_tax_ind',
'id' => 'receipt_show_tax_ind',
- 'checked' => config('OSPOS')->settings['receipt_show_tax_ind']
+ 'checked' => $config['receipt_show_tax_ind']
]) ?>
@@ -157,7 +157,7 @@
'name' => 'receipt_show_total_discount',
'value' => 'receipt_show_total_discount',
'id' => 'receipt_show_total_discount',
- 'checked' => config('OSPOS')->settings['receipt_show_total_discount']
+ 'checked' => $config['receipt_show_total_discount']
]) ?>
@@ -169,7 +169,7 @@
'name' => 'receipt_show_description',
'value' => 'receipt_show_description',
'id' => 'receipt_show_description',
- 'checked' => config('OSPOS')->settings['receipt_show_description']
+ 'checked' => $config['receipt_show_description']
]) ?>
@@ -181,7 +181,7 @@
'name' => 'receipt_show_serialnumber',
'value' => 'receipt_show_serialnumber',
'id' => 'receipt_show_serialnumber',
- 'checked' => config('OSPOS')->settings['receipt_show_serialnumber']
+ 'checked' => $config['receipt_show_serialnumber']
]) ?>
@@ -193,7 +193,7 @@
'name' => 'print_silently',
'id' => 'print_silently',
'value' => 'print_silently',
- 'checked' => config('OSPOS')->settings['print_silently']
+ 'checked' => $config['print_silently']
]) ?>
@@ -205,7 +205,7 @@
'name' => 'print_header',
'id' => 'print_header',
'value' => 'print_header',
- 'checked' => config('OSPOS')->settings['print_header']
+ 'checked' => $config['print_header']
]) ?>
@@ -217,7 +217,7 @@
'name' => 'print_footer',
'id' => 'print_footer',
'value' => 'print_footer',
- 'checked' => config('OSPOS')->settings['print_footer']
+ 'checked' => $config['print_footer']
]) ?>
@@ -254,7 +254,7 @@
'name' => 'print_top_margin',
'id' => 'print_top_margin',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['print_top_margin']
+ 'value' => $config['print_top_margin']
]) ?>
px
@@ -272,7 +272,7 @@
'name' => 'print_left_margin',
'id' => 'print_left_margin',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['print_left_margin']
+ 'value' => $config['print_left_margin']
]) ?>
px
@@ -290,7 +290,7 @@
'name' => 'print_bottom_margin',
'id' => 'print_bottom_margin',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['print_bottom_margin']
+ 'value' => $config['print_bottom_margin']
]) ?>
px
@@ -308,7 +308,7 @@
'name' => 'print_right_margin',
'id' => 'print_right_margin',
'class' => 'form-control input-sm required',
- 'value' => config('OSPOS')->settings['print_right_margin']
+ 'value' => $config['print_right_margin']
]) ?>
px
diff --git a/app/Views/configs/reward_config.php b/app/Views/configs/reward_config.php
index f5f9d64bb..a4478fb5e 100644
--- a/app/Views/configs/reward_config.php
+++ b/app/Views/configs/reward_config.php
@@ -16,7 +16,7 @@
'name' => 'customer_reward_enable',
'value' => 'customer_reward_enable',
'id' => 'customer_reward_enable',
- 'checked' => config('OSPOS')->settings['customer_reward_enable']
+ 'checked' => $config['customer_reward_enable']
]) ?>
diff --git a/app/Views/configs/system_info.php b/app/Views/configs/system_info.php
index fd2f3837d..1b1805c9e 100644
--- a/app/Views/configs/system_info.php
+++ b/app/Views/configs/system_info.php
@@ -182,7 +182,7 @@
?>
- settings['timezone']) ?>
+
@@ -204,6 +204,6 @@
});
if($('#timezone').html() !== $('#ostimezone').html())
- document.getElementById("TimeError").innerHTML = '
settings['timezone']) ?>
';
+ document.getElementById("TimeError").innerHTML = '
';
diff --git a/app/Views/configs/table_config.php b/app/Views/configs/table_config.php
index 77bbe1f34..21e81df98 100644
--- a/app/Views/configs/table_config.php
+++ b/app/Views/configs/table_config.php
@@ -16,7 +16,7 @@
'name' => 'dinner_table_enable',
'value' => 'dinner_table_enable',
'id' => 'dinner_table_enable',
- 'checked' => config('OSPOS')->settings['dinner_table_enable']
+ 'checked' => $config['dinner_table_enable']
]) ?>
diff --git a/app/Views/configs/tax_config.php b/app/Views/configs/tax_config.php
index 221b0f57c..9770bfd92 100644
--- a/app/Views/configs/tax_config.php
+++ b/app/Views/configs/tax_config.php
@@ -19,7 +19,7 @@
'name' => 'tax_id',
'id' => 'tax_id',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['tax_id'], 'attr')
+ 'value' => esc($config['tax_id'], 'attr')
]) ?>
@@ -31,7 +31,7 @@
'name' => 'tax_included',
'id' => 'tax_included',
'value' => 'tax_included',
- 'checked' => config('OSPOS')->settings['tax_included']
+ 'checked' => $config['tax_included']
]) ?>
@@ -43,14 +43,14 @@
'name' => 'default_tax_1_name',
'id' => 'default_tax_1_name',
'class' => 'form-control input-sm',
- 'value' => config('OSPOS')->settings['default_tax_1_name'] !== FALSE ? esc(config('OSPOS')->settings['default_tax_1_name'], 'attr') : lang('Items.sales_tax_1')]) ?>
+ 'value' => $config['default_tax_1_name'] !== FALSE ? esc($config['default_tax_1_name'], 'attr') : lang('Items.sales_tax_1')]) ?>
'default_tax_1_rate',
'id' => 'default_tax_1_rate',
'class' => 'form-control input-sm',
- 'value' => to_tax_decimals(config('OSPOS')->settings['default_tax_1_rate'])
+ 'value' => to_tax_decimals($config['default_tax_1_rate'])
]) ?>
%
@@ -63,7 +63,7 @@
'name' => 'default_tax_2_name',
'id' => 'default_tax_2_name',
'class' => 'form-control input-sm',
- 'value' => config('OSPOS')->settings['default_tax_2_name'] !== FALSE ? esc(config('OSPOS')->settings['default_tax_2_name'], 'attr') : lang('Items.sales_tax_2')
+ 'value' => $config['default_tax_2_name'] !== FALSE ? esc($config['default_tax_2_name'], 'attr') : lang('Items.sales_tax_2')
]) ?>
@@ -71,7 +71,7 @@
'name' => 'default_tax_2_rate',
'id' => 'default_tax_2_rate',
'class' => 'form-control input-sm',
- 'value' => to_tax_decimals(config('OSPOS')->settings['default_tax_2_rate'])
+ 'value' => to_tax_decimals($config['default_tax_2_rate'])
]) ?>
%
@@ -84,7 +84,7 @@
'name' => 'use_destination_based_tax',
'id' => 'use_destination_based_tax',
'value' => 'use_destination_based_tax',
- 'checked' => config('OSPOS')->settings['use_destination_based_tax']
+ 'checked' => $config['use_destination_based_tax']
]) ?>
@@ -92,21 +92,21 @@
diff --git a/app/Views/customers/form.php b/app/Views/customers/form.php
index a85d977ca..ddb69bb6c 100644
--- a/app/Views/customers/form.php
+++ b/app/Views/customers/form.php
@@ -46,7 +46,7 @@
@@ -129,7 +129,7 @@
- settings['customer_reward_enable'] == TRUE): ?>
+
-
\ No newline at end of file
+
diff --git a/app/Views/items/form.php b/app/Views/items/form.php
index dd99b7c71..5fb45e3f6 100644
--- a/app/Views/items/form.php
+++ b/app/Views/items/form.php
@@ -62,7 +62,7 @@
@@ -263,7 +263,7 @@
'name' => 'tax_names[]',
'id' => 'tax_name_2',
'class' => 'form-control input-sm',
- 'value' => isset($item_tax_info[1]['name']) ? esc($item_tax_info[1]['name'], 'attr') : esc(config('OSPOS')->settings['default_tax_2_name'], 'attr')
+ 'value' => isset($item_tax_info[1]['name']) ? esc($item_tax_info[1]['name'], 'attr') : esc($config['default_tax_2_name'], 'attr')
]) ?>
@@ -420,7 +420,7 @@
settings['multi_pack_enabled'] == '1')
+ if($config['multi_pack_enabled'] == '1')
{
?>
@@ -98,7 +98,7 @@
'name' => 'tax_percents[]',
'id' => 'tax_percent_name_1',
'class' => 'form-control input-sm',
- 'value'=>to_tax_decimals(config('OSPOS')->settings['default_tax_1_rate'])
+ 'value'=>to_tax_decimals($config['default_tax_1_rate'])
]) ?>
%
@@ -112,7 +112,7 @@
'name' => 'tax_names[]',
'id' => 'tax_name_2',
'class' => 'form-control input-sm',
- 'value' => esc(config('OSPOS')->settings['default_tax_2_name'], 'attr')
+ 'value' => esc($config['default_tax_2_name'], 'attr')
]) ?>
@@ -121,7 +121,7 @@
'name' => 'tax_percents[]',
'id' => 'tax_percent_name_2',
'class' => 'form-control input-sm',
- 'value' => to_tax_decimals(config('OSPOS')->settings['default_tax_2_rate'])
+ 'value' => to_tax_decimals($config['default_tax_2_rate'])
]) ?>
%
diff --git a/app/Views/items/manage.php b/app/Views/items/manage.php
index f89c1ffa5..36e4c6fde 100644
--- a/app/Views/items/manage.php
+++ b/app/Views/items/manage.php
@@ -32,7 +32,7 @@ $(document).ready(function()
// load the preset daterange picker
// set the beginning of time as starting date
- $('#daterangepicker').data('daterangepicker').setStartDate("settings['dateformat'], mktime(0,0,0,01,01,2010)) ?>");
+ $('#daterangepicker').data('daterangepicker').setStartDate("");
// update the hidden inputs with the selected dates before submitting the search data
var start_date = "";
$("#daterangepicker").on('apply.daterangepicker', function(ev, picker) {
@@ -52,7 +52,7 @@ $(document).ready(function()
employee_id: get_logged_in_employee_info()->person_id ?>,
resource: '',
headers: ,
- pageSize: settings['lines_per_page'] ?>,
+ pageSize: ,
uniqueId: 'items.item_id',
queryParams: function() {
return $.extend(arguments[0], {
diff --git a/app/Views/messages/form_sms.php b/app/Views/messages/form_sms.php
index 3a8e07176..edfcf2d83 100644
--- a/app/Views/messages/form_sms.php
+++ b/app/Views/messages/form_sms.php
@@ -34,7 +34,7 @@
diff --git a/app/Views/partial/datepicker_locale.php b/app/Views/partial/datepicker_locale.php
index a225eca7b..faee25bb0 100644
--- a/app/Views/partial/datepicker_locale.php
+++ b/app/Views/partial/datepicker_locale.php
@@ -2,11 +2,11 @@
var pickerconfig = function(config) {
return $.extend({
- format: "settings['dateformat']) . ' ' . dateformat_bootstrap(config('OSPOS')->settings['timeformat']) ?>",
+ format: "",
settings['timeformat'];
+ $t = $config['timeformat'];
$m = $t[strlen($t)-1];
- if( strpos(config('OSPOS')->settings['timeformat'], 'a') !== false || strpos(config('OSPOS')->settings['timeformat'], 'A') !== false )
+ if( strpos($config['timeformat'], 'a') !== false || strpos($config['timeformat'], 'A') !== false )
{
?>
showMeridian: true,
@@ -28,7 +28,7 @@ var pickerconfig = function(config) {
}, );
};
-$.fn.datetimepicker.dates['settings['language'] ?>'] = {
+$.fn.datetimepicker.dates[''] = {
days: [
"",
"",
@@ -87,13 +87,13 @@ $.fn.datetimepicker.dates['settings['language'] ?>']
],
today: "",
settings['timeformat'], 'a') !== false )
+ if( strpos($config['timeformat'], 'a') !== false )
{
?>
meridiem: ["am", "pm"],
settings['timeformat'], 'A') !== false )
+ elseif( strpos($config['timeformat'], 'A') !== false )
{
?>
meridiem: ["AM", "PM"],
diff --git a/app/Views/partial/daterangepicker.php b/app/Views/partial/daterangepicker.php
index 7e5ca51a9..9a6f13837 100644
--- a/app/Views/partial/daterangepicker.php
+++ b/app/Views/partial/daterangepicker.php
@@ -1,5 +1,5 @@
lang->load("calendar"); $this->lang->load("date");
- if(empty(config('OSPOS')->settings['date_or_time_format']))
+ if(empty($config['date_or_time_format']))
{
?>
$('#daterangepicker').css("width","180");
@@ -9,64 +9,64 @@
$('#daterangepicker').daterangepicker({
"ranges": {
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d"),date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d"),date("Y")-1)) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y")-1)-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")-1,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d"),date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")-6,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")-29,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),1,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m")+1,1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),1,date("Y")-1)) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y")-1)-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m"),1,date("Y")-1)) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m")+1,1,date("Y")-1)-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,date("m")-1,1,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,1,1,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),1,date("Y")+1)-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,1,1,date("Y")-1)) ?>",
- "settings['dateformat'], mktime(0,0,0,1,1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,config('OSPOS')->settings['financial_year'],1,date("Y"))) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),1,date("Y")+1)-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,config('OSPOS')->settings['financial_year'],1,date("Y")-1)) ?>",
- "settings['dateformat'], mktime(0,0,0,config('OSPOS')->settings['financial_year'],1,date("Y"))-1) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'], mktime(0,0,0,1,1,2010)) ?>",
- "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>"
+ "",
+ ""
],
},
"locale": {
- "format": 'settings['dateformat']) ?>',
+ "format": '',
"separator": " - ",
"applyLabel": "",
"cancelLabel": "",
@@ -100,10 +100,10 @@
"firstDay":
},
"alwaysShowCalendars": true,
- "startDate": "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>",
- "endDate": "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>",
- "minDate": "settings['dateformat'], mktime(0,0,0,01,01,2010)) ?>",
- "maxDate": "settings['dateformat'], mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1) ?>"
+ "startDate": "",
+ "endDate": "",
+ "minDate": "",
+ "maxDate": ""
}, function(start, end, label) {
start_date = start.format('YYYY-MM-DD');
end_date = end.format('YYYY-MM-DD');
@@ -119,64 +119,64 @@
$('#daterangepicker').daterangepicker({
"ranges": {
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['dateformat'], mktime(0,0,0,date("m"),date("d"),date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),date("d"),date("Y")-1)) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y")-1)) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),date("d")-1,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d")-1,date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),date("d")-6,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),date("d")-29,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),1,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),1,date("Y")-1)) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y")-1)) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),1,date("Y")-1)) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m")+1,0,date("Y")-1)) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m")-1,1,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),0,date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,1,1,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m")+1,0,date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,1,1,date("Y")-1)) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,12,31,date("Y")-1)) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,config('OSPOS')->settings['financial_year'],1,date("Y"))) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m")+1,0,date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,config('OSPOS')->settings['financial_year'],1,date("Y")-1)) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,config('OSPOS')->settings['financial_year'],0,date("Y"))) ?>"
+ "",
+ ""
],
"": [
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,1,1,2010)) ?>",
- "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>"
+ "",
+ ""
],
},
"locale": {
- "format": 'settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat']) ?>',
+ "format": '',
"separator": " - ",
"applyLabel": "",
"cancelLabel": "",
@@ -212,10 +212,10 @@
"timePicker": true,
"timePickerSeconds": true,
"alwaysShowCalendars": true,
- "startDate": "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,date("m"),date("d"),date("Y"))) ?>",
- "endDate": "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>",
- "minDate": "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(0,0,0,01,01,2010)) ?>",
- "maxDate": "settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat'],mktime(23,59,59,date("m"),date("d"),date("Y"))) ?>"
+ "startDate": "",
+ "endDate": "",
+ "minDate": "",
+ "maxDate": ""
}, function(start, end, label) {
start_date = start.format('YYYY-MM-DD HH:mm:ss');
end_date = end.format('YYYY-MM-DD HH:mm:ss');
diff --git a/app/Views/partial/header_js.php b/app/Views/partial/header_js.php
index 248109ed8..687b239d6 100644
--- a/app/Views/partial/header_js.php
+++ b/app/Views/partial/header_js.php
@@ -8,12 +8,12 @@
clock_tick();
var update_clock = function update_clock() {
- document.getElementById('liveclock').innerHTML = moment().format("settings['dateformat'] . ' ' . config('OSPOS')->settings['timeformat']) ?>");
+ document.getElementById('liveclock').innerHTML = moment().format("");
}
$.notifyDefaults({ placement: {
- align: "settings['notify_horizontal_position'], 'js') ?>",
- from: "settings['notify_vertical_position'], 'js') ?>"
+ align: "",
+ from: ""
}});
var cookie_name = "prefix, 'js') . esc(config('Security')->cookieName, 'js') ?>";
diff --git a/app/Views/partial/print_receipt.php b/app/Views/partial/print_receipt.php
index 5a260062f..545acd66b 100644
--- a/app/Views/partial/print_receipt.php
+++ b/app/Views/partial/print_receipt.php
@@ -11,12 +11,12 @@ function printdoc()
if (window.jsPrintSetup)
{
// set top margins in millimeters
- jsPrintSetup.setOption('marginTop', 'settings['print_top_margin'] ?>');
- jsPrintSetup.setOption('marginLeft', 'settings['print_left_margin'] ?>');
- jsPrintSetup.setOption('marginBottom', 'settings['print_bottom_margin'] ?>');
- jsPrintSetup.setOption('marginRight', 'settings['print_right_margin'] ?>');
+ jsPrintSetup.setOption('marginTop', '');
+ jsPrintSetup.setOption('marginLeft', '');
+ jsPrintSetup.setOption('marginBottom', '');
+ jsPrintSetup.setOption('marginRight', '');
- settings['print_header'])
+
// set page header
@@ -25,7 +25,7 @@ function printdoc()
jsPrintSetup.setOption('headerStrRight', '');
settings['print_footer'])
+ if (!$config['print_footer'])
{
?>
// set empty page footer
@@ -47,7 +47,7 @@ function printdoc()
// clears user preferences always silent print value
// to enable using 'printSilent' option
jsPrintSetup.clearSilentPrint();
- settings['print_silently'])
+
// Suppress print dialog (for this context only)
@@ -80,7 +80,7 @@ if($print_after_sale)
// after a delay, return to sales view
setTimeout(function () {
window.location.href = "";
- }, settings['print_delay_autoreturn'] * 1000 ?>);
+ }, );
});
',
- country_codes: 'settings['country_codes'], 'js') ?>'
+ country_codes: ''
});
});
-
\ No newline at end of file
+
diff --git a/app/Views/people/manage.php b/app/Views/people/manage.php
index 9e98e7562..cc46c0f6f 100644
--- a/app/Views/people/manage.php
+++ b/app/Views/people/manage.php
@@ -14,7 +14,7 @@ $(document).ready(function()
table_support.init({
resource: '',
headers: ,
- pageSize: settings['lines_per_page'] ?>,
+ pageSize: ,
uniqueId: 'people.person_id',
enableActions: function()
{
diff --git a/app/Views/receivings/receipt.php b/app/Views/receivings/receipt.php
index e2bd12df9..2c172cc12 100644
--- a/app/Views/receivings/receipt.php
+++ b/app/Views/receivings/receipt.php
@@ -33,25 +33,25 @@
@@ -158,7 +158,7 @@
- settings['return_policy'])) ?>
+
diff --git a/app/Views/receivings/receiving.php b/app/Views/receivings/receiving.php
index 515c1df47..9b82311da 100644
--- a/app/Views/receivings/receiving.php
+++ b/app/Views/receivings/receiving.php
@@ -204,7 +204,7 @@ if (isset($success))
'data-toggle' => "toggle",
'data-size' => 'small',
'data-onstyle' => 'success',
- 'data-on' => '
' . esc(config('OSPOS')->settings['currency_symbol'], 'attr') .' ',
+ 'data-on' => '
' . esc($config['currency_symbol'], 'attr') .' ',
'data-off' => '
% ',
'data-line' => esc($line, 'attr'),
'checked' => $item['discount_type']
diff --git a/app/Views/reports/date_input.php b/app/Views/reports/date_input.php
index 353f6498d..82d3d8673 100644
--- a/app/Views/reports/date_input.php
+++ b/app/Views/reports/date_input.php
@@ -73,7 +73,7 @@ if(isset($error))
\ No newline at end of file
+
diff --git a/app/Views/reports/graphs/bar.php b/app/Views/reports/graphs/bar.php
index 174c257ee..6be2ce9a7 100644
--- a/app/Views/reports/graphs/bar.php
+++ b/app/Views/reports/graphs/bar.php
@@ -52,13 +52,13 @@
if( currency_side() )
{
?>
- return value + 'settings['currency_symbol'], 'js') ?>';
+ return value + '';
- return 'settings['currency_symbol'], 'js') ?>' + value;
+ return '' + value;
\ No newline at end of file
+
diff --git a/app/Views/reports/graphs/hbar.php b/app/Views/reports/graphs/hbar.php
index 8427eb7ce..14cd98b62 100644
--- a/app/Views/reports/graphs/hbar.php
+++ b/app/Views/reports/graphs/hbar.php
@@ -49,13 +49,13 @@
if(currency_side())
{
?>
- return value + 'settings['currency_symbol'], 'js') ?>';
+ return value + '';
- return 'settings['currency_symbol'], 'js') ?>' + value;
+ return '' + value;
\ No newline at end of file
+
diff --git a/app/Views/reports/graphs/line.php b/app/Views/reports/graphs/line.php
index cb80d7718..1cfb58d78 100644
--- a/app/Views/reports/graphs/line.php
+++ b/app/Views/reports/graphs/line.php
@@ -68,13 +68,13 @@
if( currency_side() )
{
?>
- return value + 'settings['currency_symbol'], 'js') ?>';
+ return value + '';
- return 'settings['currency_symbol'], 'js') ?>' + value;
+ return '' + value;
- return value + 'settings['currency_symbol'], 'js') ?>';
+ return value + '';
- return 'settings['currency_symbol'], 'js') ?>' + value;
+ return '' + value;
- return value + 'settings['currency_symbol'], 'js') ?>';
+ return value + '';
- return 'settings['currency_symbol'], 'js') ?>' + value;
+ return '' + value;
\ No newline at end of file
+
diff --git a/app/Views/reports/graphs/pie.php b/app/Views/reports/graphs/pie.php
index d6186251f..ffe2fdca6 100644
--- a/app/Views/reports/graphs/pie.php
+++ b/app/Views/reports/graphs/pie.php
@@ -41,13 +41,13 @@
if( currency_side() )
{
?>
- return value + 'settings['currency_symbol'], 'js') ?>';
+ return value + '';
- return 'settings['currency_symbol'], 'js') ?>' + value;
+ return '' + value;
\ No newline at end of file
+
diff --git a/app/Views/reports/specific_input.php b/app/Views/reports/specific_input.php
index 6b88629ce..3ec8f17d2 100644
--- a/app/Views/reports/specific_input.php
+++ b/app/Views/reports/specific_input.php
@@ -36,7 +36,7 @@ if(isset($error))
'form-control input-sm required',
'type' => 'number',
'min' => 0,
- 'value' => config('OSPOS')->settings['default_sales_discount']]) ?>
+ 'value' => $config['default_sales_discount']]) ?>
settings['lines_per_page'] ?>,
+ pageSize: ,
sortable: true,
showExport: true,
exportDataType: 'all',
diff --git a/app/Views/reports/tabular_details.php b/app/Views/reports/tabular_details.php
index 10342fac4..b8e7cb4e4 100644
--- a/app/Views/reports/tabular_details.php
+++ b/app/Views/reports/tabular_details.php
@@ -36,7 +36,7 @@
var details_data = ;
settings['customer_reward_enable'] == TRUE && !empty($details_data_rewards)) //TODO: === ?
+ if($config['customer_reward_enable'] == TRUE && !empty($details_data_rewards)) //TODO: === ?
{
?>
var details_data_rewards = ;
@@ -63,7 +63,7 @@
stickyHeader: true,
stickyHeaderOffsetLeft: $('#table').offset().left + 'px',
stickyHeaderOffsetRight: $('#table').offset().right + 'px',
- pageSize: settings['lines_per_page'] ?>,
+ pageSize: ,
pagination: true,
sortable: true,
showColumns: true,
@@ -88,7 +88,7 @@
});
settings['customer_reward_enable'] == TRUE && !empty($details_data_rewards))
+ if($config['customer_reward_enable'] == TRUE && !empty($details_data_rewards))
{
?>
$detail.append('
').find("table").bootstrapTable({
diff --git a/app/Views/sales/form.php b/app/Views/sales/form.php
index 44daec4fd..b645b875a 100644
--- a/app/Views/sales/form.php
+++ b/app/Views/sales/form.php
@@ -34,7 +34,7 @@
settings['invoice_enable'] == TRUE) //TODO: Replace this with just `if(config('OSPOS')->settings['invoice_enable']))`
+ if($config['invoice_enable'] == TRUE) //TODO: Replace this with just `if($config['invoice_enable']))`
{
?>