mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
First commit
This commit is contained in:
@@ -58,7 +58,7 @@ $autoload['packages'] = array();
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array('database', 'form_validation', 'session', 'user_agent', 'pagination');
|
||||
$autoload['libraries'] = array('database', 'form_validation', 'session', 'user_agent', 'pagination', 'sms');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
||||
@@ -97,6 +97,21 @@ class Config extends Secure_area
|
||||
echo json_encode(array('success'=>$success, 'message'=>$this->lang->line('config_saved_' . ($success ? '' : 'un') . 'successfully')));
|
||||
}
|
||||
|
||||
function save_message()
|
||||
{
|
||||
$batch_save_data = array(
|
||||
'msg_msg'=>$this->input->post('msg_msg'),
|
||||
'msg_uid'=>$this->input->post('msg_uid'),
|
||||
'msg_pwd'=>$this->input->post('msg_pwd')
|
||||
|
||||
);
|
||||
|
||||
$result = $this->Appconfig->batch_save($batch_save_data);
|
||||
$success = $result ? true : false;
|
||||
|
||||
echo json_encode(array('success'=>$success, 'message'=>$this->lang->line('config_saved_' . ($success ? '' : 'un') . 'successfully')));
|
||||
}
|
||||
|
||||
function stock_locations()
|
||||
{
|
||||
$stock_locations = $this->Stock_location->get_all()->result_array();
|
||||
|
||||
47
application/controllers/Messages.php
Normal file
47
application/controllers/Messages.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once ("Secure_area.php");
|
||||
class Messages extends Secure_area
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('messages');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$data['controller_name'] = $this->get_controller_name();
|
||||
$this->load->view('messages/sms');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function view($person_id=-1)
|
||||
{
|
||||
$data['person_info']=$this->Person->get_info($person_id);
|
||||
$this->load->view('messages/sms-sender',$data);
|
||||
}
|
||||
|
||||
|
||||
function send()
|
||||
{
|
||||
$uid = $this->config->item('msg_uid');
|
||||
$pwd = $this->config->item('msg_pwd');
|
||||
$phone = $this->input->post('phone');
|
||||
$msg = $this->input->post('msg');
|
||||
|
||||
$response = $this->sms->sendsms($uid,$pwd,$phone,$msg);
|
||||
$this->load->view('messages/sms');
|
||||
|
||||
if('send')
|
||||
{
|
||||
echo "Message Submitted Successfully";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Message NOT Submitted Successfully";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -6,26 +6,17 @@ function get_sales_manage_table($sales, $controller)
|
||||
$table='<table class="tablesorter table table-striped table-hover" id="sortable_table">';
|
||||
|
||||
$headers = array(' ',
|
||||
$CI->lang->line('sales_receipt_number'),
|
||||
$CI->lang->line('sales_sale_time'),
|
||||
$CI->lang->line('customers_customer'),
|
||||
$CI->lang->line('sales_amount_tendered'),
|
||||
$CI->lang->line('sales_amount_due'),
|
||||
$CI->lang->line('sales_change_due'),
|
||||
$CI->lang->line('sales_payment'));
|
||||
|
||||
if($CI->config->item('invoice_enable') == TRUE)
|
||||
{
|
||||
$headers[] = $CI->lang->line('sales_invoice_number');
|
||||
$headers[] = ' ';
|
||||
$headers[] = ' ';
|
||||
$headers[] = ' ';
|
||||
}
|
||||
else
|
||||
{
|
||||
$headers[] = ' ';
|
||||
$headers[] = ' ';
|
||||
}
|
||||
$CI->lang->line('sales_receipt_number'),
|
||||
$CI->lang->line('sales_sale_time'),
|
||||
$CI->lang->line('customers_customer'),
|
||||
$CI->lang->line('sales_amount_tendered'),
|
||||
$CI->lang->line('sales_amount_due'),
|
||||
$CI->lang->line('sales_change_due'),
|
||||
$CI->lang->line('sales_payment'),
|
||||
$CI->lang->line('sales_invoice_number'),
|
||||
' ',
|
||||
' ',
|
||||
' ');
|
||||
|
||||
$table.='<thead><tr>';
|
||||
foreach($headers as $header)
|
||||
@@ -84,22 +75,11 @@ function get_sales_manage_sale_data_row($sale, $controller)
|
||||
$table_data_row.='<td width="8%">'.to_currency( $sale['amount_tendered'] ).'</td>';
|
||||
$table_data_row.='<td width="8%">'.to_currency( $sale['amount_due'] ).'</td>';
|
||||
$table_data_row.='<td width="8%">'.to_currency( $sale['change_due'] ).'</td>';
|
||||
if($CI->config->item('invoice_enable') == TRUE)
|
||||
{
|
||||
$table_data_row.='<td width="12%">'.$sale['payment_type'].'</td>';
|
||||
$table_data_row.='<td width="8%">'.$sale['invoice_number'].'</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
// this size includes the 8% of invoice number and 5% of the invoice gliphicon, pluf of course the 12% for the field itself
|
||||
$table_data_row.='<td width="25%">'.$sale['payment_type'].'</td>';
|
||||
}
|
||||
$table_data_row.='<td width="12%">'.$sale['payment_type'].'</td>';
|
||||
$table_data_row.='<td width="8%">'.$sale['invoice_number'].'</td>';
|
||||
$table_data_row.='<td width="5%" class="print_hide">'.anchor($controller_name."/edit/" . $sale['sale_id'], '<span class="glyphicon glyphicon-edit"></span>', array('class'=>'modal-dlg modal-btn-delete modal-btn-submit print_hide', 'title'=>$CI->lang->line($controller_name.'_update'))).'</td>';
|
||||
$table_data_row.='<td width="5%" class="print_hide">'.anchor($controller_name."/receipt/" . $sale['sale_id'], '<span class="glyphicon glyphicon-print"></span>', array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_receipt'))).'</td>';
|
||||
if($CI->config->item('invoice_enable') == TRUE)
|
||||
{
|
||||
$table_data_row.='<td width="5%" class="print_hide">'.anchor($controller_name."/invoice/" . $sale['sale_id'], '<span class="glyphicon glyphicon-list-alt"></span>', array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_invoice'))).'</td>';
|
||||
}
|
||||
$table_data_row.='<td width="5%" class="print_hide">'.anchor($controller_name."/invoice/" . $sale['sale_id'], '<span class="glyphicon glyphicon-list-alt"></span>', array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_invoice'))).'</td>';
|
||||
$table_data_row.='</tr>';
|
||||
|
||||
return $table_data_row;
|
||||
@@ -145,7 +125,8 @@ function get_people_manage_table($people,$controller)
|
||||
$CI->lang->line('common_first_name'),
|
||||
$CI->lang->line('common_email'),
|
||||
$CI->lang->line('common_phone_number'),
|
||||
' ');
|
||||
$CI->lang->line('common_send_msg'),
|
||||
$CI->lang->line('common_update'),);
|
||||
|
||||
$table.='<thead><tr>';
|
||||
foreach($headers as $header)
|
||||
@@ -191,6 +172,7 @@ function get_person_data_row($person,$controller)
|
||||
$table_data_row.='<td width="20%">'.character_limiter($person->first_name,13).'</td>';
|
||||
$table_data_row.='<td width="30%">'.mailto($person->email,character_limiter($person->email,22)).'</td>';
|
||||
$table_data_row.='<td width="20%">'.character_limiter($person->phone_number,13).'</td>';
|
||||
$table_data_row.='<td width="5%">'.anchor('Messages'."/view/$person->person_id", '<span class="glyphicon glyphicon-envelope"></span>', array('class'=>"modal-dlg modal-btn-submit", 'title'=>$CI->lang->line('messages_send_msg'))).'</td>';
|
||||
$table_data_row.='<td width="5%">'.anchor($controller_name."/view/$person->person_id", '<span class="glyphicon glyphicon-edit"></span>', array('class'=>"modal-dlg modal-btn-submit", 'title'=>$CI->lang->line($controller_name.'_update'))).'</td>';
|
||||
$table_data_row.='</tr>';
|
||||
|
||||
@@ -212,6 +194,9 @@ function get_detailed_data_row($row, $controller)
|
||||
return $table_data_row;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Gets the html table to manage suppliers.
|
||||
*/
|
||||
@@ -227,8 +212,9 @@ function get_supplier_manage_table($suppliers,$controller)
|
||||
$CI->lang->line('common_first_name'),
|
||||
$CI->lang->line('common_email'),
|
||||
$CI->lang->line('common_phone_number'),
|
||||
$CI->lang->line('common_send_msg'),
|
||||
$CI->lang->line('suppliers_supplier_id'),
|
||||
' ');
|
||||
$CI->lang->line('common_update'),);
|
||||
|
||||
$table.='<thead><tr>';
|
||||
foreach($headers as $header)
|
||||
@@ -276,6 +262,7 @@ function get_supplier_data_row($supplier,$controller)
|
||||
$table_data_row.='<td width="15%">'.character_limiter($supplier->first_name,13).'</td>';
|
||||
$table_data_row.='<td width="20%">'.mailto($supplier->email,character_limiter($supplier->email,22)).'</td>';
|
||||
$table_data_row.='<td width="10%">'.character_limiter($supplier->phone_number,13).'</td>';
|
||||
$table_data_row.='<td width="5%">'.anchor('Messages'."/view/$supplier->person_id", '<span class="glyphicon glyphicon-envelope"></span>', array('class'=>'modal-dlg modal-btn-submit' , 'title'=>$CI->lang->line('messages_send_msg'))).'</td>';
|
||||
$table_data_row.='<td width="5%">'.character_limiter($supplier->person_id,5).'</td>';
|
||||
$table_data_row.='<td width="3%">'.anchor($controller_name."/view/$supplier->person_id", '<span class="glyphicon glyphicon-edit"></span>', array('class'=>"modal-dlg modal-btn-submit",'title'=>$CI->lang->line($controller_name.'_update'))).'</td>';
|
||||
$table_data_row.='</tr>';
|
||||
@@ -283,6 +270,7 @@ function get_supplier_data_row($supplier,$controller)
|
||||
return $table_data_row;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Gets the html table to manage items.
|
||||
*/
|
||||
|
||||
@@ -60,3 +60,5 @@ $lang["common_export_excel"] = "Excel Export";
|
||||
$lang["common_export_excel_yes"] = "Yes";
|
||||
$lang["common_export_excel_no"] = "No";
|
||||
$lang["common_required"] = "Required";
|
||||
$lang["common_send_msg"] = "SMS";
|
||||
$lang["common_update"] = "Update";
|
||||
|
||||
@@ -93,6 +93,11 @@ $lang["config_location"] = "Stock";
|
||||
$lang["config_location_configuration"] = "Stock Locations";
|
||||
$lang["config_location_info"] = "Location Configuration Information";
|
||||
$lang["config_logout"] = "Don't you want to make a backup before logging out? Click [OK] to backup, [Cancel] to logout";
|
||||
$lang["config_message"] = "Message";
|
||||
$lang["config_message_configuration"] = "Message Configuration";
|
||||
$lang["config_msg_msg"] = "Saved Text Message:";
|
||||
$lang["config_msg_uid"] = "SMS-API UserName:";
|
||||
$lang["config_msg_pwd"] = "SMS-API Password:";
|
||||
$lang["config_number_format"] = "Number Format";
|
||||
$lang["config_phone"] = "Company Phone";
|
||||
$lang["config_phone_required"] = "Company phone is a required field";
|
||||
|
||||
3
application/language/en/messages_lang.php
Normal file
3
application/language/en/messages_lang.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$lang["messages_send_msg"] = "SEND SMS";
|
||||
@@ -21,3 +21,5 @@ $lang["module_sales"] = "Sales";
|
||||
$lang["module_sales_desc"] = "Process sales and returns";
|
||||
$lang["module_suppliers"] = "Suppliers";
|
||||
$lang["module_suppliers_desc"] = "Add, Update, Delete, and Search suppliers";
|
||||
$lang["module_messages"] = "Messages";
|
||||
$lang["module_messages_desc"] = "Send Messages to Customers, Suppliers, Employees and Others";
|
||||
|
||||
12
application/libraries/Sms.php
Normal file
12
application/libraries/Sms.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
class Sms
|
||||
{
|
||||
|
||||
function sendsms($uid, $pwd, $phone, $msg)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -22,6 +22,9 @@
|
||||
<li role="presentation">
|
||||
<a data-toggle="tab" href="#invoice" title="<?php echo $this->lang->line('config_invoice_configuration'); ?>"><?php echo $this->lang->line('config_invoice'); ?></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a data-toggle="tab" href="#message" title="<?php echo $this->lang->line('config_message_configuration'); ?>"><?php echo $this->lang->line('config_message'); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
@@ -46,6 +49,9 @@
|
||||
<div class="tab-pane" id="invoice">
|
||||
<?php $this->load->view("configs/invoice_config"); ?>
|
||||
</div>
|
||||
<div class="tab-pane" id="message">
|
||||
<?php $this->load->view("configs/message_config"); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
|
||||
92
application/views/configs/message_config.php
Executable file
92
application/views/configs/message_config.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?php echo form_open('config/save_message/', array('id'=>'message_config_form', 'enctype'=>'multipart/form-data', 'class'=>'form-horizontal')); ?>
|
||||
<div id="config_wrapper" style="background-color :#ffffff;">
|
||||
<fieldset id="config_info">
|
||||
|
||||
<h4 style="text-align:center;">Message settings</h4>
|
||||
|
||||
</br>
|
||||
</br>
|
||||
|
||||
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('config_msg_msg'), 'msg_msg', array('class'=>'control-label col-xs-2')); ?>
|
||||
<div class='col-xs-4'>
|
||||
<?php echo form_textarea(array(
|
||||
'name'=>'msg_msg',
|
||||
'id'=>'msg_msg',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=>$this->config->item('msg_msg')));?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('config_msg_uid'), 'msg_uid', array('class'=>'control-label col-xs-2')); ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'msg_uid',
|
||||
'id'=>'msg_uid',
|
||||
'class'=>'form-control input-sm',
|
||||
'type'=>'password',
|
||||
'value'=>$this->config->item('msg_uid')));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-sm" >
|
||||
<?php echo form_label($this->lang->line('config_msg_pwd'), 'msg_pwd', array('class'=>'control-label col-xs-2')); ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'msg_pwd',
|
||||
'id'=>'msg_pwd',
|
||||
'class'=>'form-control input-sm',
|
||||
'type'=>'password',
|
||||
'value'=>$this->config->item('msg_pwd')));?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<?php echo form_submit(array(
|
||||
'name'=>'submit_form',
|
||||
'id'=>'submit_form',
|
||||
'value'=>$this->lang->line('common_submit'),
|
||||
'class'=>'btn btn-primary btn-sm pull-right'));?>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<?php echo form_close(); ?>
|
||||
|
||||
<script type='text/javascript'>
|
||||
//validation and submit handling
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
|
||||
$('#message_config_form').validate({
|
||||
submitHandler: function(form) {
|
||||
$(form).ajaxSubmit({
|
||||
success: function(response) {
|
||||
if(response.success)
|
||||
{
|
||||
set_feedback(response.message, 'alert alert-dismissible alert-success', false);
|
||||
}
|
||||
else
|
||||
{
|
||||
set_feedback(response.message, 'alert alert-dismissible alert-danger', true);
|
||||
}
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
11
application/views/messages/index.html
Normal file
11
application/views/messages/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
31
application/views/messages/sms-sender.php
Executable file
31
application/views/messages/sms-sender.php
Executable file
@@ -0,0 +1,31 @@
|
||||
|
||||
<?php echo form_open('messages/send', array('id'=>'send_sms_form', 'enctype'=>'multipart/form-data', 'method'=>'post', 'class'=>'form-horizontal')); ?>
|
||||
<fieldset><fieldset>
|
||||
<legend></legend>
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">First Name:</label>
|
||||
<div class="col-lg-10">
|
||||
<?php echo form_input(array( 'class'=>'form-control', 'type'=>'text','name'=>'first_name', 'value'=>$person_info->first_name));?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">Last Name:</label>
|
||||
<div class="col-lg-10">
|
||||
<?php echo form_input(array('class'=>'form-control', 'type'=>'text','name'=>'last_name', 'value'=>$person_info->last_name));?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputPhone" class="col-lg-2 control-label">Mobile:</label>
|
||||
<div class="col-lg-10">
|
||||
<?php echo form_input(array('class'=>'form-control', 'type'=>'text','name'=>'phone', 'value'=>$person_info->phone_number));?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="textArea" class="col-lg-2 control-label">Message:</label>
|
||||
<div class="col-lg-10">
|
||||
<textarea class="form-control" rows="3" name="msg"><?php echo $this->config->item('msg_msg'); ?></textarea>
|
||||
<span class="help-block"style="text-align: center;">(Maximum 140 characters)</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
30
application/views/messages/sms.php
Executable file
30
application/views/messages/sms.php
Executable file
@@ -0,0 +1,30 @@
|
||||
|
||||
<?php $this->load->view("partial/header"); ?>
|
||||
|
||||
<div class="jumbotron"style="max-width: 57%; margin:0 auto">
|
||||
<?php echo form_open('messages/send', array('id'=>'send_sms_form', 'enctype'=>'multipart/form-data', 'method'=>'post', 'class'=>'form-horizontal')); ?>
|
||||
<fieldset>
|
||||
<legend style="text-align: center;">SEND SMS </legend>
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<label for="inputPhone" class="col-lg-2 control-label">Mobile:</label>
|
||||
<div class="col-lg-10">
|
||||
<input class="form-control", type="text", name="phone", placeholder="Put Mobile No Here !"></input>
|
||||
<span class="help-block" style="text-align:center;">( In case of multiple recipients, enter mobile numbers separated with comma )</span>
|
||||
</div>
|
||||
</div></br>
|
||||
<div class="form-group">
|
||||
<label for="textArea" class="col-lg-2 control-label">Message:</label>
|
||||
<div class="col-lg-10">
|
||||
<textarea class="form-control" rows="3" id="textArea" name="msg" placeholder="Put Your Message Here !"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="col-lg-10 col-lg-offset-2">
|
||||
<button type="submit" name="submit" class="btn btn-primary btn-md pull-right" value="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
@@ -64,7 +64,10 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('decimal_point', '.'),
|
||||
('currency_decimals', '2'),
|
||||
('tax_decimals', '2'),
|
||||
('quantity_decimals', '0');
|
||||
('quantity_decimals', '0'),
|
||||
('msg_msg',''),
|
||||
('msg_uid', 'userName'),
|
||||
('msg_pwd', 'password');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@@ -289,12 +292,13 @@ CREATE TABLE `ospos_modules` (
|
||||
--
|
||||
|
||||
INSERT INTO `ospos_modules` (`name_lang_key`, `desc_lang_key`, `sort`, `module_id`) VALUES
|
||||
('module_config', 'module_config_desc', 100, 'config'),
|
||||
('module_config', 'module_config_desc', 110, 'config'),
|
||||
('module_customers', 'module_customers_desc', 10, 'customers'),
|
||||
('module_employees', 'module_employees_desc', 80, 'employees'),
|
||||
('module_giftcards', 'module_giftcards_desc', 90, 'giftcards'),
|
||||
('module_items', 'module_items_desc', 20, 'items'),
|
||||
('module_item_kits', 'module_item_kits_desc', 30, 'item_kits'),
|
||||
('module_messages', 'module_messages_desc', 100, 'messages'),
|
||||
('module_receivings', 'module_receivings_desc', 60, 'receivings'),
|
||||
('module_reports', 'module_reports_desc', 50, 'reports'),
|
||||
('module_sales', 'module_sales_desc', 70, 'sales'),
|
||||
@@ -365,6 +369,7 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`) VALUES
|
||||
('giftcards', 'giftcards'),
|
||||
('items', 'items'),
|
||||
('item_kits', 'item_kits'),
|
||||
('messages', 'messages'),
|
||||
('receivings', 'receivings'),
|
||||
('reports', 'reports'),
|
||||
('sales', 'sales'),
|
||||
@@ -410,6 +415,7 @@ INSERT INTO `ospos_grants` (`permission_id`, `person_id`) VALUES
|
||||
('giftcards', 1),
|
||||
('items', 1),
|
||||
('item_kits', 1),
|
||||
('messages', 1),
|
||||
('receivings', 1),
|
||||
('reports', 1),
|
||||
('sales', 1),
|
||||
|
||||
@@ -64,7 +64,11 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('decimal_point', '.'),
|
||||
('currency_decimals', '2'),
|
||||
('tax_decimals', '2'),
|
||||
('quantity_decimals', '0');
|
||||
('quantity_decimals', '0'),
|
||||
('msg_msg',''),
|
||||
('msg_uid', 'userName'),
|
||||
('msg_pwd', 'password');
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@@ -289,12 +293,13 @@ CREATE TABLE `ospos_modules` (
|
||||
--
|
||||
|
||||
INSERT INTO `ospos_modules` (`name_lang_key`, `desc_lang_key`, `sort`, `module_id`) VALUES
|
||||
('module_config', 'module_config_desc', 100, 'config'),
|
||||
('module_config', 'module_config_desc', 110, 'config'),
|
||||
('module_customers', 'module_customers_desc', 10, 'customers'),
|
||||
('module_employees', 'module_employees_desc', 80, 'employees'),
|
||||
('module_giftcards', 'module_giftcards_desc', 90, 'giftcards'),
|
||||
('module_items', 'module_items_desc', 20, 'items'),
|
||||
('module_item_kits', 'module_item_kits_desc', 30, 'item_kits'),
|
||||
('module_messages', 'module_messages_desc', 100, 'messages'),
|
||||
('module_receivings', 'module_receivings_desc', 60, 'receivings'),
|
||||
('module_reports', 'module_reports_desc', 50, 'reports'),
|
||||
('module_sales', 'module_sales_desc', 70, 'sales'),
|
||||
@@ -365,6 +370,7 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`) VALUES
|
||||
('giftcards', 'giftcards'),
|
||||
('items', 'items'),
|
||||
('item_kits', 'item_kits'),
|
||||
('messages', 'messages'),
|
||||
('receivings', 'receivings'),
|
||||
('reports', 'reports'),
|
||||
('sales', 'sales'),
|
||||
@@ -410,6 +416,7 @@ INSERT INTO `ospos_grants` (`permission_id`, `person_id`) VALUES
|
||||
('giftcards', 1),
|
||||
('items', 1),
|
||||
('item_kits', 1),
|
||||
('messages', 1),
|
||||
('receivings', 1),
|
||||
('reports', 1),
|
||||
('sales', 1),
|
||||
|
||||
BIN
images/menubar/messages.png
Normal file
BIN
images/menubar/messages.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user