From 26d5605de577b60124933b0063b16bc797292902 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 15 Apr 2017 10:21:52 +0100 Subject: [PATCH] Regen db, js, css files --- application/views/partial/header.php | 4 +- database/3.0.2_to_3.1.0.sql | 2 +- database/database.sql | 123 +++++++++++++-------------- database/migrate_phppos_dist.sql | 107 +++++++++++++++++++++-- database/tables.sql | 4 +- public/dist/opensourcepos.min.css | 2 +- public/dist/opensourcepos.min.js | 2 +- 7 files changed, 168 insertions(+), 76 deletions(-) diff --git a/application/views/partial/header.php b/application/views/partial/header.php index 73f38ecb6..51d1ba07a 100644 --- a/application/views/partial/header.php +++ b/application/views/partial/header.php @@ -70,11 +70,11 @@ - + - + diff --git a/database/3.0.2_to_3.1.0.sql b/database/3.0.2_to_3.1.0.sql index 84a80ed68..0da482c47 100644 --- a/database/3.0.2_to_3.1.0.sql +++ b/database/3.0.2_to_3.1.0.sql @@ -185,7 +185,7 @@ ALTER TABLE `ospos_sales_items_taxes` ADD COLUMN `item_tax_amount` decimal(15,4) NOT NULL DEFAULT 0; ALTER TABLE `ospos_customers` - ADD COLUMN `sales_tax_code` varchar(32) NOT NULL; + ADD COLUMN `sales_tax_code` varchar(32) NOT NULL DEFAULT '1'; INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('customer_sales_tax_support', '0'), diff --git a/database/database.sql b/database/database.sql index 2ce4d92c0..ce03ec50b 100644 --- a/database/database.sql +++ b/database/database.sql @@ -18,6 +18,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('company', 'Open Source Point of Sale'), ('default_register_mode', 'sale'), ('default_tax_rate', '8'), +('default_tax_category', 'Standard'), ('email', 'changeme@example.com'), ('fax', ''), ('phone', '555-555-5555'), @@ -86,15 +87,17 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('receipt_template', 'receipt_default'), ('theme', 'flatly'), ('customer_sales_tax_support', '0'), -('default_origin_tax_code', ''), ('statistics', '1'), ('language', 'english'), ('language_code', 'en'), ('date_or_time_format',''), ('customer_reward_enable',''), +('customer_sales_tax_support', '0'), +('default_origin_tax_code', ''), ('cash_decimals', '2'); + -- -------------------------------------------------------- -- @@ -343,7 +346,6 @@ INSERT INTO `ospos_modules` (`name_lang_key`, `desc_lang_key`, `sort`, `module_i ('module_suppliers', 'module_suppliers_desc', 40, 'suppliers'), ('module_taxes', 'module_taxes_desc', 105, 'taxes'); - -- -------------------------------------------------------- -- @@ -422,7 +424,6 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`, `location_id`) VA ('sales_stock', 'sales', 1), ('receivings_stock', 'receivings', 1); - -- -------------------------------------------------------- -- @@ -531,8 +532,8 @@ CREATE TABLE `ospos_sales` ( `invoice_number` varchar(32) DEFAULT NULL, `quote_number` varchar(32) DEFAULT NULL, `sale_id` int(10) NOT NULL AUTO_INCREMENT, - `dinner_table_id` int(11) NULL, `sale_status` tinyint(2) NOT NULL DEFAULT 0, + `dinner_table_id` int(11) NULL, PRIMARY KEY (`sale_id`), KEY `customer_id` (`customer_id`), KEY `employee_id` (`employee_id`), @@ -586,7 +587,7 @@ CREATE TABLE `ospos_sales_items_taxes` ( `item_id` int(10) NOT NULL, `line` int(3) NOT NULL DEFAULT '0', `name` varchar(255) NOT NULL, - `percent` decimal(15,4) NOT NULL, + `percent` decimal(15,4) NOT NULL DEFAULT 0.0000, `tax_type` tinyint(2) NOT NULL DEFAULT 0, `rounding_code` tinyint(2) NOT NULL DEFAULT 0, `cascade_tax` tinyint(2) NOT NULL DEFAULT 0, @@ -641,66 +642,11 @@ CREATE TABLE `ospos_sales_taxes` ( KEY `print_sequence` (`sale_id`,`print_sequence`,`tax_type`,`tax_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + -- -- Dumping data for table `ospos_sales_taxes` -- --- -------------------------------------------------------- - --- --- Table structure for table `ospos_tax_categories` --- - -CREATE TABLE IF NOT EXISTS `ospos_tax_categories` ( - `tax_category_id` int(10) NOT NULL, - `tax_category` varchar(32) NOT NULL, - `tax_group_sequence` tinyint(2) NOT NULL, - PRIMARY KEY (`tax_category_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - --- --- Dumping data for table `ospos_tax_categories` --- - -INSERT INTO `ospos_tax_categories` ( `tax_category_id`,`tax_category`, `tax_group_sequence` ) VALUES - (0, 'Standard', 10), - (1, 'Service', 12), - (2, 'Alcohol', 11); - - --- -------------------------------------------------------- - --- --- Table structure for table `ospos_tax_codes` --- - -CREATE TABLE IF NOT EXISTS `ospos_tax_codes` ( - `tax_code` varchar(32) NOT NULL, - `tax_code_name` varchar(255) NOT NULL DEFAULT '', - `tax_code_type` tinyint(2) NOT NULL DEFAULT 0, - `city` varchar(255) NOT NULL DEFAULT '', - `state` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`tax_code`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - --- --- Dumping data for table `ospos_tax_codes` --- - - --- -------------------------------------------------------- - --- --- Table structure for table `ospos_tax_code_rates` --- - -CREATE TABLE IF NOT EXISTS `ospos_tax_code_rates` ( - `rate_tax_code` varchar(32) NOT NULL, - `rate_tax_category_id` int(10) NOT NULL, - `tax_rate` decimal(15,4) NOT NULL DEFAULT 0.0000, - `rounding_code` tinyint(2) NOT NULL DEFAULT 0, - PRIMARY KEY (`rate_tax_code`,`rate_tax_category_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -834,7 +780,6 @@ CREATE TABLE `ospos_stock_locations` ( INSERT INTO `ospos_stock_locations` ( `deleted`, `location_name` ) VALUES ('0', 'stock'); -- -------------------------------------------------------- - -- -- Table structure for table `ospos_suppliers` -- @@ -849,12 +794,47 @@ CREATE TABLE `ospos_suppliers` ( KEY `person_id` (`person_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +-- -------------------------------------------------------- -- --- Dumping data for table `ospos_suppliers` +-- Table structure for table `ospos_tax_categories` -- +CREATE TABLE IF NOT EXISTS `ospos_tax_categories` ( + `tax_category_id` int(10) NOT NULL, + `tax_category` varchar(32) NOT NULL, + `tax_group_sequence` tinyint(2) NOT NULL, + PRIMARY KEY (`tax_category_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `ospos_stock_locations` +-- + +INSERT INTO `ospos_tax_categories` ( `tax_category_id`,`tax_category`, `tax_group_sequence` ) VALUES + (0, 'Standard', 10), + (1, 'Service', 12), + (2, 'Alcohol', 11); + -- -------------------------------------------------------- +-- +-- Table structure for table `ospos_tax_codes` +-- +CREATE TABLE IF NOT EXISTS `ospos_tax_codes` ( + `tax_code` varchar(32) NOT NULL, + `tax_code_name` varchar(255) NOT NULL DEFAULT '', + `tax_code_type` tinyint(2) NOT NULL DEFAULT 0, + `city` varchar(255) NOT NULL DEFAULT '', + `state` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`tax_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `ospos_tax_codes` +-- + + +-- -------------------------------------------------------- -- -- Table structure for table `ospos_dinner_tables` -- @@ -919,6 +899,23 @@ CREATE TABLE IF NOT EXISTS `ospos_sales_reward_points` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; +-- -------------------------------------------------------- +-- +-- Table structure for table `ospos_tax_code_rates` +-- + +CREATE TABLE IF NOT EXISTS `ospos_tax_code_rates` ( + `rate_tax_code` varchar(32) NOT NULL, + `rate_tax_category_id` int(10) NOT NULL, + `tax_rate` decimal(15,4) NOT NULL DEFAULT 0.0000, + `rounding_code` tinyint(2) NOT NULL DEFAULT 0, + PRIMARY KEY (`rate_tax_code`,`rate_tax_category_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `ospos_tax_code_rates` +-- + -- -- Constraints for dumped tables -- diff --git a/database/migrate_phppos_dist.sql b/database/migrate_phppos_dist.sql index 2538c00fd..00ab64bf5 100644 --- a/database/migrate_phppos_dist.sql +++ b/database/migrate_phppos_dist.sql @@ -18,6 +18,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('company', 'Open Source Point of Sale'), ('default_register_mode', 'sale'), ('default_tax_rate', '8'), +('default_tax_category', 'Standard'), ('email', 'changeme@example.com'), ('fax', ''), ('phone', '555-555-5555'), @@ -85,11 +86,16 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('smtp_crypto', 'ssl'), ('receipt_template', 'receipt_default'), ('theme', 'flatly'), +('customer_sales_tax_support', '0'), ('statistics', '1'), ('language', 'english'), ('language_code', 'en'), ('date_or_time_format',''), -('customer_reward_enable',''); +('customer_reward_enable',''), +('customer_sales_tax_support', '0'), +('default_origin_tax_code', ''), +('cash_decimals', '2'); + -- -------------------------------------------------------- @@ -103,6 +109,7 @@ CREATE TABLE `ospos_customers` ( `company_name` varchar(255) DEFAULT NULL, `account_number` varchar(255) DEFAULT NULL, `taxable` int(1) NOT NULL DEFAULT '1', + `sales_tax_code` varchar(32) NOT NULL DEFAULT '1', `discount_percent` decimal(15,2) NOT NULL DEFAULT '0', `package_id` int(11) DEFAULT NULL, `points` int(11) DEFAULT NULL, @@ -209,6 +216,7 @@ CREATE TABLE `ospos_items` ( `is_serialized` tinyint(1) NOT NULL, `stock_type` TINYINT(2) NOT NULL DEFAULT 0, `item_type` TINYINT(2) NOT NULL DEFAULT 0, + `tax_category_id` int(10) NOT NULL DEFAULT 0, `deleted` int(1) NOT NULL DEFAULT '0', `custom1` VARCHAR(25) NOT NULL, `custom2` VARCHAR(25) NOT NULL, @@ -335,7 +343,8 @@ INSERT INTO `ospos_modules` (`name_lang_key`, `desc_lang_key`, `sort`, `module_i ('module_receivings', 'module_receivings_desc', 60, 'receivings'), ('module_reports', 'module_reports_desc', 50, 'reports'), ('module_sales', 'module_sales_desc', 70, 'sales'), -('module_suppliers', 'module_suppliers_desc', 40, 'suppliers'); +('module_suppliers', 'module_suppliers_desc', 40, 'suppliers'), +('module_taxes', 'module_taxes_desc', 105, 'taxes'); -- -------------------------------------------------------- @@ -407,7 +416,8 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`) VALUES ('reports', 'reports'), ('sales', 'sales'), ('config', 'config'), -('suppliers', 'suppliers'); +('suppliers', 'suppliers'), +('taxes', 'taxes'); INSERT INTO `ospos_permissions` (`permission_id`, `module_id`, `location_id`) VALUES ('items_stock', 'items', 1), @@ -520,7 +530,9 @@ CREATE TABLE `ospos_sales` ( `employee_id` int(10) NOT NULL DEFAULT '0', `comment` text NOT NULL, `invoice_number` varchar(32) DEFAULT NULL, + `quote_number` varchar(32) DEFAULT NULL, `sale_id` int(10) NOT NULL AUTO_INCREMENT, + `sale_status` tinyint(2) NOT NULL DEFAULT 0, `dinner_table_id` int(11) NULL, PRIMARY KEY (`sale_id`), KEY `customer_id` (`customer_id`), @@ -575,7 +587,12 @@ CREATE TABLE `ospos_sales_items_taxes` ( `item_id` int(10) NOT NULL, `line` int(3) NOT NULL DEFAULT '0', `name` varchar(255) NOT NULL, - `percent` decimal(15,3) NOT NULL, + `percent` decimal(15,4) NOT NULL DEFAULT 0.0000, + `tax_type` tinyint(2) NOT NULL DEFAULT 0, + `rounding_code` tinyint(2) NOT NULL DEFAULT 0, + `cascade_tax` tinyint(2) NOT NULL DEFAULT 0, + `cascade_sequence` tinyint(2) NOT NULL DEFAULT 0, + `item_tax_amount` decimal(15,4) NOT NULL DEFAULT 0, PRIMARY KEY (`sale_id`,`item_id`,`line`,`name`,`percent`), KEY `sale_id` (`sale_id`), KEY `item_id` (`item_id`) @@ -604,6 +621,33 @@ CREATE TABLE `ospos_sales_payments` ( -- Dumping data for table `ospos_sales_payments` -- +-- -------------------------------------------------------- + +-- +-- Table structure for table `ospos_sales_taxes` +-- + +CREATE TABLE `ospos_sales_taxes` ( + `sale_id` int(10) NOT NULL, + `tax_type` smallint(2) NOT NULL, + `tax_group` varchar(32) NOT NULL, + `sale_tax_basis` decimal(15,4) NOT NULL, + `sale_tax_amount` decimal(15,4) NOT NULL, + `print_sequence` tinyint(2) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `tax_rate` decimal(15,4) NOT NULL, + `sales_tax_code` varchar(32) NOT NULL DEFAULT '', + `rounding_code` tinyint(2) NOT NULL DEFAULT 0, + PRIMARY KEY (`sale_id`,`tax_type`,`tax_group`), + KEY `print_sequence` (`sale_id`,`print_sequence`,`tax_type`,`tax_group`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + +-- +-- Dumping data for table `ospos_sales_taxes` +-- + + -- -------------------------------------------------------- @@ -736,7 +780,6 @@ CREATE TABLE `ospos_stock_locations` ( INSERT INTO `ospos_stock_locations` ( `deleted`, `location_name` ) VALUES ('0', 'stock'); -- -------------------------------------------------------- - -- -- Table structure for table `ospos_suppliers` -- @@ -751,12 +794,47 @@ CREATE TABLE `ospos_suppliers` ( KEY `person_id` (`person_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +-- -------------------------------------------------------- -- --- Dumping data for table `ospos_suppliers` +-- Table structure for table `ospos_tax_categories` -- +CREATE TABLE IF NOT EXISTS `ospos_tax_categories` ( + `tax_category_id` int(10) NOT NULL, + `tax_category` varchar(32) NOT NULL, + `tax_group_sequence` tinyint(2) NOT NULL, + PRIMARY KEY (`tax_category_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `ospos_stock_locations` +-- + +INSERT INTO `ospos_tax_categories` ( `tax_category_id`,`tax_category`, `tax_group_sequence` ) VALUES + (0, 'Standard', 10), + (1, 'Service', 12), + (2, 'Alcohol', 11); + -- -------------------------------------------------------- +-- +-- Table structure for table `ospos_tax_codes` +-- +CREATE TABLE IF NOT EXISTS `ospos_tax_codes` ( + `tax_code` varchar(32) NOT NULL, + `tax_code_name` varchar(255) NOT NULL DEFAULT '', + `tax_code_type` tinyint(2) NOT NULL DEFAULT 0, + `city` varchar(255) NOT NULL DEFAULT '', + `state` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`tax_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `ospos_tax_codes` +-- + + +-- -------------------------------------------------------- -- -- Table structure for table `ospos_dinner_tables` -- @@ -821,6 +899,23 @@ CREATE TABLE IF NOT EXISTS `ospos_sales_reward_points` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; +-- -------------------------------------------------------- +-- +-- Table structure for table `ospos_tax_code_rates` +-- + +CREATE TABLE IF NOT EXISTS `ospos_tax_code_rates` ( + `rate_tax_code` varchar(32) NOT NULL, + `rate_tax_category_id` int(10) NOT NULL, + `tax_rate` decimal(15,4) NOT NULL DEFAULT 0.0000, + `rounding_code` tinyint(2) NOT NULL DEFAULT 0, + PRIMARY KEY (`rate_tax_code`,`rate_tax_category_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `ospos_tax_code_rates` +-- + -- -- This migration script should be run after creating tables with the regular database script and before applying the constraints. -- diff --git a/database/tables.sql b/database/tables.sql index edfa73729..6b45627b0 100644 --- a/database/tables.sql +++ b/database/tables.sql @@ -109,7 +109,7 @@ CREATE TABLE `ospos_customers` ( `company_name` varchar(255) DEFAULT NULL, `account_number` varchar(255) DEFAULT NULL, `taxable` int(1) NOT NULL DEFAULT '1', - `sales_tax_code` varchar(32) NOT NULL DEFAULT '', + `sales_tax_code` varchar(32) NOT NULL DEFAULT '1', `discount_percent` decimal(15,2) NOT NULL DEFAULT '0', `package_id` int(11) DEFAULT NULL, `points` int(11) DEFAULT NULL, @@ -532,7 +532,7 @@ CREATE TABLE `ospos_sales` ( `invoice_number` varchar(32) DEFAULT NULL, `quote_number` varchar(32) DEFAULT NULL, `sale_id` int(10) NOT NULL AUTO_INCREMENT, - `sale_status` tinyint(2) DEFAULT 0, + `sale_status` tinyint(2) NOT NULL DEFAULT 0, `dinner_table_id` int(11) NULL, PRIMARY KEY (`sale_id`), KEY `customer_id` (`customer_id`), diff --git a/public/dist/opensourcepos.min.css b/public/dist/opensourcepos.min.css index ced02f92f..79e61f8c7 100644 --- a/public/dist/opensourcepos.min.css +++ b/public/dist/opensourcepos.min.css @@ -15,4 +15,4 @@ * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * - */.datetimepicker{padding:4px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;direction:ltr}.datetimepicker-inline{width:220px}.datetimepicker.datetimepicker-rtl{direction:rtl}.datetimepicker.datetimepicker-rtl table tr td span{float:right}.datetimepicker-dropdown,.datetimepicker-dropdown-left{top:0;left:0}[class*=" datetimepicker-dropdown"]:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute}[class*=" datetimepicker-dropdown"]:after{border-bottom:6px solid #fff;position:absolute}[class*=" datetimepicker-dropdown-top"]:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,.2);border-bottom:0}[class*=" datetimepicker-dropdown-top"]:after{border-top:6px solid #fff;border-bottom:0}.datetimepicker-dropdown-bottom-left:before{top:-7px;right:6px}.datetimepicker-dropdown-bottom-left:after{top:-6px;right:7px}.datetimepicker-dropdown-bottom-right:before{top:-7px;left:6px}.datetimepicker-dropdown-bottom-right:after{top:-6px;left:7px}.datetimepicker-dropdown-top-left:before{bottom:-7px;right:6px}.datetimepicker-dropdown-top-left:after{bottom:-6px;right:7px}.datetimepicker-dropdown-top-right:before{bottom:-7px;left:6px}.datetimepicker-dropdown-top-right:after{bottom:-6px;left:7px}.datetimepicker>div{display:none}.datetimepicker.days div.datetimepicker-days,.datetimepicker.hours div.datetimepicker-hours,.datetimepicker.minutes div.datetimepicker-minutes,.datetimepicker.months div.datetimepicker-months,.datetimepicker.years div.datetimepicker-years{display:block}.datetimepicker table{margin:0}.datetimepicker td,.datetimepicker th{text-align:center;width:20px;height:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0}.table-striped .datetimepicker table tr td,.table-striped .datetimepicker table tr th{background-color:transparent}.datetimepicker table tr td.day:hover,.datetimepicker table tr td.hour:hover,.datetimepicker table tr td.minute:hover{background:#eee;cursor:pointer}.datetimepicker table tr td.new,.datetimepicker table tr td.old{color:#999}.datetimepicker table tr td.disabled,.datetimepicker table tr td.disabled:hover{background:0;color:#999;cursor:default}.datetimepicker table tr td.today,.datetimepicker table tr td.today.disabled,.datetimepicker table tr td.today.disabled:hover,.datetimepicker table tr td.today:hover{background-color:#fde19a;background-image:-moz-linear-gradient(top,#fdd49a,#fdf59a);background-image:-ms-linear-gradient(top,#fdd49a,#fdf59a);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fdd49a),to(#fdf59a));background-image:-webkit-linear-gradient(top,#fdd49a,#fdf59a);background-image:-o-linear-gradient(top,#fdd49a,#fdf59a);background-image:linear-gradient(to bottom,#fdd49a,#fdf59a);background-repeat:repeat-x;border-color:#fdf59a #fdf59a #fbed50;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.datetimepicker table tr td.today.active,.datetimepicker table tr td.today.disabled,.datetimepicker table tr td.today.disabled.active,.datetimepicker table tr td.today.disabled.disabled,.datetimepicker table tr td.today.disabled:active,.datetimepicker table tr td.today.disabled:hover,.datetimepicker table tr td.today.disabled:hover.active,.datetimepicker table tr td.today.disabled:hover.disabled,.datetimepicker table tr td.today.disabled:hover:active,.datetimepicker table tr td.today.disabled:hover:hover,.datetimepicker table tr td.today.disabled:hover[disabled],.datetimepicker table tr td.today.disabled[disabled],.datetimepicker table tr td.today:active,.datetimepicker table tr td.today:hover,.datetimepicker table tr td.today:hover.active,.datetimepicker table tr td.today:hover.disabled,.datetimepicker table tr td.today:hover:active,.datetimepicker table tr td.today:hover:hover,.datetimepicker table tr td.today:hover[disabled],.datetimepicker table tr td.today[disabled]{background-color:#fdf59a}.datetimepicker table tr td.today.active,.datetimepicker table tr td.today.disabled.active,.datetimepicker table tr td.today.disabled:active,.datetimepicker table tr td.today.disabled:hover.active,.datetimepicker table tr td.today.disabled:hover:active,.datetimepicker table tr td.today:active,.datetimepicker table tr td.today:hover.active,.datetimepicker table tr td.today:hover:active{background-color:#fbf069}.datetimepicker table tr td.active,.datetimepicker table tr td.active.disabled,.datetimepicker table tr td.active.disabled:hover,.datetimepicker table tr td.active:hover{background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-ms-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.datetimepicker table tr td.active.active,.datetimepicker table tr td.active.disabled,.datetimepicker table tr td.active.disabled.active,.datetimepicker table tr td.active.disabled.disabled,.datetimepicker table tr td.active.disabled:active,.datetimepicker table tr td.active.disabled:hover,.datetimepicker table tr td.active.disabled:hover.active,.datetimepicker table tr td.active.disabled:hover.disabled,.datetimepicker table tr td.active.disabled:hover:active,.datetimepicker table tr td.active.disabled:hover:hover,.datetimepicker table tr td.active.disabled:hover[disabled],.datetimepicker table tr td.active.disabled[disabled],.datetimepicker table tr td.active:active,.datetimepicker table tr td.active:hover,.datetimepicker table tr td.active:hover.active,.datetimepicker table tr td.active:hover.disabled,.datetimepicker table tr td.active:hover:active,.datetimepicker table tr td.active:hover:hover,.datetimepicker table tr td.active:hover[disabled],.datetimepicker table tr td.active[disabled]{background-color:#04c}.datetimepicker table tr td.active.active,.datetimepicker table tr td.active.disabled.active,.datetimepicker table tr td.active.disabled:active,.datetimepicker table tr td.active.disabled:hover.active,.datetimepicker table tr td.active.disabled:hover:active,.datetimepicker table tr td.active:active,.datetimepicker table tr td.active:hover.active,.datetimepicker table tr td.active:hover:active{background-color:#039}.datetimepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.datetimepicker .datetimepicker-hours span{height:26px;line-height:26px}.datetimepicker .datetimepicker-hours table tr td span.hour_am,.datetimepicker .datetimepicker-hours table tr td span.hour_pm{width:14.6%}.datetimepicker .datetimepicker-hours fieldset legend,.datetimepicker .datetimepicker-minutes fieldset legend{margin-bottom:inherit;line-height:30px}.datetimepicker .datetimepicker-minutes span{height:26px;line-height:26px}.datetimepicker table tr td span:hover{background:#eee}.datetimepicker table tr td span.disabled,.datetimepicker table tr td span.disabled:hover{background:0;color:#999;cursor:default}.datetimepicker table tr td span.active,.datetimepicker table tr td span.active.disabled,.datetimepicker table tr td span.active.disabled:hover,.datetimepicker table tr td span.active:hover{background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-ms-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.datetimepicker table tr td span.active.active,.datetimepicker table tr td span.active.disabled,.datetimepicker table tr td span.active.disabled.active,.datetimepicker table tr td span.active.disabled.disabled,.datetimepicker table tr td span.active.disabled:active,.datetimepicker table tr td span.active.disabled:hover,.datetimepicker table tr td span.active.disabled:hover.active,.datetimepicker table tr td span.active.disabled:hover.disabled,.datetimepicker table tr td span.active.disabled:hover:active,.datetimepicker table tr td span.active.disabled:hover:hover,.datetimepicker table tr td span.active.disabled:hover[disabled],.datetimepicker table tr td span.active.disabled[disabled],.datetimepicker table tr td span.active:active,.datetimepicker table tr td span.active:hover,.datetimepicker table tr td span.active:hover.active,.datetimepicker table tr td span.active:hover.disabled,.datetimepicker table tr td span.active:hover:active,.datetimepicker table tr td span.active:hover:hover,.datetimepicker table tr td span.active:hover[disabled],.datetimepicker table tr td span.active[disabled]{background-color:#04c}.datetimepicker table tr td span.active.active,.datetimepicker table tr td span.active.disabled.active,.datetimepicker table tr td span.active.disabled:active,.datetimepicker table tr td span.active.disabled:hover.active,.datetimepicker table tr td span.active.disabled:hover:active,.datetimepicker table tr td span.active:active,.datetimepicker table tr td span.active:hover.active,.datetimepicker table tr td span.active:hover:active{background-color:#039}.datetimepicker table tr td span.old{color:#999}.datetimepicker th.switch{width:145px}.datetimepicker th span.glyphicon{pointer-events:none}.datetimepicker tfoot th,.datetimepicker thead tr:first-child th{cursor:pointer}.datetimepicker tfoot th:hover,.datetimepicker thead tr:first-child th:hover{background:#eee}.input-append.date .add-on i,.input-group.date .input-group-addon span,.input-prepend.date .add-on i{cursor:pointer;width:14px;height:14px}.ui-autocomplete{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:13px;background-color:#fff;border-color:#ccc;border-color:rgba(0,0,0,.15);border-style:solid;border-width:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.175);-moz-box-shadow:0 5px 10px rgba(0,0,0,.175);box-shadow:0 5px 10px rgba(0,0,0,.175);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}#logo,.delete-wpr{position:relative}.ui-autocomplete .ui-menu-item>a.ui-corner-all{display:block;padding:3px 15px;clear:both;font-weight:400;line-height:18px;color:#7b8a8b;white-space:nowrap}#header,.delete{font-weight:700}.ui-autocomplete .ui-menu-item>a.ui-corner-all.ui-state-active,.ui-autocomplete .ui-menu-item>a.ui-corner-all.ui-state-hover{color:#fff;text-decoration:none;background-color:#f5f5f5;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;background-image:none}*{margin:0;padding:0}#page-wrap{width:100%;margin:0 auto;max-width:800px}#page-wrap textarea{border:0;font-size:14px;resize:none}#page-wrap table{border-collapse:collapse}#page-wrap table td,#page-wrap table th{border:1px solid #000;padding:5px}#page-wrap table td{padding:5px}#header{margin:20px 0;background:#222;text-align:center;color:#fff;font-size:2em;letter-spacing:4px;padding:10px 0}#logo{text-align:right;margin-top:15px;float:left;border:1px solid #fff}#logo img{max-width:150px}#logoctr{display:none}#logo.edit #logoctr,#logo:hover #logoctr{display:block;text-align:right;line-height:25px;background:#eee;padding:0 5px}#logohelp{text-align:left;display:none;font-style:italic;padding:10px 5px}#logohelp input{margin-bottom:5px}.edit #logohelp{display:block}.edit #cancel-logo,.edit #save-logo{display:inline}#cancel-logo,#save-logo,.edit #change-logo,.edit #delete-logo,.edit #image{display:none}#customer-title{height:100px;float:right;margin-top:40px}#customer-title textarea{width:150px}#block2{width:100%}#company-title{float:left}#meta{margin-top:1px;width:300px;float:right}#meta td{text-align:right}#meta td.meta-head{text-align:left;background:#eee}#meta td textarea{width:100%;height:20px;text-align:right}#items{clear:both;width:100%;margin:30px 0 0;border:1px solid #000}#items th{background:#eee;text-align:center}#items textarea{width:80px;height:20px}#items tr.item-row td{border:0;vertical-align:top}#items td.description{width:300px}#items td.item-name{width:175px}#items td.description textarea,#items td.item-name textarea{width:100%}#items td.total-line{border-right:0;text-align:right}#items td.total-value{border-left:0;padding:10px}#items td.total-value textarea{height:20px;background:0 0}#items td.total-line textarea{height:20px;width:150px;background:0 0}#items td.balance{background:#eee}#items td.blank{border:0}#items td.blank-bottom{border:1px}#terms{text-align:center;margin:20px 0 0}#terms h5{text-transform:uppercase;font-size:13px;letter-spacing:10px;border-bottom:1px solid #000;padding:0 0 8px;margin:0 0 8px}#terms textarea{width:100%;text-align:center}.delete{display:block;color:#000;text-decoration:none;position:absolute;background:#EEE;padding:0 3px;border:1px solid;top:-6px;left:-22px;font-family:Verdana;font-size:12px}#footer,#home_module_list,#receipt_items,#receipt_items td,#title_bar{position:relative}body,html{height:100%}a.none{text-decoration:none}.topbar{color:#eee;font-size:12px;background:#182735;padding:.2em}.navbar{border-radius:0}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#2C3E50;background-color:#FFF}.jumbotron.push-spaces{margin:0}.navbar .menu-icon{text-align:center;font-size:12px}.navbar .menu-icon img{width:24px}.wrapper{font-size:13px}#title_bar{width:100%;height:3em}#page_title{font-size:22px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400}#company_name,#employee_permission_info p,#info_provided_by,#page_subtitle,.discount,.error_message_box{font-weight:700}#page_subtitle{margin-bottom:.5em;font-size:16px;text-align:center}#home_module_list{padding:2em 0;text-align:center}.module_item{min-width:7em;display:inline-block;text-align:center}.module_item a{display:block}#config_wrapper{text-align:center}#config_info{text-align:left}#config_info .wide{width:30%}#footer{margin-top:5em;text-align:center;font-size:11px;color:#777;clear:both}a.rollover img{padding:3px}#filters.btn-group{vertical-align:none}button.btn.dropdown-toggle.btn-sm{background-color:#fff;color:#000;border:2px solid #dce4ec}#add_item_form,#overall_sale{background-color:#BBB}#mode_form,#payment_details{background-color:#DDD}.dropdown-menu{font-size:13px}label.required{color:red}@media (min-width:768px){.navbar-nav>li>a{padding:10px 10px 9px}.modal-dlg .modal-dialog{width:500px}.modal-dlg-wide .modal-dialog{width:750px}}.modal-body{max-height:calc(100vh - 212px);overflow-y:auto}.no-gutter [class*="-1"]{padding-right:0;padding-left:0}@media print{table.innertable a,table.report a{color:#000;text-decoration:none}.no-print,.no-print *{display:none!important}#receipt_wrapper,#table{font-size:75%}#footer,#menubar,.topbar{display:none}#sale_return_policy{width:100%;text-align:center}#receipt_items td{white-space:nowrap}table.innertable{display:table}table.report a.expand{visibility:hidden}.print_show{display:block!important}.print_hide{display:none!important}.fixed-table-container{border:none}.fixed-table-container thead th .sortable{padding-right:10px}}#payment_details,#payment_totals,#sale_totals{border-top:1px solid #000}#required_fields_message{width:100%;text-align:center;margin-bottom:3px;font-style:italic}.error_message_box{margin-bottom:7px;margin-left:20px;color:red}#company_phone,#receipt_items{margin-bottom:15px}#receipt_items td,#receipt_items tr,#sale_time{margin-bottom:5px}#customer_basic_info,#employee_basic_info,#employee_login_info,#employee_permission_info,#item_basic_info,#item_number_info,#permission_list li,#sale_basic_info,#supplier_basic_info{padding:5px}#info_provided_by{display:none}#permission_list{list-style:none}#permission_list ul li{padding-left:20px;padding-bottom:0;list-style:none}#permission_list input{top:3px}#employee_permission_info span.small{font-style:italic;font-size:80%}#items_count_details{font-size:80%}#item_kit_items,#items_count_details,#receipt_wrapper{width:100%}#item_kit_items thead tr,#items_count_details thead tr{background-color:#CCC}#item_kit_items th,#items_count_details th{text-align:center;font-weight:700}#item_kit_items td,#items_count_details td,#receipt_header{text-align:center}#company_name{font-size:150%}#company_name img{max-width:150px;max-height:150px}#receipt_items{border-collapse:collapse;margin-top:15px;width:100%}#receipt_items td{padding:3px}#sale_return_policy{width:80%;margin:0 auto;text-align:center}#receipt_wrapper #barcode{margin-top:10px;text-align:center}.total-value{text-align:right}#register_wrapper{float:left;width:70%;font-size:13px}#add_item_form,#mode_form{margin:0}#add_item_form .panel-body,#mode_form .panel-body{padding:.7em;margin:0}#add_item_form ul,#mode_form ul{list-style:none;padding:0;margin:0}#add_item_form ul li,#mode_form ul li{margin-left:1em}.first_li{margin-left:.2em!important}#add_item_form ul.dropdown-menu.inner,#mode_form ul.dropdown-menu.inner{margin-left:-1em!important}#register{padding:0;border-collapse:collapse}#register th{background-color:#999;padding:5px;text-align:center;color:#FFF}#register td{background-color:#EEE;padding:3px;text-align:center}#overall_sale{width:29%;float:left;margin-left:.1em;padding-bottom:1em;padding-top:1em;font-size:13px;text-align:center}#overall_sale .panel-body{padding-top:0;padding-bottom:0}#overall_sale .form-group{margin:0}#overall_sale .btn{margin-top:.5em;margin-bottom:.5em}#buttons_sale,#payment_details,#suspended_sales_table,.sales_table_100{width:100%}#payment_details{float:left;margin-top:.2em;padding:.5em;text-align:left;clear:both}.alert{margin-bottom:5px}.report{font-size:.85em}#report_summary{margin:2em 0 auto;text-align:center}#chart_report_summary{text-align:center;margin-top:-100px}.ct-label.ct-horizontal{-webkit-transform:rotate(-60deg);-moz-transform:rotate(-60deg);-ms-transform:rotate(-60deg);-o-transform:rotate(-60deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.ct-label{fill:rgba(0,0,0,1);color:rgba(0,0,0,1);font-size:1.2rem}.ct-tooltip-point{fill-opacity:1!important;stroke-width:0;stroke:red;transition:all .2s linear}.ct-tooltip-point:hover{r:7;stroke-opacity:.2;stroke-width:20px} \ No newline at end of file + */.datetimepicker{padding:4px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;direction:ltr}.datetimepicker-inline{width:220px}.datetimepicker.datetimepicker-rtl{direction:rtl}.datetimepicker.datetimepicker-rtl table tr td span{float:right}.datetimepicker-dropdown,.datetimepicker-dropdown-left{top:0;left:0}[class*=" datetimepicker-dropdown"]:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute}[class*=" datetimepicker-dropdown"]:after{border-bottom:6px solid #fff;position:absolute}[class*=" datetimepicker-dropdown-top"]:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,.2);border-bottom:0}[class*=" datetimepicker-dropdown-top"]:after{border-top:6px solid #fff;border-bottom:0}.datetimepicker-dropdown-bottom-left:before{top:-7px;right:6px}.datetimepicker-dropdown-bottom-left:after{top:-6px;right:7px}.datetimepicker-dropdown-bottom-right:before{top:-7px;left:6px}.datetimepicker-dropdown-bottom-right:after{top:-6px;left:7px}.datetimepicker-dropdown-top-left:before{bottom:-7px;right:6px}.datetimepicker-dropdown-top-left:after{bottom:-6px;right:7px}.datetimepicker-dropdown-top-right:before{bottom:-7px;left:6px}.datetimepicker-dropdown-top-right:after{bottom:-6px;left:7px}.datetimepicker>div{display:none}.datetimepicker.days div.datetimepicker-days,.datetimepicker.hours div.datetimepicker-hours,.datetimepicker.minutes div.datetimepicker-minutes,.datetimepicker.months div.datetimepicker-months,.datetimepicker.years div.datetimepicker-years{display:block}.datetimepicker table{margin:0}.datetimepicker td,.datetimepicker th{text-align:center;width:20px;height:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0}.table-striped .datetimepicker table tr td,.table-striped .datetimepicker table tr th{background-color:transparent}.datetimepicker table tr td.day:hover,.datetimepicker table tr td.hour:hover,.datetimepicker table tr td.minute:hover{background:#eee;cursor:pointer}.datetimepicker table tr td.new,.datetimepicker table tr td.old{color:#999}.datetimepicker table tr td.disabled,.datetimepicker table tr td.disabled:hover{background:0;color:#999;cursor:default}.datetimepicker table tr td.today,.datetimepicker table tr td.today.disabled,.datetimepicker table tr td.today.disabled:hover,.datetimepicker table tr td.today:hover{background-color:#fde19a;background-image:-moz-linear-gradient(top,#fdd49a,#fdf59a);background-image:-ms-linear-gradient(top,#fdd49a,#fdf59a);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fdd49a),to(#fdf59a));background-image:-webkit-linear-gradient(top,#fdd49a,#fdf59a);background-image:-o-linear-gradient(top,#fdd49a,#fdf59a);background-image:linear-gradient(to bottom,#fdd49a,#fdf59a);background-repeat:repeat-x;border-color:#fdf59a #fdf59a #fbed50;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.datetimepicker table tr td.today.active,.datetimepicker table tr td.today.disabled,.datetimepicker table tr td.today.disabled.active,.datetimepicker table tr td.today.disabled.disabled,.datetimepicker table tr td.today.disabled:active,.datetimepicker table tr td.today.disabled:hover,.datetimepicker table tr td.today.disabled:hover.active,.datetimepicker table tr td.today.disabled:hover.disabled,.datetimepicker table tr td.today.disabled:hover:active,.datetimepicker table tr td.today.disabled:hover:hover,.datetimepicker table tr td.today.disabled:hover[disabled],.datetimepicker table tr td.today.disabled[disabled],.datetimepicker table tr td.today:active,.datetimepicker table tr td.today:hover,.datetimepicker table tr td.today:hover.active,.datetimepicker table tr td.today:hover.disabled,.datetimepicker table tr td.today:hover:active,.datetimepicker table tr td.today:hover:hover,.datetimepicker table tr td.today:hover[disabled],.datetimepicker table tr td.today[disabled]{background-color:#fdf59a}.datetimepicker table tr td.today.active,.datetimepicker table tr td.today.disabled.active,.datetimepicker table tr td.today.disabled:active,.datetimepicker table tr td.today.disabled:hover.active,.datetimepicker table tr td.today.disabled:hover:active,.datetimepicker table tr td.today:active,.datetimepicker table tr td.today:hover.active,.datetimepicker table tr td.today:hover:active{background-color:#fbf069}.datetimepicker table tr td.active,.datetimepicker table tr td.active.disabled,.datetimepicker table tr td.active.disabled:hover,.datetimepicker table tr td.active:hover{background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-ms-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.datetimepicker table tr td.active.active,.datetimepicker table tr td.active.disabled,.datetimepicker table tr td.active.disabled.active,.datetimepicker table tr td.active.disabled.disabled,.datetimepicker table tr td.active.disabled:active,.datetimepicker table tr td.active.disabled:hover,.datetimepicker table tr td.active.disabled:hover.active,.datetimepicker table tr td.active.disabled:hover.disabled,.datetimepicker table tr td.active.disabled:hover:active,.datetimepicker table tr td.active.disabled:hover:hover,.datetimepicker table tr td.active.disabled:hover[disabled],.datetimepicker table tr td.active.disabled[disabled],.datetimepicker table tr td.active:active,.datetimepicker table tr td.active:hover,.datetimepicker table tr td.active:hover.active,.datetimepicker table tr td.active:hover.disabled,.datetimepicker table tr td.active:hover:active,.datetimepicker table tr td.active:hover:hover,.datetimepicker table tr td.active:hover[disabled],.datetimepicker table tr td.active[disabled]{background-color:#04c}.datetimepicker table tr td.active.active,.datetimepicker table tr td.active.disabled.active,.datetimepicker table tr td.active.disabled:active,.datetimepicker table tr td.active.disabled:hover.active,.datetimepicker table tr td.active.disabled:hover:active,.datetimepicker table tr td.active:active,.datetimepicker table tr td.active:hover.active,.datetimepicker table tr td.active:hover:active{background-color:#039}.datetimepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.datetimepicker .datetimepicker-hours span{height:26px;line-height:26px}.datetimepicker .datetimepicker-hours table tr td span.hour_am,.datetimepicker .datetimepicker-hours table tr td span.hour_pm{width:14.6%}.datetimepicker .datetimepicker-hours fieldset legend,.datetimepicker .datetimepicker-minutes fieldset legend{margin-bottom:inherit;line-height:30px}.datetimepicker .datetimepicker-minutes span{height:26px;line-height:26px}.datetimepicker table tr td span:hover{background:#eee}.datetimepicker table tr td span.disabled,.datetimepicker table tr td span.disabled:hover{background:0;color:#999;cursor:default}.datetimepicker table tr td span.active,.datetimepicker table tr td span.active.disabled,.datetimepicker table tr td span.active.disabled:hover,.datetimepicker table tr td span.active:hover{background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-ms-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.datetimepicker table tr td span.active.active,.datetimepicker table tr td span.active.disabled,.datetimepicker table tr td span.active.disabled.active,.datetimepicker table tr td span.active.disabled.disabled,.datetimepicker table tr td span.active.disabled:active,.datetimepicker table tr td span.active.disabled:hover,.datetimepicker table tr td span.active.disabled:hover.active,.datetimepicker table tr td span.active.disabled:hover.disabled,.datetimepicker table tr td span.active.disabled:hover:active,.datetimepicker table tr td span.active.disabled:hover:hover,.datetimepicker table tr td span.active.disabled:hover[disabled],.datetimepicker table tr td span.active.disabled[disabled],.datetimepicker table tr td span.active:active,.datetimepicker table tr td span.active:hover,.datetimepicker table tr td span.active:hover.active,.datetimepicker table tr td span.active:hover.disabled,.datetimepicker table tr td span.active:hover:active,.datetimepicker table tr td span.active:hover:hover,.datetimepicker table tr td span.active:hover[disabled],.datetimepicker table tr td span.active[disabled]{background-color:#04c}.datetimepicker table tr td span.active.active,.datetimepicker table tr td span.active.disabled.active,.datetimepicker table tr td span.active.disabled:active,.datetimepicker table tr td span.active.disabled:hover.active,.datetimepicker table tr td span.active.disabled:hover:active,.datetimepicker table tr td span.active:active,.datetimepicker table tr td span.active:hover.active,.datetimepicker table tr td span.active:hover:active{background-color:#039}.datetimepicker table tr td span.old{color:#999}.datetimepicker th.switch{width:145px}.datetimepicker th span.glyphicon{pointer-events:none}.datetimepicker tfoot th,.datetimepicker thead tr:first-child th{cursor:pointer}.datetimepicker tfoot th:hover,.datetimepicker thead tr:first-child th:hover{background:#eee}.input-append.date .add-on i,.input-group.date .input-group-addon span,.input-prepend.date .add-on i{cursor:pointer;width:14px;height:14px}.ui-autocomplete{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:13px;background-color:#fff;border-color:#ccc;border-color:rgba(0,0,0,.15);border-style:solid;border-width:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.175);-moz-box-shadow:0 5px 10px rgba(0,0,0,.175);box-shadow:0 5px 10px rgba(0,0,0,.175);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}#logo,.delete-wpr{position:relative}.ui-autocomplete .ui-menu-item>a.ui-corner-all{display:block;padding:3px 15px;clear:both;font-weight:400;line-height:18px;color:#7b8a8b;white-space:nowrap}#header,.delete{font-weight:700}.ui-autocomplete .ui-menu-item>a.ui-corner-all.ui-state-active,.ui-autocomplete .ui-menu-item>a.ui-corner-all.ui-state-hover{color:#fff;text-decoration:none;background-color:#f5f5f5;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;background-image:none}*{margin:0;padding:0}#page-wrap{width:100%;margin:0 auto;max-width:800px}#page-wrap textarea{border:0;font-size:14px;resize:none}#page-wrap table{border-collapse:collapse}#page-wrap table td,#page-wrap table th{border:1px solid #000;padding:5px}#page-wrap table td{padding:5px}#header{margin:20px 0;background:#222;text-align:center;color:#fff;font-size:2em;letter-spacing:4px;padding:10px 0}#logo{text-align:right;margin-top:15px;float:left;border:1px solid #fff}#logo img{max-width:150px}#logoctr{display:none}#logo.edit #logoctr,#logo:hover #logoctr{display:block;text-align:right;line-height:25px;background:#eee;padding:0 5px}#logohelp{text-align:left;display:none;font-style:italic;padding:10px 5px}#logohelp input{margin-bottom:5px}.edit #logohelp{display:block}.edit #cancel-logo,.edit #save-logo{display:inline}#cancel-logo,#save-logo,.edit #change-logo,.edit #delete-logo,.edit #image{display:none}#customer-title{height:100px;float:right;margin-top:40px}#customer-title textarea{width:150px}#block2{width:100%}#company-title{float:left}#meta{margin-top:1px;width:300px;float:right}#meta td{text-align:right}#meta td.meta-head{text-align:left;background:#eee}#meta td textarea{width:100%;height:20px;text-align:right}#items{clear:both;width:100%;margin:30px 0 0;border:1px solid #000}#items th{background:#eee;text-align:center}#items textarea{width:80px;height:20px}#items tr.item-row td{border:0;vertical-align:top}#items td.description{width:300px}#items td.item-name{width:175px}#items td.description textarea,#items td.item-name textarea{width:100%}#items td.total-line{border-right:0;text-align:right}#items td.total-value{border-left:0;padding:10px}#items td.total-value textarea{height:20px;background:0 0}#items td.total-line textarea{height:20px;width:150px;background:0 0}#items td.balance{background:#eee}#items td.blank{border:0}#items td.blank-bottom{border:1px}#terms{text-align:center;margin:20px 0 0}#terms h5{text-transform:uppercase;font-size:13px;letter-spacing:10px;border-bottom:1px solid #000;padding:0 0 8px;margin:0 0 8px}#terms textarea{width:100%;text-align:center}.delete{display:block;color:#000;text-decoration:none;position:absolute;background:#EEE;padding:0 3px;border:1px solid;top:-6px;left:-22px;font-family:Verdana;font-size:12px}#footer,#home_module_list,#receipt_items,#receipt_items td,#title_bar{position:relative}body,html{height:100%}a.none{text-decoration:none}.topbar{color:#eee;font-size:12px;background:#182735;padding:.2em}.navbar{border-radius:0}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#2C3E50;background-color:#FFF}.jumbotron.push-spaces{margin:0}.navbar .menu-icon{text-align:center;font-size:12px}.navbar .menu-icon img{width:24px}.wrapper{font-size:13px}#title_bar{width:100%;height:3em}#page_title{font-size:22px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400}#company_name,#employee_permission_info p,#info_provided_by,#page_subtitle,.discount,.error_message_box{font-weight:700}#page_subtitle{margin-bottom:.5em;font-size:16px;text-align:center}#home_module_list{padding:2em 0;text-align:center}.module_item{min-width:7em;display:inline-block;text-align:center}.module_item a{display:block}#config_wrapper{text-align:center}#config_info{text-align:left}#config_info .wide{width:30%}#footer{margin-top:5em;text-align:center;font-size:11px;color:#777;clear:both}a.rollover img{padding:3px}#filters.btn-group{vertical-align:none}button.btn.dropdown-toggle.btn-sm{background-color:#fff;color:#000;border:2px solid #dce4ec}#add_item_form,#overall_sale{background-color:#BBB}#mode_form,#payment_details{background-color:#DDD}.dropdown-menu{font-size:13px}label.required{color:red}@media (min-width:768px){.navbar-nav>li>a{padding:10px 10px 9px}.modal-dlg .modal-dialog{width:500px}.modal-dlg-wide .modal-dialog{width:750px}}.modal-body{max-height:calc(100vh - 212px);overflow-y:auto}.no-gutter [class*="-1"]{padding-right:0;padding-left:0}@media print{table.innertable a,table.report a{color:#000;text-decoration:none}.no-print,.no-print *{display:none!important}#receipt_wrapper,#table{font-size:75%}#footer,#menubar,.topbar{display:none}#sale_return_policy{width:100%;text-align:center}#receipt_items td{white-space:nowrap}table.innertable{display:table}table.report a.expand{visibility:hidden}.print_show{display:block!important}.print_hide{display:none!important}.fixed-table-container{border:none}.fixed-table-container thead th .sortable{padding-right:10px}}#payment_details,#payment_totals,#sale_totals{border-top:1px solid #000}#required_fields_message{width:100%;text-align:center;margin-bottom:3px;font-style:italic}.error_message_box{margin-bottom:7px;margin-left:20px;color:red}#company_phone,#receipt_items{margin-bottom:15px}#receipt_items td,#receipt_items tr,#sale_time{margin-bottom:5px}#customer_basic_info,#employee_basic_info,#employee_login_info,#employee_permission_info,#item_basic_info,#item_number_info,#permission_list li,#sale_basic_info,#supplier_basic_info{padding:5px}#info_provided_by{display:none}#permission_list{list-style:none}#permission_list ul li{padding-left:20px;padding-bottom:0;list-style:none}#permission_list input{top:3px}#employee_permission_info span.small{font-style:italic;font-size:80%}#items_count_details{font-size:80%}#item_kit_items,#items_count_details,#receipt_wrapper,#tax_code_rates{width:100%}#item_kit_items thead tr,#items_count_details thead tr,#tax_code_rates thead tr{background-color:#CCC}#item_kit_items th,#items_count_details th,#tax_code_rates th{text-align:center;font-weight:700}#item_kit_items td,#items_count_details td,#receipt_header,#tax_code_rates td{text-align:center}#company_name{font-size:150%}#company_name img{max-width:150px;max-height:150px}#receipt_items{border-collapse:collapse;margin-top:15px;width:100%}#receipt_items td{padding:3px}#sale_return_policy{width:80%;margin:0 auto;text-align:center}#receipt_wrapper #barcode{margin-top:10px;text-align:center}.total-value{text-align:right}#register_wrapper{float:left;width:70%;font-size:13px}#add_item_form,#mode_form{margin:0}#add_item_form .panel-body,#mode_form .panel-body{padding:.7em;margin:0}#add_item_form ul,#mode_form ul{list-style:none;padding:0;margin:0}#add_item_form ul li,#mode_form ul li{margin-left:1em}.first_li{margin-left:.2em!important}#add_item_form ul.dropdown-menu.inner,#mode_form ul.dropdown-menu.inner{margin-left:-1em!important}#register{padding:0;border-collapse:collapse}#register th{background-color:#999;padding:5px;text-align:center;color:#FFF}#register td{background-color:#EEE;padding:3px;text-align:center}#overall_sale{width:29%;float:left;margin-left:.1em;padding-bottom:1em;padding-top:1em;font-size:13px;text-align:center}#overall_sale .panel-body{padding-top:0;padding-bottom:0}#overall_sale .form-group{margin:0}#overall_sale .btn{margin-top:.5em;margin-bottom:.5em}#buttons_sale,#payment_details,#suspended_sales_table,.sales_table_100{width:100%}#payment_details{float:left;margin-top:.2em;padding:.5em;text-align:left;clear:both}.alert{margin-bottom:5px}.report{font-size:.85em}#report_summary{margin:2em 0 auto;text-align:center}#chart_report_summary{text-align:center;margin-top:-100px}.ct-label.ct-horizontal{-webkit-transform:rotate(-60deg);-moz-transform:rotate(-60deg);-ms-transform:rotate(-60deg);-o-transform:rotate(-60deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.ct-label{fill:rgba(0,0,0,1);color:rgba(0,0,0,1);font-size:1.2rem}.ct-tooltip-point{fill-opacity:1!important;stroke-width:0;stroke:red;transition:all .2s linear}.ct-tooltip-point:hover{r:7;stroke-opacity:.2;stroke-width:20px} \ No newline at end of file diff --git a/public/dist/opensourcepos.min.js b/public/dist/opensourcepos.min.js index 611711058..1ac4e180f 100644 --- a/public/dist/opensourcepos.min.js +++ b/public/dist/opensourcepos.min.js @@ -1,4 +1,4 @@ -/*! opensourcepos 25-03-2017 */ +/*! opensourcepos 15-04-2017 */ function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function number_sorter(a,b){return a=+a.replace(/[^\-0-9\.]+/g,""),b=+b.replace(/[^\-0-9\.]+/g,""),a>b?1:b>a?-1:0}if(function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&"length"in a&&a.length,c=na.type(a);return"function"===c||na.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(na.isFunction(b))return na.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return na.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(xa.test(b))return na.filter(b,a,c);b=na.filter(b,a)}return na.grep(a,function(a){return na.inArray(a,b)>-1!==c})}function e(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function f(a){var b={};return na.each(a.match(Da)||[],function(a,c){b[c]=!0}),b}function g(){da.addEventListener?(da.removeEventListener("DOMContentLoaded",h),a.removeEventListener("load",h)):(da.detachEvent("onreadystatechange",h),a.detachEvent("onload",h))}function h(){(da.addEventListener||"load"===a.event.type||"complete"===da.readyState)&&(g(),na.ready())}function i(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(Ia,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:Ha.test(c)?na.parseJSON(c):c}catch(e){}na.data(a,b,c)}else c=void 0}return c}function j(a){var b;for(b in a)if(("data"!==b||!na.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function k(a,b,c,d){if(Ga(a)){var e,f,g=na.expando,h=a.nodeType,i=h?na.cache:a,j=h?a[g]:a[g]&&g;if(j&&i[j]&&(d||i[j].data)||void 0!==c||"string"!=typeof b)return j||(j=h?a[g]=ca.pop()||na.guid++:g),i[j]||(i[j]=h?{}:{toJSON:na.noop}),("object"==typeof b||"function"==typeof b)&&(d?i[j]=na.extend(i[j],b):i[j].data=na.extend(i[j].data,b)),f=i[j],d||(f.data||(f.data={}),f=f.data),void 0!==c&&(f[na.camelCase(b)]=c),"string"==typeof b?(e=f[b],null==e&&(e=f[na.camelCase(b)])):e=f,e}}function l(a,b,c){if(Ga(a)){var d,e,f=a.nodeType,g=f?na.cache:a,h=f?a[na.expando]:na.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){na.isArray(b)?b=b.concat(na.map(b,na.camelCase)):b in d?b=[b]:(b=na.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;for(;e--;)delete d[b[e]];if(c?!j(d):!na.isEmptyObject(d))return}(c||(delete g[h].data,j(g[h])))&&(f?na.cleanData([a],!0):la.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}function m(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return na.css(a,b,"")},i=h(),j=c&&c[3]||(na.cssNumber[b]?"":"px"),k=(na.cssNumber[b]||"px"!==j&&+i)&&Ka.exec(na.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,na.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function n(a){var b=Sa.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function o(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||na.nodeName(d,b)?f.push(d):na.merge(f,o(d,b));return void 0===b||b&&na.nodeName(a,b)?na.merge([a],f):f}function p(a,b){for(var c,d=0;null!=(c=a[d]);d++)na._data(c,"globalEval",!b||na._data(b[d],"globalEval"))}function q(a){Oa.test(a.type)&&(a.defaultChecked=a.checked)}function r(a,b,c,d,e){for(var f,g,h,i,j,k,l,m=a.length,r=n(b),s=[],t=0;m>t;t++)if(g=a[t],g||0===g)if("object"===na.type(g))na.merge(s,g.nodeType?[g]:g);else if(Ua.test(g)){for(i=i||r.appendChild(b.createElement("div")),j=(Pa.exec(g)||["",""])[1].toLowerCase(),l=Ta[j]||Ta._default,i.innerHTML=l[1]+na.htmlPrefilter(g)+l[2],f=l[0];f--;)i=i.lastChild;if(!la.leadingWhitespace&&Ra.test(g)&&s.push(b.createTextNode(Ra.exec(g)[0])),!la.tbody)for(g="table"!==j||Va.test(g)?""!==l[1]||Va.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;f--;)na.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k);for(na.merge(s,i.childNodes),i.textContent="";i.firstChild;)i.removeChild(i.firstChild);i=r.lastChild}else s.push(b.createTextNode(g));for(i&&r.removeChild(i),la.appendChecked||na.grep(o(s,"input"),q),t=0;g=s[t++];)if(d&&na.inArray(g,d)>-1)e&&e.push(g);else if(h=na.contains(g.ownerDocument,g),i=o(r.appendChild(g),"script"),h&&p(i),c)for(f=0;g=i[f++];)Qa.test(g.type||"")&&c.push(g);return i=null,r}function s(){return!0}function t(){return!1}function u(){try{return da.activeElement}catch(a){}}function v(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)v(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=t;else if(!e)return a;return 1===f&&(g=e,e=function(a){return na().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=na.guid++)),a.each(function(){na.event.add(this,b,e,d,c)})}function w(a,b){return na.nodeName(a,"table")&&na.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function x(a){return a.type=(null!==na.find.attr(a,"type"))+"/"+a.type,a}function y(a){var b=eb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function z(a,b){if(1===b.nodeType&&na.hasData(a)){var c,d,e,f=na._data(a),g=na._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)na.event.add(b,c,h[c][d])}g.data&&(g.data=na.extend({},g.data))}}function A(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!la.noCloneEvent&&b[na.expando]){e=na._data(b);for(d in e.events)na.removeEvent(b,d,e.handle);b.removeAttribute(na.expando)}"script"===c&&b.text!==a.text?(x(b).text=a.text,y(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),la.html5Clone&&a.innerHTML&&!na.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Oa.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}function B(a,b,c,d){b=fa.apply([],b);var e,f,g,h,i,j,k=0,l=a.length,m=l-1,n=b[0],p=na.isFunction(n);if(p||l>1&&"string"==typeof n&&!la.checkClone&&db.test(n))return a.each(function(e){var f=a.eq(e);p&&(b[0]=n.call(this,e,f.html())),B(f,b,c,d)});if(l&&(j=r(b,a[0].ownerDocument,!1,a,d),e=j.firstChild,1===j.childNodes.length&&(j=e),e||d)){for(h=na.map(o(j,"script"),x),g=h.length;l>k;k++)f=j,k!==m&&(f=na.clone(f,!0,!0),g&&na.merge(h,o(f,"script"))),c.call(a[k],f,k);if(g)for(i=h[h.length-1].ownerDocument,na.map(h,y),k=0;g>k;k++)f=h[k],Qa.test(f.type||"")&&!na._data(f,"globalEval")&&na.contains(i,f)&&(f.src?na._evalUrl&&na._evalUrl(f.src):na.globalEval((f.text||f.textContent||f.innerHTML||"").replace(fb,"")));j=e=null}return a}function C(a,b,c){for(var d,e=b?na.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||na.cleanData(o(d)),d.parentNode&&(c&&na.contains(d.ownerDocument,d)&&p(o(d,"script")),d.parentNode.removeChild(d));return a}function D(a,b){var c=na(b.createElement(a)).appendTo(b.body),d=na.css(c[0],"display");return c.detach(),d}function E(a){var b=da,c=jb[a];return c||(c=D(a,b),"none"!==c&&c||(ib=(ib||na("