#
# TABLE STRUCTURE FOR: sma_addresses
#

DROP TABLE IF EXISTS `sma_addresses`;

CREATE TABLE `sma_addresses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `line1` varchar(50) NOT NULL,
  `line2` varchar(50) DEFAULT NULL,
  `city` varchar(25) NOT NULL,
  `postal_code` varchar(20) DEFAULT NULL,
  `state` varchar(25) NOT NULL,
  `country` varchar(50) NOT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_adjustment_items
#

DROP TABLE IF EXISTS `sma_adjustment_items`;

CREATE TABLE `sma_adjustment_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adjustment_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `type` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `adjustment_id` (`adjustment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_adjustment_items` (`id`, `adjustment_id`, `product_id`, `option_id`, `quantity`, `warehouse_id`, `serial_no`, `type`) VALUES (1, 1, 1, NULL, '100.0000', 17, '', 'subtraction');


#
# TABLE STRUCTURE FOR: sma_adjustment_items_stores
#

DROP TABLE IF EXISTS `sma_adjustment_items_stores`;

CREATE TABLE `sma_adjustment_items_stores` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adjustment_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `type` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `adjustment_id` (`adjustment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_adjustment_items_stores` (`id`, `adjustment_id`, `product_id`, `option_id`, `quantity`, `warehouse_id`, `store_id`, `serial_no`, `type`) VALUES (1, 1, 1, NULL, '100.0000', 17, 41, '', 'addition');


#
# TABLE STRUCTURE FOR: sma_adjustments
#

DROP TABLE IF EXISTS `sma_adjustments`;

CREATE TABLE `sma_adjustments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `note` text,
  `attachment` varchar(55) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_adjustments` (`id`, `date`, `reference_no`, `warehouse_id`, `note`, `attachment`, `created_by`, `updated_by`, `updated_at`, `count_id`) VALUES (1, '2020-08-08 17:50:00', '2020/08/0338', 17, '', NULL, 7, NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_adjustments_stores
#

DROP TABLE IF EXISTS `sma_adjustments_stores`;

CREATE TABLE `sma_adjustments_stores` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `store_id` int(20) DEFAULT NULL,
  `note` text,
  `attachment` varchar(55) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_adjustments_stores` (`id`, `date`, `reference_no`, `warehouse_id`, `store_id`, `note`, `attachment`, `created_by`, `updated_by`, `updated_at`, `count_id`) VALUES (1, '2020-08-08 17:50:00', '2020/08/0338', 17, 41, '', NULL, 7, NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_award_redemption
#

DROP TABLE IF EXISTS `sma_award_redemption`;

CREATE TABLE `sma_award_redemption` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `reference_no` varchar(55) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) NOT NULL,
  `total` decimal(25,4) DEFAULT NULL,
  `payment_id` int(11) NOT NULL,
  `awards` int(11) NOT NULL,
  `payment_status` varchar(20) DEFAULT 'paid',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

INSERT INTO `sma_award_redemption` (`id`, `reference_no`, `date`, `user_id`, `total`, `payment_id`, `awards`, `payment_status`, `created_by`, `updated_by`, `updated_at`) VALUES (10, 'IPAY2020/04/0622', '2020-04-13 13:51:42', 9, '-8.0000', 52, 8, 'paid', 7, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_bank_accounts
#

DROP TABLE IF EXISTS `sma_bank_accounts`;

CREATE TABLE `sma_bank_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `account_title` varchar(100) DEFAULT NULL,
  `account_number` varchar(100) DEFAULT NULL,
  `bank_name` varchar(100) NOT NULL,
  `branch_address` varchar(100) DEFAULT NULL,
  `opening_balance` varchar(100) DEFAULT NULL,
  `added_by` varchar(20) DEFAULT 'admin',
  PRIMARY KEY (`id`),
  KEY `name` (`bank_name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

INSERT INTO `sma_bank_accounts` (`id`, `account_title`, `account_number`, `bank_name`, `branch_address`, `opening_balance`, `added_by`) VALUES (1, 'Purchase Account', '1234', 'Purchase Bank', 'Riyadh', '0', 'admin');
INSERT INTO `sma_bank_accounts` (`id`, `account_title`, `account_number`, `bank_name`, `branch_address`, `opening_balance`, `added_by`) VALUES (2, 'Sales Account', '4321', 'Sales', 'Riyadh', '0', 'admin');
INSERT INTO `sma_bank_accounts` (`id`, `account_title`, `account_number`, `bank_name`, `branch_address`, `opening_balance`, `added_by`) VALUES (3, 'Expense Account', '4567', 'Expense', 'Riyadh', '0', 'admin');
INSERT INTO `sma_bank_accounts` (`id`, `account_title`, `account_number`, `bank_name`, `branch_address`, `opening_balance`, `added_by`) VALUES (4, 'Test Account', '123498769876', 'Heritage Bank', 'Peoria IL', '0', 'admin');


#
# TABLE STRUCTURE FOR: sma_brands
#

DROP TABLE IF EXISTS `sma_brands`;

CREATE TABLE `sma_brands` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) DEFAULT NULL,
  `name` varchar(50) NOT NULL,
  `image` varchar(50) DEFAULT NULL,
  `slug` varchar(55) DEFAULT NULL,
  `promo` tinyint(4) DEFAULT NULL,
  `promo_price` varchar(255) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (7, 'catrice', 'catrice', NULL, 'catrice', 1, '10.00', '2020-07-01', '2020-08-10');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (8, 'essence', 'essence', NULL, 'essence', 0, NULL, NULL, NULL);
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (9, 'flormar', 'flormar', NULL, 'flormar', 0, NULL, NULL, NULL);
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (10, '', 'sharbat', NULL, 'sharbatsharbat', 1, '20', '2020-03-12', '2020-03-20');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (11, '867', 'telerik', NULL, 'telerik', 1, '20%', '2020-03-15', '2020-03-20');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (12, '1002', 'test brand', NULL, 'test-brand', 1, '10', '2020-03-25', '2020-03-31');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (13, '5822', 'test brands', NULL, 'test-brands', 1, '10', '2020-03-01', '2020-03-31');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`, `promo`, `promo_price`, `start_date`, `end_date`) VALUES (14, '987456123', 'test brand third', NULL, 'test-brand-third', 1, '10', '2020-03-01', '2020-03-31');


#
# TABLE STRUCTURE FOR: sma_calendar
#

DROP TABLE IF EXISTS `sma_calendar`;

CREATE TABLE `sma_calendar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(55) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `start` datetime NOT NULL,
  `end` datetime DEFAULT NULL,
  `color` varchar(7) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (1, 'MySalonBuddy', 'descret', '2020-01-08 00:00:00', '2020-01-09 00:00:00', '#3a87ad', 7);
INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (2, 'test', 'sdf', '2020-01-08 00:00:00', '2020-01-09 00:00:00', '#3a87ad', 7);
INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (3, 'asdfasdf', 'sadfasdf', '2020-01-08 00:00:00', '2020-01-09 00:00:00', '#3a87ad', 7);
INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (4, 'descre', 'sadf', '2020-01-21 08:00:00', '2020-01-21 08:30:00', '#3a87ad', 7);
INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (5, 'MySalonBuddy', '', '2020-01-21 00:00:00', '2020-01-22 00:00:00', '#3a87ad', 7);
INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (6, 'MySalonBuddy', '', '2020-01-21 00:00:00', '2020-01-22 00:00:00', '#3a87ad', 7);
INSERT INTO `sma_calendar` (`id`, `title`, `description`, `start`, `end`, `color`, `user_id`) VALUES (7, 'test', '', '2020-01-23 00:00:00', '2020-01-24 00:00:00', '#3a87ad', 7);


#
# TABLE STRUCTURE FOR: sma_captcha
#

DROP TABLE IF EXISTS `sma_captcha`;

CREATE TABLE `sma_captcha` (
  `captcha_id` bigint(13) unsigned NOT NULL AUTO_INCREMENT,
  `captcha_time` int(10) unsigned NOT NULL,
  `ip_address` varchar(16) CHARACTER SET latin1 NOT NULL DEFAULT '0',
  `word` varchar(20) CHARACTER SET latin1 NOT NULL,
  PRIMARY KEY (`captcha_id`),
  KEY `word` (`word`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_cashback
#

DROP TABLE IF EXISTS `sma_cashback`;

CREATE TABLE `sma_cashback` (
  `start_amount` varchar(60) NOT NULL,
  `end_amount` varchar(60) NOT NULL,
  `type` varchar(60) NOT NULL,
  `cashback` varchar(60) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

#
# TABLE STRUCTURE FOR: sma_categories
#

DROP TABLE IF EXISTS `sma_categories`;

CREATE TABLE `sma_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(55) NOT NULL,
  `name` varchar(55) NOT NULL,
  `image` varchar(55) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `slug` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES (5, 'face', 'face', NULL, 0, 'face');
INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES (6, 'eyes', 'eyes', NULL, 0, 'eyes');
INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES (7, 'lip', 'lip', NULL, 0, 'lip');


#
# TABLE STRUCTURE FOR: sma_combo_items
#

DROP TABLE IF EXISTS `sma_combo_items`;

CREATE TABLE `sma_combo_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `item_code` varchar(20) NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `sma_combo_items` (`id`, `product_id`, `item_code`, `quantity`, `unit_price`) VALUES (1, 5, '20563902', '6.0000', '10.0000');
INSERT INTO `sma_combo_items` (`id`, `product_id`, `item_code`, `quantity`, `unit_price`) VALUES (2, 5, '19214740', '6.0000', '10.0000');
INSERT INTO `sma_combo_items` (`id`, `product_id`, `item_code`, `quantity`, `unit_price`) VALUES (3, 5, '91306451', '6.0000', '10.0000');


#
# TABLE STRUCTURE FOR: sma_companies
#

DROP TABLE IF EXISTS `sma_companies`;

CREATE TABLE `sma_companies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(10) unsigned DEFAULT NULL,
  `group_name` varchar(20) NOT NULL,
  `customer_group_id` int(11) DEFAULT NULL,
  `customer_group_name` varchar(100) DEFAULT NULL,
  `name` varchar(55) NOT NULL,
  `company` varchar(255) NOT NULL,
  `vat_no` varchar(100) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `city` varchar(55) DEFAULT NULL,
  `state` varchar(55) DEFAULT NULL,
  `postal_code` varchar(8) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `email` varchar(100) NOT NULL,
  `cf1` varchar(100) DEFAULT NULL,
  `cf2` varchar(100) DEFAULT NULL,
  `cf3` varchar(100) DEFAULT NULL,
  `cf4` varchar(100) DEFAULT NULL,
  `cf5` varchar(100) DEFAULT NULL,
  `cf6` varchar(100) DEFAULT NULL,
  `invoice_footer` text,
  `payment_term` int(11) DEFAULT '0',
  `logo` varchar(255) DEFAULT 'logo.png',
  `award_points` int(11) DEFAULT '0',
  `deposit_amount` decimal(25,4) DEFAULT NULL,
  `price_group_id` int(11) DEFAULT NULL,
  `price_group_name` varchar(50) DEFAULT NULL,
  `store_id` varchar(50) NOT NULL,
  `werehouse_id` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `group_id_2` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;

INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (1, NULL, 'biller', NULL, NULL, 'default', 'naturalsweets', '', 'Riyadh', 'Riyadh', '', '', '', '05656565', 'default@default.com', '', '', '', '', '', '', 'thanks for shopping in pointofsalesaudi', 0, 'logo1.png', 6, '0.0000', NULL, NULL, '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (3, NULL, 'biller', NULL, NULL, 'store1', 'store1', '', 'riyadh', 'riyadh', '', '', '', '06565656', 'store1@stro.com', '', '', '', '', '', '', 'store 1 ', 0, 'logo1.png', 0, '0.0000', NULL, NULL, '32', '12');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (4, 3, 'customer', 1, 'General', 'walking', 'walking', '', 'walking', 'riyadh', '', '', '', '0556565', 'walking@walking.com', '', '', '', '', '', '', NULL, 0, 'logo.png', 2, '0.0000', 1, 'Default', '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (5, NULL, 'biller', NULL, NULL, 'billerName', 'biller', '', '3947 N Oak St', 'WACO', 'TX', '80538', '', '8008648331', 'billerName@gmail.com', '', '', '', '', '', '', '', 0, 'logo1.png', 0, '0.0000', NULL, NULL, '33', '12');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (6, 3, 'customer', 2, 'Reseller', 'billerName123', 'biller123', '', '3947 N Oak St', 'WACO', 'TX', '80538', '', '8008648331', 'billerName123@gmail.com', '', '', '', '', '', '', NULL, 0, 'logo.png', 0, '0.0000', 1, 'Default', '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (9, NULL, 'biller', NULL, NULL, 'kavan', 'kavan', '', 'bazari hawraman', 'erbil', '', '', '', '654564', 'info@telerikit.com', '', '', '', '', '', '', '', 0, 'logo2.png', 0, '0.0000', NULL, NULL, '35', '15');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (10, NULL, 'biller', NULL, NULL, 'shvan', 'xalid atrushi', '', 'langay nwe', 'sulaimani', '', '', '', '155', 'sava@outlook.com', '', '', '', '', '', '', '', 0, 'logo2.png', 0, '0.0000', NULL, NULL, '36', '15');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (11, NULL, 'biller', NULL, NULL, 'kak hazhar(hawkar)', 'kavan', '', 'langay nwe', 'dhok', 'tyj67u', '', '', '07504586969', 'dhjdshj@yahoo.com', '', '', '', '', '', '', '', 0, 'logo2.png', 0, '0.0000', NULL, NULL, '37', '16');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (12, 3, 'customer', 1, 'General', 'Linda', 'Linda', '', 'slemani', 'slemani', '', '', '', '0770', 'linda@telerikit.com', '', '', '', '', '', '', NULL, 0, 'logo.png', 0, '0.0000', 1, 'Default', '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (13, 4, 'supplier', NULL, NULL, 'essence', 'essence', '', 'bbb', 'hkll', '', '', '', '249721', 'shdjh@gmil.com', '', '', '', '', '', '', NULL, 0, 'logo.png', 0, '0.0000', NULL, NULL, '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (14, 4, 'supplier', NULL, NULL, 'catrice', 'catrice', '', 'shk', 'jhkh', '', '', '', '54656', 's@gmail.com', '', '', '', '', '', '', NULL, 0, 'logo.png', 0, '0.0000', NULL, NULL, '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (15, 4, 'supplier', NULL, NULL, 'flormar', 'flormar', '', 'wnhk', 'fjlj', '', '', '', '64868', 'k@gmail.com', '', '', '', '', '', '', NULL, 0, 'logo.png', 0, '0.0000', NULL, NULL, '', '');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (16, NULL, 'biller', NULL, NULL, 'kavan', 'kavan', '', 'hjuygiuh', 'jghihjol', '', '', '', '56586', 'd@gmail.com', '', '', '', '', '', '', '', 0, 'logo1.png', 0, '0.0000', NULL, NULL, '41', '17');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (17, NULL, 'biller', NULL, NULL, 'kavan', 'kavan', '', 'JHIY', 'IYUI', '', '', '', '6868', 'g2@GMAIL.COM', '', '', '', '', '', '', 'SDFJDTRYIUOP[OIUYTRETYUIO', 0, 'logo1.png', 0, '0.0000', NULL, NULL, '43', '18');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (18, NULL, 'biller', NULL, NULL, 'testbiller', 'abc', '', 'address', 'karachi', '', '', '', '23123132132', 'adress@gmail.com', '', '', '', '', '', '', '', 0, 'logo1.png', 0, '0.0000', NULL, NULL, '42', '17');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`, `store_id`, `werehouse_id`) VALUES (19, NULL, 'biller', NULL, NULL, 'testbiller', 'test', '', 'address', 'karachi', '', '', '', '123456789', 'testbiller@gmail.com', '', '', '', '', '', '', '', 0, 'logo1.png', 0, '0.0000', NULL, NULL, '', '17');


#
# TABLE STRUCTURE FOR: sma_costing
#

DROP TABLE IF EXISTS `sma_costing`;

CREATE TABLE `sma_costing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `sale_item_id` int(11) NOT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `purchase_item_id` int(11) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `purchase_net_unit_cost` decimal(25,4) DEFAULT NULL,
  `purchase_unit_cost` decimal(25,4) DEFAULT NULL,
  `sale_net_unit_price` decimal(25,4) NOT NULL,
  `sale_unit_price` decimal(25,4) NOT NULL,
  `quantity_balance` decimal(15,4) DEFAULT NULL,
  `inventory` tinyint(1) DEFAULT '0',
  `overselling` tinyint(1) DEFAULT '0',
  `option_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=444 DEFAULT CHARSET=utf8;

INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (7, '2020-01-14', 4, 10, 6, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (8, '2020-01-14', 2, 11, 6, 4, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (9, '2020-01-14', 4, 12, 6, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (10, '2020-01-15', 4, 13, 7, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '2.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (11, '2020-01-23', 2, 14, 8, 4, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (12, '2020-01-23', 3, 15, 8, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (13, '2020-01-23', 4, 16, 8, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (16, '2020-01-23', 2, 19, 10, 4, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '2.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (17, '2020-01-23', 3, 20, 11, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (18, '2020-01-23', 2, 21, 12, 4, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (19, '2020-01-23', 3, 22, 12, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (21, '2020-01-24', 3, 26, 16, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (22, '2020-01-24', 4, 27, 16, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (23, '2020-01-24', 4, 28, 17, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (24, '2020-01-30', 1, 29, 18, 52, '10.0000', '10.0000', '10.0000', '12.0000', '12.0000', '40.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (27, '2020-01-30', 1, 32, 20, 52, '1.0000', '10.0000', '10.0000', '5.0000', '5.0000', '37.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (31, '2020-01-30', 4, 36, 22, 8, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '87.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (32, '2020-01-30', 3, 37, 22, 7, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '88.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (33, '2020-01-30', 1, 38, 22, 52, '10.0000', '10.0000', '10.0000', '5.0000', '5.0000', '26.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (34, '2020-01-30', 1, 39, 23, 52, '10.0000', '10.0000', '10.0000', '5.0000', '5.0000', '16.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (35, '2020-01-30', 3, 40, 23, 7, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '78.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (36, '2020-01-30', 4, 41, 23, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '86.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (37, '2020-01-30', 1, 42, 23, 52, '1.0000', '10.0000', '10.0000', '5.0000', '5.0000', '25.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (38, '2020-01-30', 3, 43, 24, 7, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '68.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (39, '2020-01-30', 4, 44, 24, 8, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '76.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (40, '2020-01-30', 1, 45, 24, 52, '2.0000', '10.0000', '10.0000', '5.0000', '5.0000', '13.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (41, '2020-01-30', 4, 46, 25, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '75.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (42, '2020-01-30', 3, 47, 25, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '67.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (43, '2020-01-30', 4, 48, 26, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '74.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (44, '2020-01-30', 3, 49, 26, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '66.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (57, '2020-01-30', 4, 62, 32, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '30.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (58, '2020-01-30', 3, 63, 32, 7, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '15.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (59, '2020-01-30', 4, 64, 32, 8, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '21.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (60, '2020-01-31', 1, 65, 33, 52, '10.0000', '10.0000', '10.0000', '12.0000', '12.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (61, '2020-01-31', 4, 66, 34, 8, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '10.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (62, '2020-01-31', 1, 67, 35, 52, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '2.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (63, '2020-01-31', 4, 68, 35, 8, '10.0000', '5.0000', '5.0000', '10.0000', '10.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (64, '2020-01-31', 1, 69, 36, 52, '1.0000', '10.0000', '10.0000', '100.0000', '100.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (65, '2020-01-31', 3, 70, 36, 7, '1.0000', '5.0000', '5.0000', '100.0000', '100.0000', '14.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (66, '2020-01-31', 3, 71, 37, 7, '1.0000', '5.0000', '5.0000', '100.0000', '100.0000', '13.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (68, '2020-01-31', 3, 73, 39, 7, '1.0000', '5.0000', '5.0000', '200.0000', '200.0000', '11.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (69, '2020-01-31', 3, 74, 40, 7, '1.0000', '5.0000', '5.0000', '200.0000', '200.0000', '10.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (70, '2020-01-31', 3, 75, 41, 7, '1.0000', '5.0000', '5.0000', '200.0000', '200.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (71, '2020-01-31', 3, 76, 42, 7, '1.0000', '5.0000', '5.0000', '200.0000', '200.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (72, '2020-01-31', 3, 77, 43, 7, '1.0000', '5.0000', '5.0000', '110.0000', '110.0000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (73, '2020-01-31', 3, 78, 44, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (74, '2020-01-31', 3, 79, 45, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '5.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (75, '2020-01-31', 3, 80, 46, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (76, '2020-01-31', 3, 81, 47, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (77, '2020-01-31', 3, 82, 48, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '2.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (78, '2020-01-31', 3, 83, 49, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (79, '2020-01-31', 3, 84, 50, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (80, '2020-02-03', 1, 85, 51, 52, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (81, '2020-02-03', 3, 86, 52, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '9999.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (82, '2020-02-03', 3, 87, 53, 7, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '9998.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (83, '2020-02-03', 3, 88, 54, 7, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '9997.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (84, '2020-02-03', 3, 89, 55, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '9996.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (85, '2020-02-03', 3, 90, 55, 7, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '9996.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (86, '2020-02-03', 3, 91, 56, 49, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (87, '2020-02-03', 3, 92, 57, 48, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (88, '2020-02-03', 3, 93, 58, 47, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (89, '2020-02-03', 3, 94, 58, 47, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (90, '2020-02-03', 3, 95, 59, 45, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (91, '2020-02-03', 3, 96, 59, 45, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (92, '2020-02-05', 3, 97, 60, 43, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (93, '2020-02-05', 4, 98, 61, 25, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '799.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (94, '2020-02-06', 3, 99, 62, 42, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (95, '2020-02-06', 4, 100, 62, 25, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '798.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (96, '2020-02-06', 3, 101, 63, 41, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (97, '2020-02-06', 3, 101, 63, 40, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (98, '2020-02-06', 3, 101, 63, 39, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (99, '2020-02-06', 3, 101, 63, 38, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (100, '2020-02-06', 3, 101, 63, 37, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (101, '2020-02-06', 3, 101, 63, 33, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (102, '2020-02-06', 3, 101, 63, 34, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (103, '2020-02-06', 3, 101, 63, 35, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (104, '2020-02-06', 3, 101, 63, 31, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (105, '2020-02-06', 3, 101, 63, 30, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (106, '2020-02-06', 4, 102, 64, 25, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '797.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (111, '2020-01-01', 3, 105, 65, 29, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (112, '2020-01-01', 3, 105, 65, 24, '19.0000', '5.0000', '5.0000', '8.0000', '8.0000', '681.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (113, '2020-02-14', 1, 106, 66, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '19.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (114, '2020-02-14', 3, 107, 67, 24, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '680.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (115, '2020-02-14', 4, 108, 67, 25, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '796.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (116, '2020-02-14', 3, 108, 67, 24, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '680.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (117, '2020-02-14', 2, 108, 67, 51, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '999.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (118, '2020-02-14', 3, 109, 68, 24, '1.0000', '5.0000', '5.0000', '8.0000', '8.0000', '673.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (119, '2020-02-14', 4, 110, 68, 25, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '790.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (120, '2020-02-14', 3, 110, 68, 24, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '673.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (121, '2020-02-14', 2, 110, 68, 51, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '993.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (122, '2020-02-19', 3, 111, 69, 24, '10.0000', '5.0000', '5.0000', '7.6000', '7.6000', '657.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (123, '2020-02-19', 3, 112, 70, 55, '2.0000', '5.0000', '5.0000', '7.6000', '7.6000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (124, '2020-02-19', 3, 113, 71, 55, '2.0000', '5.0000', '5.0000', '7.6000', '7.6000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (125, '2020-02-19', 2, 114, 72, 51, '2.0000', '5.0000', '5.0000', '9.5000', '9.5000', '986.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (126, '2020-02-19', 3, 115, 73, 55, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (127, '2020-02-19', 3, 115, 73, 24, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '656.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (128, '2020-02-19', 3, 116, 74, 24, '656.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (129, '2020-02-19', 3, 116, 74, 17, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (130, '2020-02-19', 3, 116, 74, 19, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (131, '2020-02-19', 3, 116, 74, 18, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (132, '2020-02-19', 3, 116, 74, 21, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (133, '2020-02-19', 3, 116, 74, 16, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (134, '2020-02-19', 3, 116, 74, 15, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (135, '2020-02-19', 3, 116, 74, 14, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (136, '2020-02-19', 3, 116, 74, 13, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (137, '2020-02-19', 3, 116, 74, 22, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (138, '2020-02-19', 3, 116, 74, 20, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (139, '2020-02-19', 3, 116, 74, 26, '100.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (140, '2020-02-19', 3, 116, 74, 27, '100.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (141, '2020-02-19', 3, 116, 74, 12, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (142, '2020-02-19', 3, 116, 74, 11, '1.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (143, '2020-02-19', 3, 116, 74, 9, '5.0000', '5.0000', '5.0000', '7.6000', '7.6000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (144, '2020-02-19', 3, 116, 74, 7, '127.0000', '5.0000', '5.0000', '7.6000', '7.6000', '109868.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (145, '2020-02-19', 2, 117, 75, 56, '1.0000', '5.0000', '5.0000', '9.5000', '9.5000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (146, '2020-02-19', 3, 118, 76, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109867.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (147, '2020-02-19', 3, 119, 77, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109866.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (148, '2020-02-19', 1, 120, 78, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '18.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (149, '2020-02-19', 3, 121, 79, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109865.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (150, '2020-02-19', 1, 122, 79, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '17.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (151, '2020-02-19', 1, 123, 80, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '16.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (152, '2020-02-19', 1, 124, 81, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '15.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (153, '2020-02-20', 1, 125, 82, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '14.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (154, '2020-02-20', 3, 126, 82, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109864.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (155, '2020-02-20', 1, 127, 83, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '13.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (156, '2020-02-20', 3, 128, 83, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109863.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (157, '2020-02-20', 1, 129, 83, 52, '1.0000', '10.0000', '10.0000', '10.0000', '10.0000', '13.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (158, '2020-02-20', 3, 130, 84, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109862.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (159, '2020-02-20', 3, 131, 85, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109861.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (160, '2020-02-20', 3, 132, 86, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109860.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (161, '2020-02-20', 3, 133, 86, 7, '1.0000', '5.0000', '5.0000', '15.0000', '15.0000', '109860.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (162, '2020-02-19', 1, 134, 87, 52, '1.0000', '10.0000', '10.0000', '4.7500', '4.7500', '11.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (163, '2020-02-19', 1, 135, 87, 52, '1.0000', '10.0000', '10.0000', '7.6000', '7.6000', '11.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (164, '2020-02-20', 1, 136, 88, 52, '1.0000', '10.0000', '10.0000', '5.0000', '5.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (165, '2020-02-20', 1, 137, 89, 52, '1.0000', '10.0000', '10.0000', '5.0000', '5.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (166, '2020-02-20', 1, 138, 90, 52, '1.0000', '10.0000', '10.0000', '5.0000', '5.0000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (167, '2020-02-20', 1, 139, 91, 52, '1.0000', '10.0000', '10.0000', '120.0000', '120.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (168, '2020-02-20', 1, 140, 91, 52, '1.0000', '10.0000', '10.0000', '108.0000', '108.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (169, '2020-02-20', 1, 141, 91, 52, '1.0000', '10.0000', '10.0000', '8.0000', '8.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (170, '2020-02-20', 3, 142, 92, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '109858.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (171, '2020-02-20', 6, 143, 93, 58, '1.0000', '100.0000', '100.0000', '141.0700', '141.0700', '999.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (172, '2020-02-20', 6, 144, 94, 59, '1.0000', '100.0000', '100.0000', '148.5000', '148.5000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (173, '2020-02-20', 1, 145, 95, 52, '1.0000', '10.0000', '10.0000', '120.0000', '120.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (174, '2020-02-20', 6, 146, 96, 59, '1.0000', '100.0000', '100.0000', '148.5000', '148.5000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (175, '2020-02-20', 6, 147, 97, 59, '1.0000', '100.0000', '100.0000', '150.0000', '150.0000', '97.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (176, '2020-02-20', 6, 148, 98, 59, '1.0000', '100.0000', '100.0000', '100.0000', '100.0000', '96.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (177, '2020-02-20', 6, 149, 99, 59, '1.0000', '100.0000', '100.0000', '100.0000', '100.0000', '95.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (178, '2020-02-20', 6, 150, 100, 59, '1.0000', '100.0000', '100.0000', '150.0000', '150.0000', '94.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (179, '2020-02-20', 6, 151, 100, 59, '1.0000', '100.0000', '100.0000', '148.5000', '148.5000', '94.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (180, '2020-02-20', 1, 152, 101, 52, '1.0000', '10.0000', '10.0000', '8.0000', '8.0000', '2.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (181, '2020-02-20', 6, 153, 101, 59, '1.0000', '100.0000', '100.0000', '150.0000', '150.0000', '92.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (182, '2020-02-20', 3, 154, 102, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '109857.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (183, '2020-02-20', 6, 155, 102, 59, '1.0000', '100.0000', '100.0000', '150.0000', '150.0000', '91.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (184, '2020-02-20', 1, 156, 103, 52, '1.0000', '10.0000', '10.0000', '8.0000', '8.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (185, '2020-02-20', 3, 157, 103, 7, '1.0000', '5.0000', '5.0000', '8.5000', '8.5000', '109856.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (186, '2020-02-20', 6, 158, 103, 59, '1.0000', '100.0000', '100.0000', '150.0000', '150.0000', '90.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (187, '2020-02-20', 1, 159, 104, 52, '1.0000', '10.0000', '10.0000', '8.0000', '8.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (188, '2020-02-20', 3, 160, 104, 7, '1.0000', '5.0000', '5.0000', '5.0000', '5.0000', '109855.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (189, '2020-02-20', 6, 161, 104, 59, '1.0000', '100.0000', '100.0000', '150.0000', '150.0000', '89.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (190, '2020-02-21', 6, 162, 105, 59, '1.0000', '100.0000', '100.0000', '148.5000', '148.5000', '88.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (191, '2020-02-21', 6, 163, 106, 59, '1.0000', '100.0000', '100.0000', '148.5000', '148.5000', '87.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (192, '2020-02-19', 2, 164, 107, 51, '1.0000', '5.0000', '5.0000', '9.5000', '9.5000', '975.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (200, '2020-03-02', 4, 9, 6, 9, '1.0000', '1500.0000', '1500.0000', '2000.0000', '2000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (201, '2020-03-02', 4, 10, 7, 9, '1.0000', '1214.2857', '1214.2857', '2000.0000', '2000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (202, '2020-03-02', 4, 11, 8, 12, '1.0000', '1214.2857', '1214.2857', '2000.0000', '2000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (205, '2020-03-02', 4, 14, 11, 14, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (206, '2020-03-02', 4, 15, 12, 14, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '2.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (207, '2020-03-02', 4, 17, 14, 14, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (208, '2020-03-02', 4, 18, 15, 14, '1.0000', '1250.0000', '1250.0000', '2000.0000', '2000.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (209, '2020-03-02', 4, 19, 15, 14, '1.0000', '1250.0000', '1250.0000', '2000.0000', '2000.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (210, '2020-03-02', 4, 20, 16, 14, '1.0000', '1250.0000', '1250.0000', '2000.0000', '2000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (211, '2020-03-02', 5, 21, 17, 19, '1.0000', '11666.6667', '11666.6667', '15000.0000', '15000.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (212, '2020-03-02', 5, 22, 18, 19, '1.0000', '8333.3334', '8333.3334', '15000.0000', '15000.0000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (218, '2020-03-02', 4, 28, 19, 11, '1.0000', '1214.2857', '1214.2857', '2000.0000', '2000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (219, '2020-03-02', 2, 29, 19, 4, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '14.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (222, '2020-03-02', 2, 33, 22, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '19.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (223, '2020-03-02', 2, 34, 22, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '19.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (224, '2020-03-02', 2, 35, 23, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '17.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (225, '2020-03-02', 2, 36, 24, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '16.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (227, '2020-03-02', 2, 38, 25, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '14.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (231, '2020-03-02', 2, 43, 27, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '14.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (232, '2020-03-02', 2, 44, 27, 22, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '14.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (242, '2020-03-14', 2, 7, 6, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '999.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (243, '2020-03-14', 2, 8, 7, 4, '4.0000', '10.0000', '10.0000', '12.0000', '12.0000', '995.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (244, '2020-03-15', 2, 9, 8, 4, '2.0000', '10.0000', '10.0000', '12.0000', '12.0000', '993.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (245, '2020-03-15', 2, 10, 8, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '994.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (247, '2020-03-15', 3, 12, 10, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (248, '2020-03-15', 2, 13, 11, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '990.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (249, '2020-03-15', 3, 14, 11, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (250, '2020-03-15', 2, 15, 12, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '989.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (251, '2020-03-15', 3, 16, 12, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '97.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (252, '2020-03-15', 2, 17, 12, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '989.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (253, '2020-03-15', 3, 18, 12, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '97.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (254, '2020-03-15', 2, 19, 13, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '987.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (255, '2020-03-15', 3, 20, 13, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '95.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (256, '2020-03-15', 2, 21, 13, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '987.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (257, '2020-03-15', 3, 22, 13, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '95.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (258, '2020-03-15', 3, 23, 14, 6, '1.0000', '15.0000', '15.0000', '16.0000', '16.0000', '93.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (260, '2020-03-16', 4, 26, 17, 8, '1.0000', '20.0000', '20.0000', '20.0000', '20.0000', '49.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (261, '2020-02-01', 1, 27, 18, 2, '1.0000', '1000.0000', '1000.0000', '1200.0000', '1200.0000', '1995.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (262, '2020-03-24', 3, 28, 19, 6, '1.0000', '15.0000', '15.0000', '20.0000', '20.0000', '92.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (263, '2020-03-24', 4, 29, 20, 8, '1.0000', '20.0000', '20.0000', '5000.0000', '5000.0000', '48.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (265, '2020-03-24', 4, 31, 22, 8, '1.0000', '20.0000', '20.0000', '5000.0000', '5000.0000', '46.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (266, '2020-03-24', 4, 32, 23, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '45.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (267, '2020-03-24', 4, 33, 24, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '44.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (268, '2020-03-24', 2, 34, 24, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '985.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (269, '2020-03-24', 1, 35, 24, 2, '1.0000', '1000.0000', '1000.0000', '1500.0000', '1500.0000', '1994.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (270, '2020-03-24', 3, 36, 24, 6, '1.0000', '15.0000', '15.0000', '20.0000', '20.0000', '91.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (271, '2020-03-15', 2, 37, 25, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '984.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (272, '2020-03-25', 4, 38, 26, 8, '1.0000', '20.0000', '20.0000', '2500.0000', '2500.0000', '43.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (273, '2020-03-25', 2, 39, 27, 10, '1.0000', '10.0000', '10.0000', '11.4000', '11.4000', '0.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (274, '2020-03-25', 2, 39, 27, 4, '9.0000', '10.0000', '10.0000', '11.4000', '11.4000', '975.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (279, '2020-03-25', 2, 44, 32, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '962.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (280, '2020-03-26', 2, 45, 33, 11, '2.0000', '10.0000', '10.0000', '11.4000', '11.4000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (281, '2020-03-26', 2, 46, 33, 11, '1.0000', '10.0000', '10.0000', '11.4000', '11.4000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (282, '2020-03-25', 4, 47, 34, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '42.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (283, '2020-03-25', 3, 48, 35, 6, '1.0000', '15.0000', '15.0000', '2000.0000', '2000.0000', '90.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (284, '2020-03-25', 4, 49, 35, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '41.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (285, '2020-03-26', 1, 50, 36, 2, '1.0000', '1000.0000', '1000.0000', '1500.0000', '1500.0000', '1993.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (286, '2020-03-26', 2, 51, 36, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '961.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (287, '2020-03-26', 3, 52, 36, 6, '1.0000', '15.0000', '15.0000', '20.0000', '20.0000', '89.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (288, '2020-03-26', 4, 53, 36, 8, '1.0000', '20.0000', '20.0000', '2225.0000', '2225.0000', '40.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (289, '2020-03-26', 2, 54, 37, 4, '1.0000', '10.0000', '10.0000', '11.4000', '11.4000', '960.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (290, '2020-03-26', 3, 55, 37, 6, '1.0000', '15.0000', '15.0000', '19.0000', '19.0000', '88.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (295, '2020-03-26', 2, 60, 39, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '958.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (296, '2020-03-26', 2, 61, 40, 4, '1.0000', '10.0000', '10.0000', '11.4000', '11.4000', '957.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (297, '2020-03-26', 3, 62, 40, 6, '1.0000', '15.0000', '15.0000', '19.0000', '19.0000', '86.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (298, '2020-04-07', 3, 63, 41, 6, '1.0000', '15.0000', '15.0000', '20.0000', '20.0000', '85.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (299, '2020-04-07', 4, 64, 41, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '38.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (300, '2020-04-07', 3, 66, 42, 6, '1.0000', '15.0000', '15.0000', '20.0000', '20.0000', '84.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (301, '2020-04-07', 4, 67, 43, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '37.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (302, '2020-04-07', 4, 68, 44, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '36.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (303, '2020-04-07', 4, 69, 45, 8, '100.0000', '20.0000', '20.0000', '25.0000', '25.0000', '4936.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (304, '2020-04-07', 4, 70, 45, 8, '100.0000', '20.0000', '20.0000', '25.0000', '25.0000', '4936.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (305, '2020-04-23', 4, 71, 46, 13, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '9999.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (306, '2020-04-24', 4, 72, 47, 8, '1.0000', '20.0000', '20.0000', '25.0000', '25.0000', '4835.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (316, '2020-05-02', 3, 10, 6, 25, '1.0000', '5000.0000', '5000.0000', '6400.0000', '6400.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (317, '2020-05-02', 2, 11, 6, 24, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (318, '2020-05-02', 7, 12, 7, 27, '1.0000', '4000.0000', '4000.0000', '6000.0000', '6000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (319, '2020-05-02', 6, 13, 7, 26, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (321, '2020-05-03', 6, 16, 10, 21, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (322, '2020-05-03', 2, 17, 10, 16, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (323, '2020-05-03', 6, 18, 11, 21, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (324, '2020-05-03', 6, 19, 12, 21, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (328, '2020-05-03', 2, 23, 13, 16, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '5.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (329, '2020-05-03', 6, 24, 13, 21, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '5.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (331, '2020-05-06', 4, 29, 16, 40, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (332, '2020-05-06', 6, 30, 16, 38, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (333, '2020-05-06', 2, 31, 16, 36, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (334, '2020-05-06', 4, 32, 17, 40, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (335, '2020-05-06', 7, 33, 18, 39, '1.0000', '4000.0000', '4000.0000', '6000.0000', '6000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (336, '2020-05-06', 2, 34, 19, 16, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (345, '2020-05-13', 7, 49, 32, 15, '4.0000', '4000.0000', '4000.0000', '6000.0000', '6000.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (346, '2020-05-13', 3, 50, 33, 29, '2.0000', '5000.0000', '5000.0000', '6400.0000', '6400.0000', '23.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (347, '2020-05-14', 7, 51, 34, 20, '1.0000', '4000.0000', '4000.0000', '5000.0000', '5000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (349, '2020-05-20', 3, 54, 37, 29, '1.0000', '5000.0000', '5000.0000', '6400.0000', '6400.0000', '22.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (353, '2020-05-27', 2, 58, 39, 16, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (354, '2020-05-27', 3, 59, 39, 17, '1.0000', '5000.0000', '5000.0000', '6400.0000', '6400.0000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (355, '2020-05-27', 10, 60, 39, 45, '1.0000', '6000.0000', '6000.0000', '8000.0000', '8000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (357, '2020-05-27', 10, 63, 42, 45, '1.0000', '6000.0000', '6000.0000', '8000.0000', '8000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (358, '2020-05-27', 7, 64, 43, 20, '1.0000', '4000.0000', '4000.0000', '5000.0000', '5000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (365, '2020-05-29', 2, 10, 10, 4, '99.0000', '100.0000', '100.0000', '95.0000', '95.0000', '1.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (368, '2020-05-29', 1, 2, 2, 2, '1.0000', '100.0000', '100.0000', '100.0000', '100.0000', '89.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (373, '2020-06-02', 1, 10, 9, 2, '2.0000', '100.0000', '100.0000', '110.0000', '110.0000', '92.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (375, '2020-06-03', 3, 13, 12, 6, '1.0000', '5000.0000', '5000.0000', '6400.0000', '6400.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (376, '2020-06-03', 3, 14, 13, 6, '3.0000', '5000.0000', '5000.0000', '6400.0000', '6400.0000', '6.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (378, '2020-06-03', 4, 17, 16, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '19.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (379, '2020-06-03', 4, 18, 16, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '19.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (380, '2020-06-03', 4, 19, 17, 8, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '17.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (382, '2020-06-03', 4, 22, 19, 7, '2.0000', '5.0000', '5.0000', '10.0000', '10.0000', '78.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (383, '2020-06-03', 4, 23, 20, 7, '1.0000', '5.0000', '5.0000', '10.0000', '10.0000', '75.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (387, '2020-06-20', 3, 6, 4, 8, '1.0000', '10.0000', '10.0000', '15.0000', '15.0000', '49.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (388, '2020-06-20', 3, 7, 5, 8, '1.0000', '10.0000', '10.0000', '15.0000', '15.0000', '48.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (389, '2020-06-20', 3, 8, 6, 8, '1.0000', '10.0000', '10.0000', '15.0000', '15.0000', '47.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (390, '2020-06-21', 1, 9, 7, 6, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '49.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (391, '2020-06-21', 1, 10, 8, 6, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '48.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (392, '2020-06-21', 1, 11, 9, 6, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '47.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (393, '2020-06-21', 1, 12, 10, 6, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '46.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (394, '2020-07-01', 1, 13, 11, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (395, '2020-07-01', 1, 14, 11, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (396, '2020-07-06', 4, 7, 5, 12, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '49.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (397, '2020-07-06', 4, 8, 6, 12, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '48.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (398, '2020-07-06', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '49.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (400, '2020-07-06', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (401, '2020-07-06', 1, 2, 2, 2, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (404, '2020-07-06', 3, 1, 1, 17, '1.0000', '3000.0000', '3000.0000', '4000.0000', '4000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (405, '2020-07-06', 3, 2, 2, 17, '1.0000', '3000.0000', '3000.0000', '4000.0000', '4000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (407, '2020-07-06', 2, 4, 4, 15, '1.0000', '10000.0000', '10000.0000', '15000.0000', '15000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (408, '2020-07-06', 5, 5, 5, 19, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (409, '2020-07-06', 5, 6, 6, 10, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (410, '2020-07-06', 5, 7, 7, 10, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (411, '2020-07-06', 5, 8, 8, 10, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '7.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (412, '2020-07-06', 3, 9, 9, 11, '1.0000', '3000.0000', '3000.0000', '4000.0000', '4000.0000', '9.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (413, '2020-07-06', 3, 10, 10, 11, '1.0000', '3000.0000', '3000.0000', '4000.0000', '4000.0000', '8.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (414, '2020-07-06', 3, 11, 11, 23, '1.0000', '3000.0000', '3000.0000', '4000.0000', '4000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (415, '2020-07-06', 5, 12, 12, 25, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (416, '2020-07-06', 5, 1, 1, 6, '1.0000', '3000.0000', '3000.0000', '5000.0000', '5000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (417, '2020-07-06', 1, 2, 2, 15, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (419, '2020-07-06', 4, 4, 4, 19, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (420, '2020-07-06', 4, 5, 5, 8, '1.0000', '2000.0000', '2000.0000', '3000.0000', '3000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (421, '2020-07-06', 1, 6, 6, 9, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (422, '2020-07-06', 3, 7, 7, 7, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '4.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (423, '2020-07-06', 3, 8, 8, 7, '1.0000', '1000.0000', '1000.0000', '2000.0000', '2000.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (424, '2020-07-06', 1, 9, 9, 9, '1.0000', '10000.0000', '10000.0000', '12000.0000', '12000.0000', '3.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (425, '2020-07-06', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '16.0000', '16.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (426, '2020-07-06', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '16.0000', '16.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (427, '2020-07-06', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '16.0000', '16.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (428, '2020-07-06', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (429, '2020-07-06', 1, 2, 2, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (435, '2020-07-09', 2, 8, 4, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (436, '2020-07-09', 1, 9, 4, 2, '1.0000', '10.0000', '10.0000', '18.0000', '18.0000', '92.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (437, '2020-07-09', 1, 10, 5, 2, '1.0000', '10.0000', '10.0000', '18.0000', '18.0000', '91.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (438, '2020-07-09', 2, 11, 6, 4, '1.0000', '10.0000', '10.0000', '12.0000', '12.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (439, '2020-08-08', 1, 1, 1, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '99.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (440, '2020-08-08', 1, 2, 2, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '98.0000', 1, 0, NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES (441, '2020-08-08', 1, 3, 2, 2, '1.0000', '10.0000', '10.0000', '20.0000', '20.0000', '98.0000', 1, 0, NULL);


#
# TABLE STRUCTURE FOR: sma_coupon
#

DROP TABLE IF EXISTS `sma_coupon`;

CREATE TABLE `sma_coupon` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `coupon_code` varchar(60) NOT NULL,
  `start_amount` varchar(60) DEFAULT NULL,
  `end_amount` varchar(60) DEFAULT NULL,
  `type` varchar(60) DEFAULT NULL,
  `cashback_type` varchar(60) DEFAULT NULL,
  `cashback` varchar(255) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

#
# TABLE STRUCTURE FOR: sma_currencies
#

DROP TABLE IF EXISTS `sma_currencies`;

CREATE TABLE `sma_currencies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(5) NOT NULL,
  `name` varchar(55) NOT NULL,
  `rate` decimal(12,4) NOT NULL,
  `auto_update` tinyint(1) NOT NULL DEFAULT '0',
  `symbol` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_currencies` (`id`, `code`, `name`, `rate`, `auto_update`, `symbol`) VALUES (1, 'SR', 'SR', '1.0000', 0, 'SR');


#
# TABLE STRUCTURE FOR: sma_customer_groups
#

DROP TABLE IF EXISTS `sma_customer_groups`;

CREATE TABLE `sma_customer_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `percent` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES (1, 'General', 0);
INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES (2, 'Reseller', -5);
INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES (3, 'Distributor', -15);


#
# TABLE STRUCTURE FOR: sma_date_format
#

DROP TABLE IF EXISTS `sma_date_format`;

CREATE TABLE `sma_date_format` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `js` varchar(20) NOT NULL,
  `php` varchar(20) NOT NULL,
  `sql` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES (1, 'mm-dd-yyyy', 'm-d-Y', '%m-%d-%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES (2, 'mm/dd/yyyy', 'm/d/Y', '%m/%d/%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES (3, 'mm.dd.yyyy', 'm.d.Y', '%m.%d.%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES (4, 'dd-mm-yyyy', 'd-m-Y', '%d-%m-%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES (5, 'dd/mm/yyyy', 'd/m/Y', '%d/%m/%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES (6, 'dd.mm.yyyy', 'd.m.Y', '%d.%m.%Y');


#
# TABLE STRUCTURE FOR: sma_deleted_sales
#

DROP TABLE IF EXISTS `sma_deleted_sales`;

CREATE TABLE `sma_deleted_sales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `staff_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT '0.0000',
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `sale_status` varchar(20) DEFAULT NULL,
  `payment_status` varchar(20) DEFAULT NULL,
  `payment_term` tinyint(4) DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_items` smallint(6) DEFAULT NULL,
  `pos` tinyint(1) NOT NULL DEFAULT '0',
  `paid` decimal(25,4) DEFAULT '0.0000',
  `return_id` int(11) DEFAULT NULL,
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `return_sale_ref` varchar(55) DEFAULT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `return_sale_total` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `rounding` decimal(10,4) DEFAULT NULL,
  `suspend_note` varchar(255) DEFAULT NULL,
  `api` tinyint(1) DEFAULT '0',
  `shop` tinyint(1) DEFAULT '0',
  `address_id` int(11) DEFAULT NULL,
  `reserve_id` int(11) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `manual_payment` varchar(55) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  `store_id` int(11) NOT NULL,
  `deleted_by` int(4) NOT NULL,
  `deleted_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;

INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (1, '2020-03-12 00:04:19', 'SALE/POS2020/03/0440', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '1500000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '1500000.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1000, 1, '1.0000', 2, '0.0000', NULL, 'SR2020/03/0024', NULL, '-1500000.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'cf519402e9aca75ddf6940b93025a524d8a82e636360531ce578578fda1fdd46', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (2, '2020-03-12 00:08:00', 'SALE/POS2020/03/0440', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', NULL, '-1500000.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '-1500000.0000', 'returned', 'pending', NULL, NULL, 7, NULL, NULL, NULL, 1, '0.0000', NULL, '0.0000', NULL, 'SR2020/03/0024', 1, '0.0000', NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (3, '2020-03-12 00:09:08', 'SALE/POS2020/03/0441', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '1500.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '1500.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '1500.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'fb8eb0508625c1c7a031577ff80ae276ab8aac47ab5f63c8a5f33a788647e6f7', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (4, '2020-03-12 00:09:50', 'SALE/POS2020/03/0442', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '3000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '3000.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 2, 1, '3.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'b81dbce5713eae2170ed0b7570935c18cbda044d0ed5bfeb34ca285dab339dc4', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (5, '2020-03-12 00:13:03', 'SALE/POS2020/03/0443', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '1200.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '1200.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '1200.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '1b95b3c8983ff5fd5a6a4f091fe087cdc635085f66301fd487a2ac9dc7c8e6da', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (6, '2020-03-14 21:21:00', 'SALE2020/03/0086', 4, 'walking', 10, 'xalid atrushi', 15, '', '', '12.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '12.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '12.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, 'cb25fdfd436842deccd0f1a6e6363fbf0831d0dc227ef8a203b1319df9e5537d', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (7, '2020-03-14 21:23:00', 'SALE2020/03/0087', 4, 'walking', 10, 'xalid atrushi', 15, '', '', '48.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '48.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 4, 0, '48.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '71f5f9f417d5e445226e64d940469fa881e15be640e16cd3269ac4176c112322', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (8, '2020-03-15 19:19:00', 'SALE2020/03/0088', 12, 'Linda', 10, 'xalid atrushi', 15, '', '', '36.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '36.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 3, 0, '36.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '15d731e082cfbdd035dea2b9890038cd03c73984295d978ac6aa2c004e40da84', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (9, '2020-03-15 19:25:16', 'SALE/POS2020/03/0444', 12, 'Linda', 10, 'xalid atrushi', 15, '', '', '12.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '12.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '12.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'dfac21f05684f403307348f304d23d08a6bc95e9f9c1cfd050fbf909e90b8a6f', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (10, '2020-03-15 19:39:35', 'SALE/POS2020/03/0445', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '16.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '16.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '16.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '3a91c589ac15ea5a5232b36b179fe64cb90da159fb89e844d736436a9128fa7b', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (11, '2020-03-15 19:57:49', 'SALE/POS2020/03/0446', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '28.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '28.0000', 'completed', 'paid', 0, NULL, 9, NULL, NULL, 2, 1, '28.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'a75382662824468883bd41219e2b17fe65836d35a00de18a72781563943deb54', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (12, '2020-03-15 19:58:49', 'SALE/POS2020/03/0447', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '56.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '56.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 4, 1, '56.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'ddd835e165b61cfdea4b00db1397195784742ee08b9e1bf9221e8a20c8c7379f', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (13, '2020-03-15 19:59:25', 'SALE/POS2020/03/0448', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '56.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '56.0000', 'completed', 'paid', 0, NULL, 9, NULL, NULL, 4, 1, '56.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '2c1b774ab720e2a8f0e33bcfc9bb8d14968937a587ec4f5298c593c9435e46ea', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (14, '2020-03-15 20:00:02', 'SALE/POS2020/03/0449', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '16.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '16.0000', 'completed', 'paid', 0, NULL, 9, NULL, NULL, 1, 1, '16.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '6b5af1d8feb196f1ab9d0609328612da692d51db92b4cf5d5fe24256578cf093', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (15, '2020-03-15 20:09:07', 'SALE/POS2020/03/0450', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '20.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '20.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '20.0000', 16, '0.0000', NULL, 'SR2020/03/0025', NULL, '-20.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'b846ef1f1a1ca536db20ff3aa9be173ffc577f49c7b3844b1bf9f6e9878387f7', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (16, '2020-03-15 21:02:00', 'SALE/POS2020/03/0450', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', NULL, '-20.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '-20.0000', 'returned', 'paid', NULL, NULL, 7, NULL, NULL, NULL, 1, '-20.0000', NULL, '0.0000', NULL, 'SR2020/03/0025', 15, '0.0000', NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (17, '2020-03-16 16:36:38', 'SALE/POS2020/03/0451', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '20.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '20.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '20.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '754651bcd49582a830609bedbec69ff44eb445797289c1091dbcd3605e1a78c6', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (18, '2020-02-01 06:50:00', 'SALE2020/03/0089', 4, 'walking', 10, 'xalid atrushi', 15, '', '', '1200.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '1200.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '1200.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, 'da20043277118a357649134430ddee40fb57bc3fa02b3b70ff71ba9ca8f3300c', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (19, '2020-03-24 07:59:22', 'SALE/POS2020/03/0452', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '20.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '20.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '20.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '63f6b82d91a7a9874f81a0f3073c012dd5d6d70c1d8482f448f8ac00b4e41a35', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (20, '2020-03-24 07:59:52', 'SALE/POS2020/03/0453', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '5000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '5000.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1, 1, '5.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'b4a7a534bac5d8d18bb1a64efc12cce718fff9f0f6188745c45bd19c502ce18c', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (21, '2020-03-24 08:15:55', 'SALE/POS2020/03/0454', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '5000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '5000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '5000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '89f655b78158b013af070a823c8b14121d8255cf0e83bb324c70fe3a45cf5359', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (22, '2020-03-24 08:58:29', 'SALE/POS2020/03/0455', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '5000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '5000.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1, 1, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'abb55e13fdacd1ce6bd8b28705d2fddb325aa9bb32d73a84984ee3137a131216', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (23, '2020-03-24 08:59:08', 'SALE/POS2020/03/0456', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '25.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '25.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1, 1, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'c71b61584285d47c90f2a20f5844f56fdc074a95916f18d49d4815ecd44a5e6b', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (24, '2020-03-24 08:59:31', 'SALE/POS2020/03/0457', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '1557.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '1557.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 4, 1, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '53cab01e02a6efc57bc38492ee106d2bbe0811ea32265bd817a2f74fd81a9a9f', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (25, '2020-03-15 19:20:00', 'SALE2020/03/0089', 12, 'Linda', 10, 'xalid atrushi', 15, '', '', '12.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '12.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '12.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '931200bea4ff074acca8d41cf853a9b748b205d9b5f7ab4cb1c679b351bc5000', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (26, '2020-03-25 08:48:31', 'SALE/POS2020/03/0458', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '2500.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '2500.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1, 1, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '7edbe9bdc738e59e2e00d3898100dd5943832b9b4484b56f411648f7e4e20b26', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (27, '2020-03-25 23:54:00', 'SALE2020/03/0090', 6, 'biller123', 10, 'xalid atrushi', 15, '', '', '114.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '114.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 10, 0, '114.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '31eca7ea93fb3d8a09ad05a30985bec81c704104b95bb3983830ec1943e34805', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (28, '2020-03-25 23:59:00', 'SALE2020/03/0091', 6, 'biller123', 3, 'store1', 16, '', '', '11.4000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '11.4000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '11.4000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '5a31d8d91eda2ae678d0223d33c36395e6bbef3f5dfee24b45f4e36ec09fe094', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (30, '2020-03-26 00:09:00', 'SALE2020/03/0093', 6, 'biller123', 11, 'kavan', 16, '', '', '11.4000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '11.4000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '11.4000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '0fbd6492790489152f48d63df9a417a0782fc9de49752b0b540fe0394f0db9a6', NULL, NULL, NULL, NULL, 37, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (32, '2020-03-25 09:18:16', 'SALE/POS2020/03/0459', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '12.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '12.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1, 1, '2.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '43c27f2124fa37e5c88eadc41996e90badc0a1bc4b1da908e3a11af2d7176c3b', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (33, '2020-03-26 00:24:00', 'SALE2020/03/0095', 6, 'biller123', 10, 'xalid atrushi', 16, '', '', '34.2000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '34.2000', 'completed', 'pending', 0, NULL, 7, NULL, NULL, 3, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '0cf3adef50add54c01955ef9a41fe60565de3cd2cacb16ae28c54d1715c312a5', NULL, NULL, NULL, NULL, 0, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (34, '2020-03-25 10:06:38', 'SALE/POS2020/03/0460', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '25.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '25.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '25.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '663718a52506022064635f629a483a1db225738f91a788fb5725090ce2aed9b9', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (35, '2020-03-25 10:07:00', 'SALE/POS2020/03/0461', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '2025.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '2025.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '2025.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '90b23d20c31f468e011f59b37b34a81702da35eedab7f79b3ad8d5a95fc08b98', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (36, '2020-03-26 14:09:12', 'SALE/POS2020/03/0462', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '3757.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '3757.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 4, 1, '3757.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '951507da701b8a43697c4837760ca5ad32e0ed4ee920764ae773ace7204041c7', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (37, '2020-03-26 16:14:00', 'SALE2020/03/0096', 6, 'biller123', 10, 'xalid atrushi', 15, '', '', '30.4000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '30.4000', 'completed', 'pending', 0, NULL, 7, NULL, NULL, 2, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, 'b4917f1420e93df6194f2740ca201a98c08cb139fa8fdaf085e7bff2618aed20', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (38, '2020-03-26 14:28:36', 'SALE/POS2020/03/0463', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '11545.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '11545.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 4, 1, '11545.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '58b6f180a34210464694bee51f414703c677769baa8c6f90cc1450912c95ac5d', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (39, '2020-03-26 16:33:00', 'SALE2020/03/0097', 4, 'walking', 10, 'xalid atrushi', 15, '', '', '12.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '12.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '12.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '2409ba3b66f8d58050fd7f5ff5b9c364bded546988e60224946a417fbb9cd074', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (40, '2020-01-01 16:34:00', 'SALE2020/03/0098', 6, 'biller123', 10, 'xalid atrushi', 15, '', '', '30.4000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '30.4000', 'completed', 'pending', 0, NULL, 7, NULL, NULL, 2, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '1914164a8d50fedc41fc6cdff52ae1699280759cd153b3fa78892a4425cb3378', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (41, '2020-04-03 13:43:40', 'SALE/POS2020/04/0464', 1, 'naturalsweets', 10, 'xalid atrushi', 15, '', '', '25.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '25.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '25.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'e549d2070d1050cffd399ce2e9e710dda09633402092120b91e5bd4e2b64c641', NULL, NULL, NULL, NULL, 36, 0, '0000-00-00 00:00:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (44, '2020-03-26 16:33:00', 'SALE2020/03/0097', 4, 'walking', 10, 'xalid atrushi', 15, '', '', '12.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '12.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '12.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '2409ba3b66f8d58050fd7f5ff5b9c364bded546988e60224946a417fbb9cd074', NULL, NULL, NULL, NULL, 36, 7, '2020-04-15 11:06:51');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (45, '2020-05-03 00:33:01', 'SALE/POS2020/05/0478', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '17000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '17000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '17000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '66fc0935cb5c04a467ca536710cca97e343e35e8824e3ceb90c6faec927b0f11', NULL, NULL, NULL, NULL, 41, 7, '2020-05-03 10:11:18');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (46, '2020-05-03 00:33:01', 'SALE/POS2020/05/0478', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '17000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '17000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '17000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '66fc0935cb5c04a467ca536710cca97e343e35e8824e3ceb90c6faec927b0f11', NULL, NULL, NULL, NULL, 41, 7, '2020-05-03 10:11:39');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (47, '2020-05-03 00:33:01', 'SALE/POS2020/05/0478', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '17000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '17000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '17000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '66fc0935cb5c04a467ca536710cca97e343e35e8824e3ceb90c6faec927b0f11', NULL, NULL, NULL, NULL, 41, 7, '2020-05-03 10:13:02');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (48, '2020-05-03 10:13:52', 'SALE/POS2020/05/0481', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '35000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '35000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 5, 1, '35000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'beb556be4629d40f52b4a758bbbd4cbb7b42fe76ee93ad4bfad63dbbb14df0e6', NULL, NULL, NULL, NULL, 41, 7, '2020-05-03 10:15:04');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (49, '2020-05-06 13:55:45', 'SALE/POS2020/05/0486', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '14000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '14000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '14000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'a165761161d56f325a3ed017444097e93da0d623e876935622146e6f5e1178c0', NULL, NULL, NULL, NULL, 41, 7, '2020-05-06 14:24:56');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (50, '2020-05-06 13:55:45', 'SALE/POS2020/05/0486', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '14000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '14000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '14000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'a165761161d56f325a3ed017444097e93da0d623e876935622146e6f5e1178c0', NULL, NULL, NULL, NULL, 41, 7, '2020-05-06 14:25:10');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (51, '2020-05-06 13:55:45', 'SALE/POS2020/05/0486', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '14000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '14000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '14000.0000', 20, '0.0000', NULL, 'SR2020/05/0025', NULL, '-2000.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'a165761161d56f325a3ed017444097e93da0d623e876935622146e6f5e1178c0', NULL, NULL, NULL, NULL, 41, 7, '2020-05-06 14:29:43');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (52, '2020-05-06 13:55:45', 'SALE/POS2020/05/0486', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '14000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '14000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '14000.0000', 20, '0.0000', NULL, 'SR2020/05/0025', NULL, '-2000.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'a165761161d56f325a3ed017444097e93da0d623e876935622146e6f5e1178c0', NULL, NULL, NULL, NULL, 41, 7, '2020-05-06 14:29:56');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (53, '2020-05-06 17:51:05', 'SALE/POS2020/05/0487', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '12000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '12000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '12000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '40b235c34339b74aaecec94a4af91f72c92cc2c9e47bdbe5ea0aecac03b37e96', NULL, NULL, NULL, NULL, 41, 7, '2020-05-06 17:52:28');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (54, '2020-05-06 17:56:26', 'SALE/POS2020/05/0489', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '12000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '12000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '12000.0000', 27, '0.0000', NULL, 'SR2020/05/0025', NULL, '-12000.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'c0dea04111c90a4d49ef349158f63575c03f63854e249998880509e455fe2e65', NULL, NULL, NULL, NULL, 41, 7, '2020-05-07 11:18:10');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (55, '2020-05-06 17:56:26', 'SALE/POS2020/05/0489', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '12000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '12000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '12000.0000', 27, '0.0000', NULL, 'SR2020/05/0025', NULL, '-12000.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'c0dea04111c90a4d49ef349158f63575c03f63854e249998880509e455fe2e65', NULL, NULL, NULL, NULL, 41, 7, '2020-05-07 11:25:55');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (56, '2020-05-13 12:06:00', 'SALE2020/05/0100', 4, 'walking', 16, 'kavan', 17, '', '', '2000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '2000.0000', 'completed', 'pending', 0, NULL, 7, NULL, NULL, 1, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '2a40824f24c53ed3925d2ce9dd1f9308557cf19f13943b49049d66a4632272a7', NULL, NULL, NULL, NULL, 41, 7, '2020-05-13 10:13:12');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (57, '2020-05-13 12:06:00', 'SALE2020/05/0100', 4, 'walking', 16, 'kavan', 17, '', '', '2000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '2000.0000', 'completed', 'pending', 0, NULL, 7, NULL, NULL, 1, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '2a40824f24c53ed3925d2ce9dd1f9308557cf19f13943b49049d66a4632272a7', NULL, NULL, NULL, NULL, 41, 7, '2020-05-13 10:31:48');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (58, '2020-05-13 12:47:00', 'SALE2020/05/0102', 4, 'walking', 16, 'kavan', 17, '', '', '6000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '6000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '6000.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, 'b1f4cac13844ec5b35b94f31ae5c8bae232d83184845e940c8f7e303fbf4b7d0', NULL, NULL, NULL, NULL, 41, 7, '2020-05-13 11:25:40');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (59, '2020-05-13 12:36:00', 'SALE2020/05/0101', 12, 'Linda', 16, 'kavan', 17, '', '', '12000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '12000.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 0, '12000.0000', 30, '0.0000', NULL, 'SR2020/05/0025', NULL, '-6000.0000', NULL, NULL, 0, 0, NULL, NULL, '66a14506871c3bb5a0a8e11faa58d8e330ea9d18937e75973b9e5a42eb8a1b2f', NULL, NULL, NULL, NULL, 41, 7, '2020-05-13 11:30:04');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (60, '2020-05-13 12:06:00', 'SALE2020/05/0100', 4, 'walking', 16, 'kavan', 17, '', '', '4000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '4000.0000', 'completed', 'due', 0, NULL, 7, 7, '2020-05-13 10:31:48', 2, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '2a40824f24c53ed3925d2ce9dd1f9308557cf19f13943b49049d66a4632272a7', NULL, NULL, NULL, NULL, 41, 7, '2020-05-13 11:30:04');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (61, '2020-05-21 16:05:00', 'SALE2020/05/0108', 4, 'walking', 10, 'xalid atrushi', 17, '', '', '13000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '13000.0000', 'completed', 'pending', 2, '2020-05-23', 7, NULL, NULL, 3, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '5b27071c6a9f2e5b5ba0aca867eaacee5ccf070335c062cf27380a902b9d2cb3', NULL, NULL, NULL, NULL, 0, 7, '2020-05-22 17:33:00');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (62, '2020-05-27 22:01:00', 'SALE2020/05/0109', 6, 'biller123', 10, 'xalid atrushi', 17, '', '', '142.5000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '142.5000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 0, '142.5000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, 'f2314f0b8a33aaa7b4d477402bd8d330da618ff0ccf506654c911bc13b861b20', NULL, NULL, NULL, NULL, 0, 7, '2020-05-28 08:15:01');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (63, '2020-05-28 08:21:46', 'SALE/POS2020/05/0494', 1, 'naturalsweets', 1, 'naturalsweets', 17, '', '', '150.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '150.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '150.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '936bb3c9eea6c6248c4bdab1beb953528f9b9e6bdf8aaf5855a01eb5740d8130', NULL, NULL, NULL, NULL, 42, 7, '2020-05-28 08:23:05');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (64, '2020-05-30 23:44:56', 'SALE/POS2020/05/0502', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '6400.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '6400.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '6400.0000', 6, '0.0000', NULL, 'SR2020/05/0025', NULL, '-6400.0000', '0.0000', NULL, 0, 0, NULL, NULL, '6e4b992713fb4a067a29ad6f477f7388f6d386d5b19f6ccef45cfd9222ded468', NULL, NULL, NULL, NULL, 41, 7, '2020-06-01 09:38:51');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (65, '2020-05-30 23:43:36', 'SALE/POS2020/05/0501', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '6400.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '6400.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '6400.0000', 7, '0.0000', NULL, 'SR2020/06/0025', NULL, '-6400.0000', '0.0000', NULL, 0, 0, NULL, NULL, '899a6ac9d3e62206219921031feebad3190a018d573efba9f46f0fdd55aecdac', NULL, NULL, NULL, NULL, 41, 7, '2020-06-01 11:08:29');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (66, '2020-05-29 15:06:29', 'SALE/POS2020/05/0498', 1, 'naturalsweets', 18, 'abc', 17, '', '', '100.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '100.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '100.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, '27a0524ae5aeed80fd313ffb982d78905b661c107b3276d48cfcec26c78c3d6b', NULL, NULL, NULL, NULL, 42, 7, '2020-06-01 11:39:33');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (67, '2020-06-02 12:11:26', 'SALE/POS2020/06/0503', 1, 'naturalsweets', 18, 'abc', 17, '', '', '110.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '110.0000', 'completed', 'due', 0, NULL, 7, NULL, NULL, 1, 1, '10.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'deff31b9da530d7be1fc0a89a57914b6d1dfdd9ea4ca6fa9b81ff4ec6028ee59', NULL, NULL, NULL, NULL, 42, 7, '2020-06-02 12:12:13');
INSERT INTO `sma_deleted_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`, `deleted_by`, `deleted_on`) VALUES (68, '2020-08-15 11:59:00', 'SALE2020/08/0115', 4, 'walking', 10, 'xalid atrushi', 17, '', '', '20.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '20.0000', 'completed', 'pending', 1, '2020-08-16', 7, NULL, NULL, 1, 0, '0.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', NULL, NULL, 0, 0, NULL, NULL, '5a9611d39e347b0370b13c835d8ab3559cb1f91600228b0645ffe80e0d2d38f4', NULL, NULL, NULL, NULL, 0, 7, '2020-08-15 12:00:05');


#
# TABLE STRUCTURE FOR: sma_deliveries
#

DROP TABLE IF EXISTS `sma_deliveries`;

CREATE TABLE `sma_deliveries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sale_id` int(11) NOT NULL,
  `do_reference_no` varchar(50) NOT NULL,
  `sale_reference_no` varchar(50) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `address` varchar(1000) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `status` varchar(15) DEFAULT NULL,
  `attachment` varchar(50) DEFAULT NULL,
  `delivered_by` varchar(50) DEFAULT NULL,
  `received_by` varchar(50) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `sma_deliveries` (`id`, `date`, `sale_id`, `do_reference_no`, `sale_reference_no`, `customer`, `address`, `note`, `status`, `attachment`, `delivered_by`, `received_by`, `created_by`, `updated_by`, `updated_at`) VALUES (3, '2020-05-13 13:38:00', 32, 'DO2020/05/0002', 'SALE2020/05/0103', 'Linda', '<p>slemani slemani   <br>Tel: 0770 Email: linda@telerikit.com</p>', '', 'delivered', NULL, '', '', 7, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_deposits
#

DROP TABLE IF EXISTS `sma_deposits`;

CREATE TABLE `sma_deposits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `company_id` int(11) NOT NULL,
  `amount` decimal(25,4) NOT NULL,
  `paid_by` varchar(50) DEFAULT NULL,
  `note` varchar(255) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_discount
#

DROP TABLE IF EXISTS `sma_discount`;

CREATE TABLE `sma_discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `start_amount` varchar(60) DEFAULT NULL,
  `end_amount` varchar(60) DEFAULT NULL,
  `discount_type` varchar(60) DEFAULT NULL,
  `categories` varchar(255) DEFAULT NULL,
  `type` varchar(60) DEFAULT NULL,
  `customer_price_group` varchar(60) DEFAULT NULL,
  `discount` varchar(60) DEFAULT NULL,
  `account` varchar(255) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

#
# TABLE STRUCTURE FOR: sma_employee
#

DROP TABLE IF EXISTS `sma_employee`;

CREATE TABLE `sma_employee` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `e_name` varchar(255) NOT NULL,
  `mobile` varchar(255) NOT NULL,
  `id_card` varchar(255) NOT NULL,
  `id_card_expire` varchar(255) NOT NULL,
  `Vehicle_insurance` enum('yes','no') NOT NULL DEFAULT 'no',
  `Vehicle_insurance_expire` varchar(50) NOT NULL,
  `Health_Insurance` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `Calculation_Finance` varchar(200) NOT NULL,
  `salary` varchar(200) NOT NULL,
  `id_card_renewal_fee` varchar(10) NOT NULL,
  `ministry_of_labor_fee` varchar(10) NOT NULL,
  `insurance_renewal_fee` varchar(10) NOT NULL,
  `vehicle_insurance_fee` varchar(10) NOT NULL,
  `health_insurance_fee` varchar(10) NOT NULL,
  `account_holder` varchar(100) NOT NULL,
  `bank_name` varchar(255) NOT NULL,
  `account_number` varchar(20) NOT NULL,
  `iban_number` varchar(20) NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_employee_loan
#

DROP TABLE IF EXISTS `sma_employee_loan`;

CREATE TABLE `sma_employee_loan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transaction_id` int(11) NOT NULL,
  `empid` int(11) NOT NULL,
  `loan_amt` varchar(10) NOT NULL,
  `note` text NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `return_amt` varchar(10) NOT NULL DEFAULT '0',
  `return_date` datetime NOT NULL,
  `remaining_amt` varchar(10) NOT NULL,
  `loan_summery` text,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

#
# TABLE STRUCTURE FOR: sma_employee_salary
#

DROP TABLE IF EXISTS `sma_employee_salary`;

CREATE TABLE `sma_employee_salary` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `empid` int(11) NOT NULL,
  `salary_amt` varchar(10) NOT NULL,
  `note` text NOT NULL,
  `total_unpaid_leaves` int(2) DEFAULT NULL,
  `salary_period` varchar(50) DEFAULT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

#
# TABLE STRUCTURE FOR: sma_expense_categories
#

DROP TABLE IF EXISTS `sma_expense_categories`;

CREATE TABLE `sma_expense_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(55) NOT NULL,
  `name` varchar(55) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_expenses
#

DROP TABLE IF EXISTS `sma_expenses`;

CREATE TABLE `sma_expenses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference` varchar(50) NOT NULL,
  `amount` decimal(25,4) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `created_by` varchar(55) NOT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `store_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_gift_card_topups
#

DROP TABLE IF EXISTS `sma_gift_card_topups`;

CREATE TABLE `sma_gift_card_topups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `card_id` int(11) NOT NULL,
  `amount` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `card_id` (`card_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_gift_cards
#

DROP TABLE IF EXISTS `sma_gift_cards`;

CREATE TABLE `sma_gift_cards` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `card_no` varchar(20) NOT NULL,
  `value` decimal(25,4) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `customer` varchar(255) DEFAULT NULL,
  `balance` decimal(25,4) NOT NULL,
  `expiry` date DEFAULT NULL,
  `created_by` varchar(55) NOT NULL,
  `is_loyality_card` int(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `card_no` (`card_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_groups
#

DROP TABLE IF EXISTS `sma_groups`;

CREATE TABLE `sma_groups` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `description` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (1, 'owner', 'Owner');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (2, 'admin', 'Administrator');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (3, 'customer', 'Customer');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (4, 'supplier', 'Supplier');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (5, 'sales', 'Sales Staff');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (9, 'salescounter', 'Sales Counter');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES (10, 'people', 'FOr add Payment');


#
# TABLE STRUCTURE FOR: sma_login_attempts
#

DROP TABLE IF EXISTS `sma_login_attempts`;

CREATE TABLE `sma_login_attempts` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `ip_address` varbinary(16) NOT NULL,
  `login` varchar(100) NOT NULL,
  `time` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_loyality_points
#

DROP TABLE IF EXISTS `sma_loyality_points`;

CREATE TABLE `sma_loyality_points` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amount_spent` double DEFAULT '0',
  `loyality_points` int(11) DEFAULT '0',
  `per_points` int(11) DEFAULT NULL,
  `credit` int(11) DEFAULT NULL,
  `updated_on` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

INSERT INTO `sma_loyality_points` (`id`, `amount_spent`, `loyality_points`, `per_points`, `credit`, `updated_on`, `updated_by`) VALUES (1, '20', 10, 900, 60, '2019-05-04 04:26:13', 3);


#
# TABLE STRUCTURE FOR: sma_loyality_points_cust
#

DROP TABLE IF EXISTS `sma_loyality_points_cust`;

CREATE TABLE `sma_loyality_points_cust` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `points` int(11) DEFAULT '0',
  `customer_id` int(11) DEFAULT '0',
  `amount_redeemed` double DEFAULT NULL,
  `last_redeemed_amount` double DEFAULT NULL,
  `updated_on` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

INSERT INTO `sma_loyality_points_cust` (`id`, `points`, `customer_id`, `amount_redeemed`, `last_redeemed_amount`, `updated_on`, `updated_by`) VALUES (1, 30, 1, '0', '0', '2020-08-08 17:50:14', 7);


#
# TABLE STRUCTURE FOR: sma_migrations
#

DROP TABLE IF EXISTS `sma_migrations`;

CREATE TABLE `sma_migrations` (
  `version` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_migrations` (`version`) VALUES ('315');


#
# TABLE STRUCTURE FOR: sma_newsletters
#

DROP TABLE IF EXISTS `sma_newsletters`;

CREATE TABLE `sma_newsletters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `from_date` datetime DEFAULT NULL,
  `till_date` datetime DEFAULT NULL,
  `scope` tinyint(1) NOT NULL DEFAULT '3',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_newsletters` (`id`, `title`, `message`, `date`, `from_date`, `till_date`, `scope`) VALUES (1, 'Test Title', '<p>Thank you for purchasing POS.</p>', '2014-08-14 05:30:57', '2015-01-01 00:00:00', '2017-01-01 00:00:00', 3);


#
# TABLE STRUCTURE FOR: sma_newsletters1
#

DROP TABLE IF EXISTS `sma_newsletters1`;

CREATE TABLE `sma_newsletters1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `slug` varchar(55) DEFAULT NULL,
  `message_body` text,
  PRIMARY KEY (`id`),
  KEY `name` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (1, 'pantaloon', 'pantaloon', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (2, 'levies', 'levies', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (3, 'addidas', 'addidas', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (4, 'lenovo', 'lenovo', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (5, 'Canon', 'canon', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (6, 'acer', 'acer', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (7, 'Samsung', 'samsung', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (8, 'Microsoft', 'microsoft', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (9, 'LG', 'lg', NULL);
INSERT INTO `sma_newsletters1` (`id`, `title`, `slug`, `message_body`) VALUES (10, 'News Letter 1', 'newsletter', 'text fgdfgfg');


#
# TABLE STRUCTURE FOR: sma_notifications
#

DROP TABLE IF EXISTS `sma_notifications`;

CREATE TABLE `sma_notifications` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `comment` text NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `from_date` datetime DEFAULT NULL,
  `till_date` datetime DEFAULT NULL,
  `scope` tinyint(1) NOT NULL DEFAULT '3',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_order_ref
#

DROP TABLE IF EXISTS `sma_order_ref`;

CREATE TABLE `sma_order_ref` (
  `ref_id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `so` int(11) NOT NULL DEFAULT '1',
  `qu` int(11) NOT NULL DEFAULT '1',
  `po` int(11) NOT NULL DEFAULT '1',
  `to` int(11) NOT NULL DEFAULT '1',
  `pos` int(11) NOT NULL DEFAULT '1',
  `do` int(11) NOT NULL DEFAULT '1',
  `pay` int(11) NOT NULL DEFAULT '1',
  `re` int(11) NOT NULL DEFAULT '1',
  `rep` int(11) NOT NULL DEFAULT '1',
  `ex` int(11) NOT NULL DEFAULT '1',
  `ppay` int(11) NOT NULL DEFAULT '1',
  `qa` int(11) DEFAULT '1',
  PRIMARY KEY (`ref_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_order_ref` (`ref_id`, `date`, `so`, `qu`, `po`, `to`, `pos`, `do`, `pay`, `re`, `rep`, `ex`, `ppay`, `qa`) VALUES (1, '2015-03-01', 116, 3, 128, 151, 569, 3, 760, 25, 1, 39, 59, 339);


#
# TABLE STRUCTURE FOR: sma_payments
#

DROP TABLE IF EXISTS `sma_payments`;

CREATE TABLE `sma_payments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `sale_id` int(11) DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `reference_no` varchar(50) NOT NULL,
  `transaction_id` varchar(50) DEFAULT NULL,
  `paid_by` varchar(20) NOT NULL,
  `cheque_no` varchar(20) DEFAULT NULL,
  `cc_no` varchar(20) DEFAULT NULL,
  `cc_holder` varchar(25) DEFAULT NULL,
  `cc_month` varchar(2) DEFAULT NULL,
  `cc_year` varchar(4) DEFAULT NULL,
  `cc_type` varchar(20) DEFAULT NULL,
  `amount` decimal(25,4) NOT NULL,
  `currency` varchar(3) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `type` varchar(20) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `pos_paid` decimal(25,4) DEFAULT '0.0000',
  `pos_balance` decimal(25,4) DEFAULT '0.0000',
  `approval_code` varchar(50) DEFAULT NULL,
  `txn_id` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_payments` (`id`, `date`, `sale_id`, `return_id`, `purchase_id`, `reference_no`, `transaction_id`, `paid_by`, `cheque_no`, `cc_no`, `cc_holder`, `cc_month`, `cc_year`, `cc_type`, `amount`, `currency`, `created_by`, `attachment`, `type`, `note`, `pos_paid`, `pos_balance`, `approval_code`, `txn_id`) VALUES (1, '2020-08-08 17:50:14', 1, NULL, NULL, 'IPAY2020/08/0758', NULL, 'cash', '', '', '', '', '', '', '20.0000', NULL, 7, NULL, 'received', '', '20.0000', '0.0000', NULL, 0);
INSERT INTO `sma_payments` (`id`, `date`, `sale_id`, `return_id`, `purchase_id`, `reference_no`, `transaction_id`, `paid_by`, `cheque_no`, `cc_no`, `cc_holder`, `cc_month`, `cc_year`, `cc_type`, `amount`, `currency`, `created_by`, `attachment`, `type`, `note`, `pos_paid`, `pos_balance`, `approval_code`, `txn_id`) VALUES (2, '2020-08-08 17:51:15', 2, NULL, NULL, 'IPAY2020/08/0759', NULL, 'cash', '', '', '', '', '', '', '40.0000', NULL, 7, NULL, 'received', '', '40.0000', '0.0000', NULL, 0);


#
# TABLE STRUCTURE FOR: sma_paypal
#

DROP TABLE IF EXISTS `sma_paypal`;

CREATE TABLE `sma_paypal` (
  `id` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL,
  `account_email` varchar(255) NOT NULL,
  `paypal_currency` varchar(3) NOT NULL DEFAULT 'USD',
  `fixed_charges` decimal(25,4) NOT NULL DEFAULT '2.0000',
  `extra_charges_my` decimal(25,4) NOT NULL DEFAULT '3.9000',
  `extra_charges_other` decimal(25,4) NOT NULL DEFAULT '4.4000',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_paypal` (`id`, `active`, `account_email`, `paypal_currency`, `fixed_charges`, `extra_charges_my`, `extra_charges_other`) VALUES (1, 1, 'mypaypal@paypal.com', 'USD', '0.0000', '0.0000', '0.0000');


#
# TABLE STRUCTURE FOR: sma_permissions
#

DROP TABLE IF EXISTS `sma_permissions`;

CREATE TABLE `sma_permissions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `products-index` tinyint(1) DEFAULT '0',
  `products-add` tinyint(1) DEFAULT '0',
  `products-edit` tinyint(1) DEFAULT '0',
  `products-delete` tinyint(1) DEFAULT '0',
  `products-cost` tinyint(1) DEFAULT '0',
  `products-price` tinyint(1) DEFAULT '0',
  `quotes-index` tinyint(1) DEFAULT '0',
  `quotes-add` tinyint(1) DEFAULT '0',
  `quotes-edit` tinyint(1) DEFAULT '0',
  `quotes-pdf` tinyint(1) DEFAULT '0',
  `quotes-email` tinyint(1) DEFAULT '0',
  `quotes-delete` tinyint(1) DEFAULT '0',
  `sales-index` tinyint(1) DEFAULT '0',
  `sales-add` tinyint(1) DEFAULT '0',
  `sales-edit` tinyint(1) DEFAULT '0',
  `sales-pdf` tinyint(1) DEFAULT '0',
  `sales-email` tinyint(1) DEFAULT '0',
  `sales-delete` tinyint(1) DEFAULT '0',
  `purchases-index` tinyint(1) DEFAULT '0',
  `purchases-add` tinyint(1) DEFAULT '0',
  `purchases-edit` tinyint(1) DEFAULT '0',
  `purchases-pdf` tinyint(1) DEFAULT '0',
  `purchases-email` tinyint(1) DEFAULT '0',
  `purchases-delete` tinyint(1) DEFAULT '0',
  `transfers-index` tinyint(1) DEFAULT '0',
  `transfers-add` tinyint(1) DEFAULT '0',
  `transfers-edit` tinyint(1) DEFAULT '0',
  `transfers-pdf` tinyint(1) DEFAULT '0',
  `transfers-email` tinyint(1) DEFAULT '0',
  `transfers-delete` tinyint(1) DEFAULT '0',
  `customers-index` tinyint(1) DEFAULT '0',
  `customers-add` tinyint(1) DEFAULT '0',
  `customers-edit` tinyint(1) DEFAULT '0',
  `customers-delete` tinyint(1) DEFAULT '0',
  `suppliers-index` tinyint(1) DEFAULT '0',
  `suppliers-add` tinyint(1) DEFAULT '0',
  `suppliers-edit` tinyint(1) DEFAULT '0',
  `suppliers-delete` tinyint(1) DEFAULT '0',
  `sales-deliveries` tinyint(1) DEFAULT '0',
  `sales-add_delivery` tinyint(1) DEFAULT '0',
  `sales-edit_delivery` tinyint(1) DEFAULT '0',
  `sales-delete_delivery` tinyint(1) DEFAULT '0',
  `sales-email_delivery` tinyint(1) DEFAULT '0',
  `sales-pdf_delivery` tinyint(1) DEFAULT '0',
  `sales-gift_cards` tinyint(1) DEFAULT '0',
  `sales-add_gift_card` tinyint(1) DEFAULT '0',
  `sales-edit_gift_card` tinyint(1) DEFAULT '0',
  `sales-delete_gift_card` tinyint(1) DEFAULT '0',
  `pos-index` tinyint(1) DEFAULT '0',
  `sales-return_sales` tinyint(1) DEFAULT '0',
  `reports-index` tinyint(1) DEFAULT '0',
  `reports-warehouse_stock` tinyint(1) DEFAULT '0',
  `reports-quantity_alerts` tinyint(1) DEFAULT '0',
  `reports-expiry_alerts` tinyint(1) DEFAULT '0',
  `reports-products` tinyint(1) DEFAULT '0',
  `reports-daily_sales` tinyint(1) DEFAULT '0',
  `reports-monthly_sales` tinyint(1) DEFAULT '0',
  `reports-sales` tinyint(1) DEFAULT '0',
  `reports-payments` tinyint(1) DEFAULT '0',
  `reports-purchases` tinyint(1) DEFAULT '0',
  `reports-profit_loss` tinyint(1) DEFAULT '0',
  `reports-customers` tinyint(1) DEFAULT '0',
  `reports-suppliers` tinyint(1) DEFAULT '0',
  `reports-staff` tinyint(1) DEFAULT '0',
  `reports-register` tinyint(1) DEFAULT '0',
  `sales-payments` tinyint(1) DEFAULT '0',
  `purchases-payments` tinyint(1) DEFAULT '0',
  `purchases-expenses` tinyint(1) DEFAULT '0',
  `products-adjustments` tinyint(1) NOT NULL DEFAULT '0',
  `bulk_actions` tinyint(1) NOT NULL DEFAULT '0',
  `customers-deposits` tinyint(1) NOT NULL DEFAULT '0',
  `customers-delete_deposit` tinyint(1) NOT NULL DEFAULT '0',
  `products-barcode` tinyint(1) NOT NULL DEFAULT '0',
  `purchases-return_purchases` tinyint(1) NOT NULL DEFAULT '0',
  `reports-expenses` tinyint(1) NOT NULL DEFAULT '0',
  `reports-daily_purchases` tinyint(1) DEFAULT '0',
  `reports-monthly_purchases` tinyint(1) DEFAULT '0',
  `products-stock_count` tinyint(1) DEFAULT '0',
  `edit_price` tinyint(1) DEFAULT '0',
  `returns-index` tinyint(1) DEFAULT '0',
  `returns-add` tinyint(1) DEFAULT '0',
  `returns-edit` tinyint(1) DEFAULT '0',
  `returns-delete` tinyint(1) DEFAULT '0',
  `returns-email` tinyint(1) DEFAULT '0',
  `returns-pdf` tinyint(1) DEFAULT '0',
  `reports-tax` tinyint(1) DEFAULT '0',
  `products-adjustments_stores` tinyint(1) NOT NULL DEFAULT '0',
  `reports-warehouses_stock` tinyint(1) NOT NULL DEFAULT '0',
  `reports-store_stock` tinyint(1) NOT NULL DEFAULT '0',
  `reports-govt_vat` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (1, 5, 1, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 1, NULL, 1, 1, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, 1, 1, 1, NULL, NULL, 1, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, 0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0);
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (3, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0);
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (4, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0);
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (5, 9, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, NULL, 1, 1, 1, 1, 1, 1, 1, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 1, 0, 0, 1, 1, 1, 1, NULL, 1, NULL, 1, 0, 1, 1, 0, 0, 1, NULL, NULL, 0, 1, 1, 0, 0, 0, 1, 1, NULL, 1, NULL, 1, 1, 1, NULL, 1, 1, 1, 0, 0, 0, 0);
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (6, 10, 1, 1, 1, NULL, 1, 1, 1, 1, 1, 1, 1, NULL, 1, 1, 1, 1, 1, NULL, 1, 1, 1, 1, 1, NULL, 1, 1, 1, 1, 1, NULL, 1, 1, 1, NULL, 1, 1, 1, NULL, 1, 1, 1, NULL, NULL, 1, 1, 1, 1, NULL, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 1, 1, 1, 1, 1, 1, 1);
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`, `products-adjustments_stores`, `reports-warehouses_stock`, `reports-store_stock`, `reports-govt_vat`) VALUES (7, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);


#
# TABLE STRUCTURE FOR: sma_pos_register
#

DROP TABLE IF EXISTS `sma_pos_register`;

CREATE TABLE `sma_pos_register` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `cash_in_hand` decimal(25,4) NOT NULL,
  `status` varchar(10) NOT NULL,
  `total_cash` decimal(25,4) DEFAULT NULL,
  `total_cheques` int(11) DEFAULT NULL,
  `total_cc_slips` int(11) DEFAULT NULL,
  `total_cash_submitted` decimal(25,4) DEFAULT NULL,
  `total_cheques_submitted` int(11) DEFAULT NULL,
  `total_cc_slips_submitted` int(11) DEFAULT NULL,
  `note` text,
  `closed_at` timestamp NULL DEFAULT NULL,
  `transfer_opened_bills` varchar(50) DEFAULT NULL,
  `closed_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_pos_register` (`id`, `date`, `user_id`, `store_id`, `cash_in_hand`, `status`, `total_cash`, `total_cheques`, `total_cc_slips`, `total_cash_submitted`, `total_cheques_submitted`, `total_cc_slips_submitted`, `note`, `closed_at`, `transfer_opened_bills`, `closed_by`) VALUES (1, '2020-08-08 17:49:05', 7, 41, '0.0000', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_pos_settings
#

DROP TABLE IF EXISTS `sma_pos_settings`;

CREATE TABLE `sma_pos_settings` (
  `pos_id` int(1) NOT NULL,
  `cat_limit` int(11) NOT NULL,
  `pro_limit` int(11) NOT NULL,
  `default_category` int(11) NOT NULL,
  `default_customer` int(11) NOT NULL,
  `default_biller` int(11) NOT NULL,
  `display_time` varchar(3) NOT NULL DEFAULT 'yes',
  `cf_title1` varchar(255) DEFAULT NULL,
  `cf_title2` varchar(255) DEFAULT NULL,
  `cf_value1` varchar(255) DEFAULT NULL,
  `cf_value2` varchar(255) DEFAULT NULL,
  `receipt_printer` varchar(55) DEFAULT NULL,
  `cash_drawer_codes` varchar(55) DEFAULT NULL,
  `focus_add_item` varchar(55) DEFAULT NULL,
  `add_manual_product` varchar(55) DEFAULT NULL,
  `customer_selection` varchar(55) DEFAULT NULL,
  `add_customer` varchar(55) DEFAULT NULL,
  `toggle_category_slider` varchar(55) DEFAULT NULL,
  `toggle_subcategory_slider` varchar(55) DEFAULT NULL,
  `cancel_sale` varchar(55) DEFAULT NULL,
  `suspend_sale` varchar(55) DEFAULT NULL,
  `print_items_list` varchar(55) DEFAULT NULL,
  `finalize_sale` varchar(55) DEFAULT NULL,
  `today_sale` varchar(55) DEFAULT NULL,
  `open_hold_bills` varchar(55) DEFAULT NULL,
  `close_register` varchar(55) DEFAULT NULL,
  `keyboard` tinyint(1) NOT NULL,
  `pos_printers` varchar(255) DEFAULT NULL,
  `java_applet` tinyint(1) NOT NULL,
  `product_button_color` varchar(20) NOT NULL DEFAULT 'default',
  `tooltips` tinyint(1) DEFAULT '1',
  `paypal_pro` tinyint(1) DEFAULT '0',
  `stripe` tinyint(1) DEFAULT '0',
  `rounding` tinyint(1) DEFAULT '0',
  `char_per_line` tinyint(4) DEFAULT '42',
  `pin_code` varchar(20) DEFAULT NULL,
  `purchase_code` varchar(100) DEFAULT 'purchase_code',
  `envato_username` varchar(50) DEFAULT 'envato_username',
  `version` varchar(10) DEFAULT '3.2.14',
  `after_sale_page` tinyint(1) DEFAULT '0',
  `item_order` tinyint(1) DEFAULT '0',
  `authorize` tinyint(1) DEFAULT '0',
  `toggle_brands_slider` varchar(55) DEFAULT NULL,
  `remote_printing` tinyint(1) DEFAULT '1',
  `printer` int(11) DEFAULT NULL,
  `order_printers` varchar(55) DEFAULT NULL,
  `auto_print` tinyint(1) DEFAULT '0',
  `customer_details` tinyint(1) DEFAULT NULL,
  `local_printers` tinyint(1) DEFAULT NULL,
  `track_quantity` int(1) DEFAULT '1',
  PRIMARY KEY (`pos_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_pos_settings` (`pos_id`, `cat_limit`, `pro_limit`, `default_category`, `default_customer`, `default_biller`, `display_time`, `cf_title1`, `cf_title2`, `cf_value1`, `cf_value2`, `receipt_printer`, `cash_drawer_codes`, `focus_add_item`, `add_manual_product`, `customer_selection`, `add_customer`, `toggle_category_slider`, `toggle_subcategory_slider`, `cancel_sale`, `suspend_sale`, `print_items_list`, `finalize_sale`, `today_sale`, `open_hold_bills`, `close_register`, `keyboard`, `pos_printers`, `java_applet`, `product_button_color`, `tooltips`, `paypal_pro`, `stripe`, `rounding`, `char_per_line`, `pin_code`, `purchase_code`, `envato_username`, `version`, `after_sale_page`, `item_order`, `authorize`, `toggle_brands_slider`, `remote_printing`, `printer`, `order_printers`, `auto_print`, `customer_details`, `local_printers`, `track_quantity`) VALUES (1, 22, 20, 6, 1, 1, '1', 'GST Reg', 'VAT Reg', '123456789', '987654321', NULL, 'x1C', 'Ctrl+F3', 'Ctrl+Shift+M', 'Ctrl+Shift+C', 'Ctrl+Shift+A', 'Ctrl+F11', 'Ctrl+F12', 'F4', 'F7', 'F9', 'F8', 'Ctrl+F1', 'Ctrl+F2', 'Ctrl+F10', 1, NULL, 0, 'default', 1, 0, 0, 0, 42, '1234', 'purchase_code', 'envato_username', '3.2.14', 0, 0, 0, '', 1, NULL, 'null', 1, 0, 1, NULL);


#
# TABLE STRUCTURE FOR: sma_price_groups
#

DROP TABLE IF EXISTS `sma_price_groups`;

CREATE TABLE `sma_price_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `sma_price_groups` (`id`, `name`) VALUES (3, 'darzan');
INSERT INTO `sma_price_groups` (`id`, `name`) VALUES (1, 'Default');
INSERT INTO `sma_price_groups` (`id`, `name`) VALUES (2, 'special');


#
# TABLE STRUCTURE FOR: sma_printers
#

DROP TABLE IF EXISTS `sma_printers`;

CREATE TABLE `sma_printers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(55) NOT NULL,
  `type` varchar(25) NOT NULL,
  `profile` varchar(25) NOT NULL,
  `char_per_line` tinyint(3) unsigned DEFAULT NULL,
  `path` varchar(255) DEFAULT NULL,
  `ip_address` varbinary(45) DEFAULT NULL,
  `port` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_product_photos
#

DROP TABLE IF EXISTS `sma_product_photos`;

CREATE TABLE `sma_product_photos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `photo` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_product_prices
#

DROP TABLE IF EXISTS `sma_product_prices`;

CREATE TABLE `sma_product_prices` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `price_group_id` int(11) NOT NULL,
  `price` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `price_group_id` (`price_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_product_variants
#

DROP TABLE IF EXISTS `sma_product_variants`;

CREATE TABLE `sma_product_variants` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `name` varchar(55) NOT NULL,
  `cost` decimal(25,4) DEFAULT NULL,
  `price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_products
#

DROP TABLE IF EXISTS `sma_products`;

CREATE TABLE `sma_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `unit` int(11) DEFAULT NULL,
  `cost` decimal(25,4) DEFAULT NULL,
  `price` decimal(25,4) NOT NULL,
  `alert_quantity` decimal(15,4) DEFAULT '20.0000',
  `image` varchar(255) DEFAULT 'no_image.png',
  `category_id` int(11) NOT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `cf1` varchar(255) DEFAULT NULL,
  `cf2` varchar(255) DEFAULT NULL,
  `cf3` varchar(255) DEFAULT NULL,
  `cf4` varchar(255) DEFAULT NULL,
  `cf5` varchar(255) DEFAULT NULL,
  `cf6` varchar(255) DEFAULT NULL,
  `quantity` decimal(15,4) DEFAULT '0.0000',
  `tax_rate` int(11) DEFAULT NULL,
  `track_quantity` tinyint(1) DEFAULT '1',
  `details` varchar(1000) DEFAULT NULL,
  `warehouse` int(11) DEFAULT NULL,
  `barcode_symbology` varchar(55) NOT NULL DEFAULT 'code128',
  `file` varchar(100) DEFAULT NULL,
  `product_details` text,
  `tax_method` tinyint(1) DEFAULT '0',
  `type` varchar(55) NOT NULL DEFAULT 'standard',
  `supplier1` int(11) DEFAULT NULL,
  `supplier1price` decimal(25,4) DEFAULT NULL,
  `supplier2` int(11) DEFAULT NULL,
  `supplier2price` decimal(25,4) DEFAULT NULL,
  `supplier3` int(11) DEFAULT NULL,
  `supplier3price` decimal(25,4) DEFAULT NULL,
  `supplier4` int(11) DEFAULT NULL,
  `supplier4price` decimal(25,4) DEFAULT NULL,
  `supplier5` int(11) DEFAULT NULL,
  `supplier5price` decimal(25,4) DEFAULT NULL,
  `promotion` tinyint(1) DEFAULT '0',
  `promo_price` decimal(25,4) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `supplier1_part_no` varchar(50) DEFAULT NULL,
  `supplier2_part_no` varchar(50) DEFAULT NULL,
  `supplier3_part_no` varchar(50) DEFAULT NULL,
  `supplier4_part_no` varchar(50) DEFAULT NULL,
  `supplier5_part_no` varchar(50) DEFAULT NULL,
  `sale_unit` int(11) DEFAULT NULL,
  `purchase_unit` int(11) DEFAULT NULL,
  `brand` int(11) DEFAULT NULL,
  `slug` varchar(55) DEFAULT NULL,
  `featured` tinyint(1) DEFAULT NULL,
  `weight` decimal(10,4) DEFAULT NULL,
  `hsn_code` int(11) DEFAULT NULL,
  `views` int(11) NOT NULL DEFAULT '0',
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  `second_name` varchar(255) DEFAULT NULL,
  `scale_weight` enum('1','0') NOT NULL DEFAULT '0',
  `warehouse_id` varchar(100) DEFAULT '0',
  `store_id` varchar(100) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `category_id` (`category_id`),
  KEY `id` (`id`),
  KEY `id_2` (`id`),
  KEY `category_id_2` (`category_id`),
  KEY `unit` (`unit`),
  KEY `brand` (`brand`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`, `scale_weight`, `warehouse_id`, `store_id`) VALUES (1, '123', 'test()', 2, '10.0000', '20.0000', '0.0000', 'no_image.png', 6, NULL, '', '', '', '', '', '', NULL, 1, 1, '', NULL, 'code128', '', '', 1, 'standard', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 2, 2, 0, 'test', NULL, '0.0000', NULL, 0, 0, '', '0', '0', '0');


#
# TABLE STRUCTURE FOR: sma_purchase_items
#

DROP TABLE IF EXISTS `sma_purchase_items`;

CREATE TABLE `sma_purchase_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `purchase_id` int(11) DEFAULT NULL,
  `transfer_id` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(50) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_cost` decimal(25,4) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(20) DEFAULT NULL,
  `discount` varchar(20) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `expiry` date DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `quantity_balance` decimal(15,4) DEFAULT '0.0000',
  `date` date NOT NULL,
  `status` varchar(50) NOT NULL,
  `unit_cost` decimal(25,4) DEFAULT NULL,
  `real_unit_cost` decimal(25,4) DEFAULT NULL,
  `quantity_received` decimal(15,4) DEFAULT NULL,
  `supplier_part_no` varchar(50) DEFAULT NULL,
  `purchase_item_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES (1, 1, NULL, 1, '123', 'test()', NULL, '10.0000', '100.0000', 17, 0, '0.0000', 1, '0', '0', '0.0000', NULL, '1000.0000', '0.0000', '2020-08-08', 'received', '10.0000', '10.0000', '100.0000', NULL, NULL, 2, 'pcs', '100.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES (2, NULL, NULL, 1, '123', 'test()', NULL, '10.0000', '100.0000', 17, 41, '0.0000', 1, '0', NULL, NULL, NULL, '1000.0000', '1104.0000', '2020-08-08', 'received', '10.0000', '10.0000', '100.0000', NULL, NULL, 2, 'pcs', '100.0000', NULL, NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_purchases
#

DROP TABLE IF EXISTS `sma_purchases`;

CREATE TABLE `sma_purchases` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `reference_no` varchar(55) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `supplier_id` int(11) NOT NULL,
  `supplier` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `note` varchar(1000) NOT NULL,
  `total` decimal(25,4) DEFAULT NULL,
  `product_discount` decimal(25,4) DEFAULT NULL,
  `order_discount_id` varchar(20) DEFAULT NULL,
  `order_discount` decimal(25,4) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT NULL,
  `product_tax` decimal(25,4) DEFAULT NULL,
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT NULL,
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `paid` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `status` varchar(55) DEFAULT '',
  `payment_status` varchar(20) DEFAULT 'pending',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `payment_term` tinyint(4) DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `return_purchase_ref` varchar(55) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `return_purchase_total` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_purchases` (`id`, `reference_no`, `date`, `supplier_id`, `supplier`, `warehouse_id`, `note`, `total`, `product_discount`, `order_discount_id`, `order_discount`, `total_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `paid`, `status`, `payment_status`, `created_by`, `updated_by`, `updated_at`, `attachment`, `payment_term`, `due_date`, `return_id`, `surcharge`, `return_purchase_ref`, `purchase_id`, `return_purchase_total`, `cgst`, `sgst`, `igst`) VALUES (1, 'PO2020/08/0127', '2020-08-08 17:49:00', 14, 'catrice', 17, '', '1000.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '1000.0000', '0.0000', 'received', 'pending', 7, NULL, NULL, NULL, 0, NULL, NULL, '0.0000', NULL, NULL, '0.0000', NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_quote_items
#

DROP TABLE IF EXISTS `sma_quote_items`;

CREATE TABLE `sma_quote_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `quote_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `quote_id` (`quote_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_quotes
#

DROP TABLE IF EXISTS `sma_quotes`;

CREATE TABLE `sma_quotes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `internal_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT NULL,
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT NULL,
  `total_tax` decimal(25,4) DEFAULT NULL,
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `status` varchar(20) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `supplier` varchar(55) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_return_items
#

DROP TABLE IF EXISTS `sma_return_items`;

CREATE TABLE `sma_return_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `return_id` int(11) unsigned NOT NULL,
  `product_id` int(11) unsigned NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `store_id` int(11) NOT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `return_id` (`return_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`return_id`),
  KEY `return_id_2` (`return_id`,`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_returns
#

DROP TABLE IF EXISTS `sma_returns`;

CREATE TABLE `sma_returns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `store_id` int(11) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `staff_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT '0.0000',
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_items` smallint(6) DEFAULT NULL,
  `paid` decimal(25,4) DEFAULT '0.0000',
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  `return_type` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_sale_items
#

DROP TABLE IF EXISTS `sma_sale_items`;

CREATE TABLE `sma_sale_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sale_id` int(11) unsigned NOT NULL,
  `product_id` int(11) unsigned NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `store_id` int(11) NOT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `sale_item_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_id` (`sale_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`sale_id`),
  KEY `sale_id_2` (`sale_id`,`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES (1, 1, 1, '123', 'test<br>', 'standard', NULL, '20.0000', '20.0000', '1.0000', 17, 41, '0.0000', 1, '0', '0', '0.0000', '20.0000', '', '20.0000', NULL, 2, 'pcs', '1.0000', '', NULL, NULL, NULL, NULL);
INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES (2, 2, 1, '123', 'test<br>', 'standard', NULL, '20.0000', '20.0000', '1.0000', 17, 41, '0.0000', 1, '0', '0', '0.0000', '20.0000', '', '20.0000', NULL, 2, 'pcs', '1.0000', '', NULL, NULL, NULL, NULL);
INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES (3, 2, 1, '123', 'test<br>', 'standard', NULL, '20.0000', '20.0000', '1.0000', 17, 41, '0.0000', 1, '0', '0', '0.0000', '20.0000', '', '20.0000', NULL, 2, 'pcs', '1.0000', '', NULL, NULL, NULL, NULL);
INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES (5, 3, 1, '123', 'test()', 'standard', NULL, '20.0000', '20.0000', '1.0000', 17, 0, '0.0000', 1, '0', '0', '0.0000', '20.0000', '', '20.0000', NULL, 2, 'pcs', '1.0000', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `store_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES (6, 4, 1, '123', 'test()', 'standard', NULL, '20.0000', '20.0000', '-1.0000', 17, 0, '0.0000', 1, '0', '0', '0.0000', '-20.0000', '', '20.0000', 5, 2, 'pcs', '-1.0000', NULL, NULL, NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_sales
#

DROP TABLE IF EXISTS `sma_sales`;

CREATE TABLE `sma_sales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `staff_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT '0.0000',
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `sale_status` varchar(20) DEFAULT NULL,
  `payment_status` varchar(20) DEFAULT NULL,
  `payment_term` tinyint(4) DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_items` smallint(6) DEFAULT NULL,
  `pos` tinyint(1) NOT NULL DEFAULT '0',
  `paid` decimal(25,4) DEFAULT '0.0000',
  `return_id` int(11) DEFAULT NULL,
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `return_sale_ref` varchar(55) DEFAULT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `return_sale_total` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `rounding` decimal(10,4) DEFAULT NULL,
  `suspend_note` varchar(255) DEFAULT NULL,
  `api` tinyint(1) DEFAULT '0',
  `shop` tinyint(1) DEFAULT '0',
  `address_id` int(11) DEFAULT NULL,
  `reserve_id` int(11) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `manual_payment` varchar(55) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  `store_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

INSERT INTO `sma_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`) VALUES (1, '2020-08-08 17:50:14', 'SALE/POS2020/08/0567', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '20.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '20.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 1, 1, '20.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'f6c81e791e90f5b810313ac61841c0d69a8a2813be48e070a77714708d0d201e', NULL, NULL, NULL, NULL, 41);
INSERT INTO `sma_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`) VALUES (2, '2020-08-08 17:51:15', 'SALE/POS2020/08/0568', 1, 'naturalsweets', 16, 'kavan', 17, '', '', '40.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '40.0000', 'completed', 'paid', 0, NULL, 7, NULL, NULL, 2, 1, '40.0000', NULL, '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', NULL, 0, 0, NULL, NULL, 'eb2730ac77963ed51d0ac9d72e8e0a97919cba066eb783a41df0b2655a3ed732', NULL, NULL, NULL, NULL, 41);
INSERT INTO `sma_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`) VALUES (3, '2020-08-13 11:50:00', 'SALE2020/08/0115', 4, 'walking', 10, 'xalid atrushi', 17, '', '', '20.0000', '0.0000', '', '0.0000', '0.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', '20.0000', 'completed', 'due', 1, '2020-08-14', 7, 7, '2020-08-15 12:00:05', 1, 0, '0.0000', 4, '0.0000', NULL, 'SR2020/08/0025', NULL, '-20.0000', NULL, NULL, 0, 0, NULL, NULL, '5a9611d39e347b0370b13c835d8ab3559cb1f91600228b0645ffe80e0d2d38f4', NULL, NULL, NULL, NULL, 0);
INSERT INTO `sma_sales` (`id`, `date`, `reference_no`, `customer_id`, `customer`, `biller_id`, `biller`, `warehouse_id`, `note`, `staff_note`, `total`, `product_discount`, `order_discount_id`, `total_discount`, `order_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `sale_status`, `payment_status`, `payment_term`, `due_date`, `created_by`, `updated_by`, `updated_at`, `total_items`, `pos`, `paid`, `return_id`, `surcharge`, `attachment`, `return_sale_ref`, `sale_id`, `return_sale_total`, `rounding`, `suspend_note`, `api`, `shop`, `address_id`, `reserve_id`, `hash`, `manual_payment`, `cgst`, `sgst`, `igst`, `store_id`) VALUES (4, '2020-08-21 22:57:00', 'SALE2020/08/0115', 4, 'walking', 10, 'xalid atrushi', 17, '', NULL, '-20.0000', '0.0000', NULL, '0.0000', '0.0000', '0.0000', 0, '0.0000', '0.0000', '0.0000', '-20.0000', 'returned', 'pending', NULL, NULL, 7, NULL, NULL, NULL, 0, '0.0000', NULL, '0.0000', NULL, 'SR2020/08/0025', 3, '0.0000', NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0);


#
# TABLE STRUCTURE FOR: sma_sessions
#

DROP TABLE IF EXISTS `sma_sessions`;

CREATE TABLE `sma_sessions` (
  `id` varchar(40) NOT NULL,
  `ip_address` varchar(45) NOT NULL,
  `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
  `data` blob NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ci_sessions_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('03e0ubc8odb32lhuqhp7tjo05ht7ci1i', '62.201.240.122', 1597832175, '__ci_last_regenerate|i:1597832091;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597654191\";last_ip|s:13:\"62.201.240.74\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|s:2:\"41\";last_activity|i:1597831494;register_id|s:1:\"1\";cash_in_hand|s:6:\"0.0000\";register_open_time|s:19:\"2020-08-08 17:49:05\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('0c86jnrp3tgea1jk174g5nnili9624gp', '62.201.240.8', 1598794412, '__ci_last_regenerate|i:1598794297;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1598451332\";last_ip|s:13:\"62.201.240.34\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|s:2:\"41\";last_activity|i:1598794411;register_id|s:1:\"1\";cash_in_hand|s:6:\"0.0000\";register_open_time|s:19:\"2020-08-08 17:49:05\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('0qd8lh9letl7l3c0r9t9s11l6lor6t0n', '180.222.139.135', 1595421265, '__ci_last_regenerate|i:1595421265;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('1236mfm2mpk9j4vkp5qbo5dd8ti42o8g', '62.201.240.93', 1595414209, '__ci_last_regenerate|i:1595414209;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('14vbec9rqjbcv1ggquura9sdkgiadrv9', '130.193.238.189', 1596744099, '__ci_last_regenerate|i:1596744091;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595420589\";last_ip|s:14:\"59.153.127.187\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('1it466c23q31k2i8tdemjkp0q9o8lrl3', '59.153.127.187', 1595421180, '__ci_last_regenerate|i:1595420888;identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595391125\";last_ip|s:13:\"69.157.69.189\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1595421132;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('1joh5pue598odvn500dlucga14rimt3j', '59.153.127.187', 1595421367, '__ci_last_regenerate|i:1595421194;identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595391125\";last_ip|s:13:\"69.157.69.189\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1595421367;werehouse|s:2:\"17\";store|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('1thf6db6tuur5p6mpil601ilo4gpulab', '77.247.108.119', 1595543795, '__ci_last_regenerate|i:1595543794;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2aa8r54ahibb72ig73ru8532qutsik2a', '62.201.253.38', 1598557481, '__ci_last_regenerate|i:1598557480;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2en233fv6l52u3vscjl1hf3re7okd1i6', '62.201.240.206', 1596526893, '__ci_last_regenerate|i:1596526893;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2h0ptqqrc24mckp7hareto2q48ni0km4', '130.193.238.189', 1596807067, '__ci_last_regenerate|i:1596807034;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1596741019\";last_ip|s:15:\"130.193.238.189\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|i:0;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2p62ubrrrf5ai1qt506nkqva1hveoip7', '62.201.240.60', 1597561972, '__ci_last_regenerate|i:1597561972;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2ppog21nbat0jr0g45fuka7ic0qig5e2', '86.98.159.22', 1597170781, '__ci_last_regenerate|i:1597170708;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1596917707\";last_ip|s:15:\"130.193.245.119\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";message|s:38:\"<p>You are successfully logged in.</p>\";__ci_vars|a:1:{s:7:\"message\";s:3:\"old\";}');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3bmvvudcbptr4e36m6tud0dbdoi9lij5', '62.201.240.63', 1599490012, '__ci_last_regenerate|i:1599489986;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1599140595\";last_ip|s:13:\"62.201.240.27\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3qd92bbtb8iibnpua5qci6ake5nvpgsd', '62.201.240.74', 1597669726, '__ci_last_regenerate|i:1597669650;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3vehh1l964pk3k2floajvbsi0nm8lidd', '110.93.225.217', 1597219143, '__ci_last_regenerate|i:1597219143;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('53fu42umlqh4ti08jqo28nccm7okdbpa', '86.98.220.231', 1597224275, '__ci_last_regenerate|i:1597224274;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5d1ndb2css25eekjan86vlpl504p3a76', '77.247.108.119', 1595543796, '__ci_last_regenerate|i:1595543795;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5ore7t69j44iav4crdgrh3207p2obcsm', '130.193.245.39', 1598039840, '__ci_last_regenerate|i:1598039816;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597993373\";last_ip|s:14:\"107.185.163.76\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5t0tog7ikmvb3q99hub8oivg02ii0ubh', '62.201.240.189', 1597907278, '__ci_last_regenerate|i:1597907277;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5ufus7a5qveakcal4o74cdjjild4c9is', '180.222.139.135', 1595420916, '__ci_last_regenerate|i:1595420916;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('612ufn61bnihhbnst5o6pm14e14ed18g', '107.185.163.76', 1597993411, '__ci_last_regenerate|i:1597993367;identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597831429\";last_ip|s:14:\"62.201.240.122\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6fji7i8em9f5u2a8f0h3617bmn305moq', '77.247.108.119', 1595543801, '__ci_last_regenerate|i:1595543796;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6n9flu9u61rurds4qbhsb7svc9apde6a', '130.193.243.46', 1597422299, '__ci_last_regenerate|i:1597422299;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7epurkuu8a0l4d4ata807s1sgjbsku2c', '130.193.245.39', 1598037260, '__ci_last_regenerate|i:1598037259;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7ft1qfmbmkdqs3ejan1n1v28tlkpa0lo', '77.247.108.119', 1595543793, '__ci_last_regenerate|i:1595543792;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('887o5gh8vbrl8pp20d2afm6ei1j9q5sh', '62.201.240.193', 1597748754, '__ci_last_regenerate|i:1597748754;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('8kg7qqbdck3fkfhqa0rdgipcs91rhhti', '62.201.240.122', 1597824236, '__ci_last_regenerate|i:1597824235;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('8m77u3tcrqm7svhi253bt6jsgqoeqhat', '62.201.240.8', 1598771231, '__ci_last_regenerate|i:1598771231;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('8mkh9rtrt9c6svk5u1lkqj1gqft2goip', '59.153.127.187', 1595420682, '__ci_last_regenerate|i:1595420505;identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595391125\";last_ip|s:13:\"69.157.69.189\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";error|N;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9glgccrpm8pepivknfvj4lbusfu1odui', '130.193.238.189', 1596741046, '__ci_last_regenerate|i:1596741004;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595420589\";last_ip|s:14:\"59.153.127.187\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9jl98a65fp75rjbmb2ir285b7mffsojp', '62.201.240.74', 1597655017, '__ci_last_regenerate|i:1597655017;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597479566\";last_ip|s:14:\"62.201.240.125\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9lpeqh5vjc2iu1c23kmnkpcp99c1urej', '62.201.240.167', 1596969708, '__ci_last_regenerate|i:1596969708;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('acvdictlnsraadv1mfqphnea8njhm6me', '62.201.240.174', 1597309131, '__ci_last_regenerate|i:1597309130;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ak8btjleubbc3jnkeg1jrbm0d9ghgf9u', '203.215.166.122', 1596021921, '__ci_last_regenerate|i:1596021920;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('bntsoooco1jp8poh2qj0304b4u266jgd', '62.201.240.15', 1600080624, '__ci_last_regenerate|i:1600080604;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1599825134\";last_ip|s:13:\"122.171.111.7\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('cb1b7co4pjc25ernvkn56tm080oqq7fj', '130.193.238.189', 1596741692, '__ci_last_regenerate|i:1596741691;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595420589\";last_ip|s:14:\"59.153.127.187\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('cs9b3spclh1gtfb7up0rj1h225has999', '62.201.240.74', 1597656970, '__ci_last_regenerate|i:1597656955;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597479566\";last_ip|s:14:\"62.201.240.125\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('d23hhaqqmqlva6lm5c499ado69i1g99q', '62.201.240.34', 1598451351, '__ci_last_regenerate|i:1598451329;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1598093273\";last_ip|s:14:\"62.201.240.138\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('dc5emk958gbmlsj2bpfk249euve92oi4', '62.201.240.74', 1597216234, '__ci_last_regenerate|i:1597216234;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('dpni1svcfs3tnenmsunjgc0uej7n444u', '62.201.240.125', 1597479579, '__ci_last_regenerate|i:1597479563;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597219111\";last_ip|s:14:\"110.93.225.217\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('e1k1oole61hl69645nrapsf0uc54v9m6', '62.201.240.27', 1599137888, '__ci_last_regenerate|i:1599137875;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1598794300\";last_ip|s:12:\"62.201.240.8\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('e3hjtari6igna0chg0dsnunlb2cc0545', '122.171.111.7', 1599825173, '__ci_last_regenerate|i:1599825173;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('es7acugqiqt2qblqikvdagkpf4bkil37', '62.201.240.193', 1597748576, '__ci_last_regenerate|i:1597748576;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('fr5ggi467tjg239s6ip62611t7ogntg9', '203.215.166.122', 1596021926, '__ci_last_regenerate|i:1596021926;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('g62rro7drvcapv7vsah77eiagmm7eflo', '62.201.240.196', 1598700850, '__ci_last_regenerate|i:1598700849;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('h3imgkqthde4enr8bc2t7plsm0gfdih4', '130.193.238.189', 1596812879, '__ci_last_regenerate|i:1596812879;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1596741019\";last_ip|s:15:\"130.193.238.189\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|i:0;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('hde9bse4v28herhud43s3vdbe25lljtg', '130.193.245.119', 1596917723, '__ci_last_regenerate|i:1596917705;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1596898131\";last_ip|s:14:\"62.201.240.206\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('i2hn6k1n9r8tn67v0sbnmoc2slvr6vb8', '107.185.163.76', 1598124446, '__ci_last_regenerate|i:1598124446;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('i3fjpkq68t390184uupqgkn3e5sqp7kc', '62.201.240.74', 1597654669, '__ci_last_regenerate|i:1597654657;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597479566\";last_ip|s:14:\"62.201.240.125\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('iaqfmkn2j0052mn64cvhof750hq99vu3', '137.59.121.52', 1597309181, '__ci_last_regenerate|i:1597309181;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ife90n9vhhs2jah62idpakciahpjp3nr', '62.201.240.192', 1598168413, '__ci_last_regenerate|i:1598168413;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j1rg6h4a7eo34u1k6r7uatpii5aulqf6', '62.201.240.206', 1596898296, '__ci_last_regenerate|i:1596898126;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1596807036\";last_ip|s:15:\"130.193.238.189\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|s:2:\"41\";last_activity|i:1596898296;register_id|s:1:\"1\";cash_in_hand|s:6:\"0.0000\";register_open_time|s:19:\"2020-08-08 17:49:05\";user_csrf|s:20:\"gf46ERoL8hCuKH9WPBs5\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j4862blaa3cb45b7om18pun9304tb907', '62.201.240.125', 1597482218, '__ci_last_regenerate|i:1597481946;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597219111\";last_ip|s:14:\"110.93.225.217\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('kl2qq8q626uaj9lj30urks4k939egmi5', '59.153.127.187', 1595420634, '__ci_last_regenerate|i:1595420634;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('l6il66sq6he3q3tcbf997omi1u90d5iu', '62.201.253.38', 1598018260, '__ci_last_regenerate|i:1598018260;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('lds3d10nsfhlb48sfd3bve776sdld59o', '122.171.111.7', 1599825154, '__ci_last_regenerate|i:1599825154;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('m4k3nqnkbggd7e3kch103v9ggssh13g8', '107.185.163.76', 1597996571, '__ci_last_regenerate|i:1597996571;identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597831429\";last_ip|s:14:\"62.201.240.122\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('mgmg6untohemp5kb0ui8q3c7t66ecbb7', '62.201.240.74', 1597245351, '__ci_last_regenerate|i:1597245350;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('mldilodfnbkbs8icm7cn07agsn01bbtv', '130.193.245.119', 1596909767, '__ci_last_regenerate|i:1596909766;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('n50n714fa1ueib7q9fcq0pui7a3mknkq', '130.193.238.189', 1596748023, '__ci_last_regenerate|i:1596748022;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595420589\";last_ip|s:14:\"59.153.127.187\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|s:2:\"41\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('n62qt8udr7k709me418fig9625nt3u67', '62.201.240.139', 1596637835, '__ci_last_regenerate|i:1596637835;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('o6d5p4t09dm4satjnbdlk8hsliuksosd', '130.193.238.189', 1596744548, '__ci_last_regenerate|i:1596744422;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1595420589\";last_ip|s:14:\"59.153.127.187\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|s:2:\"41\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('of5sl9igeqnj1sob0br4gj7ocet5qpoi', '130.193.243.46', 1597519416, '__ci_last_regenerate|i:1597519415;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ovsie15g134lbt6mmm1rn2doe692s79p', '62.201.240.196', 1598701749, '__ci_last_regenerate|i:1598701749;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('p72lsmhno57pff21ul3qntmqh2a1ttat', '62.201.240.74', 1597655339, '__ci_last_regenerate|i:1597655339;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597479566\";last_ip|s:14:\"62.201.240.125\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('p94mhud8bf1nfc2qthucs2p1bb1jfjm2', '62.201.240.196', 1598702040, '__ci_last_regenerate|i:1598702040;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('pb5dhr2g5i87m4eks3nh71kltsq5007p', '59.153.127.187', 1595420506, '__ci_last_regenerate|i:1595420506;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qdp9hfgk9j4ke6ma5hshnoddg4qojms3', '62.201.240.74', 1597654490, '__ci_last_regenerate|i:1597654187;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597479566\";last_ip|s:14:\"62.201.240.125\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qmt7rcruv4aaf1nf9935sv0b5p4oaihk', '62.201.240.122', 1597831494, '__ci_last_regenerate|i:1597831426;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597654191\";last_ip|s:13:\"62.201.240.74\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";werehouse|s:2:\"17\";store|s:2:\"41\";last_activity|i:1597831494;register_id|s:1:\"1\";cash_in_hand|s:6:\"0.0000\";register_open_time|s:19:\"2020-08-08 17:49:05\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qn4ourn7bb9s6aso262fn2c221osb0l6', '62.201.240.146', 1597140508, '__ci_last_regenerate|i:1597140504;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('scjq02bjhlveej4eufh9ouve4m32ibd4', '107.185.163.76', 1598124622, '__ci_last_regenerate|i:1598124622;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('sos953705jhvg14d4fd8lhq054dcvh5f', '62.201.240.27', 1599140601, '__ci_last_regenerate|i:1599140593;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1599137879\";last_ip|s:13:\"62.201.240.27\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('srbllc79qb1mv3ehfomushijir4lhlvs', '77.247.108.119', 1595543782, '__ci_last_regenerate|i:1595543780;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('svpl9ed9pddp3anuunj8cohjjgrqshhd', '62.201.240.138', 1598093279, '__ci_last_regenerate|i:1598093271;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1598039820\";last_ip|s:14:\"130.193.245.39\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('t6u1tb33o2bfd2f2q3t5gbbh24v4359d', '62.201.240.74', 1597661757, '__ci_last_regenerate|i:1597661757;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1597479566\";last_ip|s:14:\"62.201.240.125\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tj1b4sf356bfols5lj0qc76kug144lm3', '62.201.240.76', 1598366210, '__ci_last_regenerate|i:1598366209;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tp995psf5j7jl0fd3gjlnlb48rkdogd5', '59.153.127.187', 1595420927, '__ci_last_regenerate|i:1595420927;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('u281v471au5r5r0m980ptkg3tdm211ak', '62.201.240.27', 1599141108, '__ci_last_regenerate|i:1599140934;requested_page|s:5:\"admin\";identity|s:5:\"admin\";username|s:5:\"admin\";email|s:32:\"graphics_webdesign2002@yahoo.com\";user_id|s:1:\"7\";old_last_login|s:10:\"1599137879\";last_ip|s:13:\"62.201.240.27\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|s:1:\"0\";view_right|s:1:\"1\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|s:1:\"0\";company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('v9iq1il8obpdnton4c1ai34fii66ovg3', '77.247.108.119', 1595543787, '__ci_last_regenerate|i:1595543786;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('vb9bcq555e2t9e40g9fi1vltgntgdf2s', '62.201.240.54', 1595659344, '__ci_last_regenerate|i:1595659343;requested_page|s:13:\"admin/welcome\";');


#
# TABLE STRUCTURE FOR: sma_settings
#

DROP TABLE IF EXISTS `sma_settings`;

CREATE TABLE `sma_settings` (
  `setting_id` int(1) NOT NULL,
  `logo` varchar(255) NOT NULL,
  `logo2` varchar(255) NOT NULL,
  `site_name` varchar(55) NOT NULL,
  `language` varchar(20) NOT NULL,
  `default_warehouse` int(2) NOT NULL,
  `accounting_method` tinyint(4) NOT NULL DEFAULT '0',
  `default_currency` varchar(3) NOT NULL,
  `default_tax_rate` int(2) NOT NULL,
  `rows_per_page` int(2) NOT NULL,
  `version` varchar(10) NOT NULL DEFAULT '1.0',
  `default_tax_rate2` int(11) NOT NULL DEFAULT '0',
  `dateformat` int(11) NOT NULL,
  `sales_prefix` varchar(20) DEFAULT NULL,
  `quote_prefix` varchar(20) DEFAULT NULL,
  `purchase_prefix` varchar(20) DEFAULT NULL,
  `transfer_prefix` varchar(20) DEFAULT NULL,
  `delivery_prefix` varchar(20) DEFAULT NULL,
  `payment_prefix` varchar(20) DEFAULT NULL,
  `return_prefix` varchar(20) DEFAULT NULL,
  `returnp_prefix` varchar(20) DEFAULT NULL,
  `expense_prefix` varchar(20) DEFAULT NULL,
  `item_addition` tinyint(1) NOT NULL DEFAULT '0',
  `theme` varchar(20) NOT NULL,
  `product_serial` tinyint(4) NOT NULL,
  `default_discount` int(11) NOT NULL,
  `product_discount` tinyint(1) NOT NULL DEFAULT '0',
  `discount_method` tinyint(4) NOT NULL,
  `discount_type` varchar(20) DEFAULT 'by_value',
  `tax1` tinyint(4) NOT NULL,
  `tax2` tinyint(4) NOT NULL,
  `overselling` tinyint(1) NOT NULL DEFAULT '0',
  `restrict_user` tinyint(4) NOT NULL DEFAULT '0',
  `restrict_calendar` tinyint(4) NOT NULL DEFAULT '0',
  `timezone` varchar(100) DEFAULT NULL,
  `iwidth` int(11) NOT NULL DEFAULT '0',
  `iheight` int(11) NOT NULL,
  `twidth` int(11) NOT NULL,
  `theight` int(11) NOT NULL,
  `watermark` tinyint(1) DEFAULT NULL,
  `reg_ver` tinyint(1) DEFAULT NULL,
  `allow_reg` tinyint(1) DEFAULT NULL,
  `reg_notification` tinyint(1) DEFAULT NULL,
  `auto_reg` tinyint(1) DEFAULT NULL,
  `protocol` varchar(20) NOT NULL DEFAULT 'mail',
  `mailpath` varchar(55) DEFAULT '/usr/sbin/sendmail',
  `smtp_host` varchar(100) DEFAULT NULL,
  `smtp_user` varchar(100) DEFAULT NULL,
  `smtp_pass` varchar(255) DEFAULT NULL,
  `smtp_port` varchar(10) DEFAULT '25',
  `smtp_crypto` varchar(10) DEFAULT NULL,
  `corn` datetime DEFAULT NULL,
  `customer_group` int(11) NOT NULL,
  `default_email` varchar(100) NOT NULL,
  `mmode` tinyint(1) NOT NULL,
  `bc_fix` tinyint(4) NOT NULL DEFAULT '0',
  `auto_detect_barcode` tinyint(1) NOT NULL DEFAULT '0',
  `captcha` tinyint(1) NOT NULL DEFAULT '1',
  `reference_format` tinyint(1) NOT NULL DEFAULT '1',
  `racks` tinyint(1) DEFAULT '0',
  `attributes` tinyint(1) NOT NULL DEFAULT '0',
  `product_expiry` tinyint(1) NOT NULL DEFAULT '0',
  `decimals` tinyint(2) NOT NULL DEFAULT '2',
  `qty_decimals` tinyint(2) NOT NULL DEFAULT '2',
  `decimals_sep` varchar(2) NOT NULL DEFAULT '.',
  `thousands_sep` varchar(2) NOT NULL DEFAULT ',',
  `invoice_view` tinyint(1) DEFAULT '0',
  `default_biller` int(11) DEFAULT NULL,
  `envato_username` varchar(50) DEFAULT NULL,
  `purchase_code` varchar(100) DEFAULT NULL,
  `rtl` tinyint(1) DEFAULT '0',
  `each_spent` decimal(15,4) DEFAULT NULL,
  `ca_point` tinyint(4) DEFAULT NULL,
  `each_sale` decimal(15,4) DEFAULT NULL,
  `sa_point` tinyint(4) DEFAULT NULL,
  `update` tinyint(1) DEFAULT '0',
  `sac` tinyint(1) DEFAULT '0',
  `display_all_products` tinyint(1) DEFAULT '0',
  `display_symbol` tinyint(1) DEFAULT NULL,
  `symbol` varchar(50) DEFAULT NULL,
  `remove_expired` tinyint(1) DEFAULT '0',
  `barcode_separator` varchar(2) NOT NULL DEFAULT '_',
  `set_focus` tinyint(1) NOT NULL DEFAULT '0',
  `price_group` int(11) DEFAULT NULL,
  `barcode_img` tinyint(1) NOT NULL DEFAULT '1',
  `ppayment_prefix` varchar(20) DEFAULT 'POP',
  `disable_editing` smallint(6) DEFAULT '90',
  `qa_prefix` varchar(55) DEFAULT NULL,
  `update_cost` tinyint(1) DEFAULT NULL,
  `apis` tinyint(1) NOT NULL DEFAULT '0',
  `state` varchar(100) DEFAULT NULL,
  `pdf_lib` varchar(20) DEFAULT 'dompdf',
  `purchase_account` int(11) DEFAULT '0',
  `sales_account` int(11) DEFAULT '0',
  `expense_account` int(11) DEFAULT '0',
  `sa_point_redeem` tinyint(4) DEFAULT '0',
  `delayed_invoices` tinyint(4) DEFAULT '10',
  PRIMARY KEY (`setting_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_settings` (`setting_id`, `logo`, `logo2`, `site_name`, `language`, `default_warehouse`, `accounting_method`, `default_currency`, `default_tax_rate`, `rows_per_page`, `version`, `default_tax_rate2`, `dateformat`, `sales_prefix`, `quote_prefix`, `purchase_prefix`, `transfer_prefix`, `delivery_prefix`, `payment_prefix`, `return_prefix`, `returnp_prefix`, `expense_prefix`, `item_addition`, `theme`, `product_serial`, `default_discount`, `product_discount`, `discount_method`, `discount_type`, `tax1`, `tax2`, `overselling`, `restrict_user`, `restrict_calendar`, `timezone`, `iwidth`, `iheight`, `twidth`, `theight`, `watermark`, `reg_ver`, `allow_reg`, `reg_notification`, `auto_reg`, `protocol`, `mailpath`, `smtp_host`, `smtp_user`, `smtp_pass`, `smtp_port`, `smtp_crypto`, `corn`, `customer_group`, `default_email`, `mmode`, `bc_fix`, `auto_detect_barcode`, `captcha`, `reference_format`, `racks`, `attributes`, `product_expiry`, `decimals`, `qty_decimals`, `decimals_sep`, `thousands_sep`, `invoice_view`, `default_biller`, `envato_username`, `purchase_code`, `rtl`, `each_spent`, `ca_point`, `each_sale`, `sa_point`, `update`, `sac`, `display_all_products`, `display_symbol`, `symbol`, `remove_expired`, `barcode_separator`, `set_focus`, `price_group`, `barcode_img`, `ppayment_prefix`, `disable_editing`, `qa_prefix`, `update_cost`, `apis`, `state`, `pdf_lib`, `purchase_account`, `sales_account`, `expense_account`, `sa_point_redeem`, `delayed_invoices`) VALUES (1, 'logo2.png', 'logo3.png', 'POS', 'english', 17, 0, 'SR', 1, 10, '3.2.14', 0, 5, 'SALE', 'QUOTE', 'PO', 'TR', 'DO', 'IPAY', 'SR', 'PR', '', 0, 'default', 1, 1, 1, 1, 'by_value', 1, 0, 0, 1, 0, 'Asia/Riyadh', 800, 800, 150, 150, 0, 0, 0, 0, NULL, 'smtp', '/usr/sbin/sendmail', 'pop.gmail.com', 'info@pointofsalesaudi.com', 'Pos@123456', '25', NULL, NULL, 1, 'info@pointofsalesaudi.com', 0, 4, 1, 0, 2, 1, 1, 0, 2, 2, '.', ',', 0, 10, 'Graphics_webdesign2002', '7d144173-c8b6-4155-b56c-50295b42c62d', 0, '10.0000', 1, '100.0000', 10, 0, 0, 0, 0, '$', 0, '_', 0, 1, 0, 'POP', 90, '', 0, 0, 'AN', 'dompdf', 3, 1, 2, 1, 1);


#
# TABLE STRUCTURE FOR: sma_skrill
#

DROP TABLE IF EXISTS `sma_skrill`;

CREATE TABLE `sma_skrill` (
  `id` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL,
  `account_email` varchar(255) NOT NULL DEFAULT 'testaccount2@moneybookers.com',
  `secret_word` varchar(20) NOT NULL DEFAULT 'mbtest',
  `skrill_currency` varchar(3) NOT NULL DEFAULT 'USD',
  `fixed_charges` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `extra_charges_my` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `extra_charges_other` decimal(25,4) NOT NULL DEFAULT '0.0000',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_skrill` (`id`, `active`, `account_email`, `secret_word`, `skrill_currency`, `fixed_charges`, `extra_charges_my`, `extra_charges_other`) VALUES (1, 1, 'testaccount2@moneybookers.com', 'mbtest', 'USD', '0.0000', '0.0000', '0.0000');


#
# TABLE STRUCTURE FOR: sma_sms
#

DROP TABLE IF EXISTS `sma_sms`;

CREATE TABLE `sma_sms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `from_date` datetime DEFAULT NULL,
  `till_date` datetime DEFAULT NULL,
  `scope` tinyint(1) NOT NULL DEFAULT '3',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_sms` (`id`, `title`, `message`, `date`, `from_date`, `till_date`, `scope`) VALUES (1, 'erfdf', '<p>rffgt</p>', '2018-03-04 12:54:32', NULL, NULL, 3);


#
# TABLE STRUCTURE FOR: sma_stock_count_items
#

DROP TABLE IF EXISTS `sma_stock_count_items`;

CREATE TABLE `sma_stock_count_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `stock_count_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(50) DEFAULT NULL,
  `product_name` varchar(255) DEFAULT NULL,
  `product_variant` varchar(55) DEFAULT NULL,
  `product_variant_id` int(11) DEFAULT NULL,
  `expected` decimal(15,4) NOT NULL,
  `counted` decimal(15,4) NOT NULL,
  `cost` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `stock_count_id` (`stock_count_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_stock_counts
#

DROP TABLE IF EXISTS `sma_stock_counts`;

CREATE TABLE `sma_stock_counts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `type` varchar(10) NOT NULL,
  `initial_file` varchar(50) NOT NULL,
  `final_file` varchar(50) DEFAULT NULL,
  `brands` varchar(50) DEFAULT NULL,
  `brand_names` varchar(100) DEFAULT NULL,
  `categories` varchar(50) DEFAULT NULL,
  `category_names` varchar(100) DEFAULT NULL,
  `note` text,
  `products` int(11) DEFAULT NULL,
  `rows` int(11) DEFAULT NULL,
  `differences` int(11) DEFAULT NULL,
  `matches` int(11) DEFAULT NULL,
  `missing` int(11) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `finalized` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_stores
#

DROP TABLE IF EXISTS `sma_stores`;

CREATE TABLE `sma_stores` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `warehouse_id` int(30) NOT NULL DEFAULT '0',
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `map` varchar(255) DEFAULT NULL,
  `phone` varchar(55) DEFAULT NULL,
  `email` varchar(55) DEFAULT NULL,
  `syncflag` tinyint(4) NOT NULL,
  `price_group_id` int(40) DEFAULT NULL,
  `store_opening_cash` varchar(15) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;

INSERT INTO `sma_stores` (`id`, `warehouse_id`, `code`, `name`, `address`, `map`, `phone`, `email`, `syncflag`, `price_group_id`, `store_opening_cash`) VALUES (38, 0, 'beauty spot majdi', 'beauty spot majdi', '<p>majdi mall</p>', NULL, '', '', 0, NULL, '0');
INSERT INTO `sma_stores` (`id`, `warehouse_id`, `code`, `name`, `address`, `map`, `phone`, `email`, `syncflag`, `price_group_id`, `store_opening_cash`) VALUES (39, 0, 'france gellary', 'france gellary', '<p xss=removed>jadae chwarta</p>', NULL, '', '', 0, NULL, '0');
INSERT INTO `sma_stores` (`id`, `warehouse_id`, `code`, `name`, `address`, `map`, `phone`, `email`, `syncflag`, `price_group_id`, `store_opening_cash`) VALUES (40, 0, 'beauty spot 1', 'beauty spot 1', '<p xss=removed>park tower</p>', NULL, '', '', 0, NULL, '0');
INSERT INTO `sma_stores` (`id`, `warehouse_id`, `code`, `name`, `address`, `map`, `phone`, `email`, `syncflag`, `price_group_id`, `store_opening_cash`) VALUES (41, 17, '123456', 'beauty spot 1', '<p>park tower</p>', NULL, '00', 'info@telerikit.com', 0, NULL, '0');
INSERT INTO `sma_stores` (`id`, `warehouse_id`, `code`, `name`, `address`, `map`, `phone`, `email`, `syncflag`, `price_group_id`, `store_opening_cash`) VALUES (42, 17, '111222', 'beauty spot 2', '<p xss=removed>majdi mall</p>', NULL, '0000', 'dhjdshj@yahoo.com', 0, NULL, '0');
INSERT INTO `sma_stores` (`id`, `warehouse_id`, `code`, `name`, `address`, `map`, `phone`, `email`, `syncflag`, `price_group_id`, `store_opening_cash`) VALUES (43, 18, '235', 'france gellary', '<p>dgnhjghm</p>', NULL, '64564', 'rrew@gmail.com', 0, NULL, '0');


#
# TABLE STRUCTURE FOR: sma_suspended_bills
#

DROP TABLE IF EXISTS `sma_suspended_bills`;

CREATE TABLE `sma_suspended_bills` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) DEFAULT NULL,
  `count` int(11) NOT NULL,
  `order_discount_id` varchar(20) DEFAULT NULL,
  `order_tax_id` int(11) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `biller_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `suspend_note` varchar(255) DEFAULT NULL,
  `shipping` decimal(15,4) DEFAULT '0.0000',
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_suspended_items
#

DROP TABLE IF EXISTS `sma_suspended_items`;

CREATE TABLE `sma_suspended_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `suspend_id` int(11) unsigned NOT NULL,
  `product_id` int(11) unsigned NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) NOT NULL,
  `quantity` decimal(15,4) DEFAULT '0.0000',
  `warehouse_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_suspended_sale_items
#

DROP TABLE IF EXISTS `sma_suspended_sale_items`;

CREATE TABLE `sma_suspended_sale_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `suspend_id` int(11) unsigned DEFAULT NULL,
  `product_id` int(11) unsigned DEFAULT NULL,
  `product_code` varchar(55) DEFAULT NULL,
  `product_name` varchar(255) DEFAULT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) DEFAULT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) DEFAULT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `sale_item_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_id` (`suspend_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`suspend_id`),
  KEY `sale_id_2` (`suspend_id`,`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_suspended_sales
#

DROP TABLE IF EXISTS `sma_suspended_sales`;

CREATE TABLE `sma_suspended_sales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) DEFAULT NULL,
  `suspend_invoice` varchar(55) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `customer` varchar(55) DEFAULT NULL,
  `biller_id` int(11) DEFAULT NULL,
  `biller` varchar(55) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `staff_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) DEFAULT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT '0.0000',
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) DEFAULT NULL,
  `sale_status` varchar(20) DEFAULT NULL,
  `payment_status` varchar(20) DEFAULT NULL,
  `payment_term` tinyint(4) DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_items` smallint(6) DEFAULT NULL,
  `pos` tinyint(1) DEFAULT '0',
  `paid` decimal(25,4) DEFAULT '0.0000',
  `return_id` int(11) DEFAULT NULL,
  `surcharge` decimal(25,4) DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `return_sale_ref` varchar(55) DEFAULT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `return_sale_total` decimal(25,4) DEFAULT '0.0000',
  `rounding` decimal(10,4) DEFAULT NULL,
  `suspend_note` varchar(255) DEFAULT NULL,
  `api` tinyint(1) DEFAULT '0',
  `shop` tinyint(1) DEFAULT '0',
  `address_id` int(11) DEFAULT NULL,
  `reserve_id` int(11) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `manual_payment` varchar(55) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_tax_rates
#

DROP TABLE IF EXISTS `sma_tax_rates`;

CREATE TABLE `sma_tax_rates` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(55) NOT NULL,
  `code` varchar(10) DEFAULT NULL,
  `rate` decimal(12,4) NOT NULL,
  `type` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

INSERT INTO `sma_tax_rates` (`id`, `name`, `code`, `rate`, `type`) VALUES (1, 'No Tax', 'NT', '0.0000', '2');
INSERT INTO `sma_tax_rates` (`id`, `name`, `code`, `rate`, `type`) VALUES (2, 'VAT @5%', 'VAT5', '5.0000', '1');
INSERT INTO `sma_tax_rates` (`id`, `name`, `code`, `rate`, `type`) VALUES (3, 'GST @6%', 'GST', '6.0000', '1');
INSERT INTO `sma_tax_rates` (`id`, `name`, `code`, `rate`, `type`) VALUES (4, 'VAT @20%', 'VT20', '20.0000', '1');


#
# TABLE STRUCTURE FOR: sma_transactions
#

DROP TABLE IF EXISTS `sma_transactions`;

CREATE TABLE `sma_transactions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(10) DEFAULT 's',
  `store_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `amount` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
  `trasaction_type` varchar(10) CHARACTER SET latin1 DEFAULT NULL,
  `note` text CHARACTER SET latin1,
  `bank_id` int(11) DEFAULT '0',
  `bank_deposit_reference_no` varchar(100) DEFAULT NULL,
  `type_id` int(11) DEFAULT '0',
  `pay_id` int(11) DEFAULT '0',
  `added_on` datetime DEFAULT NULL,
  `added_by` int(11) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_transactions` (`id`, `type`, `store_id`, `user_id`, `amount`, `trasaction_type`, `note`, `bank_id`, `bank_deposit_reference_no`, `type_id`, `pay_id`, `added_on`, `added_by`, `datetime`) VALUES (1, 's', 41, 7, '0', 'minus', 'Sale Register Opened', 0, NULL, 0, 0, '2020-08-08 17:49:05', 7, NULL);


#
# TABLE STRUCTURE FOR: sma_transfer_items
#

DROP TABLE IF EXISTS `sma_transfer_items`;

CREATE TABLE `sma_transfer_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `expiry` date DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `net_unit_cost` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) DEFAULT NULL,
  `quantity_balance` decimal(15,4) NOT NULL,
  `unit_cost` decimal(25,4) DEFAULT NULL,
  `real_unit_cost` decimal(25,4) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `transfer_id` (`transfer_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_transfers
#

DROP TABLE IF EXISTS `sma_transfers`;

CREATE TABLE `sma_transfers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_no` varchar(55) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `from_warehouse_id` int(11) NOT NULL,
  `from_warehouse_code` varchar(55) NOT NULL,
  `from_warehouse_name` varchar(55) NOT NULL,
  `to_warehouse_id` int(11) NOT NULL,
  `to_warehouse_code` varchar(55) NOT NULL,
  `to_warehouse_name` varchar(55) NOT NULL,
  `from_store_id` int(11) DEFAULT NULL,
  `from_store_code` varchar(55) DEFAULT NULL,
  `from_store_name` varchar(55) DEFAULT NULL,
  `to_store_id` int(11) DEFAULT NULL,
  `to_store_code` varchar(55) DEFAULT NULL,
  `to_store_name` varchar(55) DEFAULT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) DEFAULT NULL,
  `total_tax` decimal(25,4) DEFAULT NULL,
  `grand_total` decimal(25,4) DEFAULT NULL,
  `created_by` varchar(255) DEFAULT NULL,
  `status` varchar(55) NOT NULL DEFAULT 'pending',
  `shipping` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_units
#

DROP TABLE IF EXISTS `sma_units`;

CREATE TABLE `sma_units` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) NOT NULL,
  `name` varchar(55) NOT NULL,
  `base_unit` int(11) DEFAULT NULL,
  `operator` varchar(1) DEFAULT NULL,
  `unit_value` varchar(55) DEFAULT NULL,
  `operation_value` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `base_unit` (`base_unit`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES (2, 'pcs', 'piece', NULL, NULL, NULL, NULL);
INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES (3, 'kg', 'kg', NULL, NULL, NULL, NULL);
INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES (4, 'gram', 'Gram', 3, '/', NULL, '1000');


#
# TABLE STRUCTURE FOR: sma_user_logins
#

DROP TABLE IF EXISTS `sma_user_logins`;

CREATE TABLE `sma_user_logins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `ip_address` varbinary(16) NOT NULL,
  `login` varchar(100) NOT NULL,
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=272 DEFAULT CHARSET=utf8;

INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (1, 3, NULL, '42.111.4.46', 'admin', '2019-10-23 05:49:55');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (2, 3, NULL, '5.42.233.154', 'admin', '2019-10-23 07:10:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (3, 3, NULL, '94.99.153.214', 'admin', '2019-10-23 08:51:03');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (4, 3, NULL, '110.225.91.174', 'admin', '2019-10-23 10:06:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (5, 3, NULL, '37.224.76.82', 'admin', '2019-10-24 02:22:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (6, 3, NULL, '62.201.253.72', 'admin', '2019-10-24 06:26:58');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (7, 3, NULL, '37.104.250.70', 'admin', '2019-10-24 06:42:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (8, 3, NULL, '49.37.207.252', 'admin', '2019-10-25 23:15:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (9, 3, NULL, '51.235.181.195', 'admin', '2019-10-26 04:28:41');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (10, 3, NULL, '51.235.181.195', 'admin', '2019-10-26 04:31:45');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (11, 3, NULL, '62.201.253.72', 'admin', '2019-10-26 05:09:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (12, 3, NULL, '37.105.252.155', 'admin', '2019-10-27 13:33:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (13, 3, NULL, '51.36.91.29', 'admin', '2019-10-30 02:10:44');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (14, 3, NULL, '212.11.179.74', 'admin', '2019-10-30 05:13:06');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (15, 3, NULL, '150.129.104.55', 'admin', '2019-10-30 10:32:24');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (16, 3, NULL, '51.235.160.19', 'admin', '2019-11-02 02:31:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (17, 3, NULL, '130.193.239.172', 'admin', '2019-11-03 01:11:16');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (18, 3, NULL, '62.201.253.72', 'admin', '2019-11-03 05:59:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (19, 2, NULL, '37.104.249.234', 'owner', '2020-01-06 03:01:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (20, 2, NULL, '37.104.249.234', 'owner', '2020-01-06 03:11:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (21, 2, NULL, '37.104.249.234', 'owner', '2020-01-06 05:03:50');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (22, 7, NULL, '37.104.249.234', 'admin', '2020-01-06 05:06:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (23, 7, NULL, '37.104.249.234', 'admin', '2020-01-06 05:07:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (24, 7, NULL, '182.180.58.12', 'admin', '2020-01-07 01:33:43');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (25, 7, NULL, '2.89.199.148', 'admin', '2020-01-07 04:08:58');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (26, 7, NULL, '89.148.18.122', 'admin', '2020-01-08 05:30:48');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (27, 7, NULL, '95.184.46.152', 'admin', '2020-01-08 07:17:06');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (28, 7, NULL, '37.105.141.10', 'admin', '2020-01-08 22:12:48');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (29, 7, NULL, '117.223.131.97', 'admin', '2020-01-09 04:39:23');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (30, 7, NULL, '176.225.46.227', 'admin', '2020-01-09 09:55:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (31, 7, NULL, '87.163.51.217', 'admin', '2020-01-09 11:18:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (32, 7, NULL, '176.224.250.115', 'admin', '2020-01-09 22:31:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (33, 7, NULL, '94.99.233.53', 'admin', '2020-01-10 06:30:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (34, 7, NULL, '151.254.39.190', 'admin', '2020-01-11 02:42:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (35, 7, NULL, '51.252.41.232', 'admin', '2020-01-11 10:08:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (36, 7, NULL, '94.99.233.53', 'admin', '2020-01-11 12:39:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (37, 7, NULL, '46.153.94.209', 'admin', '2020-01-12 22:34:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (38, 7, NULL, '94.99.149.191', 'admin', '2020-01-12 23:42:15');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (39, 7, NULL, '182.180.58.12', 'admin', '2020-01-13 00:18:10');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (40, 7, NULL, '182.180.58.12', 'admin', '2020-01-13 00:59:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (41, 7, NULL, '182.180.58.12', 'admin', '2020-01-13 01:51:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (42, 7, NULL, '37.106.186.61', 'admin', '2020-01-13 01:57:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (43, 7, NULL, '2.89.214.79', 'admin', '2020-01-13 12:07:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (44, 7, NULL, '2.88.146.57', 'admin', '2020-01-13 12:35:15');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (45, 7, NULL, '95.184.19.224', 'admin', '2020-01-14 09:22:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (46, 7, NULL, '95.184.19.224', 'admin', '2020-01-14 09:41:30');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (47, 8, NULL, '95.184.19.224', 'sales', '2020-01-14 09:42:35');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (48, 7, NULL, '95.184.19.224', 'admin', '2020-01-14 09:43:58');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (49, 2, NULL, '159.0.150.163', 'owner', '2020-01-15 01:30:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (50, 7, NULL, '159.0.150.163', 'admin', '2020-01-15 01:44:52');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (51, 7, NULL, '195.145.170.188', 'admin', '2020-01-15 01:48:48');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (52, 7, NULL, '77.30.225.165', 'admin', '2020-01-19 05:55:30');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (53, 7, NULL, '37.104.130.150', 'admin', '2020-01-19 11:10:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (54, 7, NULL, '37.106.186.243', 'admin', '2020-01-20 03:47:25');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (55, 7, NULL, '51.39.60.164', 'admin', '2020-01-20 12:31:02');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (56, 7, NULL, '51.235.186.63', 'admin', '2020-01-20 23:10:55');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (57, 7, NULL, '110.93.225.217', 'admin', '2020-01-21 01:42:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (58, 7, NULL, '::1', 'admin', '2020-01-21 03:41:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (59, 7, NULL, '::1', 'admin', '2020-01-21 22:45:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (60, 7, NULL, '::1', 'admin', '2020-01-21 23:06:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (61, 7, NULL, '::1', 'admin', '2020-01-22 22:39:07');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (62, 7, NULL, '::1', 'admin', '2020-01-22 23:36:08');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (63, 7, NULL, '::1', 'admin', '2020-01-23 22:30:23');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (64, 7, NULL, '::1', 'admin', '2020-01-27 00:01:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (65, 7, NULL, '::1', 'admin', '2020-01-27 22:11:53');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (66, 7, NULL, '::1', 'admin', '2020-01-28 22:02:35');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (67, 7, NULL, '::1', 'admin', '2020-01-29 22:24:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (68, 9, NULL, '::1', 'hasnain@gmail.com', '2020-01-30 01:59:14');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (69, 9, NULL, '::1', 'hasnain@gmail.com', '2020-01-30 02:00:20');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (70, 7, NULL, '::1', 'admin', '2020-01-30 02:01:02');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (71, 9, NULL, '::1', 'hasnain@gmail.com', '2020-01-30 02:01:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (72, 7, NULL, '::1', 'admin', '2020-01-30 02:02:43');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (73, 9, NULL, '::1', 'hasnain@gmail.com', '2020-01-30 02:05:13');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (74, 7, NULL, '::1', 'admin', '2020-01-30 02:06:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (75, 7, NULL, '::1', 'admin', '2020-01-30 02:51:22');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (76, 7, NULL, '::1', 'admin', '2020-01-30 02:57:50');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (77, 7, NULL, '::1', 'admin', '2020-01-30 22:34:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (78, 7, NULL, '::1', 'admin', '2020-01-31 02:22:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (79, 9, NULL, '::1', 'hasnain@gmail.com', '2020-01-31 02:23:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (80, 7, NULL, '::1', 'admin', '2020-01-31 02:23:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (81, 9, NULL, '::1', 'hasnain@gmail.com', '2020-01-31 02:24:50');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (82, 7, NULL, '::1', 'admin', '2020-01-31 02:34:38');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (83, 7, NULL, '::1', 'admin', '2020-01-31 02:36:04');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (84, 7, NULL, '::1', 'admin', '2020-02-02 22:36:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (85, 7, NULL, '::1', 'admin', '2020-02-02 22:56:21');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (86, 7, NULL, '::1', 'admin', '2020-02-03 03:16:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (87, 7, NULL, '::1', 'admin', '2020-02-04 00:15:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (88, 7, NULL, '::1', 'admin', '2020-02-05 22:42:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (89, 7, NULL, '::1', 'admin', '2020-02-06 02:16:25');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (90, 7, NULL, '::1', 'admin', '2020-02-06 22:04:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (91, 7, NULL, '::1', 'admin', '2020-02-09 22:41:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (92, 7, NULL, '::1', 'admin', '2020-02-10 22:27:41');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (93, 7, NULL, '::1', 'admin', '2020-02-11 06:32:29');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (94, 7, NULL, '::1', 'admin', '2020-02-14 02:51:23');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (95, 7, NULL, '::1', 'admin', '2020-02-16 22:04:25');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (96, 7, NULL, '::1', 'admin', '2020-02-19 01:33:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (97, 7, NULL, '::1', 'admin', '2020-02-19 21:17:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (98, 7, NULL, '::1', 'admin', '2020-02-20 01:26:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (99, 7, NULL, '::1', 'admin', '2020-02-20 21:58:38');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (100, 7, NULL, '::1', 'admin', '2020-03-01 21:37:21');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (101, 7, NULL, '110.93.241.186', 'admin', '2020-03-02 06:22:25');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (102, 7, NULL, '110.93.225.217', 'admin', '2020-03-02 06:45:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (103, 7, NULL, '94.99.226.131', 'admin', '2020-03-02 07:35:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (104, 7, NULL, '110.93.225.217', 'admin', '2020-03-02 07:48:38');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (105, 2, NULL, '62.201.241.207', 'owner', '2020-03-02 07:53:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (106, 7, NULL, '110.93.225.217', 'admin', '2020-03-02 10:11:55');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (107, 7, NULL, '62.201.239.114', 'admin', '2020-03-02 11:15:29');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (108, 7, NULL, '62.201.255.180', 'admin', '2020-03-02 11:49:20');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (109, 7, NULL, '62.201.255.180', 'admin', '2020-03-02 14:09:10');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (110, 7, NULL, '130.193.248.221', 'admin', '2020-03-02 18:18:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (111, 7, NULL, '62.201.239.224', 'admin', '2020-03-02 21:20:57');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (112, 7, NULL, '2.91.242.168', 'admin', '2020-03-03 10:08:06');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (113, 2, NULL, '2.91.242.168', 'owner', '2020-03-03 10:12:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (114, 7, NULL, '2.91.242.168', 'admin', '2020-03-03 10:12:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (115, 7, NULL, '2.91.242.168', 'admin', '2020-03-03 10:24:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (116, 2, NULL, '2.91.242.168', 'owner', '2020-03-03 10:43:10');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (117, 7, NULL, '110.93.225.217', 'admin', '2020-03-03 11:26:27');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (118, 7, NULL, '195.145.170.156', 'admin', '2020-03-04 08:30:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (119, 7, NULL, '37.107.74.87', 'admin', '2020-03-06 09:31:44');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (120, 2, NULL, '37.107.74.87', 'owner', '2020-03-06 09:44:27');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (121, 2, NULL, '37.107.74.87', 'owner', '2020-03-06 12:16:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (122, 7, NULL, '37.107.74.87', 'admin', '2020-03-06 12:58:52');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (123, 7, NULL, '62.201.255.108', 'admin', '2020-03-06 13:23:50');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (124, 7, NULL, '2.89.230.16', 'admin', '2020-03-10 07:00:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (125, 7, NULL, '110.93.225.217', 'admin', '2020-03-10 07:08:38');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (126, 7, NULL, '62.201.240.206', 'admin', '2020-03-10 08:46:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (127, 7, NULL, '130.193.226.123', 'admin', '2020-03-11 20:58:55');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (128, 7, NULL, '130.193.235.141', 'admin', '2020-03-14 20:18:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (129, 7, NULL, '87.163.63.1', 'admin', '2020-03-14 20:18:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (130, 7, NULL, '130.193.243.119', 'admin', '2020-03-15 14:49:59');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (131, 7, NULL, '130.193.233.36', 'admin', '2020-03-15 17:03:35');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (132, 7, NULL, '130.193.248.186', 'admin', '2020-03-15 22:05:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (133, 7, NULL, '37.104.199.84', 'admin', '2020-03-16 13:36:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (134, 7, NULL, '110.93.225.217', 'admin', '2020-03-16 13:51:01');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (135, 7, NULL, '2.88.139.157', 'admin', '2020-03-16 17:03:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (136, 7, NULL, '2.88.139.157', 'admin', '2020-03-16 20:49:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (137, 7, NULL, '51.235.158.150', 'admin', '2020-03-17 07:45:18');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (138, 7, NULL, '2.88.139.157', 'admin', '2020-03-17 20:04:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (139, 7, NULL, '130.193.244.117', 'admin', '2020-03-23 15:20:20');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (140, 7, NULL, '122.8.39.154', 'admin', '2020-03-24 04:57:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (141, 7, NULL, '122.8.39.154', 'admin', '2020-03-24 05:56:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (142, 7, NULL, '122.8.39.154', 'admin', '2020-03-24 11:20:10');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (143, 7, NULL, '196.62.248.130', 'admin', '2020-03-25 04:16:14');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (144, 7, NULL, '196.62.252.5', 'admin', '2020-03-26 11:04:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (145, 7, NULL, '196.62.252.5', 'admin', '2020-03-26 11:05:24');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (146, 7, NULL, '2.88.247.102', 'admin', '2020-04-01 06:38:43');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (147, 7, NULL, '103.140.30.124', 'admin', '2020-04-01 07:13:23');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (148, 7, NULL, '39.50.90.188', 'admin', '2020-04-02 05:58:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (149, 7, NULL, '103.140.30.124', 'admin', '2020-04-03 11:09:53');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (150, 7, NULL, '39.50.120.233', 'admin', '2020-04-06 12:23:03');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (151, 7, NULL, '39.33.189.243', 'admin', '2020-04-07 01:20:45');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (152, 7, NULL, '39.50.66.78', 'admin', '2020-04-07 05:13:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (153, 7, NULL, '39.50.66.78', 'admin', '2020-04-07 12:15:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (154, 7, NULL, '39.50.28.184', 'admin', '2020-04-08 05:38:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (155, 7, NULL, '39.50.28.184', 'admin', '2020-04-08 07:55:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (156, 7, NULL, '39.33.189.243', 'admin', '2020-04-09 04:53:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (157, 7, NULL, '39.33.189.243', 'admin', '2020-04-09 04:56:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (158, 7, NULL, '39.50.26.82', 'admin', '2020-04-13 07:05:44');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (159, 7, NULL, '39.50.26.82', 'admin', '2020-04-13 10:44:47');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (160, 7, NULL, '110.93.241.186', 'admin', '2020-04-14 05:29:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (161, 7, NULL, '39.50.39.102', 'admin', '2020-04-15 07:06:43');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (162, 7, NULL, '110.93.241.186', 'admin', '2020-04-15 10:07:03');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (163, 7, NULL, '39.33.154.122', 'admin', '2020-04-16 08:14:24');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (164, 7, NULL, '130.193.197.206', 'admin', '2020-04-17 15:31:47');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (165, 7, NULL, '130.193.197.206', 'admin', '2020-04-17 19:52:02');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (166, 7, NULL, '93.219.147.32', 'admin', '2020-04-17 19:52:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (167, 7, NULL, '93.219.147.32', 'admin', '2020-04-18 19:42:21');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (168, 7, NULL, '93.219.147.32', 'admin', '2020-04-18 21:43:06');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (169, 7, NULL, '39.50.81.161', 'admin', '2020-04-20 09:36:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (170, 7, NULL, '130.193.200.95', 'admin', '2020-04-20 15:09:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (171, 7, NULL, '130.193.200.95', 'admin', '2020-04-20 18:31:15');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (172, 7, NULL, '165.225.24.47', 'admin', '2020-04-23 13:40:21');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (173, 7, NULL, '165.225.24.47', 'admin', '2020-04-24 12:56:13');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (174, 7, NULL, '130.193.218.70', 'admin', '2020-04-24 20:29:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (175, 7, NULL, '39.50.111.124', 'admin', '2020-04-30 05:45:29');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (176, 7, NULL, '2.90.135.73', 'admin', '2020-04-30 18:02:16');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (177, 2, NULL, '2.90.135.73', 'owner', '2020-04-30 18:02:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (178, 7, NULL, '2.90.135.73', 'admin', '2020-04-30 18:03:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (179, 7, NULL, '130.193.198.52', 'admin', '2020-05-01 10:19:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (180, 7, NULL, '62.201.239.4', 'admin', '2020-05-01 17:28:57');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (181, 7, NULL, '62.201.253.38', 'admin', '2020-05-02 12:06:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (182, 7, NULL, '62.201.254.131', 'admin', '2020-05-02 14:09:43');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (183, 7, NULL, '62.201.239.164', 'admin', '2020-05-02 21:25:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (184, 7, NULL, '62.201.239.164', 'admin', '2020-05-03 07:04:25');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (185, 7, NULL, '62.201.254.90', 'admin', '2020-05-03 09:40:39');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (186, 7, NULL, '62.201.253.38', 'admin', '2020-05-06 10:28:06');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (187, 7, NULL, '62.201.254.19', 'admin', '2020-05-06 11:01:16');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (188, 7, NULL, '62.201.254.19', 'admin', '2020-05-06 14:50:24');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (189, 7, NULL, '62.201.255.117', 'admin', '2020-05-07 08:11:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (190, 7, NULL, '165.225.24.53', 'admin', '2020-05-07 08:16:50');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (191, 7, NULL, '39.50.24.199', 'admin', '2020-05-12 08:44:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (192, 7, NULL, '39.50.117.112', 'admin', '2020-05-13 07:07:08');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (193, 7, NULL, '110.93.241.186', 'admin', '2020-05-13 08:23:04');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (194, 7, NULL, '39.50.41.65', 'admin', '2020-05-14 10:42:30');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (195, 7, NULL, '62.201.254.62', 'admin', '2020-05-16 15:15:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (196, 7, NULL, '62.201.254.14', 'admin', '2020-05-18 10:07:14');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (197, 7, NULL, '130.193.213.171', 'admin', '2020-05-19 20:40:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (198, 7, NULL, '62.201.255.192', 'admin', '2020-05-20 09:52:27');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (199, 7, NULL, '62.201.254.245', 'admin', '2020-05-21 09:36:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (200, 7, NULL, '62.201.254.245', 'admin', '2020-05-21 13:05:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (201, 7, NULL, '130.193.193.74', 'admin', '2020-05-21 20:26:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (202, 7, NULL, '130.193.193.74', 'admin', '2020-05-22 14:30:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (203, 7, NULL, '37.104.142.104', 'admin', '2020-05-27 15:41:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (204, 7, NULL, '130.193.198.2', 'admin', '2020-05-27 18:47:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (205, 7, NULL, '62.201.239.112', 'admin', '2020-05-27 19:46:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (206, 2, NULL, '2.88.174.186', 'Owner', '2020-05-27 20:38:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (207, 2, NULL, '130.193.198.2', 'owner', '2020-05-27 20:39:18');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (208, 7, NULL, '182.189.13.89', 'admin', '2020-05-28 04:21:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (209, 7, NULL, '182.189.207.231', 'admin', '2020-05-29 07:53:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (210, 7, NULL, '182.189.207.231', 'admin', '2020-05-29 11:28:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (211, 7, NULL, '62.201.239.112', 'admin', '2020-05-30 20:35:10');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (212, 7, NULL, '62.201.255.72', 'admin', '2020-05-31 11:48:44');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (213, 7, NULL, '59.103.210.248', 'admin', '2020-06-01 06:38:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (214, 7, NULL, '130.193.207.151', 'admin', '2020-06-01 19:29:16');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (215, 7, NULL, '59.103.199.83', 'admin', '2020-06-02 09:05:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (216, 7, NULL, '51.218.230.206', 'admin', '2020-06-03 10:01:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (217, 7, NULL, '130.193.207.151', 'admin', '2020-06-03 18:54:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (218, 7, NULL, '62.201.253.38', 'admin', '2020-06-03 18:55:43');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (219, 7, NULL, '62.201.239.228', 'admin', '2020-06-03 20:07:01');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (220, 7, NULL, '62.201.239.228', 'admin', '2020-06-03 20:16:53');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (221, 7, NULL, '51.218.230.206', 'admin', '2020-06-03 20:34:44');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (222, 7, NULL, '130.193.203.154', 'admin', '2020-06-09 20:25:18');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (223, 7, NULL, '62.201.254.60', 'admin', '2020-06-13 11:35:20');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (224, 7, NULL, '130.193.221.250', 'admin', '2020-06-16 18:34:52');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (225, 7, NULL, '62.201.254.86', 'admin', '2020-06-20 09:57:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (226, 7, NULL, '62.201.255.13', 'admin', '2020-06-21 10:16:01');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (227, 7, NULL, '103.140.31.186', 'admin', '2020-07-01 07:42:13');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (228, 7, NULL, '39.33.228.206', 'admin', '2020-07-03 05:00:14');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (229, 7, NULL, '122.8.206.30', 'admin', '2020-07-03 05:47:55');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (230, 7, NULL, '110.93.227.119', 'admin', '2020-07-03 07:12:03');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (231, 7, NULL, '2.90.24.105', 'admin', '2020-07-03 11:29:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (232, 7, NULL, '51.235.51.122', 'admin', '2020-07-06 09:20:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (233, 7, NULL, '62.201.255.156', 'admin', '2020-07-06 09:29:03');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (234, 7, NULL, '51.235.51.122', 'admin', '2020-07-06 10:01:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (235, 7, NULL, '62.201.253.38', 'admin', '2020-07-06 11:19:14');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (236, 7, NULL, '62.201.253.38', 'admin', '2020-07-06 12:18:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (237, 7, NULL, '165.225.26.245', 'admin', '2020-07-06 13:05:04');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (238, 7, NULL, '62.201.255.113', 'admin', '2020-07-07 12:24:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (239, 7, NULL, '39.33.137.239', 'admin', '2020-07-07 12:31:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (240, 7, NULL, '182.189.54.42', 'admin', '2020-07-07 12:44:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (241, 7, NULL, '62.201.255.205', 'admin', '2020-07-08 12:32:57');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (242, 7, NULL, '62.201.253.38', 'admin', '2020-07-08 14:36:47');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (243, 7, NULL, '182.189.126.232', 'admin', '2020-07-09 13:10:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (244, 7, NULL, '14.192.144.243', 'admin', '2020-07-09 13:12:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (245, 7, NULL, '62.201.255.15', 'admin', '2020-07-09 14:54:42');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (246, 7, NULL, '182.189.108.198', 'admin', '2020-07-10 11:04:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (247, 7, NULL, '62.201.255.250', 'admin', '2020-07-13 13:43:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (248, 7, NULL, '72.139.204.116', 'admin', '2020-07-20 11:18:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (249, 7, NULL, '72.139.204.116', 'admin', '2020-07-20 11:21:04');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (250, 7, NULL, '76.68.26.232', 'admin', '2020-07-20 19:42:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (251, 7, NULL, '69.157.69.189', 'admin', '2020-07-22 04:12:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (252, 7, NULL, '59.153.127.187', 'admin', '2020-07-22 12:23:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (253, 7, NULL, '130.193.238.189', 'admin', '2020-08-06 19:10:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (254, 7, NULL, '130.193.238.189', 'admin', '2020-08-07 13:30:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (255, 7, NULL, '62.201.240.206', 'admin', '2020-08-08 14:48:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (256, 7, NULL, '130.193.245.119', 'admin', '2020-08-08 20:15:07');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (257, 7, NULL, '86.98.159.22', 'admin', '2020-08-11 18:33:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (258, 7, NULL, '110.93.225.217', 'admin', '2020-08-12 07:58:31');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (259, 7, NULL, '62.201.240.125', 'admin', '2020-08-15 08:19:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (260, 7, NULL, '62.201.240.74', 'admin', '2020-08-17 08:49:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (261, 7, NULL, '62.201.240.122', 'admin', '2020-08-19 10:03:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (262, 7, NULL, '107.185.163.76', 'admin', '2020-08-21 07:02:53');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (263, 7, NULL, '130.193.245.39', 'admin', '2020-08-21 19:57:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (264, 7, NULL, '62.201.240.138', 'admin', '2020-08-22 10:47:53');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (265, 7, NULL, '62.201.240.34', 'admin', '2020-08-26 14:15:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (266, 7, NULL, '62.201.240.8', 'admin', '2020-08-30 13:31:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (267, 7, NULL, '62.201.240.27', 'admin', '2020-09-03 12:57:59');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (268, 7, NULL, '62.201.240.27', 'admin', '2020-09-03 13:43:15');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (269, 7, NULL, '62.201.240.63', 'admin', '2020-09-07 14:46:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (270, 7, NULL, '122.171.111.7', 'admin', '2020-09-11 11:52:14');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES (271, 7, NULL, '62.201.240.15', 'admin', '2020-09-14 10:50:07');


#
# TABLE STRUCTURE FOR: sma_users
#

DROP TABLE IF EXISTS `sma_users`;

CREATE TABLE `sma_users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `last_ip_address` varbinary(45) DEFAULT NULL,
  `ip_address` varbinary(45) NOT NULL,
  `username` varchar(100) NOT NULL,
  `password` varchar(40) NOT NULL,
  `salt` varchar(40) DEFAULT NULL,
  `email` varchar(100) NOT NULL,
  `activation_code` varchar(40) DEFAULT NULL,
  `forgotten_password_code` varchar(40) DEFAULT NULL,
  `forgotten_password_time` int(11) unsigned DEFAULT NULL,
  `remember_code` varchar(40) DEFAULT NULL,
  `created_on` int(11) unsigned NOT NULL,
  `last_login` int(11) unsigned DEFAULT NULL,
  `active` tinyint(1) unsigned DEFAULT NULL,
  `first_name` varchar(50) DEFAULT NULL,
  `last_name` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `avatar` varchar(55) DEFAULT NULL,
  `gender` varchar(20) DEFAULT NULL,
  `group_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `biller_id` int(10) unsigned DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `show_cost` tinyint(1) DEFAULT '0',
  `show_price` tinyint(1) DEFAULT '0',
  `award_points` int(11) DEFAULT '0',
  `view_right` tinyint(1) NOT NULL DEFAULT '0',
  `edit_right` tinyint(1) NOT NULL DEFAULT '0',
  `allow_discount` tinyint(1) DEFAULT '0',
  `stores_id` varchar(50) NOT NULL,
  `wherehouse_id_header` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`,`warehouse_id`,`biller_id`),
  KEY `group_id_2` (`group_id`,`company_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`, `stores_id`, `wherehouse_id_header`) VALUES (2, '130.193.198.2', '', 'owner', '38dc63b680d205e1a16b4e3ccd3587900bf7f630', NULL, 'mamun@mediatechsolution.com', NULL, NULL, NULL, '6df73cc169278dd6daab5fe7d6cacb1fed537131', 0, 1590611958, 1, 'Owner', 'Owner', 'stock manager', NULL, '053193922c5a1413883b302f0f554d61.png', NULL, 1, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, '', '');
INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`, `stores_id`, `wherehouse_id_header`) VALUES (7, '62.201.240.15', '37.104.249.234', 'admin', '2b12e1a2252d642c09f640b63ed35dcc5690464a', NULL, 'graphics_webdesign2002@yahoo.com', NULL, NULL, NULL, NULL, 1578315886, 1600080607, 1, 'admin', 'user', 'admin', '954949494', NULL, 'male', 1, 0, 0, NULL, 0, 0, 0, 1, 0, 0, '', '');
INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`, `stores_id`, `wherehouse_id_header`) VALUES (8, '95.184.19.224', '95.184.19.224', 'sales', 'd4eeb116e211bb10579f4aa779c98b6e90a3d91c', NULL, 'sales@sales.com', NULL, NULL, NULL, NULL, 1579023745, 1579023755, 1, 'sales', 'sales', 'sales', '5465465', NULL, 'male', 5, 12, 3, NULL, 0, 0, 0, 0, 1, 1, '', '12');
INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`, `stores_id`, `wherehouse_id_header`) VALUES (9, '::1', '::1', 'hasnain', '529faba7483e6058ca97924706cbd0d26880bc7a', NULL, 'hasnain@gmail.com', NULL, NULL, NULL, NULL, 1580378300, 1580466290, 1, 'hasnain', 'khan', 'abc', '123123', NULL, 'male', 5, NULL, NULL, NULL, 0, 0, 0, 1, 1, 1, '32', '12');


#
# TABLE STRUCTURE FOR: sma_variants
#

DROP TABLE IF EXISTS `sma_variants`;

CREATE TABLE `sma_variants` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(55) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `sma_variants` (`id`, `name`) VALUES (1, 'Black color');
INSERT INTO `sma_variants` (`id`, `name`) VALUES (2, 'Blue Color');
INSERT INTO `sma_variants` (`id`, `name`) VALUES (3, 'Red Color');


#
# TABLE STRUCTURE FOR: sma_verify_app
#

DROP TABLE IF EXISTS `sma_verify_app`;

CREATE TABLE `sma_verify_app` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `verification_code` varchar(50) NOT NULL,
  `is_valid` varchar(10) NOT NULL,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

INSERT INTO `sma_verify_app` (`id`, `verification_code`, `is_valid`, `ip`) VALUES (1, '34e738a674888e0283a80205ce3871d7', 'verify', NULL);


#
# TABLE STRUCTURE FOR: sma_warehouses
#

DROP TABLE IF EXISTS `sma_warehouses`;

CREATE TABLE `sma_warehouses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `map` varchar(255) DEFAULT NULL,
  `phone` varchar(55) DEFAULT NULL,
  `email` varchar(55) DEFAULT NULL,
  `price_group_id` int(11) DEFAULT NULL,
  `opening_cash` varchar(15) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

INSERT INTO `sma_warehouses` (`id`, `code`, `name`, `address`, `map`, `phone`, `email`, `price_group_id`, `opening_cash`) VALUES (17, 'park tower', 'park tower', '<p>parky azadi</p>', NULL, '', '', 1, '0');
INSERT INTO `sma_warehouses` (`id`, `code`, `name`, `address`, `map`, `phone`, `email`, `price_group_id`, `opening_cash`) VALUES (18, 'france galary', 'france galary', '<p>jadae chwarta</p>', NULL, '', '', 1, '0');


#
# TABLE STRUCTURE FOR: sma_warehouses_products
#

DROP TABLE IF EXISTS `sma_warehouses_products`;

CREATE TABLE `sma_warehouses_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `rack` varchar(55) DEFAULT NULL,
  `avg_cost` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES (1, 1, 17, '0.0000', NULL, '10.0000');


#
# TABLE STRUCTURE FOR: sma_warehouses_products_variants
#

DROP TABLE IF EXISTS `sma_warehouses_products_variants`;

CREATE TABLE `sma_warehouses_products_variants` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `option_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `rack` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `option_id` (`option_id`),
  KEY `product_id` (`product_id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_warehouses_stores_products
#

DROP TABLE IF EXISTS `sma_warehouses_stores_products`;

CREATE TABLE `sma_warehouses_stores_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `rack` varchar(55) DEFAULT NULL,
  `avg_cost` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_warehouses_stores_products` (`id`, `product_id`, `warehouse_id`, `store_id`, `quantity`, `rack`, `avg_cost`) VALUES (1, 1, 17, 41, '97.0000', NULL, '0.0000');


