/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 50505
Source Host           : localhost:3306
Source Database       : erpnew

Target Server Type    : MYSQL
Target Server Version : 50505
File Encoding         : 65001

Date: 2024-02-12 10:49:51
*/


-- ----------------------------
-- Table structure for `6moncons`
-- ----------------------------
CREATE TABLE `6moncons` (
  `ID` int(11) NOT NULL,
  `cus_code` varchar(20) DEFAULT NULL,
  `cus_name` varchar(100) DEFAULT NULL,
  `sal_ex` varchar(50) DEFAULT NULL,
  `brand` varchar(50) DEFAULT NULL,
  `LIMIT` double DEFAULT NULL,
  `month1` int(11) DEFAULT NULL,
  `month2` int(11) DEFAULT NULL,
  `month3` int(11) DEFAULT NULL,
  `CAT` varchar(10) DEFAULT NULL,
  `target` int(11) DEFAULT NULL,
  `month4` int(11) DEFAULT NULL,
  `month5` int(11) DEFAULT NULL,
  `month6` int(11) DEFAULT NULL,
  `month7` int(11) DEFAULT NULL,
  `month8` int(11) DEFAULT NULL,
  `month9` int(11) DEFAULT NULL,
  `month10` int(11) DEFAULT NULL,
  `month11` int(11) DEFAULT NULL,
  `month12` int(11) DEFAULT NULL,
  `TOT` int(11) DEFAULT NULL,
  `user_id` varchar(50) DEFAULT NULL,
  `pmon1` int(11) DEFAULT NULL,
  `pmon2` int(11) DEFAULT NULL,
  `pmon3` int(11) DEFAULT NULL,
  `pmon4` int(11) DEFAULT NULL,
  `pmon5` int(11) DEFAULT NULL,
  `pmon6` int(11) DEFAULT NULL,
  `pmon7` int(11) DEFAULT NULL,
  `pmon8` int(11) DEFAULT NULL,
  `pmon9` int(11) DEFAULT NULL,
  `pmon10` int(11) DEFAULT NULL,
  `pmon11` int(11) DEFAULT NULL,
  `pmon12` int(11) DEFAULT NULL,
  `model` int(11) DEFAULT NULL,
  `group1` int(11) DEFAULT NULL,
  `group2` int(11) DEFAULT NULL,
  `part_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `cus_code` (`cus_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of 6moncons
-- ----------------------------

-- ----------------------------
-- Table structure for `6monsales`
-- ----------------------------
CREATE TABLE `6monsales` (
  `ID` int(11) NOT NULL,
  `cus_code` varchar(20) DEFAULT NULL,
  `cus_name` varchar(100) DEFAULT NULL,
  `sal_ex` varchar(50) DEFAULT NULL,
  `brand` varchar(50) DEFAULT NULL,
  `LIMIT` double DEFAULT NULL,
  `month1` float(11,2) DEFAULT NULL,
  `month2` float(11,2) DEFAULT NULL,
  `month3` float(11,2) DEFAULT NULL,
  `CAT` varchar(10) DEFAULT NULL,
  `target` float(11,2) DEFAULT NULL,
  `month4` float(11,2) DEFAULT NULL,
  `month5` float(11,2) DEFAULT NULL,
  `month6` float(11,2) DEFAULT NULL,
  `month7` float(11,2) DEFAULT NULL,
  `month8` float(11,2) DEFAULT NULL,
  `month9` float(11,2) DEFAULT NULL,
  `month10` float(11,2) DEFAULT NULL,
  `month11` float(11,2) DEFAULT NULL,
  `month12` float(11,2) DEFAULT NULL,
  `TOT` float(11,2) DEFAULT NULL,
  `user_id` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `cus_code` (`cus_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of 6monsales
-- ----------------------------

-- ----------------------------
-- Table structure for `administrator`
-- ----------------------------
CREATE TABLE `administrator` (
  `str_Admin_Name` varchar(255) NOT NULL,
  `str_Password` varchar(255) NOT NULL,
  `User_Type` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of administrator
-- ----------------------------

-- ----------------------------
-- Table structure for `bankmas`
-- ----------------------------
CREATE TABLE `bankmas` (
  `bcode` varchar(255) DEFAULT NULL,
  `bbcode` varchar(255) DEFAULT NULL,
  `bname` varchar(255) DEFAULT NULL,
  `shname` varchar(255) DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tmp_no` varchar(50) DEFAULT NULL,
  `cancell` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `bankmas` (`bcode`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1883 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of bankmas
-- ----------------------------

-- ----------------------------
-- Table structure for `batmas`
-- ----------------------------
CREATE TABLE `batmas` (
  `cuscode` varchar(255) DEFAULT NULL,
  `CUSNAME` varchar(255) DEFAULT NULL,
  `MODEL` varchar(255) DEFAULT NULL,
  `PARTNO` varchar(255) DEFAULT NULL,
  `BRAND` varchar(255) DEFAULT NULL,
  `batchNo` varchar(255) DEFAULT NULL,
  `BATNO` varchar(255) DEFAULT NULL,
  `INVNO` varchar(255) DEFAULT NULL,
  `INVDATE` date DEFAULT NULL,
  `id` int(11) NOT NULL,
  `user_nm` varchar(255) DEFAULT NULL,
  `CUSAD1` varchar(255) DEFAULT NULL,
  `CUSAD2` varchar(255) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of batmas
-- ----------------------------

-- ----------------------------
-- Table structure for `battery_invoice`
-- ----------------------------
CREATE TABLE `battery_invoice` (
  `id` int(11) NOT NULL,
  `barcode` varchar(50) DEFAULT NULL,
  `refno` varchar(50) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `cuscode` varchar(20) DEFAULT NULL,
  `cusname` varchar(50) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  `stk_no` varchar(20) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `invdate` date DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of battery_invoice
-- ----------------------------

-- ----------------------------
-- Table structure for `battry_inv`
-- ----------------------------
CREATE TABLE `battry_inv` (
  `c_code` varchar(50) DEFAULT NULL,
  `stk_no` varchar(50) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `qty` float DEFAULT NULL,
  `id` int(11) NOT NULL,
  `rep` varchar(3) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of battry_inv
-- ----------------------------

-- ----------------------------
-- Table structure for `bmaster`
-- ----------------------------
CREATE TABLE `bmaster` (
  `bcode` varchar(255) DEFAULT NULL,
  `bbcode` varchar(255) DEFAULT NULL,
  `bname` varchar(255) DEFAULT NULL,
  `id` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of bmaster
-- ----------------------------

-- ----------------------------
-- Table structure for `brand_mas`
-- ----------------------------
CREATE TABLE `brand_mas` (
  `barnd_name` varchar(255) DEFAULT NULL,
  `class` varchar(255) DEFAULT NULL,
  `b60` decimal(8,0) DEFAULT 0,
  `d60to75` decimal(8,0) DEFAULT 0,
  `d75to90` decimal(8,0) DEFAULT 0,
  `o90` decimal(8,0) DEFAULT 0,
  `act` char(10) DEFAULT NULL,
  `flg` int(11) DEFAULT NULL,
  `dis` decimal(20,2) DEFAULT 0.00,
  `delindays` decimal(20,2) DEFAULT 0.00,
  `delinrate` decimal(20,2) DEFAULT 0.00,
  `MAX_INCEN_DIS` double(18,0) DEFAULT 0,
  `tmp_no` varchar(50) DEFAULT NULL,
  `costcenter` char(20) DEFAULT NULL,
  `id` int(20) NOT NULL AUTO_INCREMENT,
  `cancell` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `brand_mas` (`barnd_name`) USING BTREE,
  FULLTEXT KEY `class` (`class`)
) ENGINE=InnoDB AUTO_INCREMENT=362 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of brand_mas
-- ----------------------------
INSERT INTO `brand_mas` VALUES ('TEST1', 'Normal', '0', '0', '0', '0', '1', null, '0.00', '0.00', '2.50', '0', null, 'Q', '356', '0');
INSERT INTO `brand_mas` VALUES ('TEST2', 'Tyre', '0', '0', '0', '0', '1', null, '0.00', '0.00', '3.50', '0', null, 'E', '357', '0');
INSERT INTO `brand_mas` VALUES ('DSI', 'Tyre', '0', '0', '0', '0', '1', null, '1.00', '0.00', '2.50', '0', null, 'A', '358', '0');
INSERT INTO `brand_mas` VALUES ('AMORON', 'Battery', '0', '0', '0', '0', '1', null, '1.00', '0.00', '3.50', '0', null, 'B', '359', '0');
INSERT INTO `brand_mas` VALUES ('CEAT', 'Tyre', '0', '0', '0', '0', '1', null, '1.00', '0.00', '2.50', '0', null, 'C', '360', '0');
INSERT INTO `brand_mas` VALUES ('EXIDE', 'Battery', '0', '0', '0', '0', '1', null, '1.00', '0.00', '3.50', '0', null, 'D', '361', '0');

-- ----------------------------
-- Table structure for `br_trn`
-- ----------------------------
CREATE TABLE `br_trn` (
  `Class` varchar(255) DEFAULT NULL,
  `cus_code` varchar(255) DEFAULT NULL,
  `Rep` varchar(255) DEFAULT NULL,
  `credit_lim` decimal(10,0) DEFAULT 0,
  `credit` varchar(255) DEFAULT NULL,
  `brand` varchar(255) DEFAULT NULL,
  `tmpLmt` decimal(20,2) DEFAULT 0.00,
  `CAT` varchar(255) DEFAULT NULL,
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Day` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `days` float DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `br_trn` (`cus_code`) USING BTREE,
  KEY `cus_code` (`cus_code`,`Rep`,`credit_lim`,`brand`) USING BTREE,
  KEY `brand` (`brand`) USING BTREE,
  KEY `Rep` (`Rep`) USING BTREE,
  KEY `cus_code_2` (`cus_code`) USING BTREE,
  KEY `credit_lim` (`credit_lim`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of br_trn
-- ----------------------------
INSERT INTO `br_trn` VALUES (null, 'V/0123', '', '0', null, '', '0.00', '', '2', null, null, '0', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0123', 'All', '0', null, 'Q', '0.00', 'C', '3', null, null, '0', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0125', 'All', '1', null, 'Q', '0.00', 'C', '5', null, null, '14', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0131', 'All', '2', null, 'Q', '111.00', 'C', '6', '2023-12-13', null, '7', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0129', 'All', '1', null, 'Q', '11.00', 'C', '7', '2023-12-13', null, '7', '1');
INSERT INTO `br_trn` VALUES (null, 'V/0131', 'All', '1', null, '', '0.00', '', '9', null, null, '0', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0124', 'All', '1', null, 'Q', '1122.00', 'C', '10', '2023-12-13', null, '7', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0001', 'All', '0', null, 'Q', '11.00', null, '11', '2023-12-13', null, null, '0');
INSERT INTO `br_trn` VALUES (null, 'V/0131', 'R/013', '0', null, 'Q', '22.00', null, '13', '2023-12-13', null, null, '0');
INSERT INTO `br_trn` VALUES (null, 'V/0130', 'All', '5', null, 'BATTERY ', '0.00', 'C', '14', null, null, '14', '1');
INSERT INTO `br_trn` VALUES (null, 'V/0130', 'All', '333', null, 'TYRE', '0.00', 'C', '15', null, null, '7', '1');
INSERT INTO `br_trn` VALUES (null, 'V/0128', 'All', '1', null, 'BATTERY ', '0.00', 'C', '16', null, null, '7', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0131', 'All', '10', null, 'BATTERY ', '0.00', 'C', '17', null, null, '30', '0');
INSERT INTO `br_trn` VALUES (null, 'V/0130', 'All', '1', null, 'Q', '0.00', 'C', '18', null, null, '7', '1');

-- ----------------------------
-- Table structure for `chetrn`
-- ----------------------------
CREATE TABLE `chetrn` (
  `CT_REFNO` varchar(15) DEFAULT NULL,
  `CT_DATE` date DEFAULT NULL,
  `CT_CODE` varchar(5) DEFAULT NULL,
  `CT_TYPE` varchar(5) DEFAULT NULL,
  `CT_REFNO1` varchar(13) DEFAULT NULL,
  `CT_AMOUNT` decimal(15,2) DEFAULT 0.00,
  `CT_BANK` varchar(13) DEFAULT NULL,
  `CT_DEPDATE` date DEFAULT NULL,
  `CT_DATES` decimal(15,0) DEFAULT 0,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of chetrn
-- ----------------------------

-- ----------------------------
-- Table structure for `chk_import_dealer_province`
-- ----------------------------
CREATE TABLE `chk_import_dealer_province` (
  `c_code` varchar(150) DEFAULT NULL,
  `import_district` varchar(150) DEFAULT NULL,
  `import_province` varchar(100) DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of chk_import_dealer_province
-- ----------------------------

-- ----------------------------
-- Table structure for `chk_undelive`
-- ----------------------------
CREATE TABLE `chk_undelive` (
  `id` int(11) NOT NULL,
  `refno` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of chk_undelive
-- ----------------------------

-- ----------------------------
-- Table structure for `ch_sttr`
-- ----------------------------
CREATE TABLE `ch_sttr` (
  `ST_REFNO` varchar(20) DEFAULT '',
  `ST_DATE` date DEFAULT NULL,
  `ST_INVONO` varchar(20) DEFAULT '',
  `ST_PAID` decimal(20,2) DEFAULT 0.00,
  `ST_FLAG` varchar(3) DEFAULT NULL,
  `ST_INDATE` date DEFAULT NULL,
  `ST_CHBANK` varchar(50) DEFAULT NULL,
  `ST_DAYS` int(11) DEFAULT NULL,
  `ST_CHNO` varchar(20) DEFAULT NULL,
  `DUE` decimal(15,2) DEFAULT 0.00,
  `SETTLED_NO` varchar(50) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `RET_CHVAL` int(11) DEFAULT 0,
  `RET_CHSET` int(11) DEFAULT 0,
  `ST_CHEDATE` char(20) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `cus_code` char(20) DEFAULT '',
  `ex_flag` char(10) DEFAULT NULL,
  `ap_days` int(11) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `ch_sttr` (`ST_REFNO`,`ST_CHNO`) USING BTREE,
  KEY `ST_DATE` (`ST_DATE`,`ST_INVONO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of ch_sttr
-- ----------------------------

-- ----------------------------
-- Table structure for `commisionremark`
-- ----------------------------
CREATE TABLE `commisionremark` (
  `id` int(11) NOT NULL,
  `month` varchar(20) DEFAULT NULL,
  `rep` varchar(50) DEFAULT NULL,
  `remark` varchar(500) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `user` varchar(50) DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of commisionremark
-- ----------------------------

-- ----------------------------
-- Table structure for `commonvendor`
-- ----------------------------
CREATE TABLE `commonvendor` (
  `CODE` varchar(15) DEFAULT NULL,
  `NAME` varchar(100) DEFAULT NULL,
  `ADD1` varchar(50) DEFAULT NULL,
  `ADD2` varchar(50) DEFAULT NULL,
  `OPBAL` decimal(20,2) DEFAULT 0.00,
  `TELE1` varchar(50) DEFAULT NULL,
  `TELE2` varchar(50) DEFAULT NULL,
  `CONT` varchar(50) DEFAULT NULL,
  `CUR_BAL` decimal(20,2) DEFAULT 0.00,
  `OPDATE` date DEFAULT NULL,
  `LIMIT` decimal(20,2) DEFAULT 0.00,
  `PEN` varchar(50) DEFAULT NULL,
  `PENDA` date DEFAULT NULL,
  `FAX` varchar(50) DEFAULT NULL,
  `EMAIL` varchar(50) DEFAULT NULL,
  `vatno` varchar(50) DEFAULT NULL,
  `acno` varchar(50) DEFAULT NULL,
  `CAT` char(1) DEFAULT NULL,
  `RET_CHEQ` decimal(20,2) DEFAULT 0.00,
  `rep` char(10) DEFAULT NULL,
  `cus_type` char(10) DEFAULT NULL,
  `note` varchar(8000) DEFAULT NULL,
  `AltMessage` varchar(500) DEFAULT NULL,
  `bank_gr_date` date DEFAULT NULL,
  `temp_limit` decimal(20,2) DEFAULT 0.00,
  `blacklist` char(1) DEFAULT NULL,
  `o90` char(1) DEFAULT NULL,
  `Over_DUE_IG_Date` date DEFAULT NULL,
  `area` char(20) DEFAULT NULL,
  `provi` char(20) DEFAULT NULL,
  `pen2` char(20) DEFAULT NULL,
  `incdays` bigint(20) DEFAULT 0,
  `chk_bangr` char(1) DEFAULT NULL,
  `field1` char(10) DEFAULT NULL,
  `PEN0` decimal(20,2) DEFAULT 0.00,
  `svatno` char(20) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of commonvendor
-- ----------------------------

-- ----------------------------
-- Table structure for `com_she`
-- ----------------------------
CREATE TABLE `com_she` (
  `Brand` varchar(20) DEFAULT NULL,
  `sal_ex` varchar(10) DEFAULT NULL,
  `T1_Cat1` decimal(15,2) DEFAULT 0.00,
  `T1_cat2` decimal(15,2) DEFAULT 0.00,
  `T1_cat3` decimal(15,2) DEFAULT 0.00,
  `T2_Cat1` decimal(15,2) DEFAULT 0.00,
  `T2_cat2` decimal(15,2) DEFAULT 0.00,
  `T2_Cat3` decimal(15,2) DEFAULT 0.00,
  `T3_cat1` decimal(15,2) DEFAULT 0.00,
  `T3_cat2` decimal(15,2) DEFAULT 0.00,
  `T3_cat3` decimal(15,2) DEFAULT 0.00,
  `id` int(11) NOT NULL,
  `Day1` int(11) DEFAULT 0,
  `Day2` int(11) DEFAULT 0,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `com_she` (`Brand`,`sal_ex`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of com_she
-- ----------------------------

-- ----------------------------
-- Table structure for `com_she_del_dil`
-- ----------------------------
CREATE TABLE `com_she_del_dil` (
  `Brand` varchar(20) DEFAULT NULL,
  `sal_ex` varchar(10) DEFAULT NULL,
  `T1` decimal(20,2) DEFAULT 0.00,
  `T2` decimal(20,2) DEFAULT 0.00,
  `T3` decimal(20,2) DEFAULT 0.00,
  `T1_Cat1_DE` decimal(20,2) DEFAULT 0.00,
  `T1_cat2_DE` decimal(20,2) DEFAULT 0.00,
  `T1_cat3_DE` decimal(20,2) DEFAULT 0.00,
  `T2_Cat1_DE` decimal(20,2) DEFAULT 0.00,
  `T2_cat2_DE` decimal(20,2) DEFAULT 0.00,
  `T2_Cat3_DE` decimal(20,2) DEFAULT 0.00,
  `T3_cat1_DE` decimal(20,2) DEFAULT 0.00,
  `T3_cat2_DE` decimal(20,2) DEFAULT 0.00,
  `T3_cat3_DE` decimal(20,2) DEFAULT 0.00,
  `Td1` decimal(20,2) DEFAULT 0.00,
  `Td2` decimal(20,2) DEFAULT 0.00,
  `Td3` decimal(20,2) DEFAULT 0.00,
  `T1_Cat1_Dis` decimal(20,2) DEFAULT 0.00,
  `T1_Cat2_Dis` decimal(20,2) DEFAULT 0.00,
  `T1_Cat3_Dis` decimal(20,2) DEFAULT 0.00,
  `T2_Cat1_Dis` decimal(20,2) DEFAULT 0.00,
  `T2_Cat2_Dis` decimal(20,2) DEFAULT 0.00,
  `T2_Cat3_Dis` decimal(20,2) DEFAULT 0.00,
  `T3_Cat1_Dis` decimal(20,2) DEFAULT 0.00,
  `T3_Cat2_Dis` decimal(20,2) DEFAULT 0.00,
  `T3_Cat3_Dis` decimal(20,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of com_she_del_dil
-- ----------------------------

-- ----------------------------
-- Table structure for `com_tabale_dis_del`
-- ----------------------------
CREATE TABLE `com_tabale_dis_del` (
  `Repcode` varchar(10) DEFAULT NULL,
  `tar1_amount_de` decimal(20,2) DEFAULT 0.00,
  `tar1_rate_de` decimal(20,2) DEFAULT 0.00,
  `tar2_amount_de` decimal(20,2) DEFAULT 0.00,
  `tar2_rate_de` decimal(20,2) DEFAULT 0.00,
  `tar3_amount_de` decimal(20,2) DEFAULT 0.00,
  `tar3_rate_de` decimal(20,2) DEFAULT 0.00,
  `tar1_amount_di` decimal(20,2) DEFAULT 0.00,
  `tar1_rate_di` decimal(20,2) DEFAULT 0.00,
  `tar2_amount_di` decimal(20,2) DEFAULT 0.00,
  `tar2_rate_di` decimal(20,2) DEFAULT 0.00,
  `tar3_amount_di` decimal(20,2) DEFAULT 0.00,
  `tar3_rate_di` decimal(20,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `ID` int(100) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of com_tabale_dis_del
-- ----------------------------
INSERT INTO `com_tabale_dis_del` VALUES ('R/017', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', null, '0', '19');

-- ----------------------------
-- Table structure for `country`
-- ----------------------------
CREATE TABLE `country` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of country
-- ----------------------------
INSERT INTO `country` VALUES ('1', 'INDIA');
INSERT INTO `country` VALUES ('2', 'UK');
INSERT INTO `country` VALUES ('3', 'CHINA');

-- ----------------------------
-- Table structure for `cred`
-- ----------------------------
CREATE TABLE `cred` (
  `C_REFNO` varchar(20) DEFAULT NULL,
  `C_DATE` date DEFAULT NULL,
  `C_CODE` varchar(20) DEFAULT '',
  `C_INVNO` varchar(50) DEFAULT NULL,
  `C_PAYMENT` decimal(15,2) DEFAULT 0.00,
  `C_REMARK` varchar(2000) DEFAULT NULL,
  `C_SETINV` varchar(50) DEFAULT NULL,
  `C_TOTPAY` decimal(15,2) DEFAULT 0.00,
  `SETTLED` decimal(15,2) DEFAULT 0.00,
  `C_SALEX` varchar(20) DEFAULT '',
  `CANCELL` varchar(1) DEFAULT '0',
  `Brand` varchar(20) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `dummy_val` decimal(15,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `mon_incen` varchar(10) DEFAULT NULL,
  `p_remk` varchar(50) DEFAULT NULL,
  `maindepartment` varchar(100) DEFAULT NULL,
  `sdate1` date DEFAULT NULL,
  `prob` varchar(20) DEFAULT NULL,
  `TYPE` varchar(100) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`ID`),
  KEY `cred` (`C_REFNO`,`C_CODE`) USING BTREE,
  KEY `C_CODE` (`C_CODE`,`C_SETINV`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of cred
-- ----------------------------
INSERT INTO `cred` VALUES ('IS/CRN/000001', '2024-01-30', 'V/0027', 'IS/INV/CB/000017', '100000.00', 'TEST', null, '0.00', '0.00', 'R/016', '1', 'AMORON', '0', '0.00', '65b8b3c4cf010', null, null, '', '2024-01-30', null, 'Trade Discount', 'IS', '1');
INSERT INTO `cred` VALUES ('IS/CRN/000002', '2024-01-31', 'V/0027', 'IS/INV/CB/000013', '200000.00', 'TEST 2', null, '0.00', '0.00', 'R/016', '0', 'CEAT', '0', '0.00', '65b9e7cf3f3f7', null, null, '', '2024-01-31', null, 'Trade Discount', 'IS', '2');
INSERT INTO `cred` VALUES ('IS/CRN/000003', '2024-01-31', 'V/0027', 'IS/INV/CB/000013', '22.00', '', null, '0.00', '0.00', 'R/016', '0', 'CEAT', '0', '0.00', '65b9f229dc51b', null, null, '', '2024-01-31', null, 'Trade Discount', 'IS', '3');
INSERT INTO `cred` VALUES ('IS/CRN/000004', '2024-01-31', 'V/0027', 'IS/INV/CB/000013', '111.00', '', null, '0.00', '0.00', 'R/016', '0', 'DSI', '0', '0.00', '65b9f27b04838', null, null, '', '2024-01-31', null, 'Trade Discount', 'IS', '4');
INSERT INTO `cred` VALUES ('IS/CRN/000005', '2024-01-31', 'V/0027', 'IS/INV/CB/000013', '0.00', '', null, '0.00', '0.00', 'R/016', '0', 'DSI', '0', '0.00', '65b9f2a15851b', null, null, '', '2024-01-31', null, 'Trade Discount', 'IS', '8');
INSERT INTO `cred` VALUES ('IS/CRN/000006', '2024-01-31', 'V/0027', 'IS/INV/CB/000013', '2222.00', '22', null, '0.00', '0.00', 'R/016', '1', 'DSI', '0', '0.00', '65b9f302cc0b7', null, null, '', '2024-01-31', null, 'Trade Discount', 'IS', '9');

-- ----------------------------
-- Table structure for `customer_mast`
-- ----------------------------
CREATE TABLE `customer_mast` (
  `id` varchar(20) DEFAULT NULL,
  `str_customername` varchar(200) DEFAULT NULL,
  `str_address` varchar(200) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of customer_mast
-- ----------------------------

-- ----------------------------
-- Table structure for `c_bal`
-- ----------------------------
CREATE TABLE `c_bal` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `REFNO` varchar(20) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `CUSCODE` varchar(15) DEFAULT NULL,
  `AMOUNT` decimal(15,2) DEFAULT 0.00,
  `BALANCE` decimal(15,2) DEFAULT 0.00,
  `DEP` varchar(50) DEFAULT NULL,
  `SAL_EX` varchar(50) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `brand` varchar(30) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `trn_type` char(10) DEFAULT NULL,
  `trn_type2` varchar(10) DEFAULT NULL,
  `old` char(10) DEFAULT NULL,
  `vatrate` int(11) DEFAULT NULL,
  `RNO` char(20) DEFAULT NULL,
  `flag1` int(11) DEFAULT 0,
  `active` int(11) DEFAULT 0,
  `totpay` decimal(15,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `Costcenter` char(15) DEFAULT NULL,
  `VAT` char(1) DEFAULT NULL,
  `vat_no` varchar(20) DEFAULT NULL,
  `s_vat_no` varchar(20) DEFAULT NULL,
  `vat_val` decimal(15,2) DEFAULT NULL,
  `c_code1` varchar(20) DEFAULT NULL,
  `maindepartment` varchar(100) DEFAULT NULL,
  `sdate1` date DEFAULT NULL,
  `prob` varchar(50) DEFAULT NULL,
  `block` int(11) DEFAULT 0,
  `app1` varchar(50) DEFAULT NULL,
  `app2` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `vat_novat` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `c_bal` (`REFNO`,`SDATE`,`CUSCODE`,`SAL_EX`,`brand`,`DEV`,`trn_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of c_bal
-- ----------------------------
INSERT INTO `c_bal` VALUES ('24', 'IS/CRN/000001', '2024-01-30', 'V/0027', '100000.00', '100000.00', '04', 'R/016', '1', 'AMORON', '0', 'CNT', null, '0', '0', null, '0', '1', '0.00', '65b8b3c4cf010', null, null, null, null, null, '', '', '2024-01-30', null, '0', null, null, 'IS', '0');
INSERT INTO `c_bal` VALUES ('25', 'IS/CRN/000002', '2024-01-31', 'V/0027', '200000.00', '199900.00', '04', 'R/016', '0', 'CEAT', '0', 'CNT', null, '0', '0', null, '0', '1', '0.00', '65b9e7cf3f3f7', null, null, null, null, null, '', '', '2024-01-31', null, '0', null, null, 'IS', '0');
INSERT INTO `c_bal` VALUES ('26', 'IS/CRN/000003', '2024-01-31', 'V/0027', '22.00', '22.00', '04', 'R/016', '0', 'CEAT', '0', 'CNT', null, '0', '0', null, '0', '1', '0.00', '65b9f229dc51b', null, null, null, null, null, '', '', '2024-01-31', null, '0', null, null, 'IS', '0');
INSERT INTO `c_bal` VALUES ('27', 'IS/CRN/000004', '2024-01-31', 'V/0027', '111.00', '94.00', '04', 'R/016', '0', 'DSI', '0', 'CNT', null, '0', '0', null, '0', '1', '0.00', '65b9f27b04838', null, null, null, null, null, '', '', '2024-01-31', null, '0', null, null, 'IS', '0');
INSERT INTO `c_bal` VALUES ('31', 'IS/CRN/000005', '2024-01-31', 'V/0027', '0.00', '0.00', '04', 'R/016', '0', 'DSI', '0', 'CNT', null, '0', '0', null, '0', '1', '0.00', '65b9f2a15851b', null, null, null, null, null, '', '', '2024-01-31', null, '0', null, null, 'IS', '0');
INSERT INTO `c_bal` VALUES ('32', 'IS/CRN/000006', '2024-01-31', 'V/0027', '2222.00', '2222.00', '04', 'R/016', '1', 'DSI', '0', 'CNT', null, '0', '0', null, '0', '1', '0.00', '65b9f302cc0b7', null, null, null, null, null, '', '', '2024-01-31', null, '0', null, null, 'IS', '0');
INSERT INTO `c_bal` VALUES ('33', 'IS/GRN/000221', '2024-02-07', 'V/0027', '200000.00', '200000.00', '04', 'R/016', '0', 'AMORON', '0', 'ARN', null, '0', '15', null, '0', '1', '0.00', '65c3483321ff7', null, null, null, null, null, 'V/0027', '', '2024-02-07', null, '0', null, null, 'IS', '0');

-- ----------------------------
-- Table structure for `c_bal_s_salma`
-- ----------------------------
CREATE TABLE `c_bal_s_salma` (
  `ret_no` varchar(50) DEFAULT NULL,
  `inv_no` varchar(50) DEFAULT NULL,
  `ret_amo` float(50,0) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of c_bal_s_salma
-- ----------------------------

-- ----------------------------
-- Table structure for `c_clamas`
-- ----------------------------
CREATE TABLE `c_clamas` (
  `DGRN_NO` char(20) NOT NULL DEFAULT '0',
  `DGRN_NO2` char(20) DEFAULT '0',
  `DGRN_NO3` char(20) DEFAULT '0',
  `refno` char(30) DEFAULT NULL,
  `entdate` date DEFAULT NULL,
  `cl_no` char(10) DEFAULT NULL,
  `ag_code` char(100) DEFAULT '',
  `ag_name` char(100) DEFAULT NULL,
  `agadd` char(100) DEFAULT NULL,
  `cus_name` char(100) DEFAULT NULL,
  `cus_add` char(100) DEFAULT NULL,
  `stk_no` char(20) DEFAULT NULL,
  `des` char(100) DEFAULT NULL,
  `brand` char(30) DEFAULT NULL,
  `siz` char(30) DEFAULT NULL,
  `pr` char(30) DEFAULT NULL,
  `patt` char(30) DEFAULT NULL,
  `seri_no` char(30) DEFAULT NULL,
  `tc_ob` char(250) DEFAULT NULL,
  `Mn_ob` varchar(500) DEFAULT NULL,
  `remin` char(10) DEFAULT NULL,
  `cldate` date DEFAULT NULL,
  `spec` char(10) DEFAULT NULL,
  `remming` char(10) DEFAULT NULL,
  `ref_per` char(10) DEFAULT NULL,
  `CRD_no` char(30) DEFAULT NULL,
  `CRE_date` date DEFAULT NULL,
  `CRE_amount` decimal(15,2) DEFAULT 0.00,
  `ID` int(11) NOT NULL,
  `remin1` decimal(15,2) DEFAULT 0.00,
  `remin2` decimal(15,2) DEFAULT 0.00,
  `remin3` decimal(15,2) DEFAULT 0.00,
  `remin4` decimal(15,2) DEFAULT 0.00,
  `remin5` decimal(15,2) DEFAULT 0.00,
  `origin1` decimal(15,2) DEFAULT 0.00,
  `origin2` decimal(15,2) DEFAULT 0.00,
  `origin3` decimal(15,2) DEFAULT 0.00,
  `origin4` decimal(15,2) DEFAULT 0.00,
  `origin5` decimal(15,2) DEFAULT 0.00,
  `rem_per` char(10) DEFAULT NULL,
  `Refund` char(25) DEFAULT NULL,
  `recieve_date` date DEFAULT NULL,
  `Commercialy` varchar(2) DEFAULT NULL,
  `add_ref1` char(10) DEFAULT NULL,
  `add_ref2` char(10) DEFAULT NULL,
  `Amount` decimal(15,2) DEFAULT 0.00,
  `qty` int(11) DEFAULT 1,
  `type` char(10) DEFAULT NULL,
  `Sold_date` date DEFAULT NULL,
  `Sold_date_c` date DEFAULT NULL,
  `Chk_date` int(11) DEFAULT 0,
  `Cell1_el` bit(1) DEFAULT b'0',
  `Cell2_el` bit(1) DEFAULT b'0',
  `Cell3_el` bit(1) DEFAULT b'0',
  `Cell4_el` bit(1) DEFAULT b'0',
  `Cell5_el` bit(1) DEFAULT b'0',
  `Cell6_el` bit(1) DEFAULT b'0',
  `Cell1_Ispg` decimal(15,2) DEFAULT 0.00,
  `Cell2_Ispg` decimal(15,2) DEFAULT 0.00,
  `Cell3_Ispg` decimal(15,2) DEFAULT 0.00,
  `Cell4_Ispg` decimal(15,2) DEFAULT 0.00,
  `Cell5_Ispg` decimal(15,2) DEFAULT 0.00,
  `Cell6_Ispg` decimal(15,2) DEFAULT 0.00,
  `Cell1_Aspg` decimal(15,2) DEFAULT 0.00,
  `Cell2_Aspg` decimal(15,2) DEFAULT 0.00,
  `Cell3_Aspg` decimal(15,2) DEFAULT 0.00,
  `Cell4_Aspg` decimal(15,2) DEFAULT 0.00,
  `Cell5_Aspg` decimal(15,2) DEFAULT 0.00,
  `Cell6_Aspg` decimal(15,2) DEFAULT 0.00,
  `approve_md_wd` varchar(15) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `gatepass` date DEFAULT NULL,
  `returndate` date DEFAULT NULL,
  `OCV` float DEFAULT NULL,
  `OCV2` float DEFAULT NULL,
  `OCV3` float DEFAULT NULL,
  `rbat_serino` varchar(255) DEFAULT NULL,
  `c_subcode` varchar(20) DEFAULT NULL,
  `CCA` float DEFAULT NULL,
  `CCA2` float DEFAULT NULL,
  `CCA3` float DEFAULT NULL,
  `cl_approve` varchar(20) DEFAULT NULL,
  `delidate` date DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `c_clamas` (`DGRN_NO`,`DGRN_NO2`,`DGRN_NO3`,`refno`,`cl_no`,`stk_no`,`brand`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of c_clamas
-- ----------------------------

-- ----------------------------
-- Table structure for `dag`
-- ----------------------------
CREATE TABLE `dag` (
  `refno` varchar(20) DEFAULT NULL,
  `cuscode` varchar(50) DEFAULT NULL,
  `cusname` varchar(70) DEFAULT NULL,
  `sdate` varchar(70) DEFAULT NULL,
  `adpayment` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `id` int(20) NOT NULL,
  `cancel` varchar(1) DEFAULT '0',
  `flag` varchar(1) DEFAULT '0',
  `belt` varchar(20) DEFAULT NULL,
  `cascost` float(20,2) DEFAULT 0.00,
  `department` varchar(100) DEFAULT NULL,
  `TYPE` varchar(100) DEFAULT '',
  `TYPE1` varchar(100) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag
-- ----------------------------

-- ----------------------------
-- Table structure for `dag_belt`
-- ----------------------------
CREATE TABLE `dag_belt` (
  `name` varchar(50) DEFAULT NULL,
  `id` int(20) NOT NULL,
  `code` varchar(20) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag_belt
-- ----------------------------

-- ----------------------------
-- Table structure for `dag_design`
-- ----------------------------
CREATE TABLE `dag_design` (
  `id` int(20) NOT NULL,
  `code` varchar(20) DEFAULT NULL,
  `design` varchar(50) DEFAULT NULL,
  `des` varchar(50) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag_design
-- ----------------------------
INSERT INTO `dag_design` VALUES ('109', 'D/00001', 'MXA1 195', 'MXA1 195 	UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('110', 'D/00002', 'MXA1 203', '	UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('111', 'D/00003', 'MXA1 210', 'UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('112', 'D/00004', 'MXA1 220', 'UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('113', 'D/00005', 'MXA1 230', 'UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('114', 'D/00006', 'MXA1  240', 'UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('115', 'D/00007', 'MXA1 250', 'UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('116', 'D/00008', 'MXA1 150', 'UNIQUE FREE-ROLLING RIB PATTERN', '0');
INSERT INTO `dag_design` VALUES ('117', 'D/00009', 'MXB  150', 'DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('118', 'D/00010', 'MXB 160', 'DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('119', 'D/00011', 'RIB 60', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('120', 'D/00012', 'RIB 61', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('121', 'D/00013', 'RIB 70', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('122', 'D/00014', 'RIB 71', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('123', 'D/00015', 'RIB 72E', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('124', 'D/00016', 'RIB 75', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('125', 'D/00017', 'RIB 76', 'SUITABLE FOR BIAS AND RADIAL CASING', '0');
INSERT INTO `dag_design` VALUES ('126', 'D/00018', 'RIB 90E', '	SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('127', 'D/00019', 'RIB 91', '	SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('128', 'D/00020', 'RIB 92', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('129', 'D/00021', 'RIB 101', '	SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('133', 'D/00025', 'RIB 102L', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('134', 'D/00026', 'KRL 194', 'SUITABLE FOR BIAS CASING FOUR BUS ', '0');
INSERT INTO `dag_design` VALUES ('135', 'D/00027', 'RIB 104', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('136', 'D/00028', 'RIB 195', 'SUITABLE FOR BIAS CASING TRUCK ', '0');
INSERT INTO `dag_design` VALUES ('137', 'D/00029', 'MXB 195', 'MXB 160	DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('138', 'D/00030', 'KRL 205', 'SUITABLE FOR BIAS CASING FOUR BUS', '0');
INSERT INTO `dag_design` VALUES ('139', 'D/00031', 'SL 75 DT 71 (LCV) ', '	DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('140', 'D/00032', 'SL 70 (LCV)', 'DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('141', 'D/00033', 'MXA(2)  203', 'SPECIALLY DESIGNED FOR GRIP AND MILEAGE', '0');
INSERT INTO `dag_design` VALUES ('142', 'D/00034', 'MXA(2)  210', '	SPECIALLY DESIGNED FOR GRIP AND MILEAGE', '0');
INSERT INTO `dag_design` VALUES ('143', 'D/00035', 'MXA(2)  220', 'SPECIALLY DESIGNED FOR GRIP AND MILEAGE', '0');
INSERT INTO `dag_design` VALUES ('144', 'D/00036', 'MXA(2)  230', 'SPECIALLY DESIGNED FOR GRIP AND MILEAGE', '0');
INSERT INTO `dag_design` VALUES ('145', 'D/00037', 'MXA(2)  240', 'MXA2 203 	SPECIALLY DESIGNED FOR GRIP AND MILEAGE', '0');
INSERT INTO `dag_design` VALUES ('147', 'D/00039', 'RR 103', ' 	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('148', 'D/00040', 'RR 104', '	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('149', 'D/00041', 'RR 105', '	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('150', 'D/00042', 'RR 106', ' 	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('151', 'D/00043', 'RR 102', ' 	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('152', 'D/00044', 'RRE 102', 'DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('153', 'D/00045', 'RRE 103', 'DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('154', 'D/00046', 'RRE 104', 'DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('155', 'D/00047', 'RRE 105', '	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('156', 'D/00048', 'RRE 106', '	DESIGNED FOR TRUCK AND BUS RADIALS', '0');
INSERT INTO `dag_design` VALUES ('157', 'D/00049', 'SSR 117', '	UNIQUE FIVE RIB-RIB PATTERN FOR ALL-WHEEL POSITIO', '0');
INSERT INTO `dag_design` VALUES ('158', 'D/00050', 'RHW 102E', '	OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('159', 'D/00051', 'RHW 102LE', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('160', 'D/00052', 'RHW 103E', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('161', 'D/00053', 'RHW 104', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('162', 'D/00054', 'RHW 104LE', ' 	OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('163', 'D/00055', 'RHW 105E', '	OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('164', 'D/00056', 'RHW 113E', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('165', 'D/00057', 'RHW 115E', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('166', 'D/00058', 'RHW 124E', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('167', 'D/00059', 'RHW 125E', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('169', 'D/00061', 'RHW 126E', ' 	OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('170', 'D/00062', 'RHW 119', 'OPTIONAL USAGE FOR HIGHWAY OPERATIONS', '0');
INSERT INTO `dag_design` VALUES ('171', 'D/00063', 'WRR 102', ' 	GOOD RESISTANCE AGAINST STONE-TRAPPING', '0');
INSERT INTO `dag_design` VALUES ('172', 'D/00064', 'WRR 103', '	GOOD RESISTANCE AGAINST STONE-TRAPPING', '0');
INSERT INTO `dag_design` VALUES ('173', 'D/00065', 'WRR 113', '	GOOD RESISTANCE AGAINST STONE-TRAPPING', '0');
INSERT INTO `dag_design` VALUES ('174', 'D/00066', 'WRR 115', '	GOOD RESISTANCE AGAINST STONE-TRAPPING', '0');
INSERT INTO `dag_design` VALUES ('175', 'D/00067', 'ELGI  LR 140', '	GOOD FOUR PCR', '0');
INSERT INTO `dag_design` VALUES ('176', 'D/00068', 'WRR 250', 'GOOD RESISTANCE AGAINST STONE-TRAPPING', '0');
INSERT INTO `dag_design` VALUES ('177', 'D/00069', 'GSLR 215', 'IDEALLY SUITED FOR REAR WHEEL', '0');
INSERT INTO `dag_design` VALUES ('178', 'D/00070', 'GSLR 220', '	IDEALLY SUITED FOR REAR WHEEL', '0');
INSERT INTO `dag_design` VALUES ('179', 'D/00071', 'GSLR 230', 'IDEALLY SUITED FOR REAR WHEEL', '0');
INSERT INTO `dag_design` VALUES ('180', 'D/00072', 'SLR 104', '	OPTIMIZED PATTERN FOR BUSES AND TRUCKS', '0');
INSERT INTO `dag_design` VALUES ('181', 'D/00073', 'SLR 106', '	OPTIMIZED PATTERN FOR BUSES AND TRUCKS', '0');
INSERT INTO `dag_design` VALUES ('182', 'D/00074', 'SLR 301', 'OPTIMIZED PATTERN FOR BUSES AND TRUCKS', '0');
INSERT INTO `dag_design` VALUES ('183', 'D/00075', 'RLB 103', '	VERY GOOD TRACTION AND IDEALLY SUITED FOR DRIVE A', '0');
INSERT INTO `dag_design` VALUES ('184', 'D/00076', 'RLB 103 HL', 'RLB 103 HL 	VERY GOOD TRACTION AND IDEALLY SUITED ', '0');
INSERT INTO `dag_design` VALUES ('185', 'D/00077', 'RLB 113', 'VERY GOOD TRACTION AND IDEALLY SUITED FOR DRIVE AX', '0');
INSERT INTO `dag_design` VALUES ('186', 'D/00078', 'RLB 115', '	VERY GOOD TRACTION AND IDEALLY SUITED FOR DRIVE A', '0');
INSERT INTO `dag_design` VALUES ('187', 'D/00079', 'RLB 124', '	VERY GOOD TRACTION AND IDEALLY SUITED FOR DRIVE A', '0');
INSERT INTO `dag_design` VALUES ('188', 'D/00080', 'RLB 125', '	VERY GOOD TRACTION AND IDEALLY SUITED FOR DRIVE A', '0');
INSERT INTO `dag_design` VALUES ('189', 'D/00081', 'RLB 126', '	VERY GOOD TRACTION AND IDEALLY SUITED FOR DRIVE A', '0');
INSERT INTO `dag_design` VALUES ('190', 'D/00082', 'SUPER RIB 94', '	SAW-TOOTH PATTERN WITH WIDE CONTOURED SHOULDER RI', '0');
INSERT INTO `dag_design` VALUES ('191', 'D/00083', 'SUPER RIB 102', '	SAW-TOOTH PATTERN WITH WIDE CONTOURED SHOULDER RI', '0');
INSERT INTO `dag_design` VALUES ('192', 'D/00084', 'SUPER RIB 103', 'SAW-TOOTH PATTERN WITH WIDE CONTOURED SHOULDER RI', '0');
INSERT INTO `dag_design` VALUES ('193', 'D/00085', 'SL102 DT 71', 'LUGS DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('194', 'D/00086', 'SL101 DT 71', 'LUGS DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('195', 'D/00087', 'SL 92  DT 71', 'LUGS DESIGNED FOR COOLER RUNNING', '0');
INSERT INTO `dag_design` VALUES ('196', 'D/00088', 'MX3 195', 'DEPENDABLE,AGGRESSIVE AND OPEN TREAD DESIGN', '0');
INSERT INTO `dag_design` VALUES ('197', 'D/00089', 'MX3 205', 'DEPENDABLE,AGGRESSIVE AND OPEN TREAD DESIGN', '0');
INSERT INTO `dag_design` VALUES ('198', 'D/00090', 'RL 70 (LCV)', 'IDEALLY SUITED FOR REAR WHEEL', '0');
INSERT INTO `dag_design` VALUES ('199', 'D/00091', 'RL 75 (LCV)', 'IDEALLY SUITED FOR REAR WHEEL', '0');
INSERT INTO `dag_design` VALUES ('200', 'D/00092', 'SLR 76 (LCV)', 'IDEALLY SUITED FOR REAR WHEEL', '0');
INSERT INTO `dag_design` VALUES ('201', 'D/00093', 'RIB 93', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('202', 'D/00094', 'RIB 104L', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('203', 'D/00095', 'RIB 111E', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('204', 'D/00096', 'RIB 112E', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('205', 'D/00097', 'RIB 103', 'SUITABLE FOR BIAS CASING', '0');
INSERT INTO `dag_design` VALUES ('206', 'D/00098', 'HB 152 DULANKA', 'DULANKA BELT', '0');
INSERT INTO `dag_design` VALUES ('207', 'D/00099', 'HB 168 DULANKA', 'DULANKA ', '0');
INSERT INTO `dag_design` VALUES ('208', 'D/00100', '160 RADIYAL DULANKA', 'DULANKA ', '0');
INSERT INTO `dag_design` VALUES ('209', 'D/00101', 'HB 195 DULANKA', 'DULANKA ', '0');
INSERT INTO `dag_design` VALUES ('210', 'D/00102', 'HB 200 DULANKA', 'DULANKA ', '0');
INSERT INTO `dag_design` VALUES ('211', 'D/00103', 'HB 205 DULANKA', 'DULANKA ', '0');
INSERT INTO `dag_design` VALUES ('212', 'D/00104', '215 RADIYAL DULANKA', 'DULANKA ', '0');
INSERT INTO `dag_design` VALUES ('213', 'D/00105', 'ELGI  LR 150', 'GOOD FOUR PCR TIRE', '0');
INSERT INTO `dag_design` VALUES ('214', 'D/00106', 'ELGI  LR 140', 'GOOD FOUR PCR TIRE', '0');
INSERT INTO `dag_design` VALUES ('215', 'D/00107', 'ARPIDAG', '', '0');
INSERT INTO `dag_design` VALUES ('216', 'D/00108', 'ELGI  LR 170', 'GOOD FOUR PCR TIRE', '0');
INSERT INTO `dag_design` VALUES ('217', 'D/00109', 'ELGI 140', '', '0');
INSERT INTO `dag_design` VALUES ('218', 'D/00110', 'DOUBLE COIN', '', '0');
INSERT INTO `dag_design` VALUES ('219', 'D/00111', 'REBILL', '', '0');

-- ----------------------------
-- Table structure for `dag_item`
-- ----------------------------
CREATE TABLE `dag_item` (
  `refno` varchar(20) DEFAULT NULL,
  `cuscode` varchar(50) DEFAULT NULL,
  `cusname` varchar(70) DEFAULT NULL,
  `size` varchar(70) DEFAULT NULL,
  `marker` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `adpayment` float(20,2) DEFAULT 0.00,
  `serialno` varchar(20) NOT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `warrenty` varchar(20) DEFAULT NULL,
  `remark` varchar(50) DEFAULT NULL,
  `id` int(20) NOT NULL AUTO_INCREMENT,
  `cancel` varchar(1) DEFAULT '0',
  `flag` varchar(1) DEFAULT '0',
  `sdate` date DEFAULT NULL,
  `design` varchar(50) DEFAULT NULL,
  `onhand_date` date DEFAULT NULL,
  `pro_date` date DEFAULT NULL,
  `com_date` date DEFAULT NULL,
  `inv_date` date DEFAULT NULL,
  `amount` float(20,2) DEFAULT 0.00,
  `repair` float(20,2) DEFAULT 0.00,
  `total` float(20,2) DEFAULT 0.00,
  `jobno` varchar(20) DEFAULT NULL,
  `belt` varchar(20) DEFAULT NULL,
  `cost` float(20,2) DEFAULT 0.00,
  `cascost` float(20,2) DEFAULT 0.00,
  `dis1` float(20,2) DEFAULT 0.00,
  `amount1` float(20,2) DEFAULT 0.00,
  `repair1` float(20,2) DEFAULT 0.00,
  `total1` float(20,2) DEFAULT 0.00,
  `invno` varchar(20) DEFAULT NULL,
  `reject` varchar(1) DEFAULT '0',
  `rej_reason` varchar(100) DEFAULT '',
  `repair_cost` float(20,2) DEFAULT 0.00,
  `amount_cost` float(20,2) DEFAULT 0.00,
  `department` varchar(20) DEFAULT NULL,
  `cus_type` varchar(20) DEFAULT NULL,
  `belt1` varchar(20) DEFAULT NULL,
  `patch` varchar(20) DEFAULT NULL,
  `dep` varchar(20) DEFAULT NULL,
  `patchkg` float(20,2) DEFAULT NULL,
  `beltkg` float(20,2) DEFAULT NULL,
  `ocompany` varchar(200) DEFAULT NULL,
  `oldjobno` varchar(100) DEFAULT NULL,
  `TYPE` varchar(100) DEFAULT 'NORMAL',
  `TYPE1` varchar(100) DEFAULT NULL,
  `selling` float(20,2) DEFAULT 0.00,
  `dagtype` varchar(100) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag_item
-- ----------------------------
INSERT INTO `dag_item` VALUES ('1', '2', 'MILAN', '123', 'MARKER', '0.00', '1', null, '10', 'remark', '1', '0', '2', null, '1111', '2024-01-23', '2024-02-23', null, '0000-00-00', '10000.00', '0.00', '10000.00', '11', 'DESIGN', '10000.00', '0.00', '0.00', '0.00', '0.00', '0.00', null, '0', '', '0.00', '0.00', 'IT', null, null, null, null, null, null, null, null, 'NORMAL', null, '0.00', null, null);
INSERT INTO `dag_item` VALUES ('2', '3', 'LAKSHITHA', 'SIZE', 'MARKER', '10000.00', '2', null, '10', 'REMARK', '2', '0', '2', null, 'DESIGN', null, null, null, null, '2000.00', '0.00', '2000.00', '22', 'DESIGN', '2000.00', '0.00', '0.00', '0.00', '0.00', '0.00', null, '0', '', '0.00', '0.00', null, null, null, null, null, null, null, null, null, 'NORMAL', null, '0.00', null, 'IS');

-- ----------------------------
-- Table structure for `dag_item_tmp`
-- ----------------------------
CREATE TABLE `dag_item_tmp` (
  `refno` varchar(20) DEFAULT NULL,
  `cuscode` varchar(50) DEFAULT NULL,
  `cusname` varchar(100) DEFAULT '',
  `size` varchar(100) DEFAULT '',
  `marker` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
  `adpayment` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0.00',
  `serialno` varchar(100) NOT NULL,
  `tmp_no` varchar(100) DEFAULT '',
  `warrenty` varchar(100) DEFAULT '',
  `remark` varchar(500) DEFAULT '',
  `id` int(20) NOT NULL,
  `cancel` varchar(1) DEFAULT '0',
  `jobno` varchar(100) DEFAULT '',
  `belt` varchar(100) DEFAULT '',
  `cascost` float(20,2) DEFAULT 0.00,
  `cost` float(20,2) DEFAULT 0.00,
  `user` varchar(100) DEFAULT NULL,
  `selling` float(20,2) DEFAULT NULL,
  `dagtype` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag_item_tmp
-- ----------------------------

-- ----------------------------
-- Table structure for `dag_marker`
-- ----------------------------
CREATE TABLE `dag_marker` (
  `name` varchar(50) DEFAULT NULL,
  `id` int(20) NOT NULL,
  `code` varchar(20) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag_marker
-- ----------------------------
INSERT INTO `dag_marker` VALUES ('CEAT', '1', 'B/00001', '0');
INSERT INTO `dag_marker` VALUES ('CEAT TUBORIP', '2', 'B/00002', '0');
INSERT INTO `dag_marker` VALUES ('AONITE', '3', 'B/00003', '0');
INSERT INTO `dag_marker` VALUES ('BRIGSTONE', '4', 'B/00004', '0');
INSERT INTO `dag_marker` VALUES ('APOLLO', '5', 'B/00005', '0');
INSERT INTO `dag_marker` VALUES ('ARPICO', '6', 'B/00006', '0');
INSERT INTO `dag_marker` VALUES ('AGATE', '7', 'B/00007', '0');
INSERT INTO `dag_marker` VALUES ('G.M.ROVER', '8', 'B/00008', '0');
INSERT INTO `dag_marker` VALUES ('FEDRALE', '9', 'B/00009', '0');
INSERT INTO `dag_marker` VALUES ('CONTINENTALE', '10', 'B/00010', '0');
INSERT INTO `dag_marker` VALUES ('DUNLOP', '11', 'B/00011', '0');
INSERT INTO `dag_marker` VALUES ('EPIC', '12', 'B/00012', '0');
INSERT INTO `dag_marker` VALUES ('KAIZAN', '13', 'B/00013', '0');
INSERT INTO `dag_marker` VALUES ('B.F.GOODRICH', '14', 'B/00014', '0');
INSERT INTO `dag_marker` VALUES ('BIRALLA', '15', 'B/00015', '0');
INSERT INTO `dag_marker` VALUES ('CHINA P.C.R RADIYAL TIRE', '16', 'B/00016', '0');
INSERT INTO `dag_marker` VALUES ('HIFLY', '17', 'B/00017', '0');
INSERT INTO `dag_marker` VALUES ('JINYU', '18', 'B/00018', '0');
INSERT INTO `dag_marker` VALUES ('M.R.F', '19', 'B/00019', '0');
INSERT INTO `dag_marker` VALUES ('MICHELINE', '20', 'B/00020', '0');
INSERT INTO `dag_marker` VALUES ('MIRAGE', '21', 'B/00021', '0');
INSERT INTO `dag_marker` VALUES ('PRESAR', '22', 'B/00022', '0');
INSERT INTO `dag_marker` VALUES ('PYTHON', '23', 'B/00023', '0');
INSERT INTO `dag_marker` VALUES ('R.P.G', '24', 'B/00024', '0');
INSERT INTO `dag_marker` VALUES ('ROADSHING', '25', 'B/00025', '0');
INSERT INTO `dag_marker` VALUES ('LINLONG', '26', 'B/00026', '0');
INSERT INTO `dag_marker` VALUES ('KEETER', '27', 'B/00027', '0');
INSERT INTO `dag_marker` VALUES ('SAFEHOLDER', '28', 'B/00028', '0');
INSERT INTO `dag_marker` VALUES ('SAYAN', '39', 'B/00029', '0');
INSERT INTO `dag_marker` VALUES ('SILVERASE', '40', 'B/00030', '0');
INSERT INTO `dag_marker` VALUES ('SPORTCKE', '41', 'B/00031', '0');
INSERT INTO `dag_marker` VALUES ('SUNFULL', '42', 'B/00032', '0');
INSERT INTO `dag_marker` VALUES ('TOYOMA', '43', 'B/00033', '0');
INSERT INTO `dag_marker` VALUES ('VIKRANT', '44', 'B/00034', '0');
INSERT INTO `dag_marker` VALUES ('WESLAKE', '45', 'B/00035', '0');
INSERT INTO `dag_marker` VALUES ('YOKOHAMA', '46', 'B/00036', '0');
INSERT INTO `dag_marker` VALUES ('ZETA', '47', 'B/00037', '0');
INSERT INTO `dag_marker` VALUES ('J.K', '48', 'B/00038', '0');
INSERT INTO `dag_marker` VALUES ('GRANTOURE', '49', 'B/00039', '0');
INSERT INTO `dag_marker` VALUES ('GOODRIDE', '50', 'B/00040', '0');
INSERT INTO `dag_marker` VALUES ('G.T', '51', 'B/00041', '0');
INSERT INTO `dag_marker` VALUES ('MAXXIS', '52', 'B/00042', '0');
INSERT INTO `dag_marker` VALUES ('OTANI', '53', 'B/00043', '0');
INSERT INTO `dag_marker` VALUES ('DURAN', '54', 'B/00044', '0');
INSERT INTO `dag_marker` VALUES ('NANDI TUBE', '55', 'B/00045', '0');
INSERT INTO `dag_marker` VALUES ('FLAP DIMUTHU', '56', 'B/00046', '0');
INSERT INTO `dag_marker` VALUES ('SAILUN', '57', 'B/00047', '0');
INSERT INTO `dag_marker` VALUES ('RHINO', '58', 'B/00048', '0');
INSERT INTO `dag_marker` VALUES ('USED TUBE ', '59', 'B/00049', '0');
INSERT INTO `dag_marker` VALUES ('DSI TUBE', '60', 'B/00050', '0');
INSERT INTO `dag_marker` VALUES ('MARUTI TUBE', '61', 'B/00051', '0');
INSERT INTO `dag_marker` VALUES ('D.R.C', '62', 'B/00052', '0');
INSERT INTO `dag_marker` VALUES ('AUFINE', '63', 'B/00053', '0');
INSERT INTO `dag_marker` VALUES ('KALANIE', '64', 'B/00054', '0');
INSERT INTO `dag_marker` VALUES ('FIRELLIE', '65', 'B/00055', '0');
INSERT INTO `dag_marker` VALUES ('400/8 RIBELE TIRE', '66', 'B/00056', '0');
INSERT INTO `dag_marker` VALUES ('DSI TIRE', '67', 'B/00057', '0');
INSERT INTO `dag_marker` VALUES ('USED FLAP ', '68', 'B/00058', '0');
INSERT INTO `dag_marker` VALUES ('GOOD YEAR', '69', 'B/00059', '0');
INSERT INTO `dag_marker` VALUES ('SILVERSTONE', '70', 'B/00060', '0');
INSERT INTO `dag_marker` VALUES ('DURATUN', '71', 'B/00061', '0');
INSERT INTO `dag_marker` VALUES ('USED TUBE 750/16', '72', 'B/00062', '0');
INSERT INTO `dag_marker` VALUES ('USED TUBE 825/16', '73', 'B/00063', '0');
INSERT INTO `dag_marker` VALUES ('USED TUBE 700/16', '74', 'B/00064', '0');
INSERT INTO `dag_marker` VALUES ('LOCK HEED  250ML', '75', 'B/00065', '0');
INSERT INTO `dag_marker` VALUES ('LOCK HEED  500ML', '76', 'B/00066', '0');
INSERT INTO `dag_marker` VALUES ('FERANTINO', '77', 'B/00067', '0');
INSERT INTO `dag_marker` VALUES ('S.T.R ', '78', 'B/00068', '0');
INSERT INTO `dag_marker` VALUES ('DULANKA', '79', 'B/00069', '0');
INSERT INTO `dag_marker` VALUES ('TUBE LESS VAL', '80', 'B/00070', '0');
INSERT INTO `dag_marker` VALUES ('BEST PATCH', '81', 'B/00071', '0');
INSERT INTO `dag_marker` VALUES ('TYRE REPAIR', '82', 'B/00072', '0');
INSERT INTO `dag_marker` VALUES ('OMINI', '83', 'B/00073', '0');
INSERT INTO `dag_marker` VALUES ('TIMSUN', '84', 'B/00074', '0');
INSERT INTO `dag_marker` VALUES ('APLUS', '85', 'B/00075', '0');
INSERT INTO `dag_marker` VALUES ('UESD TUBE', '86', 'B/00076', '0');
INSERT INTO `dag_marker` VALUES ('NEXEN', '87', 'B/00077', '0');
INSERT INTO `dag_marker` VALUES ('XCEED', '88', 'B/00078', '0');
INSERT INTO `dag_marker` VALUES ('OVATION', '89', 'B/00079', '0');
INSERT INTO `dag_marker` VALUES ('ABHIMANA', '90', 'B/00080', '0');
INSERT INTO `dag_marker` VALUES ('BATERY WATER', '91', 'B/00081', '0');
INSERT INTO `dag_marker` VALUES ('USED TUBE', '92', 'B/00082', '0');
INSERT INTO `dag_marker` VALUES ('COMPASAL', '93', 'B/00083', '0');
INSERT INTO `dag_marker` VALUES ('USED TUBE 900/20', '94', 'B/00084', '0');
INSERT INTO `dag_marker` VALUES ('GITI', '95', 'B/00085', '0');
INSERT INTO `dag_marker` VALUES ('ROYAL BLACK', '96', 'B/00086', '0');
INSERT INTO `dag_marker` VALUES ('PETLAS', '97', 'B/00087', '0');
INSERT INTO `dag_marker` VALUES ('PRIDER TUBE', '98', 'B/00088', '0');
INSERT INTO `dag_marker` VALUES ('NANKANG', '99', 'B/00089', '0');
INSERT INTO `dag_marker` VALUES ('DOUBLE STAR', '100', 'B/00090', '0');
INSERT INTO `dag_marker` VALUES ('ELGI', '101', 'B/00091', '0');
INSERT INTO `dag_marker` VALUES ('MAXXIS', '102', 'B/00092', '0');
INSERT INTO `dag_marker` VALUES ('USED TIRE', '103', 'B/00093', '0');
INSERT INTO `dag_marker` VALUES ('FLAP ARPICO', '104', 'B/00094', '0');
INSERT INTO `dag_marker` VALUES ('ARL TUBE', '105', 'B/00095', '0');
INSERT INTO `dag_marker` VALUES ('NEUMAS', '106', 'B/00096', '0');
INSERT INTO `dag_marker` VALUES ('LANVIGATOR', '107', 'B/00097', '0');
INSERT INTO `dag_marker` VALUES ('PEARL RIVER', '108', 'B/00098', '0');
INSERT INTO `dag_marker` VALUES ('RHINO KING', '109', 'B/00099', '0');
INSERT INTO `dag_marker` VALUES ('FLAP PASAN', '110', 'B/00100', '0');
INSERT INTO `dag_marker` VALUES ('CHEMICALS ', '111', 'B/00101', '0');
INSERT INTO `dag_marker` VALUES ('PEARLPATCH', '112', 'B/00102', '0');
INSERT INTO `dag_marker` VALUES ('ATLAS', '113', 'B/00103', '0');
INSERT INTO `dag_marker` VALUES ('Galaxy', '114', 'B/00104', '0');
INSERT INTO `dag_marker` VALUES ('Zeetek', '115', 'B/00105', '0');
INSERT INTO `dag_marker` VALUES ('TOYO', '116', 'B/00106', '0');
INSERT INTO `dag_marker` VALUES ('GTK', '117', 'B/00107', '0');
INSERT INTO `dag_marker` VALUES ('SILVERSTONE ', '118', 'B/00108', '0');
INSERT INTO `dag_marker` VALUES ('DOUBLE COIN', '119', 'B/00109', '0');
INSERT INTO `dag_marker` VALUES ('TRIANGLE ', '120', 'B/00110', '0');
INSERT INTO `dag_marker` VALUES ('HERO', '121', 'B/00111', '0');
INSERT INTO `dag_marker` VALUES ('PRESA', '122', 'B/00112', '0');
INSERT INTO `dag_marker` VALUES ('PIRELLI', '123', 'B/00113', '0');
INSERT INTO `dag_marker` VALUES ('TOPLUS', '124', 'B/00114', '0');
INSERT INTO `dag_marker` VALUES ('LONGMARCH', '125', 'B/00115', '0');
INSERT INTO `dag_marker` VALUES ('GRI', '126', 'B/00116', '0');
INSERT INTO `dag_marker` VALUES ('ETERNITY', '127', 'B/00117', '0');
INSERT INTO `dag_marker` VALUES ('ARL', '128', 'B/00118', '0');
INSERT INTO `dag_marker` VALUES ('MEAL', '129', 'B/00119', '0');
INSERT INTO `dag_marker` VALUES ('M.R.F PCR RADIYAL TIRE', '130', 'B/00120', '0');
INSERT INTO `dag_marker` VALUES ('M.R.F BELET', '131', 'B/00121', '0');
INSERT INTO `dag_marker` VALUES ('PLSTONE', '132', 'B/00122', '0');
INSERT INTO `dag_marker` VALUES ('CEAT P.C.R RADIYAL TIRE', '133', 'B/00123', '0');
INSERT INTO `dag_marker` VALUES ('M.R.F  MOTORCYCLE TIRE', '134', 'B/00124', '0');
INSERT INTO `dag_marker` VALUES ('CT', '135', 'B/00125', '0');
INSERT INTO `dag_marker` VALUES ('BRAVO', '136', 'B/00126', '0');
INSERT INTO `dag_marker` VALUES ('CHINA', '137', 'B/00127', '0');

-- ----------------------------
-- Table structure for `dag_size`
-- ----------------------------
CREATE TABLE `dag_size` (
  `name` varchar(50) DEFAULT NULL,
  `id` int(20) NOT NULL,
  `code` varchar(20) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of dag_size
-- ----------------------------
INSERT INTO `dag_size` VALUES ('195/15', '16', 'S/00001', '0');
INSERT INTO `dag_size` VALUES ('195/65/15', '17', 'S/00002', '0');
INSERT INTO `dag_size` VALUES ('700/15', '18', 'S/00003', '0');
INSERT INTO `dag_size` VALUES ('750/15', '19', 'S/00004', '0');
INSERT INTO `dag_size` VALUES ('205/70/15', '20', 'S/00005', '0');
INSERT INTO `dag_size` VALUES ('205/75/15', '21', 'S/00006', '0');
INSERT INTO `dag_size` VALUES ('215/75/15', '22', 'S/00007', '0');
INSERT INTO `dag_size` VALUES ('660/16', '24', 'S/00009', '0');
INSERT INTO `dag_size` VALUES ('650/16', '25', 'S/00010', '0');
INSERT INTO `dag_size` VALUES ('700/16', '26', 'S/00011', '0');
INSERT INTO `dag_size` VALUES ('750/16', '27', 'S/00012', '0');
INSERT INTO `dag_size` VALUES ('825/16', '28', 'S/00013', '0');
INSERT INTO `dag_size` VALUES ('205/75/16', '29', 'S/00014', '0');
INSERT INTO `dag_size` VALUES ('205/85/16', '30', 'S/00015', '0');
INSERT INTO `dag_size` VALUES ('215/75/16', '31', 'S/00016', '0');
INSERT INTO `dag_size` VALUES ('205/70/17.5', '32', 'S/00017', '0');
INSERT INTO `dag_size` VALUES ('205/80/17.5', '33', 'S/00018', '0');
INSERT INTO `dag_size` VALUES ('215/70/17.5', '34', 'S/00019', '0');
INSERT INTO `dag_size` VALUES ('225/90/17.5', '35', 'S/00020', '0');
INSERT INTO `dag_size` VALUES ('235/75/17.5', '36', 'S/00021', '0');
INSERT INTO `dag_size` VALUES ('275/75/17.5', '37', 'S/00022', '0');
INSERT INTO `dag_size` VALUES ('900/20', '38', 'S/00023', '0');
INSERT INTO `dag_size` VALUES ('1000/20', '39', 'S/00024', '0');
INSERT INTO `dag_size` VALUES ('11R/22.5', '40', 'S/00025', '0');
INSERT INTO `dag_size` VALUES ('12R/22.5', '41', 'S/00026', '0');
INSERT INTO `dag_size` VALUES ('255/70/22.5', '42', 'S/00027', '0');
INSERT INTO `dag_size` VALUES ('315/95/22.5', '44', 'S/00029', '0');
INSERT INTO `dag_size` VALUES ('195/85/16', '46', 'S/00031', '0');
INSERT INTO `dag_size` VALUES ('825/20', '47', 'S/00032', '0');
INSERT INTO `dag_size` VALUES ('265/60/18', '48', 'S/00033', '0');
INSERT INTO `dag_size` VALUES ('265/75/16', '49', 'S/00034', '0');
INSERT INTO `dag_size` VALUES ('195/75/16', '50', 'S/00035', '0');
INSERT INTO `dag_size` VALUES ('31/10/50/15', '51', 'S/00036', '0');
INSERT INTO `dag_size` VALUES ('215/75/17.5', '52', 'S/00037', '0');
INSERT INTO `dag_size` VALUES ('185/85/16', '53', 'S/00038', '0');
INSERT INTO `dag_size` VALUES ('315/80/22.5', '54', 'S/00039', '0');
INSERT INTO `dag_size` VALUES ('295/80/22.5', '67', 'S/00028', '0');
INSERT INTO `dag_size` VALUES ('295/85/22.5', '73', 'S/00028', '0');
INSERT INTO `dag_size` VALUES ('225/75/17.5', '74', 'S/00059', '0');
INSERT INTO `dag_size` VALUES ('225/80/17.5', '75', 'S/00060', '0');
INSERT INTO `dag_size` VALUES ('650/15', '78', 'S/00063', '0');
INSERT INTO `dag_size` VALUES ('215/75/15', '79', 'S/00064', '0');
INSERT INTO `dag_size` VALUES ('195/80/15', '80', 'S/00065', '0');
INSERT INTO `dag_size` VALUES ('195/80/15', '81', 'S/00066', '0');
INSERT INTO `dag_size` VALUES ('215/85/16', '82', 'S/00067', '0');
INSERT INTO `dag_size` VALUES ('1100/20', '83', 'S/00068', '0');
INSERT INTO `dag_size` VALUES ('215/80/15', '84', 'S/00069', '0');
INSERT INTO `dag_size` VALUES ('215/15', '85', 'S/00070', '0');
INSERT INTO `dag_size` VALUES ('12.5/18', '86', 'S/00071', '0');
INSERT INTO `dag_size` VALUES ('265/70/16', '87', 'S/00072', '0');
INSERT INTO `dag_size` VALUES ('245/70/16', '88', 'S/00073', '0');
INSERT INTO `dag_size` VALUES ('255/70/15', '89', 'S/00074', '0');
INSERT INTO `dag_size` VALUES ('205/16', '90', 'S/00075', '0');
INSERT INTO `dag_size` VALUES ('12.5/80/18', '91', 'S/00076', '0');
INSERT INTO `dag_size` VALUES ('320/80/18', '92', 'S/00077', '0');
INSERT INTO `dag_size` VALUES ('750/20', '93', 'S/00078', '0');
INSERT INTO `dag_size` VALUES ('1300/24', '94', 'S/00079', '0');
INSERT INTO `dag_size` VALUES ('1400/24', '95', 'S/00080', '0');
INSERT INTO `dag_size` VALUES ('235/70/16', '96', 'S/00081', '0');
INSERT INTO `dag_size` VALUES ('16.9/28', '97', 'S/00082', '0');
INSERT INTO `dag_size` VALUES ('205/14', '98', 'S/00083', '0');
INSERT INTO `dag_size` VALUES ('195/14', '99', 'S/00084', '0');
INSERT INTO `dag_size` VALUES ('165/14', '100', 'S/00085', '0');
INSERT INTO `dag_size` VALUES ('600/14', '101', 'S/00086', '0');
INSERT INTO `dag_size` VALUES ('185/14', '102', 'S/00087', '0');
INSERT INTO `dag_size` VALUES ('265/65/17', '103', 'S/00088', '0');
INSERT INTO `dag_size` VALUES ('235/75/15', '104', 'S/00089', '0');
INSERT INTO `dag_size` VALUES ('155/12', '105', 'S/00090', '0');
INSERT INTO `dag_size` VALUES ('18/4/26', '106', 'S/00091', '0');
INSERT INTO `dag_size` VALUES ('205/55/16', '107', 'S/00092', '0');
INSERT INTO `dag_size` VALUES ('165/55/15', '108', 'S/00093', '0');
INSERT INTO `dag_size` VALUES ('155/65/14', '109', 'S/00094', '0');
INSERT INTO `dag_size` VALUES ('205/80/16', '110', 'S/00095', '0');
INSERT INTO `dag_size` VALUES ('135/70/12 65S', '111', 'S/00096', '0');
INSERT INTO `dag_size` VALUES ('145/70 /12 69T', '112', 'S/00097', '0');
INSERT INTO `dag_size` VALUES ('175/80/12 74T', '113', 'S/00098', '0');
INSERT INTO `dag_size` VALUES ('155/65/12 71S', '114', 'S/00099', '0');
INSERT INTO `dag_size` VALUES ('155/80/12 77T', '115', 'S/00100', '0');
INSERT INTO `dag_size` VALUES ('155/65/13 73T', '116', 'S/00101', '0');
INSERT INTO `dag_size` VALUES ('155/80/13 79T', '117', 'S/00102', '0');
INSERT INTO `dag_size` VALUES ('165/65/13 77T', '118', 'S/00103', '0');
INSERT INTO `dag_size` VALUES ('165/80/13 83T', '119', 'S/00104', '0');
INSERT INTO `dag_size` VALUES ('175/70/13 82T', '120', 'S/00105', '0');
INSERT INTO `dag_size` VALUES ('185/70/13 86T', '121', 'S/00106', '0');
INSERT INTO `dag_size` VALUES ('165/55/14 72T', '122', 'S/00107', '0');
INSERT INTO `dag_size` VALUES ('165/60/14 75T', '123', 'S/00108', '0');
INSERT INTO `dag_size` VALUES ('165/70/14 81T', '124', 'S/00109', '0');
INSERT INTO `dag_size` VALUES ('175/65/14 82H', '125', 'S/00110', '0');
INSERT INTO `dag_size` VALUES ('175/70/14 84T', '126', 'S/00111', '0');
INSERT INTO `dag_size` VALUES ('185/65/14 86T', '127', 'S/00112', '0');
INSERT INTO `dag_size` VALUES ('185/70/14 88T', '128', 'S/00113', '0');
INSERT INTO `dag_size` VALUES ('175/65/15 84H', '129', 'S/00114', '0');
INSERT INTO `dag_size` VALUES ('185/55/15 82H', '130', 'S/00115', '0');
INSERT INTO `dag_size` VALUES ('185/60/15 88H', '131', 'S/00116', '0');
INSERT INTO `dag_size` VALUES ('185/65/15 88H', '132', 'S/00117', '0');
INSERT INTO `dag_size` VALUES ('195/65/15 91H', '133', 'S/00002', '0');
INSERT INTO `dag_size` VALUES ('205/60/16', '134', 'S/00119', '0');
INSERT INTO `dag_size` VALUES ('145/12', '135', 'S/00120', '0');
INSERT INTO `dag_size` VALUES ('155/13', '136', 'S/00121', '0');
INSERT INTO `dag_size` VALUES ('165/13', '137', 'S/00122', '0');
INSERT INTO `dag_size` VALUES ('205/16 110/108S', '138', 'S/00123', '0');
INSERT INTO `dag_size` VALUES ('205/75/14 98S', '139', 'S/00124', '0');
INSERT INTO `dag_size` VALUES ('205/75/15 99S', '140', 'S/00125', '0');
INSERT INTO `dag_size` VALUES ('215/75/15 100S', '141', 'S/00126', '0');
INSERT INTO `dag_size` VALUES ('235/75/15 105S', '142', 'S/00127', '0');
INSERT INTO `dag_size` VALUES ('255/70/15 108T', '143', 'S/00074', '0');
INSERT INTO `dag_size` VALUES ('235/70/16 106T', '144', 'S/00081', '0');
INSERT INTO `dag_size` VALUES ('265/70/16 112S', '145', 'S/00072', '0');
INSERT INTO `dag_size` VALUES ('215/55/17 94V', '146', 'S/00131', '0');
INSERT INTO `dag_size` VALUES ('225/60/17 99H', '147', 'S/00132', '0');
INSERT INTO `dag_size` VALUES ('31/10.5/15 109S', '148', 'S/00133', '0');
INSERT INTO `dag_size` VALUES ('205/70/16', '149', 'S/00134', '0');
INSERT INTO `dag_size` VALUES ('145/80/12', '150', 'S/00135', '0');
INSERT INTO `dag_size` VALUES ('155/65/12', '151', 'S/00136', '0');
INSERT INTO `dag_size` VALUES ('175/70/12', '152', 'S/00137', '0');
INSERT INTO `dag_size` VALUES ('185/70/14', '153', 'S/00138', '0');
INSERT INTO `dag_size` VALUES ('205/75/14 ', '154', 'S/00124', '0');
INSERT INTO `dag_size` VALUES ('275/80/22.5', '155', 'S/00140', '0');
INSERT INTO `dag_size` VALUES ('165/13', '156', 'S/00141', '0');
INSERT INTO `dag_size` VALUES ('215/80/16', '157', 'S/00142', '0');
INSERT INTO `dag_size` VALUES ('205/65/16', '158', 'S/00143', '0');
INSERT INTO `dag_size` VALUES ('195/75/15', '159', 'S/00144', '0');
INSERT INTO `dag_size` VALUES ('205/75/15 ', '160', 'S/00125', '0');
INSERT INTO `dag_size` VALUES ('225/75/16', '161', 'S/00146', '0');
INSERT INTO `dag_size` VALUES ('550/13', '162', 'S/00147', '0');
INSERT INTO `dag_size` VALUES ('600/16', '163', 'S/00148', '0');
INSERT INTO `dag_size` VALUES ('185/70/14', '164', 'S/00149', '0');
INSERT INTO `dag_size` VALUES ('12.4/11/28', '165', 'S/00150', '0');
INSERT INTO `dag_size` VALUES ('265/70/19.5', '166', 'S/00151', '0');

-- ----------------------------
-- Table structure for `dealer_inc`
-- ----------------------------
CREATE TABLE `dealer_inc` (
  `Cus_Code` varchar(255) DEFAULT NULL,
  `CUS_NAME` varchar(255) DEFAULT NULL,
  `month2` float DEFAULT NULL,
  `Month3` float DEFAULT NULL,
  `tyre_inc` float DEFAULT NULL,
  `limit1` float DEFAULT NULL,
  `target` float DEFAULT NULL,
  `target_bat` float DEFAULT NULL,
  `C_TYPE` varchar(255) DEFAULT NULL,
  `month1` float DEFAULT NULL,
  `battery_inc` float DEFAULT NULL,
  `BATTERY` float DEFAULT NULL,
  `id` int(11) NOT NULL,
  `print` int(11) DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dealer_inc
-- ----------------------------

-- ----------------------------
-- Table structure for `dealer_incen_rmk`
-- ----------------------------
CREATE TABLE `dealer_incen_rmk` (
  `id` int(11) NOT NULL,
  `d_code` varchar(30) NOT NULL,
  `rmk` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`d_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dealer_incen_rmk
-- ----------------------------

-- ----------------------------
-- Table structure for `dealer_inc_summery`
-- ----------------------------
CREATE TABLE `dealer_inc_summery` (
  `inv_no` varchar(20) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `amount` decimal(20,2) DEFAULT NULL,
  `brand` varchar(20) DEFAULT NULL,
  `paid` decimal(20,2) DEFAULT NULL,
  `days` int(11) DEFAULT NULL,
  `apdays` int(11) DEFAULT NULL,
  `incentive` decimal(20,2) DEFAULT NULL,
  `per` decimal(10,2) DEFAULT NULL,
  `rec_date` date DEFAULT NULL,
  `type` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dealer_inc_summery
-- ----------------------------

-- ----------------------------
-- Table structure for `dealer_target`
-- ----------------------------
CREATE TABLE `dealer_target` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rep` char(10) DEFAULT NULL,
  `cus_code` char(10) DEFAULT NULL,
  `name` char(120) DEFAULT NULL,
  `target` decimal(15,2) DEFAULT 0.00,
  `ldate` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `dealer_target` (`rep`,`cus_code`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dealer_target
-- ----------------------------
INSERT INTO `dealer_target` VALUES ('1', 'R/004', '', '', '3333.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target` VALUES ('2', 'R/005', '', '', '333.00', '0000-00-00', null, '1');
INSERT INTO `dealer_target` VALUES ('3', '9', '', '', '333.00', '0000-00-00', null, '1');
INSERT INTO `dealer_target` VALUES ('4', '10', '', '', '1.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target` VALUES ('5', '11', 'V/0027', 'SISIRA  TYRE  HOUSE', '3.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target` VALUES ('6', '9', 'V/0025', 'SAMSON RUBBER INDUSTRY', '333.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target` VALUES ('7', 'R/008', 'V/0025', 'SAMSON RUBBER INDUSTRY', '22.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target` VALUES ('8', 'R/015', 'V/0130', 'Name 5', '2.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target` VALUES ('9', 'R/015', 'V/0126', 'Name', '1.00', '0000-00-00', null, '0');

-- ----------------------------
-- Table structure for `dealer_target_s`
-- ----------------------------
CREATE TABLE `dealer_target_s` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rep` char(10) DEFAULT NULL,
  `cus_code` char(10) DEFAULT NULL,
  `name` char(120) DEFAULT NULL,
  `target` decimal(15,2) DEFAULT 0.00,
  `ldate` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `dealer_target_s` (`rep`,`cus_code`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dealer_target_s
-- ----------------------------
INSERT INTO `dealer_target_s` VALUES ('1', 'R/005', '', '', '1.00', '0000-00-00', null, '1');
INSERT INTO `dealer_target_s` VALUES ('2', '9', '', '', '111.00', '0000-00-00', null, '1');
INSERT INTO `dealer_target_s` VALUES ('3', '10', '', '', '1.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target_s` VALUES ('4', 'R/006', '', '', '222.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target_s` VALUES ('5', '11', 'V/0027', 'SISIRA  TYRE  HOUSE', '4.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target_s` VALUES ('6', '9', 'V/0022', 'ROAD WIN INTERNATIONAL (PVT)  LTD', '10.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target_s` VALUES ('7', '12', 'V/0027', 'SISIRA  TYRE  HOUSE', '1.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target_s` VALUES ('8', 'R/008', 'V/0024', 'S.S, Distributor (MRF)', '222.00', '0000-00-00', null, '0');
INSERT INTO `dealer_target_s` VALUES ('9', 'R/015', 'V/0130', 'Name 5', '3.00', '0000-00-00', null, '0');

-- ----------------------------
-- Table structure for `district_province_master`
-- ----------------------------
CREATE TABLE `district_province_master` (
  `district` varchar(50) DEFAULT NULL,
  `province` varchar(90) DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of district_province_master
-- ----------------------------

-- ----------------------------
-- Table structure for `district_town_master`
-- ----------------------------
CREATE TABLE `district_town_master` (
  `province` varchar(90) DEFAULT NULL,
  `towns` varchar(90) DEFAULT NULL,
  `district` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of district_town_master
-- ----------------------------

-- ----------------------------
-- Table structure for `dlr_rmk`
-- ----------------------------
CREATE TABLE `dlr_rmk` (
  `id` int(11) NOT NULL,
  `date` date DEFAULT NULL,
  `rep` varchar(20) DEFAULT NULL,
  `c_code` varchar(60) DEFAULT NULL,
  `c_name` varchar(400) DEFAULT NULL,
  `remark` varchar(800) DEFAULT NULL,
  `loc` varchar(800) DEFAULT NULL,
  `tgt` decimal(20,2) DEFAULT NULL,
  `outst` decimal(20,2) DEFAULT 0.00,
  `retch` decimal(20,2) DEFAULT 0.00,
  `ord` varchar(800) DEFAULT NULL,
  `outstCltd` decimal(20,2) DEFAULT 0.00,
  `retchStld` decimal(20,2) DEFAULT 0.00,
  `stime` time DEFAULT NULL,
  `ftime` time DEFAULT NULL,
  `mstart` varchar(255) DEFAULT NULL,
  `mfini` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dlr_rmk
-- ----------------------------

-- ----------------------------
-- Table structure for `dlr_rmk_item`
-- ----------------------------
CREATE TABLE `dlr_rmk_item` (
  `id` int(11) NOT NULL,
  `sal_ex` varchar(20) DEFAULT NULL,
  `cuscode` varchar(50) DEFAULT NULL,
  `invdate` date DEFAULT NULL,
  `stime` time DEFAULT NULL,
  `ftime` time DEFAULT NULL,
  `user` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dlr_rmk_item
-- ----------------------------

-- ----------------------------
-- Table structure for `dlr_rmk_item_tmp`
-- ----------------------------
CREATE TABLE `dlr_rmk_item_tmp` (
  `id` int(11) NOT NULL,
  `sal_ex` varchar(20) DEFAULT NULL,
  `cuscode` varchar(50) DEFAULT NULL,
  `invdate` date DEFAULT NULL,
  `stime` time DEFAULT NULL,
  `ftime` time DEFAULT NULL,
  `user` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dlr_rmk_item_tmp
-- ----------------------------

-- ----------------------------
-- Table structure for `dlr_sch`
-- ----------------------------
CREATE TABLE `dlr_sch` (
  `id` int(11) NOT NULL,
  `sdate` date DEFAULT NULL,
  `rep` varchar(20) DEFAULT NULL,
  `c_code` varchar(60) DEFAULT NULL,
  `c_name` varchar(400) DEFAULT NULL,
  `remark` varchar(800) DEFAULT NULL,
  `loc` varchar(800) DEFAULT NULL,
  `tgt` decimal(20,2) DEFAULT NULL,
  `outst` decimal(20,2) DEFAULT 0.00,
  `retch` decimal(20,2) DEFAULT 0.00,
  `ord` varchar(800) DEFAULT NULL,
  `outstCltd` decimal(20,2) DEFAULT 0.00,
  `retchStld` decimal(20,2) DEFAULT 0.00,
  `tmpno` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dlr_sch
-- ----------------------------

-- ----------------------------
-- Table structure for `dlr_shr`
-- ----------------------------
CREATE TABLE `dlr_shr` (
  `id` int(11) NOT NULL,
  `sdate` date DEFAULT NULL,
  `c_code` varchar(60) DEFAULT NULL,
  `c_name` varchar(400) DEFAULT NULL,
  `remark` varchar(800) DEFAULT NULL,
  `refno` varchar(100) DEFAULT NULL,
  `amt` float DEFAULT NULL,
  `inv_amo` float DEFAULT NULL,
  `out_amo` float DEFAULT NULL,
  `tmpno` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of dlr_shr
-- ----------------------------

-- ----------------------------
-- Table structure for `doc`
-- ----------------------------
CREATE TABLE `doc` (
  `docid` bigint(20) NOT NULL,
  `docname` varchar(100) DEFAULT NULL,
  `name` varchar(30) DEFAULT NULL,
  `grp` varchar(30) DEFAULT NULL,
  `id` bigint(20) DEFAULT NULL,
  `icon` varchar(50) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  KEY `doc` (`docid`,`grp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;



INSERT INTO `doc` VALUES ('3', 'Manage Permission', 'assign_privilages', 'Administration', '1', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc` VALUES ('22', 'PURCHASE ORDER', 'purchase', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('27', 'Invoice', 'invoice', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('118', 'Price Control', 'price_control', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('119', 'Unlock Invoice', 'invoice_info', 'System Utilities', '1', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc` VALUES ('121', 'Sales Incentive', 'Dealer_share', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('123', 'Dealer Incentive EDIT', 'dealer_insc', 'Inquiries', '1', 'fa fa-pencil-square-o', 'small-box bg-aqua');
INSERT INTO `doc` VALUES ('125', 'login_report', 'login_report', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('126', 'Rep Lock Active', 'rep_lock_active', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('127', 'Sms Fire', 'sms_fire', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('128', 'Insentive Payment Modification', 'insen_pay_modifi', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('129', 'Discount Item', 'discount_item', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('130', 'Request Data Modifications', 'reqdata_modification', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('131', 'Problems', 'problems', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('132', 'Vehicle Report', 'report_vehicle', 'System Utilities', '1', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc` VALUES ('133', 'Transport Payment', 'trans_pay', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('134', 'Credit Note Approve', 'credit_note_app', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('136', 'Defect Register', 'def_inv', 'Inquiries', '1', 'fa fa-cogs', 'small-box bg-aqua');
INSERT INTO `doc` VALUES ('137', 'VAT Schedule Report', 'vatshdule', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('138', 'Dealer Remark', 'dealer_remark', 'Inquiries', '1', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc` VALUES ('139', 'Rep Profile', 'rep_profile', 'Inquiries', '1', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc` VALUES ('144', 'Stock Adjustment Report', 'rep_stock_adjustment', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('160', 'INVOICE DISCOUNT', 'invoicedis', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('161', 'CANCEL REPORT', 'cancel', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('162', 'BATTERY STATUS REPORT', 'battery_status', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('163', 'INVOICE UPDATE', 'invrepchange', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('164', 'ITEM THREAD UPDATE', 'itemthreadup', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('165', 'CHECKER', 'checker', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('166', 'CUSTOMER SUMMERY', 'cussummery', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('167', 'LIVE STOCK', 'live_stock', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('168', 'STOCK REPORT NEW', 'stkrepnew', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('169', 'SALES', 'sales', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('170', 'PAYMENTS', 'payments', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('171', 'INVOICE EXCEL', 'invoice_excel', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('172', 'INVOICE BARCODE UPLOAD', 'inv_barcode_up', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('173', 'LABOUR MASTER', 'labour', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('174', 'RECEIPT NEW', 'receipt', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('175', 'INQUIRY CENTER', 'inquiry', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('176', 'DAG', 'dag', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('177', 'ONHAND LIST', 'onhandlist', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('178', 'OTHER SEND LIST', 'othersendlist', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('179', 'OTHER RECEIVED LIST', 'otherreclist', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('180', 'COMPLETE LIST', 'comp_list', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('181', 'REJECT LIST', 'reject_list', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('182', 'ALL LIST', 'all_list', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('184', 'OUTSTANDING REPORT', 'outstanding', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc` VALUES ('185', 'Customer', 'customer_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('186', 'Sales Exective', 'rep_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('187', 'Brand', 'brand_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('188', 'Item', 'item_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('189', 'Department', 'department_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('190', 'Bank', 'bank_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('191', 'Sub Customer', 'customer_mas_sub', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('192', 'Labour', 'labour_mas', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc` VALUES ('193', 'Setting', 'setting', 'Administration', '1', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc` VALUES ('194', 'Grn', 'grn', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('195', 'Stock Tranfer', 'stock_transfer', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('196', 'Sales Return', 'sales_return', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('197', 'Credit Note', 'credit_note', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc` VALUES ('198', 'Utilization', 'utilization', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');

-- ----------------------------
-- Table structure for `doc_copy`
-- ----------------------------
CREATE TABLE `doc_copy` (
  `docid` bigint(20) NOT NULL,
  `docname` varchar(100) DEFAULT NULL,
  `name` varchar(30) DEFAULT NULL,
  `grp` varchar(30) DEFAULT NULL,
  `id` bigint(20) DEFAULT NULL,
  `icon` varchar(50) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`docid`),
  KEY `doc` (`docid`,`grp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;



INSERT INTO `doc_copy` VALUES ('3', 'Manage Permission', 'assign_privilages', 'Administration', '0', 'fa fa-cogs', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('4', 'AR Report', 'rep_ar_report', 'AR and Orders', '0', 'fa fa-plus-circle', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('5', 'AR Analysis', 'rep_ar_analysis', 'AR and Orders', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('6', 'Pending Orders', 'rep_shipmntdet', 'AR and Orders', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('7', 'Shipment Details', 'rep_shipmntdet', 'AR and Orders', '0', 'fa fa-user-secret', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('8', 'Defective Items', 'defective_item', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('9', 'Credit Note Auto', 'credit_note_auto', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('10', 'Item Claim', 'item_claim', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('11', 'Battery Claim', 'battery_claim', 'Data Capture', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('12', 'Utilization', 'utilization', 'Data Capture', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('13', 'Weekly Order Planning', 'customer_ord', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('14', 'LC Order Rep Wise', 'purchase_ord_lc', 'Data Capture', '0', 'fa fa-cogs', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('15', 'Over Limit Pendings', 'over_limit', 'Data Capture', '0', 'fa fa-plus-circle', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('16', 'Quotation', 'quotation', 'Data Capture', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('17', 'Cheque Extend', 'chq_extend', 'Data Capture', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('18', 'Non Stock Invoice', 'sales_inv_non', 'Data Capture', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('19', 'Cash Credit Note From', 'cash_credit_note_form', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('20', 'Credit Note From', 'credit_note_form', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('21', 'Return Cheque Entry', 'ret_cheque_entry', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('22', 'Advance Payment', 'advance_payment', 'Data Capture', '0', 'small-box bg-orange', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('23', 'ARN', 'arn', 'Data Capture', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('24', 'ARN2', 'arn2', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('25', 'Stock Tranfer', 'gin', 'Data Capture', '0', 'fa fa-cogs', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('26', 'Marketing Executive Order', 'sales_ord_new', 'Data Capture', '0', 'fa fa-plus-circle', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('27', 'Sales Invoice', 'sales_inv', 'Data Capture', '1', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('28', 'Purchase Order', 'purchase_ord', 'Data Capture', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('29', 'Cash Reciept', 'cash_reciept', 'Data Capture', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('30', 'Credit Note', 'crn', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('31', 'Purchase Return', 'purchase_ret', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('32', 'GRN', 'grn', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('33', 'Return Cheque Settlement', 'ret_chq_settle', 'Data Capture', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('34', 'Sales Invoice - Scrap', 'sales_inv_non', 'Data Capture', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('35', 'Cash Reciept - Scrap', 'cash_reciept_scrap', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('36', 'Sales Register', 'sales_register', 'Inquiries', '0', 'fa fa-cogs', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('37', 'Bin Card', 'bin_card', 'Inquiries', '0', 'fa fa-plus-circle', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('38', 'Commission', 'sales_commission_inq', 'Inquiries', '0', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('39', 'Commission Rates', 'commission', 'Master Files', '0', 'fa fa-bug', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('40', 'Store Master', 'storesmaster', 'Master Files', '0', 'fa fa-user-secret', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('41', 'Brand Master', 'brandmast', 'Master Files', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('42', 'Marketing Executive', 'rep_mast', 'Master Files', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('43', 'Item Master File', 'itemmast', 'Master Files', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('44', 'Bank Master', 'bankmast', 'Master Files', '0', 'fa fa-bug', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('45', 'Customer Master File', 'cust_mast', 'Master Files', '0', 'fa fa-user-secret', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('46', 'Balance Commission Schedule', 'balance_commission', 'Master Files', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('47', 'Cheque Modify', 'chq_modify', 'Data Capture', '0', 'fa fa-cogs', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('48', 'Dealer Card', 'rep_dealer_card', 'Reports-Customer', '0', 'fa fa-plus-circle', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('49', 'Return Cheque', 'rep_ret_chq', 'Reports-Customer', '0', 'fa fa-bug', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('50', 'Balance Limit', 'rep_outlimits', 'Reports-Customer', '0', 'fa fa-bug', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('51', 'Pending Cheque', 'rep_pd_chq', 'Reports-Customer', '0', 'fa fa-user-secret', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('52', 'Outstanding Credit Limit Balance', 'rep_outcreditLmt', 'Reports-Customer', '0', 'fa fa-pencil-square-o', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('53', 'Customer Current Status', 'rep_customer_current', 'Reports-Customer', '0', 'fa fa-pencil-square-o', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('54', 'SVAT Report', 'rep_svatrepo', 'Reports-Customer', '0', 'fa fa-pencil-square-o', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('55', 'Outstanding Statement', 'rep_outstanding_statement', 'Reports-Customer', '0', 'fa fa-bug', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('56', 'Dealer Incentive Report', 'dealer_incentive_report', 'Reports-Other', '0', 'fa fa-user-secret', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('57', 'Dealer Incentive', 'dealer_incentive', 'Reports-Other', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('58', 'Defective Report', 'rep_defective', 'Reports-Other', '0', 'fa fa-cogs', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('59', 'Settlement Summery', 'rep_settlement_summery', 'Reports-Other', '0', 'fa fa-plus-circle', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('60', 'Utility', 'rep_utility', 'Reports-Other', '0', 'fa fa-bug', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('61', 'Over Payments', 'rep_overpayment', 'Reports-Other', '0', 'fa fa-bug', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('62', 'Return Cheque Report', 'rep_return_chq', 'Reports-Other', '0', 'fa fa-user-secret', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('63', 'Return Cheque Payment', 'rep_return_chq_pay', 'Reports-Other', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('64', 'Credit Limit Exceed', 'rep_cr_limit_exceed', 'Reports-Other', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('65', 'Weekly Target', 'weekly_target', 'Reports-Other', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('66', 'PCDD Incentive', 'rep_pdcc', 'Reports-Sales', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('67', 'Sales Commission - Dist', 'sales_commission_distb', 'Reports-Sales', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('68', 'Sales Commission', 'sales_commission', 'Reports-Sales', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('69', 'Quantity Sales Summery', 'rep_qty_sales', 'Reports-Sales', '0', 'fa fa-cogs', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('70', 'Weekly Sales Report', 'rep_weekly_sales', 'Reports-Sales', '0', 'fa fa-plus-circle', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('71', 'Rep Wise Sales Summery', 'rep_rep_wise_sales', 'Reports-Sales', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('72', 'Monthly Sales Summery', 'rep_monthly_sales', 'Reports-Sales', '0', 'fa fa-bug', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('73', 'Sales Summery', 'rep_sales_summery', 'Reports-Sales', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('74', 'Outstanding Report', 'rep_outstanding', 'Reports-Sales', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('75', '6 Month Sales Summery', 'rep_6monthsal', 'Reports-Sales', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('76', '12 Month Sales Summery', 'rep_yearly_sales', 'Reports-Sales', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('77', 'Stock Report As At', 'rep_stk_as_at', 'Reports-Stock', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('78', 'Stock Moving Report', 'rep_stock_moving', 'Reports-Stock', '0', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('79', 'Stock Report', 'rep_stock', 'Reports-Stock', '0', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('80', 'Stock Consumption Report', 'rep_6monthitm', 'Reports-Stock', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('81', 'Unsold Stock Report', 'rep_unsold_tot', 'Reports-Stock', '0', 'fa fa-user-secret', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('82', 'AR Moving Report', 'rep_ar_moving', 'Reports-Stock', '0', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('83', 'Current Stock Balance', 'rep_current_stk_bal', 'Reports-Stock', '0', 'fa fa-cogs', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('84', 'Stock Variation Report', 'rep_stk_variation', 'Reports-Stock', '0', 'fa fa-plus-circle', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('85', 'Damage Item', 'rep_damage_item', 'Reports-Stock', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('86', '6th Month Pur: with Cons:', 'order_form', 'Reports-Stock', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('87', 'Unsold Stk Rep - Rep Wise', 'rep_unsold_rep_wise', 'Reports-Stock', '0', 'fa fa-user-secret', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('88', 'Purchase Return', 'purchase_ret', 'Stores', '0', 'fa fa-pencil-square-o', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('89', 'ARN', 'arn', 'Stores', '0', 'fa fa-pencil-square-o', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('90', 'Sales Invoice', 'sales_inv', 'Stores', '0', 'fa fa-pencil-square-o', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('91', 'GRN', 'grn', 'Stores', '0', 'fa fa-bug', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('92', 'Bin Card', 'bin_card', 'Stores', '0', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('93', 'Stock Adjustment', 'stock_adjustment', 'Stores', '0', 'fa fa-pencil-square-o', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('94', 'Delivery Date Report', 'rep_stores_del_date', 'Stores', '0', 'fa fa-cogs', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('95', 'Stock Adjustment', 'stock_adjustment', 'System Utilities', '0', 'fa fa-plus-circle', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('96', 'Consumtion Update', 'consumption_update', 'System Utilities', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('97', 'Commission Registry', 'search_commission', 'System Utilities', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('98', 'View Serial No', 'rep_serial', 'Stores', '0', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('99', 'AD', 'adnote', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('100', 'Purchase Return', 'rep_pur_ret_report', 'AR and Orders', '0', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('101', 'Cheque Extend', 'rep_chkextndrepo', 'Reports-Customer', '0', 'fa fa-pencil-square-o', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('102', 'Customer Master Report', 'rep_cusmast_print', 'Reports-Customer', '0', 'fa fa-bug', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('103', 'Customer Master Print', 'rep_cusmast_print', 'Reports-Customer', '0', 'fa fa-user-secret', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('104', 'Remaining Stock', 'rep_remaining_stk', 'Reports-Sales', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('105', 'Dealer Incentive - 3 Months', null, 'Reports-Other', '0', 'fa fa-cogs', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('106', 'Dealer Incentive Report - 3 Months', null, 'Reports-Other', '0', 'fa fa-plus-circle', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('107', 'Inventory', 'inventory_entry', 'Inventory', '0', 'fa fa-bug', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('108', 'Un delivered Inv', 'un_delivered', 'Inventory', '0', 'fa fa-bug', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('109', 'Stock Variation Report', 'rep_stk_variation', 'Inventory', '0', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('110', 'Stock Update', 'stk_update_stk_take', 'Inventory', '0', 'fa fa-pencil-square-o', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('111', 'Card', 'batt_card', 'Stores', '0', 'fa fa-pencil-square-o', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('112', 'Costing', 'costing', 'Costing', '0', 'fa fa-pencil-square-o', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('113', 'GIN Stores', 'gin', 'Stores', '0', 'fa fa-bug', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('114', 'Bank Garntee', 'bankmast', 'Master Files', '0', 'fa fa-user-secret', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('116', 'Outstanding Statement Group', 'rep_outstanding_group', 'Reports-Customer', '0', 'fa fa-cogs', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('118', 'Price Control', 'price_control', 'Master Files', '1', 'fa fa-plus-circle', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('119', 'Unlock Invoice', 'invoice_info', 'System Utilities', '1', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('120', 'Unsold Stock - All Dep', 'rep_unsold', 'Reports-Stock', '0', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('121', 'Sales Incentive', 'Dealer_share', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('123', 'Dealer Incentive EDIT', 'dealer_insc', 'Inquiries', '1', 'fa fa-pencil-square-o', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('124', 'DGRN Approve', 'dgrn_approve', 'Data Capture', '0', 'fa fa-pencil-square-o', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('125', 'login_report', 'login_report', 'Reports-Other', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('126', 'Rep Lock Active', 'rep_lock_active', 'Reports-New', '1', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('127', 'Sms Fire', 'sms_fire', 'Reports-New', '1', 'fa fa-bug', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('128', 'Insentive Payment Modification', 'insen_pay_modifi', 'Reports-New', '1', 'fa fa-user-secret', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('129', 'Discount Item', 'discount_item', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('130', 'Request Data Modifications', 'reqdata_modification', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('131', 'Problems', 'problems', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('132', 'Vehicle Report', 'report_vehicle', 'Stores', '1', 'fa fa-bug', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('133', 'Transport Payment', 'trans_pay', 'Data Capture', '1', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('134', 'Credit Note Approve', 'credit_note_app', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('136', 'Defect Register', 'def_inv', 'Inquiries', '1', 'fa fa-cogs', 'small-box bg-aqua');
INSERT INTO `doc_copy` VALUES ('137', 'VAT Schedule Report', 'vatshdule', 'Reports-Customer', '1', 'fa fa-plus-circle', 'small-box bg-purple');
INSERT INTO `doc_copy` VALUES ('138', 'Dealer Remark', 'dealer_remark', 'Home', '1', 'fa fa-bug', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('139', 'Rep Profile', 'rep_profile', 'Home', '1', 'fa fa-bug', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('140', 'Quantity Sales Customer Summery ', 'rep_qty_cus_sales', 'Reports-Sales', '0', 'fa fa-user-secret', 'small-box bg-green');
INSERT INTO `doc_copy` VALUES ('141', 'Dealer Incentive - G', 'dealer_incentived', 'Reports-Other', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('142', 'Dealer Incentive Report - G', 'dealer_incentive_reportd', 'Reports-Other', '0', 'fa fa-pencil-square-o', 'small-box bg-yellow');
INSERT INTO `doc_copy` VALUES ('143', 'Stock Consumption Gen Report', 'rep_6monthitm_1', 'Reports-Stock', '0', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('144', 'Stock Adjustment Report', 'rep_stock_adjustment', 'Reports-Stock', '1', 'fa fa-bug', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('158', 'Stock Take Stores', 'stk_update_stk_take_stores', 'Stores', '0', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('159', 'Stock Update Stores', 'stk_update_stores', 'Stores', '0', 'fa fa-user-secret', 'small-box bg-blue');
INSERT INTO `doc_copy` VALUES ('160', 'INVOICE DISCOUNT', 'invoicedis', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('161', 'CANCEL REPORT', 'cancel', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('162', 'BATTERY STATUS REPORT', 'battery_status', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('163', 'INVOICE UPDATE', 'invrepchange', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('164', 'ITEM THREAD UPDATE', 'itemthreadup', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('165', 'CHECKER', 'checker', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('166', 'CUSTOMER SUMMERY', 'cussummery', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('167', 'LIVE STOCK', 'live_stock', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('168', 'STOCK REPORT NEW', 'stkrepnew', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('169', 'SALES', 'sales', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('170', 'PAYMENTS', 'payments', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('171', 'INVOICE EXCEL', 'invoice_excel', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('172', 'INVOICE BARCODE UPLOAD', 'inv_barcode_up', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('173', 'LABOUR MASTER', 'labour', 'Master Files', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('174', 'RECEIPT NEW', 'receipt', 'Data Capture', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('175', 'INQUIRY CENTER', 'inquiry', 'Reports-New', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('176', 'DAG', 'dag', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('177', 'ONHAND LIST', 'onhandlist', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('178', 'OTHER SEND LIST', 'othersendlist', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('179', 'OTHER RECEIVED LIST', 'otherreclist', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('180', 'COMPLETE LIST', 'comp_list', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('181', 'REJECT LIST', 'reject_list', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('182', 'ALL LIST', 'all_list', 'Dag', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('184', 'OUTSTANDING REPORT', 'outstanding', 'Reports-sales', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('185', 'Customer', 'customer_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('186', 'Sales Exective', 'rep_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('187', 'Brand', 'brand_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('188', 'Item', 'item_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('189', 'Department', 'department_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('190', 'Bank', 'bank_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('191', 'Sub Customer', 'customer_mas_sub', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('192', 'Labour', 'labour_mas', 'Reports-New1', '1', 'fa fa-pencil-square-o', 'small-box bg-orange');
INSERT INTO `doc_copy` VALUES ('193', 'Setting', 'setting', 'Administration', '1', 'fa fa-pencil-square-o', 'small-box bg-blue');

-- ----------------------------
-- Table structure for `entry_log`
-- ----------------------------
CREATE TABLE `entry_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `refno` varchar(50) DEFAULT NULL,
  `username` varchar(100) DEFAULT NULL,
  `docid` bigint(20) DEFAULT NULL,
  `docname` varchar(200) DEFAULT NULL,
  `trnType` varchar(20) DEFAULT NULL,
  `stime` datetime DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `crLmt` float DEFAULT NULL,
  `TmpCrLmt` float DEFAULT NULL,
  `remark1` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=339944 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of entry_log
-- ----------------------------
INSERT INTO `entry_log` VALUES ('339808', 'aa', 'admin', null, 'User Create', 'Delete', '2023-12-19 11:52:22', '2023-12-19', null, null, null, '');
INSERT INTO `entry_log` VALUES ('339809', 'AA', 'admin', null, 'User Create', 'Save', '2023-12-19 11:53:11', '2023-12-19', null, null, null, 'IAS');
INSERT INTO `entry_log` VALUES ('339810', 'BB', 'admin', null, 'User Create', 'Save', '2023-12-19 12:00:41', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339811', 'BB', 'admin', null, 'User Create', 'Delete', '2023-12-19 12:00:57', '2023-12-19', null, null, null, '');
INSERT INTO `entry_log` VALUES ('339812', 'SUMALI', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-19 13:28:01', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339813', 'SUMALI', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-19 13:28:12', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339814', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-19 16:45:59', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339815', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-19 16:46:24', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339816', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-19 16:46:29', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339817', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-19 16:48:51', '2023-12-19', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339818', 'IS/PO/000232', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-20 12:23:51', '2023-12-20', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339819', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-20 13:13:51', '2023-12-20', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339820', 'IS/PO/000232', 'admin', null, 'Purchase Order', 'Updated', '2023-12-20 13:59:53', '2023-12-20', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339821', 'IS/PO/000232', 'admin', null, 'Po Order', 'Canceled', '2023-12-20 14:02:09', '2023-12-20', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339822', '', 'admin', null, 'Customer Master', 'Update', '2023-12-20 14:02:52', '2023-12-20', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339823', 'V/0132', 'admin', null, 'Customer Master', 'Cancell', '2023-12-20 14:02:58', '2023-12-20', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339824', 'IS/L/006', 'admin', null, 'Labour', 'Save', '2023-12-20 14:04:49', '2023-12-20', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339825', 'IS/PO/000233', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-21 10:39:01', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339826', 'IS/PO/000234', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-21 10:44:37', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339827', 'IS/PO/000235', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-21 10:52:37', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339828', 'IS/PO/000236', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-21 10:54:58', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339829', 'IS/PO/000237', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-21 11:01:31', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339830', 'IS/PO/000238', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-21 11:09:54', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339831', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-21 16:09:34', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339832', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-21 16:10:51', '2023-12-21', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339833', 'TEST1', 'admin', null, 'Brand Master', 'Save', '2023-12-22 10:53:52', '2023-12-22', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339834', 'TEST2', 'admin', null, 'Brand Master', 'Save', '2023-12-22 10:54:08', '2023-12-22', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339835', '100', 'admin', null, 'Item Master', 'Update', '2023-12-22 10:54:54', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339836', 'IT/0734', 'admin', null, 'Item Master', 'Save', '2023-12-22 10:55:11', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339837', 'IS/PO/000239', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-22 11:26:03', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339838', 'IS/PO/000240', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-22 13:19:45', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339839', 'IS/PO/000241', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-22 13:27:03', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339840', 'IS/PO/000242', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-22 13:30:26', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339841', 'IS/PO/000242', 'admin', null, 'Po Order', 'Canceled', '2023-12-22 13:46:00', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339842', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-22 13:51:46', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339843', 'V/0131', 'admin', null, 'Customer Master', 'Cancell', '2023-12-22 21:40:51', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339844', '100', 'admin', null, 'Item Master', 'Cancell', '2023-12-22 21:55:52', '2023-12-22', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339845', 'IS/PO/000243', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-27 10:10:55', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339846', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2023-12-27 10:17:36', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339847', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-27 10:48:15', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339848', '08', 'admin', null, 'Department Master', 'Save', '2023-12-27 10:52:36', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339849', 'IS/PO/000244', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-27 11:10:08', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339850', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-27 16:07:18', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339851', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-27 16:07:51', '2023-12-27', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339852', 'IS/GRN/000215', 'admin', null, 'GRN', 'Save', '2023-12-28 09:48:23', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339853', 'IS/GRN/000216', 'admin', null, 'GRN', 'Save', '2023-12-28 10:38:56', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339854', 'IS/PO/000245', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-28 10:47:44', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339855', 'IS/GRN/000217', 'admin', null, 'GRN', 'Save', '2023-12-28 13:02:04', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339856', 'IS/PO/000246', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-28 13:18:02', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339857', '', 'admin', null, 'Purchase Order', 'Updated', '2023-12-28 13:18:50', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339858', 'IS/GRN/000218', 'admin', null, 'GRN', 'Save', '2023-12-28 13:19:09', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339859', 'IS/GRN/000218', 'admin', null, 'ARN', 'Delete', '2023-12-28 13:42:21', '2023-12-28', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339860', 'IS/GRN/000219', 'admin', null, 'GRN', 'Save', '2023-12-28 15:35:36', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339861', '100', 'admin', null, 'Item Master', 'Save', '2023-12-28 15:36:41', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339862', '100', 'admin', null, 'Item Master', 'Save', '2023-12-28 15:36:48', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339863', '100', 'admin', null, 'Item Master', 'Save', '2023-12-28 15:37:50', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339864', '100', 'admin', null, 'Item Master', 'Update', '2023-12-28 15:41:22', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339865', 'DSI', 'admin', null, 'Brand Master', 'Save', '2023-12-28 16:14:22', '2023-12-28', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339866', 'AMORON', 'admin', null, 'Brand Master', 'Save', '2023-12-28 16:15:00', '2023-12-28', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339867', 'IT/0738', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:16:53', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339868', 'IT/0739', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:17:44', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339869', 'CEAT', 'admin', null, 'Brand Master', 'Save', '2023-12-28 16:18:54', '2023-12-28', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339870', 'IT/0740', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:20:15', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339871', 'EXIDE', 'admin', null, 'Brand Master', 'Save', '2023-12-28 16:21:14', '2023-12-28', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339872', 'IT/0741', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:22:20', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339873', 'R/017', 'admin', null, 'Sales Exective Master', 'Save', '2023-12-28 16:24:42', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339874', 'R/016', 'admin', null, 'Sales Exective Master', 'Update', '2023-12-28 16:25:41', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339875', 'IS/PO/000247', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-28 16:27:07', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339876', 'IS/PO/000248', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-28 16:33:33', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339877', 'IT/0742', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:40:48', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339878', 'IT/0743', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:41:09', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339879', 'IT/0744', 'admin', null, 'Item Master', 'Save', '2023-12-28 16:41:40', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339880', 'IS/PO/000249', 'admin', null, 'Purchase Order', 'SAVE', '2023-12-28 16:43:21', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339881', 'IS/GRN/000220', 'admin', null, 'GRN', 'Save', '2023-12-28 16:50:25', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339882', 'IS/GRN/000215', 'admin', null, 'GRN', 'Cancel', '2023-12-28 16:55:38', '2023-12-28', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339883', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2024-01-02 09:07:50', '2024-01-02', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339884', 'IS/ST/0000135', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 12:07:28', '2024-01-02', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339885', 'IS/ST/0000136', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 12:17:01', '2024-01-02', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339886', '', 'admin', null, 'Stock Tranfer', 'CANCEL', '2024-01-02 12:51:27', '2024-01-02', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339887', 'IS/ST/0000137', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 15:26:04', '2024-01-02', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339888', 'IS/ST/0000138', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 15:28:20', '2024-01-02', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339889', 'IS/ST/0000139', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 15:30:47', '2024-01-02', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339890', 'IS/ST/0000140', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 15:32:43', '2024-01-02', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339891', 'IS/ST/0000141', 'admin', null, 'Stock Tranfer', 'SAVE', '2024-01-02 15:35:25', '2024-01-02', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339892', 'IS/INV/CB/000003', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:00:27', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339893', 'IS/INV/CB/000004', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:16:24', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339894', 'IS/INV/CB/000005', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:16:27', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339895', 'IS/INV/CB/000006', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:16:34', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339896', 'IS/INV/CB/000007', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:17:19', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339897', 'IS/INV/CB/000008', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:46:17', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339898', 'IS/INV/CB/000009', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:48:47', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339899', 'IS/INV/CB/000010', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:49:11', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339900', 'IS/INV/CB/000011', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:49:22', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339901', 'IS/INV/CB/000012', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:50:14', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339902', 'IS/INV/CB/000013', 'admin', null, 'Invoice', 'Save', '2024-01-23 14:59:00', '2024-01-23', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339903', 'IS/INV/CB/000007', 'admin', null, 'Invoice', 'Cancel', '2024-01-24 09:46:58', '2024-01-24', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339904', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2024-01-24 16:34:29', '2024-01-24', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339905', 'IS/GRN/000001', 'admin', null, 'GRN', 'Save', '2024-01-26 15:19:21', '2024-01-26', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339906', 'IS/GRN/000002', 'admin', null, 'GRN', 'Save', '2024-01-26 16:57:03', '2024-01-26', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339907', 'IS/INV/CB/000014', 'admin', null, 'Invoice', 'Save', '2024-01-29 09:44:20', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339908', 'IS/INV/CB/000015', 'admin', null, 'Invoice', 'Save', '2024-01-29 09:48:58', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339909', 'IS/PO/000250', 'admin', null, 'Purchase Order', 'SAVE', '2024-01-29 11:09:06', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339910', 'IS/INV/CB/000016', 'admin', null, 'Invoice', 'Save', '2024-01-29 12:18:44', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339911', 'IS/GRN/000001', 'admin', null, 'Sales Return', 'Cancel', '2024-01-29 15:06:58', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339912', 'IS/GRN/000003', 'admin', null, 'GRN', 'Save', '2024-01-29 16:33:08', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339913', 'IS/GRN/000003', 'admin', null, 'Sales Return', 'Cancel', '2024-01-29 16:42:28', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339914', 'IS/INV/CB/000016', 'admin', null, 'Invoice', 'Cancel', '2024-01-29 16:44:04', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339915', 'IS/GRN/000004', 'admin', null, 'GRN', 'Save', '2024-01-29 20:29:39', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339916', 'IS/GRN/000005', 'admin', null, 'GRN', 'Save', '2024-01-29 20:39:04', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339917', 'IS/GRN/000006', 'admin', null, 'GRN', 'Save', '2024-01-29 21:13:29', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339918', 'IS/GRN/000007', 'admin', null, 'GRN', 'Save', '2024-01-29 21:15:39', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339919', 'IS/GRN/000005', 'admin', null, 'Sales Return', 'Cancel', '2024-01-29 22:46:36', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339920', 'IS/GRN/000008', 'admin', null, 'GRN', 'Save', '2024-01-29 22:55:28', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339921', 'IS/GRN/000008', 'admin', null, 'Sales Return', 'Cancel', '2024-01-29 22:57:57', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339922', 'IS/GRN/000009', 'admin', null, 'GRN', 'Save', '2024-01-29 23:03:23', '2024-01-29', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339923', 'IS/PO/000251', 'admin', null, 'Purchase Order', 'SAVE', '2024-01-30 10:25:38', '2024-01-30', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339924', 'IS/INV/CB/000017', 'admin', null, 'Invoice', 'Save', '2024-01-30 10:30:23', '2024-01-30', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339925', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2024-01-30 10:49:45', '2024-01-30', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339926', 'IS/CRN/000001', 'admin', null, 'Credit Note', 'Save', '2024-01-30 14:01:16', '2024-01-30', null, null, null, null);
INSERT INTO `entry_log` VALUES ('339927', 'IS/CRN/000001', 'admin', null, 'Credit Note', 'Cancel', '2024-01-30 21:08:55', '2024-01-30', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339928', 'IS/CRN/000002', 'admin', null, 'Credit Note', 'Save', '2024-01-31 11:55:37', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339929', 'IS/CRN/000003', 'admin', null, 'Credit Note', 'Save', '2024-01-31 12:39:47', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339930', 'IS/CRN/000004', 'admin', null, 'Credit Note', 'Save', '2024-01-31 12:41:08', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339931', 'IS/CRN/000005', 'admin', null, 'Credit Note', 'Save', '2024-01-31 12:42:51', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339932', 'IS/CRN/000006', 'admin', null, 'Credit Note', 'Save', '2024-01-31 12:43:21', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339933', 'IS/CRN/000006', 'admin', null, 'Credit Note', 'Cancel', '2024-01-31 12:44:57', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339934', 'admin', 'admin', null, 'Assign Privilages', 'SAVED', '2024-01-31 12:50:01', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339935', 'IS/INV/CRM/000001', 'admin', null, 'Invoice', 'Save', '2024-01-31 16:48:13', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339936', 'IS/INV/CRM/000002', 'admin', null, 'Invoice', 'Save', '2024-01-31 16:52:22', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339937', 'IS/INV/CRM/000003', 'admin', null, 'Invoice', 'Save', '2024-01-31 16:52:39', '2024-01-31', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339938', 'IS/GRN/000221', 'admin', null, 'GRN', 'SAVE', '2024-02-07 14:37:29', '2024-02-07', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339939', '', 'admin', null, 'Utilization', 'Save', '2024-02-08 16:10:14', '2024-02-08', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339940', 'IS/CUTI/0000002', 'admin', null, 'Utilization', 'Save', '2024-02-08 16:31:16', '2024-02-08', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339941', 'IS/CUTI/0000003', 'admin', null, 'Utilization', 'Save', '2024-02-08 16:34:57', '2024-02-08', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339942', 'IS/CUTI/0000002', 'admin', null, 'Utilization', 'Cancel', '2024-02-08 16:53:38', '2024-02-08', null, null, null, 'IS');
INSERT INTO `entry_log` VALUES ('339943', 'IS/CUTI/0000004', 'admin', null, 'Utilization', 'Save', '2024-02-09 20:28:59', '2024-02-09', null, null, null, 'IS');

-- ----------------------------
-- Table structure for `errorlog`
-- ----------------------------
CREATE TABLE `errorlog` (
  `id` int(11) NOT NULL DEFAULT 0,
  `username` char(100) DEFAULT NULL,
  `userpass` char(20) DEFAULT NULL,
  `docid` int(11) DEFAULT 0,
  `sdate` date DEFAULT NULL,
  `docname` char(10) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of errorlog
-- ----------------------------

-- ----------------------------
-- Table structure for `geoloc`
-- ----------------------------
CREATE TABLE `geoloc` (
  `user_nm` varchar(70) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `stime` datetime DEFAULT NULL,
  `lat` varchar(50) DEFAULT NULL,
  `lng` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `loc` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of geoloc
-- ----------------------------

-- ----------------------------
-- Table structure for `guarentee_data`
-- ----------------------------
CREATE TABLE `guarentee_data` (
  `cus_code` varchar(20) DEFAULT NULL,
  `gr_type` varchar(20) DEFAULT NULL,
  `gr_amount` decimal(20,2) DEFAULT NULL,
  `gr_date` date DEFAULT NULL,
  `gr_status` varchar(5) DEFAULT '0',
  `gr_id` varchar(10) NOT NULL,
  `gr_bank` varchar(50) DEFAULT NULL,
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of guarentee_data
-- ----------------------------

-- ----------------------------
-- Table structure for `inc_auto_credit_note`
-- ----------------------------
CREATE TABLE `inc_auto_credit_note` (
  `myear_mon` varchar(20) DEFAULT NULL,
  `code` varchar(30) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `sal_ex` varchar(50) DEFAULT NULL,
  `amount1` decimal(20,2) DEFAULT 0.00,
  `qty1` decimal(20,2) DEFAULT 0.00,
  `amount2` decimal(20,2) DEFAULT 0.00,
  `qty2` decimal(20,2) DEFAULT 0.00,
  `crnno` varchar(20) DEFAULT NULL,
  `txndate` date DEFAULT NULL,
  `amount` decimal(20,2) DEFAULT 0.00,
  `status` varchar(20) DEFAULT NULL,
  `user_id` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inc_auto_credit_note
-- ----------------------------

-- ----------------------------
-- Table structure for `inreq_mas`
-- ----------------------------
CREATE TABLE `inreq_mas` (
  `id` int(11) NOT NULL,
  `refno` char(15) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `dep` char(6) DEFAULT NULL,
  `trn_type` char(6) DEFAULT NULL,
  `remark` varchar(500) DEFAULT '',
  `CANCELL` char(1) DEFAULT '0',
  `tmp_no` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of inreq_mas
-- ----------------------------

-- ----------------------------
-- Table structure for `inreq_mas_stores`
-- ----------------------------
CREATE TABLE `inreq_mas_stores` (
  `id` int(11) NOT NULL,
  `refno` char(15) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `dep` char(6) DEFAULT NULL,
  `trn_type` char(6) DEFAULT NULL,
  `remark` char(200) DEFAULT NULL,
  `CANCELL` char(1) DEFAULT '0',
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inreq_mas_stores
-- ----------------------------

-- ----------------------------
-- Table structure for `inreq_trn`
-- ----------------------------
CREATE TABLE `inreq_trn` (
  `id` int(11) NOT NULL,
  `refno` char(15) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `stk_no` char(20) DEFAULT '',
  `trn_type` char(6) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `CANCELL` char(1) DEFAULT '0',
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of inreq_trn
-- ----------------------------

-- ----------------------------
-- Table structure for `inreq_trn_stores`
-- ----------------------------
CREATE TABLE `inreq_trn_stores` (
  `id` int(11) NOT NULL,
  `refno` char(15) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `stk_no` char(10) DEFAULT NULL,
  `trn_type` char(6) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `CANCELL` char(1) DEFAULT '0',
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inreq_trn_stores
-- ----------------------------

-- ----------------------------
-- Table structure for `insentive_scheme`
-- ----------------------------
CREATE TABLE `insentive_scheme` (
  `code` varchar(20) DEFAULT NULL,
  `brand` varchar(50) DEFAULT NULL,
  `sfrom` date DEFAULT NULL,
  `sto` date DEFAULT NULL,
  `id` int(11) NOT NULL,
  `inc_type` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of insentive_scheme
-- ----------------------------

-- ----------------------------
-- Table structure for `ins_payment`
-- ----------------------------
CREATE TABLE `ins_payment` (
  `id` int(11) NOT NULL,
  `cusCode` char(10) DEFAULT NULL,
  `Cusname` char(50) DEFAULT NULL,
  `I_month` char(10) DEFAULT NULL,
  `I_year` char(10) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `remarks` varchar(300) DEFAULT NULL,
  `pr_by` char(30) DEFAULT NULL,
  `Chk_by` char(30) DEFAULT NULL,
  `app_by` char(30) DEFAULT NULL,
  `auth_by` char(30) DEFAULT NULL,
  `amount` decimal(15,2) DEFAULT 0.00,
  `Interest` decimal(15,2) DEFAULT 0.00,
  `Percentage` decimal(15,2) DEFAULT 0.00,
  `indate` date DEFAULT NULL,
  `chno` char(20) DEFAULT NULL,
  `refno` char(20) DEFAULT NULL,
  `Type` char(20) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `addnote` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of ins_payment
-- ----------------------------

-- ----------------------------
-- Table structure for `ins_payment_tmp`
-- ----------------------------
CREATE TABLE `ins_payment_tmp` (
  `id` bigint(20) NOT NULL,
  `remarks` varchar(300) DEFAULT NULL,
  `chno` char(20) DEFAULT NULL,
  `cusCode` varchar(20) DEFAULT NULL,
  `I_month` varchar(10) DEFAULT NULL,
  `I_year` varchar(10) DEFAULT NULL,
  `Type` varchar(20) DEFAULT NULL,
  `updated` varchar(10) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of ins_payment_tmp
-- ----------------------------

-- ----------------------------
-- Table structure for `ins_payment_tmp1`
-- ----------------------------
CREATE TABLE `ins_payment_tmp1` (
  `id` int(11) NOT NULL,
  `remarks` varchar(300) DEFAULT NULL,
  `chno` char(20) DEFAULT NULL,
  `cusCode` varchar(20) DEFAULT NULL,
  `I_month` varchar(10) DEFAULT NULL,
  `I_year` varchar(10) DEFAULT NULL,
  `Type` varchar(20) DEFAULT NULL,
  `updated` varchar(10) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of ins_payment_tmp1
-- ----------------------------

-- ----------------------------
-- Table structure for `intper`
-- ----------------------------
CREATE TABLE `intper` (
  `traget` decimal(15,2) DEFAULT 0.00,
  `per` decimal(15,2) DEFAULT 0.00,
  `id` int(11) NOT NULL,
  `incen_year` decimal(15,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `add` decimal(11,2) DEFAULT NULL,
  `class` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of intper
-- ----------------------------

-- ----------------------------
-- Table structure for `invoice_auth_rtn`
-- ----------------------------
CREATE TABLE `invoice_auth_rtn` (
  `id` int(11) NOT NULL,
  `invoice_no` varchar(50) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `auth_stat` varchar(1) DEFAULT NULL,
  `auth_user` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of invoice_auth_rtn
-- ----------------------------

-- ----------------------------
-- Table structure for `invoice_det`
-- ----------------------------
CREATE TABLE `invoice_det` (
  `inv_no` varchar(30) DEFAULT NULL,
  `cus_name` varchar(200) DEFAULT NULL,
  `remark` varchar(600) DEFAULT NULL,
  `status` char(1) DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of invoice_det
-- ----------------------------

-- ----------------------------
-- Table structure for `invpara`
-- ----------------------------
CREATE TABLE `invpara` (
  `COMPANY` varchar(50) DEFAULT NULL,
  `ADD1` varchar(50) DEFAULT NULL,
  `ADD2` varchar(50) DEFAULT NULL,
  `ADD3` varchar(50) DEFAULT NULL,
  `TELE` varchar(50) DEFAULT NULL,
  `FAX` varchar(50) DEFAULT NULL,
  `EMAIL` varchar(50) DEFAULT NULL,
  `Purchase_acc` varchar(15) DEFAULT NULL,
  `Purchaseret_acc` varchar(15) DEFAULT NULL,
  `Sales_acc` varchar(15) DEFAULT NULL,
  `salesret_ac` varchar(15) DEFAULT NULL,
  `creditnote_acc` varchar(15) DEFAULT NULL,
  `DEFIT_acc` varchar(15) DEFAULT NULL,
  `ADVA_ACC` varchar(15) DEFAULT NULL,
  `RETCH_AC` varchar(15) DEFAULT NULL,
  `RETCHPAY_AC` varchar(15) DEFAULT NULL,
  `DAMA_AC` varchar(15) DEFAULT NULL,
  `DAMAREC_AC` varchar(15) DEFAULT NULL,
  `CAS_INV_NO` bigint(20) DEFAULT 0,
  `CRE_INV_NO` bigint(20) DEFAULT 0,
  `A` bigint(20) DEFAULT 0,
  `B` bigint(20) DEFAULT 0,
  `C` bigint(20) DEFAULT 0,
  `D` bigint(20) DEFAULT 0,
  `E` bigint(20) DEFAULT 0,
  `F` bigint(20) DEFAULT 0,
  `G` bigint(20) DEFAULT 0,
  `H` bigint(20) DEFAULT 0,
  `I` bigint(20) DEFAULT 0,
  `J` bigint(20) DEFAULT 0,
  `K` bigint(20) DEFAULT 0,
  `L` bigint(20) DEFAULT 0,
  `M` bigint(20) DEFAULT 0,
  `N` bigint(20) DEFAULT 0,
  `O` bigint(20) DEFAULT 0,
  `P` bigint(20) DEFAULT 0,
  `Q` bigint(20) DEFAULT 0,
  `R` bigint(20) DEFAULT 0,
  `S` bigint(20) DEFAULT 0,
  `T` bigint(20) DEFAULT 0,
  `U` bigint(20) DEFAULT 0,
  `V` bigint(20) DEFAULT 0,
  `W` bigint(20) DEFAULT 0,
  `X` bigint(20) DEFAULT 0,
  `Y` bigint(20) DEFAULT NULL,
  `Z` bigint(20) DEFAULT 0,
  `itemno` bigint(20) DEFAULT 0,
  `GIN` bigint(20) DEFAULT 0,
  `ARN` bigint(20) DEFAULT 0,
  `AD_NO` bigint(20) DEFAULT 0,
  `INV_RECNO` bigint(20) DEFAULT 0,
  `ORD_NO` bigint(20) DEFAULT 0,
  `ARR` bigint(20) DEFAULT 0,
  `grn` bigint(20) DEFAULT 0,
  `CHE_RET` bigint(20) DEFAULT 0,
  `Guti` bigint(20) DEFAULT 0,
  `CRN` bigint(20) DEFAULT 0,
  `VAT` char(20) DEFAULT NULL,
  `DGRN` bigint(20) DEFAULT 0,
  `last_update` date DEFAULT NULL,
  `INV_RECNO_M` bigint(20) DEFAULT 0,
  `grn_m` bigint(20) DEFAULT 0,
  `adj` bigint(20) DEFAULT 0,
  `CHRET` bigint(20) DEFAULT 0,
  `CAS_INV_NO_m` varchar(255) DEFAULT NULL,
  `CRE_INV_NO_m` varchar(255) DEFAULT NULL,
  `CRN_m` varchar(255) DEFAULT NULL,
  `dgrn_m` varchar(255) DEFAULT NULL,
  `flag` char(10) DEFAULT NULL,
  `flag1` varchar(100) DEFAULT '',
  `sysdate` double DEFAULT NULL,
  `Cus_ord_no` int(15) DEFAULT NULL,
  `ORDNO` bigint(15) DEFAULT 0,
  `AuthCode` char(10) DEFAULT NULL,
  `Cus_Qua_no` varchar(255) DEFAULT NULL,
  `BinCardDate` date DEFAULT NULL,
  `last_invdata` date DEFAULT NULL,
  `vatrate` int(12) DEFAULT NULL,
  `rno` bigint(20) DEFAULT 0,
  `debnoteno` bigint(20) DEFAULT 0,
  `RECDATE` date DEFAULT NULL,
  `delinno` bigint(20) DEFAULT 0,
  `reportno` bigint(20) DEFAULT 0,
  `traddebaccno` char(20) DEFAULT NULL,
  `cashinhandaccno` char(20) DEFAULT NULL,
  `voidchequesetcc` char(20) DEFAULT NULL,
  `shname` char(50) DEFAULT NULL,
  `QTNNO` bigint(20) DEFAULT 0,
  `svatno` char(20) DEFAULT NULL,
  `Claimno` bigint(20) DEFAULT 0,
  `crnfrmno` bigint(20) DEFAULT 0,
  `rebrefno` bigint(20) DEFAULT 0,
  `STOINV` bigint(20) DEFAULT 0,
  `STOINV_CODE` char(10) DEFAULT NULL,
  `STOrec_CODE` char(10) DEFAULT NULL,
  `STOrec` bigint(20) DEFAULT 0,
  `Scratch_no` varchar(255) DEFAULT NULL,
  `CO_CHNO` bigint(20) DEFAULT 0,
  `MA_CHNO` bigint(20) DEFAULT 0,
  `RET_CHNO` bigint(20) DEFAULT 0,
  `POCOMPANY` char(100) DEFAULT NULL,
  `POADD1` char(100) DEFAULT NULL,
  `POADD2` char(100) DEFAULT NULL,
  `DONO` bigint(20) DEFAULT 0,
  `SPINV` bigint(20) DEFAULT 0,
  `SPINV1` bigint(20) DEFAULT 0,
  `CCRNNO` bigint(20) DEFAULT 0,
  `Rebrefno_b` bigint(20) DEFAULT 0,
  `Che_exten` bigint(20) DEFAULT 0,
  `master_dev` char(5) DEFAULT NULL,
  `form_loc` char(5) DEFAULT NULL,
  `strgin` bigint(20) DEFAULT NULL,
  `reqmodi` bigint(20) DEFAULT NULL,
  `trans_pay` bigint(20) DEFAULT NULL,
  `id` int(20) NOT NULL AUTO_INCREMENT,
  `SPINV2` bigint(20) DEFAULT NULL,
  `cus` bigint(20) DEFAULT NULL,
  `VATTYPE` varchar(1) DEFAULT '0',
  `PAYTYPE` varchar(20) DEFAULT 'CR',
  `COMPANY1` varchar(100) DEFAULT NULL,
  `LABOUR` bigint(20) DEFAULT 1,
  `INQUIRY` bigint(20) DEFAULT 1,
  `DAG` bigint(20) DEFAULT 1,
  `DEPARTMENT` bigint(20) DEFAULT NULL,
  `SALES_EX` bigint(20) DEFAULT 1,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of invpara
-- ----------------------------
INSERT INTO `invpara` VALUES ('IRUSHI TYRE HOUSE', 'Kandy Road, Uhana', 'Ampara', null, '063-2250584 / 0777-845237', null, 'irushityre@gmail.com', '1', '1', '1', '1', '1', '1', '1', '540101', '1', '1', '1', '1', '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', null, '0', '745', '9', '29', '1', '84', '42', '1', '1', '1', '1', '1', null, '1', '2023-10-01', '1', '1', '165', '1', '1', '1', '1', null, 'IU', 'IU', '1', '1', '2', '1', '1', '2022-12-20', '2022-12-20', '0', '3', '1', null, '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '33', '1', '1', '1', '1', '0', '0', '1', '1', '1', '2', '56', '133', '0', 'CA', null, '5', '1', '30', '9', '18', '0');
INSERT INTO `invpara` VALUES ('IRUSHI TYRE HOUSE', 'Kandy Road, Uhana', 'Ampara', null, '0764-194759', null, 'irushityre@gmail.com', '1', '1', '1', '1', '1', '1', '1', '540101', '1', '1', '1', '1', '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', null, '0', '745', '3', '33', '1', '14', '46', '1', '1', '1', '1', '1', '', '1', '2023-10-01', '1', '1', '165', '1', '1', '1', '1', '', 'IAS', 'IAS', '1', '1', '1', '1', '1', '2022-12-20', '2022-12-20', '0', '3', '1', '0000-00-00', '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', '0', '0', '1', '1', '1', '12', '14', '133', '0', 'CA', '', '5', '1', '1', '9', '18', '0');
INSERT INTO `invpara` VALUES ('IRUSHI TYRE HOUSE', 'Kandy Road, Uhana', 'Ampara', null, '063-2222263 / 0777-843539', null, 'irushityre@gmail.com', '1', '1', '1', '1', '1', '1', '1', '540101', '1', '1', '1', '1', '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', null, '0', '745', '12', '66', '1', '52', '78', '1', '1', '1', '1', '1', '', '1', '2023-10-01', '1', '1', '165', '1', '1', '1', '1', '', 'IAW', 'IAW', '1', '1', '1', '1', '1', '2022-12-20', '2022-12-20', '0', '3', '1', '0000-00-00', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '35', '1', '1', '1', '1', '0', '0', '1', '1', '1', '13', '33', '133', '0', 'CA', '', '5', '1', '29', '9', '18', '0');
INSERT INTO `invpara` VALUES ('IRUSHI TYRE HOUSE', 'Kandy Road, Uhana', 'Ampara', '', '063-2250584 / 0777-843539', '', 'irushityre@gmail.com', '1', '1', '1', '1', '1', '1', '1', '540101', '1', '1', '1', '1', '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', null, '0', '745', '142', '222', '1', '18', '252', '1', '10', '1', '5', '7', '', '1', '2023-10-01', '1', '1', '165', '1', '1', '1', '1', '', 'IS', 'IS', '1', '1', '1', '1', '1', '2022-12-20', '2022-12-20', '0', '3', '1', '0000-00-00', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '4', '1', '1', '1', '1', '0', '0', '1', '1', '1', '14', '18', '133', '0', 'CA', '', '7', '3', '1', '9', '18', '0');

-- ----------------------------
-- Table structure for `invpara_stores`
-- ----------------------------
CREATE TABLE `invpara_stores` (
  `COMPANY` varchar(50) DEFAULT NULL,
  `ADD1` varchar(50) DEFAULT NULL,
  `ADD2` varchar(50) DEFAULT NULL,
  `ADD3` varchar(50) DEFAULT NULL,
  `TELE` varchar(50) DEFAULT NULL,
  `FAX` varchar(50) DEFAULT NULL,
  `EMAIL` varchar(50) DEFAULT NULL,
  `Purchase_acc` varchar(15) DEFAULT NULL,
  `Purchaseret_acc` varchar(15) DEFAULT NULL,
  `Sales_acc` varchar(15) DEFAULT NULL,
  `salesret_ac` varchar(15) DEFAULT NULL,
  `creditnote_acc` varchar(15) DEFAULT NULL,
  `DEFIT_acc` varchar(15) DEFAULT NULL,
  `ADVA_ACC` varchar(15) DEFAULT NULL,
  `RETCH_AC` varchar(15) DEFAULT NULL,
  `RETCHPAY_AC` varchar(15) DEFAULT NULL,
  `DAMA_AC` varchar(15) DEFAULT NULL,
  `DAMAREC_AC` varchar(15) DEFAULT NULL,
  `CAS_INV_NO` bigint(20) DEFAULT 0,
  `CRE_INV_NO` bigint(20) DEFAULT 0,
  `A` bigint(20) DEFAULT 0,
  `B` bigint(20) DEFAULT 0,
  `C` bigint(20) DEFAULT 0,
  `D` bigint(20) DEFAULT 0,
  `E` bigint(20) DEFAULT 0,
  `F` bigint(20) DEFAULT 0,
  `G` bigint(20) DEFAULT 0,
  `H` bigint(20) DEFAULT 0,
  `I` bigint(20) DEFAULT 0,
  `J` bigint(20) DEFAULT 0,
  `K` bigint(20) DEFAULT 0,
  `L` bigint(20) DEFAULT 0,
  `M` bigint(20) DEFAULT 0,
  `N` bigint(20) DEFAULT 0,
  `O` bigint(20) DEFAULT 0,
  `P` bigint(20) DEFAULT 0,
  `Q` bigint(20) DEFAULT 0,
  `R` bigint(20) DEFAULT 0,
  `S` bigint(20) DEFAULT 0,
  `T` bigint(20) DEFAULT 0,
  `U` bigint(20) DEFAULT 0,
  `V` bigint(20) DEFAULT 0,
  `W` bigint(20) DEFAULT 0,
  `X` bigint(20) DEFAULT 0,
  `Y` bigint(20) DEFAULT NULL,
  `Z` bigint(20) DEFAULT 0,
  `itemno` bigint(20) DEFAULT 0,
  `GIN` bigint(20) DEFAULT 0,
  `ARN` bigint(20) DEFAULT 0,
  `AD_NO` bigint(20) DEFAULT 0,
  `INV_RECNO` bigint(20) DEFAULT 0,
  `ORD_NO` bigint(20) DEFAULT 0,
  `ARR` bigint(20) DEFAULT 0,
  `grn` bigint(20) DEFAULT 0,
  `CHE_RET` bigint(20) DEFAULT 0,
  `Guti` bigint(20) DEFAULT 0,
  `CRN` bigint(20) DEFAULT 0,
  `VAT` char(20) DEFAULT NULL,
  `DGRN` bigint(20) DEFAULT 0,
  `last_update` date DEFAULT NULL,
  `INV_RECNO_M` bigint(20) DEFAULT 0,
  `grn_m` bigint(20) DEFAULT 0,
  `adj` bigint(20) DEFAULT 0,
  `CHRET` bigint(20) DEFAULT 0,
  `CAS_INV_NO_m` varchar(255) DEFAULT NULL,
  `CRE_INV_NO_m` varchar(255) DEFAULT NULL,
  `CRN_m` varchar(255) DEFAULT NULL,
  `dgrn_m` varchar(255) DEFAULT NULL,
  `flag` char(10) DEFAULT NULL,
  `sysdate` double DEFAULT NULL,
  `Cus_ord_no` int(11) DEFAULT NULL,
  `ORDNO` float(15,2) DEFAULT 0.00,
  `AuthCode` char(10) DEFAULT NULL,
  `Cus_Qua_no` varchar(255) DEFAULT NULL,
  `BinCardDate` date DEFAULT NULL,
  `last_invdata` date DEFAULT NULL,
  `vatrate` int(11) DEFAULT NULL,
  `rno` bigint(20) DEFAULT 0,
  `debnoteno` bigint(20) DEFAULT 0,
  `RECDATE` date DEFAULT NULL,
  `delinno` bigint(20) DEFAULT 0,
  `reportno` bigint(20) DEFAULT 0,
  `traddebaccno` char(20) DEFAULT NULL,
  `cashinhandaccno` char(20) DEFAULT NULL,
  `voidchequesetcc` char(20) DEFAULT NULL,
  `shname` char(50) DEFAULT NULL,
  `QTNNO` bigint(20) DEFAULT 0,
  `svatno` char(20) DEFAULT NULL,
  `Claimno` bigint(20) DEFAULT 0,
  `crnfrmno` bigint(20) DEFAULT 0,
  `rebrefno` bigint(20) DEFAULT 0,
  `STOINV` bigint(20) DEFAULT 0,
  `STOINV_CODE` char(10) DEFAULT NULL,
  `STOrec_CODE` char(10) DEFAULT NULL,
  `STOrec` bigint(20) DEFAULT 0,
  `Scratch_no` varchar(255) DEFAULT NULL,
  `CO_CHNO` bigint(20) DEFAULT 0,
  `MA_CHNO` bigint(20) DEFAULT 0,
  `RET_CHNO` bigint(20) DEFAULT 0,
  `POCOMPANY` char(100) DEFAULT NULL,
  `POADD1` char(100) DEFAULT NULL,
  `POADD2` char(100) DEFAULT NULL,
  `DONO` bigint(20) DEFAULT 0,
  `SPINV` bigint(20) DEFAULT 0,
  `SPINV1` bigint(20) DEFAULT 0,
  `CCRNNO` bigint(20) DEFAULT 0,
  `Rebrefno_b` bigint(20) DEFAULT 0,
  `Che_exten` bigint(20) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of invpara_stores
-- ----------------------------

-- ----------------------------
-- Table structure for `inv_data`
-- ----------------------------
CREATE TABLE `inv_data` (
  `str_invno` varchar(20) NOT NULL DEFAULT '',
  `str_code` varchar(20) DEFAULT NULL,
  `str_description` varchar(50) DEFAULT NULL,
  `cur_rate` decimal(10,2) DEFAULT 0.00,
  `cur_qty` decimal(10,2) DEFAULT 0.00,
  `cur_discount` decimal(10,2) DEFAULT 0.00,
  `cur_subtot` decimal(10,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inv_data
-- ----------------------------

-- ----------------------------
-- Table structure for `inv_mast`
-- ----------------------------
CREATE TABLE `inv_mast` (
  `id` varchar(255) DEFAULT NULL,
  `str_invoiceno` varchar(255) DEFAULT NULL,
  `str_customecode` varchar(255) DEFAULT NULL,
  `CUS_NAME` varchar(255) DEFAULT NULL,
  `str_crecash` varchar(255) DEFAULT NULL,
  `str_salesrep` varchar(255) DEFAULT NULL,
  `cur_discount` varchar(255) DEFAULT NULL,
  `cur_subtotal` varchar(255) DEFAULT NULL,
  `cur_tax` varchar(255) DEFAULT NULL,
  `cur_invoiceval` varchar(255) DEFAULT NULL,
  `str_salesorder1` varchar(255) DEFAULT NULL,
  `str_salesorder2` varchar(20) DEFAULT NULL,
  `dte_deliverdate` varchar(255) DEFAULT NULL,
  `str_vat` varchar(255) DEFAULT NULL,
  `str_vatno1` varchar(50) DEFAULT NULL,
  `str_vatno2` varchar(50) DEFAULT NULL,
  `str_orderno1` varchar(20) DEFAULT NULL,
  `str_orderno2` varchar(20) DEFAULT NULL,
  `cur_credit` double(15,2) DEFAULT 0.00,
  `cur_balance` double(15,2) DEFAULT 0.00,
  `str_department` varchar(20) DEFAULT NULL,
  `str_brand` varchar(20) DEFAULT NULL,
  `cur_discount1` double(15,2) DEFAULT 0.00,
  `cur_discount2` double(15,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inv_mast
-- ----------------------------

-- ----------------------------
-- Table structure for `inv_serino`
-- ----------------------------
CREATE TABLE `inv_serino` (
  `refno` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `stk_no` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `serino` varchar(50) DEFAULT NULL,
  `seri_datetime` datetime DEFAULT NULL,
  `id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `refno` (`refno`) USING BTREE,
  KEY `stk_no` (`stk_no`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inv_serino
-- ----------------------------

-- ----------------------------
-- Table structure for `inv_serino_grn`
-- ----------------------------
CREATE TABLE `inv_serino_grn` (
  `refno` varchar(20) DEFAULT NULL,
  `stk_no` varchar(20) DEFAULT NULL,
  `serino` varchar(50) DEFAULT NULL,
  `seri_datetime` datetime DEFAULT NULL,
  `id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of inv_serino_grn
-- ----------------------------

-- ----------------------------
-- Table structure for `item_mast`
-- ----------------------------
CREATE TABLE `item_mast` (
  `str_code` varchar(20) NOT NULL DEFAULT '',
  `str_brand` varchar(20) DEFAULT NULL,
  `str_description` varchar(50) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`str_code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of item_mast
-- ----------------------------

-- ----------------------------
-- Table structure for `lcodes`
-- ----------------------------
CREATE TABLE `lcodes` (
  `C_CODE` varchar(15) DEFAULT NULL,
  `C_NAME` varchar(150) DEFAULT NULL,
  `C_SEC` varchar(2) DEFAULT NULL,
  `C_ACCNO` varchar(20) DEFAULT NULL,
  `C_TYPE` varchar(1) DEFAULT NULL,
  `C_GROUP` varchar(4) DEFAULT 'D',
  `C_SUBGRO1` varchar(35) DEFAULT NULL,
  `C_SUBGRO2` varchar(50) DEFAULT NULL,
  `C_SUBGRO3` varchar(50) DEFAULT NULL,
  `C_OPBAL` double DEFAULT NULL,
  `C_CURBAL` double DEFAULT NULL,
  `C_REMARK` varchar(55) DEFAULT NULL,
  `C_ADD1` varchar(52) DEFAULT NULL,
  `C_ADD2` varchar(52) DEFAULT NULL,
  `C_DATE` date DEFAULT NULL,
  `C_BAL_SERI` varchar(5) DEFAULT NULL,
  `C_PNL_SERI` varchar(5) DEFAULT NULL,
  `C_PENBAL` double DEFAULT NULL,
  `C_MARK` varchar(1) DEFAULT NULL,
  `PEN_FLAG` varchar(1) DEFAULT NULL,
  `CAT` varchar(1) DEFAULT NULL,
  `C_NOD_ADD` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `PAccNo` char(10) DEFAULT NULL,
  `ComCode` char(10) DEFAULT NULL,
  `pen` double DEFAULT NULL,
  `C_OPBAL1` double DEFAULT NULL,
  `code1` char(20) DEFAULT NULL,
  `pen1` double DEFAULT NULL,
  `pen2` double DEFAULT NULL,
  `pen3` double DEFAULT NULL,
  `pen4` double DEFAULT NULL,
  `pen5` double DEFAULT NULL,
  `penop` double DEFAULT NULL,
  `Penop2` double DEFAULT NULL,
  `cur` varchar(20) DEFAULT NULL,
  `rate` float DEFAULT NULL,
  `A` char(1) NOT NULL DEFAULT '0',
  `B` char(1) NOT NULL DEFAULT '0',
  `C` char(1) NOT NULL DEFAULT '0',
  `R` char(1) NOT NULL DEFAULT '0',
  `COMPANY` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=270 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of lcodes
-- ----------------------------

-- ----------------------------
-- Table structure for `lcodes_copy`
-- ----------------------------
CREATE TABLE `lcodes_copy` (
  `C_CODE` varchar(15) DEFAULT NULL,
  `C_NAME` varchar(150) DEFAULT NULL,
  `C_SEC` varchar(2) DEFAULT NULL,
  `C_ACCNO` varchar(20) DEFAULT NULL,
  `C_TYPE` varchar(1) DEFAULT NULL,
  `C_GROUP` varchar(4) DEFAULT 'D',
  `C_SUBGRO1` varchar(35) DEFAULT NULL,
  `C_SUBGRO2` varchar(50) DEFAULT NULL,
  `C_SUBGRO3` varchar(50) DEFAULT NULL,
  `C_OPBAL` double DEFAULT NULL,
  `C_CURBAL` double DEFAULT NULL,
  `C_REMARK` varchar(55) DEFAULT NULL,
  `C_ADD1` varchar(52) DEFAULT NULL,
  `C_ADD2` varchar(52) DEFAULT NULL,
  `C_DATE` date DEFAULT NULL,
  `C_BAL_SERI` varchar(5) DEFAULT NULL,
  `C_PNL_SERI` varchar(5) DEFAULT NULL,
  `C_PENBAL` double DEFAULT NULL,
  `C_MARK` varchar(1) DEFAULT NULL,
  `PEN_FLAG` varchar(1) DEFAULT NULL,
  `CAT` varchar(1) DEFAULT NULL,
  `C_NOD_ADD` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `PAccNo` char(10) DEFAULT NULL,
  `ComCode` char(10) DEFAULT NULL,
  `pen` double DEFAULT NULL,
  `C_OPBAL1` double DEFAULT NULL,
  `code1` char(20) DEFAULT NULL,
  `pen1` double DEFAULT NULL,
  `pen2` double DEFAULT NULL,
  `pen3` double DEFAULT NULL,
  `pen4` double DEFAULT NULL,
  `pen5` double DEFAULT NULL,
  `penop` double DEFAULT NULL,
  `Penop2` double DEFAULT NULL,
  `cur` varchar(20) DEFAULT NULL,
  `rate` float DEFAULT NULL,
  `A` char(1) NOT NULL DEFAULT '0',
  `B` char(1) NOT NULL DEFAULT '0',
  `C` char(1) NOT NULL DEFAULT '0',
  `R` char(1) NOT NULL DEFAULT '0',
  `COMPANY` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=270 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of lcodes_copy
-- ----------------------------

-- ----------------------------
-- Table structure for `lcrege`
-- ----------------------------
CREATE TABLE `lcrege` (
  `arno` char(30) DEFAULT NULL,
  `ArDate` date DEFAULT NULL,
  `ArvlDate` date DEFAULT NULL,
  `RefNo` char(30) DEFAULT NULL,
  `LcNo` char(30) DEFAULT NULL,
  `SupNo` char(150) DEFAULT NULL,
  `BrandName` char(30) DEFAULT NULL,
  `USDAmo` decimal(15,2) DEFAULT 0.00,
  `DutyDate` date DEFAULT NULL,
  `Duty` bigint(20) DEFAULT 0,
  `VAT` bigint(20) DEFAULT 0,
  `Claim` decimal(15,2) DEFAULT 0.00,
  `ESC` decimal(15,2) DEFAULT 0.00,
  `Ent1` decimal(15,2) DEFAULT 0.00,
  `Ent2` decimal(15,2) DEFAULT 0.00,
  `EntSpcl` decimal(15,2) DEFAULT 0.00,
  `Advr` decimal(15,2) DEFAULT 0.00,
  `TargetIncentv` decimal(15,2) DEFAULT 0.00,
  `TotShipmntVal` bigint(20) DEFAULT 0,
  `SecurityFund` decimal(15,2) DEFAULT 0.00,
  `Fund` decimal(15,2) DEFAULT 0.00,
  `dev` char(1) DEFAULT NULL,
  `sup_name` char(100) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of lcrege
-- ----------------------------

-- ----------------------------
-- Table structure for `lcrege_n`
-- ----------------------------
CREATE TABLE `lcrege_n` (
  `arno` varchar(255) DEFAULT NULL,
  `ArDate` varchar(255) DEFAULT NULL,
  `ArvlDate` varchar(255) DEFAULT NULL,
  `RefNo` varchar(255) DEFAULT NULL,
  `LcNo` varchar(255) DEFAULT NULL,
  `SupNo` varchar(255) DEFAULT NULL,
  `BrandName` varchar(255) DEFAULT NULL,
  `USDAmo` varchar(255) DEFAULT NULL,
  `DutyDate` varchar(255) DEFAULT NULL,
  `Duty` varchar(255) DEFAULT NULL,
  `VAT` varchar(255) DEFAULT NULL,
  `Claim` varchar(255) DEFAULT NULL,
  `ESC` varchar(255) DEFAULT NULL,
  `Ent1` varchar(255) DEFAULT NULL,
  `Ent2` varchar(255) DEFAULT NULL,
  `EntSpcl` varchar(255) DEFAULT NULL,
  `Advr` varchar(255) DEFAULT NULL,
  `TargetIncentv` varchar(255) DEFAULT NULL,
  `TotShipmntVal` varchar(255) DEFAULT NULL,
  `SecurityFund` varchar(255) DEFAULT NULL,
  `Fund` varchar(255) DEFAULT NULL,
  `dev` varchar(255) DEFAULT '0',
  `sup_name` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of lcrege_n
-- ----------------------------

-- ----------------------------
-- Table structure for `list_price_aud`
-- ----------------------------
CREATE TABLE `list_price_aud` (
  `STK_NO` varchar(255) DEFAULT NULL,
  `list` float DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of list_price_aud
-- ----------------------------

-- ----------------------------
-- Table structure for `locationboardr`
-- ----------------------------
CREATE TABLE `locationboardr` (
  `Cabno` varchar(30) DEFAULT NULL,
  `LatTude` decimal(20,17) DEFAULT NULL,
  `LongTude` decimal(20,17) DEFAULT NULL,
  `PickTime` datetime DEFAULT NULL,
  `Flag` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of locationboardr
-- ----------------------------

-- ----------------------------
-- Table structure for `loging`
-- ----------------------------
CREATE TABLE `loging` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL,
  `User_Type` varchar(255) NOT NULL,
  `Date` date NOT NULL,
  `Logon_Time` time NOT NULL,
  `Logout_Time` time NOT NULL,
  `Sessioan_Id` varchar(255) DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  `loc` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=194930 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of loging
-- ----------------------------
INSERT INTO `loging` VALUES ('194887', 'admin', '1', '2023-12-20', '09:27:26', '00:00:00', 'fivm4q1c7voq27e743tkpa2us9', '::1', null);
INSERT INTO `loging` VALUES ('194888', 'admin', '1', '2023-12-21', '09:20:51', '00:00:00', 'mrs0k9trrp3gv7mmqanskngjca', '::1', null);
INSERT INTO `loging` VALUES ('194889', 'admin', '1', '2023-12-21', '09:20:51', '00:00:00', 'vsl88042a9jsok4koa4ftk3kn6', '::1', null);
INSERT INTO `loging` VALUES ('194890', 'admin', '1', '2023-12-21', '16:04:32', '00:00:00', '7osh3odv25lmvh03i2qs78g0sc', '::1', null);
INSERT INTO `loging` VALUES ('194891', 'admin', '1', '2023-12-21', '20:11:23', '00:00:00', 'k7tcao43bsdg3507jhg21fcm0u', '::1', null);
INSERT INTO `loging` VALUES ('194892', 'admin', '1', '2023-12-22', '10:04:52', '00:00:00', 's1djjdjsucadj9ahjl27bqk3aq', '::1', null);
INSERT INTO `loging` VALUES ('194893', 'admin', '1', '2023-12-22', '21:28:15', '00:00:00', 'leknr07rpsic6q4nlk7hg1jpe8', '::1', null);
INSERT INTO `loging` VALUES ('194894', 'admin', '1', '2023-12-27', '09:10:04', '00:00:00', 's9bd9hcidjs6nnv89kr8paimpo', '::1', null);
INSERT INTO `loging` VALUES ('194895', 'admin', '1', '2023-12-27', '09:21:04', '00:00:00', 'inmv2oh4uh0jrjlhfmcb669v8p', '::1', null);
INSERT INTO `loging` VALUES ('194896', 'admin', '1', '2023-12-27', '10:17:58', '00:00:00', 'tm1tuhkgcvtvc2ec845ijhl3m8', '::1', null);
INSERT INTO `loging` VALUES ('194897', 'admin', '1', '2023-12-27', '10:25:27', '00:00:00', '0un9sf0h42vg4ptj35f8aqpm18', '::1', null);
INSERT INTO `loging` VALUES ('194898', 'admin', '1', '2023-12-28', '08:59:17', '00:00:00', 'rhlnbsovmune0ac6k5am1e8gls', '::1', null);
INSERT INTO `loging` VALUES ('194899', 'ADMIN', '1', '2023-12-28', '16:00:37', '00:00:00', 'qpu3doci82s55hl9sv6b4poiqj', '::1', null);
INSERT INTO `loging` VALUES ('194900', 'admin', '1', '2023-12-28', '16:11:12', '00:00:00', 'jasv3dkjorll1ummah4rmsf1os', '::1', null);
INSERT INTO `loging` VALUES ('194901', 'admin', '1', '2023-12-29', '13:18:42', '00:00:00', 'ughmv92isjsd3lks211guopg2n', '::1', null);
INSERT INTO `loging` VALUES ('194902', 'admin', '1', '2024-01-01', '09:31:13', '00:00:00', 'ag40blerdgpdfbcg48qo8edjir', '::1', null);
INSERT INTO `loging` VALUES ('194903', 'admin', '1', '2024-01-02', '09:03:51', '00:00:00', '5reb1j5tj7nn48t06e9ovabn53', '::1', null);
INSERT INTO `loging` VALUES ('194904', 'admin', '1', '2024-01-03', '09:20:27', '00:00:00', 'ijem9gpah7u8us0gvrjtpmrq4o', '::1', null);
INSERT INTO `loging` VALUES ('194905', 'admin', '1', '2024-01-03', '11:41:52', '00:00:00', 'n9fh4g5t1epfn9v9dbc8s792je', '::1', null);
INSERT INTO `loging` VALUES ('194906', 'admin', '1', '2024-01-05', '09:19:20', '00:00:00', '6hq1hi0h6lm52nlhem9f6ub46e', '::1', null);
INSERT INTO `loging` VALUES ('194907', 'admin', '1', '2024-01-08', '09:25:12', '00:00:00', 'aejqahsh6bctrp5gm3bof558e2', '::1', null);
INSERT INTO `loging` VALUES ('194908', 'admin', '1', '2024-01-23', '09:08:58', '00:00:00', 'cgvr3rquql0gkj3vduvhm5a4mb', '::1', null);
INSERT INTO `loging` VALUES ('194909', 'admin', '1', '2024-01-23', '19:12:50', '00:00:00', 'b9epmrvp8k6sbnvbtdsjuitdu7', '::1', null);
INSERT INTO `loging` VALUES ('194910', 'admin', '1', '2024-01-23', '23:33:27', '00:00:00', 'j6cf47flce0nm1vlda7cf44147', '::1', null);
INSERT INTO `loging` VALUES ('194911', 'admin', '1', '2024-01-24', '08:56:21', '00:00:00', 'epiv6dod2mbucac0bob4f34h2k', '::1', null);
INSERT INTO `loging` VALUES ('194912', 'admin', '1', '2024-01-24', '15:25:02', '00:00:00', '0hjf6shm4ronu5o5ijvgf1j2g6', '::1', null);
INSERT INTO `loging` VALUES ('194913', 'admin', '1', '2024-01-24', '16:20:57', '00:00:00', 'bj5a6dlb3fihjtdt0e5vmssqv3', '::1', null);
INSERT INTO `loging` VALUES ('194914', 'admin', '1', '2024-01-26', '09:40:30', '00:00:00', 'aol905qof9vfig2cq9uqkuhn37', '::1', null);
INSERT INTO `loging` VALUES ('194915', 'admin', '1', '2024-01-29', '09:21:43', '00:00:00', 'soaf7n2oe9h7indprtj27f4kke', '::1', null);
INSERT INTO `loging` VALUES ('194916', 'admin', '1', '2024-01-29', '19:16:01', '00:00:00', 'cp6pltdqqfb452dmjufmdh85t1', '::1', null);
INSERT INTO `loging` VALUES ('194917', 'admin', '1', '2024-01-30', '10:11:10', '00:00:00', '8lq9hg6o7nafie8lasc0mohr4h', '::1', null);
INSERT INTO `loging` VALUES ('194918', 'admin', '1', '2024-01-30', '19:41:57', '00:00:00', 'iitbt8efbklb04kvfu81ukm3ub', '::1', null);
INSERT INTO `loging` VALUES ('194919', 'admin', '1', '2024-01-30', '22:14:33', '00:00:00', '53dqcm8g0sheegrk1ph6ersutj', '::1', null);
INSERT INTO `loging` VALUES ('194920', 'admin', '1', '2024-01-31', '10:49:57', '00:00:00', '51bp85v7rrkbbrr5s6sdpsg54t', '::1', null);
INSERT INTO `loging` VALUES ('194921', 'admin', '1', '2024-02-06', '12:55:19', '00:00:00', 'r5pf1apm92mfqaole19psd445s', '::1', null);
INSERT INTO `loging` VALUES ('194922', 'admin', '1', '2024-02-06', '19:45:21', '00:00:00', 'fj7s1i9ad72qlq5dpad1rm007r', '::1', null);
INSERT INTO `loging` VALUES ('194923', 'admin', '1', '2024-02-06', '19:47:36', '00:00:00', 'r6mq8e7aq2ggtuj7ceecv35pml', '::1', null);
INSERT INTO `loging` VALUES ('194924', 'admin', '1', '2024-02-07', '09:23:32', '00:00:00', 'je6nv6pqgkin5dbviec1fkc5gl', '::1', null);
INSERT INTO `loging` VALUES ('194925', 'admin', '1', '2024-02-07', '13:21:58', '00:00:00', 'c230nqb1cku9gekj38fc3ll2kf', '::1', null);
INSERT INTO `loging` VALUES ('194926', 'admin', '1', '2024-02-07', '19:18:52', '00:00:00', 'lurkm81qaubn2af3rraq8nr3fb', '::1', null);
INSERT INTO `loging` VALUES ('194927', 'admin', '1', '2024-02-08', '14:13:26', '00:00:00', 's8n289giagsvg7iu2hib1jog20', '::1', null);
INSERT INTO `loging` VALUES ('194928', 'admin', '1', '2024-02-09', '16:44:20', '00:00:00', 'mbk69n8ni6beb5opo7hhdobal1', '::1', null);
INSERT INTO `loging` VALUES ('194929', 'admin', '1', '2024-02-09', '19:45:13', '00:00:00', 'lcdvp6r97c2j05hse9tih1cij8', '::1', null);

-- ----------------------------
-- Table structure for `medispot`
-- ----------------------------
CREATE TABLE `medispot` (
  `ID` int(20) NOT NULL AUTO_INCREMENT,
  `NAME` varchar(200) DEFAULT NULL,
  `TRAVE_TO` varchar(200) DEFAULT NULL,
  `GENDER` varchar(50) DEFAULT NULL,
  `PASS_NO` varchar(20) DEFAULT '',
  `AGE` int(5) DEFAULT NULL,
  `WEIGHT` varchar(100) DEFAULT NULL,
  `PROFESSION` varchar(150) DEFAULT NULL,
  `MARI_STATUS` varchar(150) DEFAULT NULL,
  `BMI` varchar(100) DEFAULT NULL,
  `NATIONALITY` varchar(150) DEFAULT NULL,
  `BLOOD_PRES` varchar(200) DEFAULT NULL,
  `PULSE` varchar(150) DEFAULT NULL,
  `RR` varchar(150) DEFAULT NULL,
  `NEAR_L` varchar(150) DEFAULT NULL,
  `NEAR_R` varchar(150) DEFAULT NULL,
  `DISTANCE_L` varchar(150) DEFAULT NULL,
  `DISTANCE_R` varchar(150) DEFAULT NULL,
  `COLOR_VI` varchar(150) DEFAULT NULL,
  `EAR_L` varchar(150) DEFAULT NULL,
  `EAR_R` varchar(150) DEFAULT NULL,
  `CARDIO` varchar(150) DEFAULT NULL,
  `ENT` varchar(150) DEFAULT NULL,
  `RESPIR` varchar(150) DEFAULT NULL,
  `ABDOMEN` varchar(150) DEFAULT NULL,
  `HERNIA` varchar(150) DEFAULT NULL,
  `EXTREMI` varchar(150) DEFAULT NULL,
  `DEFORMI` varchar(150) DEFAULT NULL,
  `CNS` varchar(150) DEFAULT NULL,
  `SKIN` varchar(150) DEFAULT NULL,
  `VENEREAL` varchar(150) DEFAULT NULL,
  `CHEAST_X` varchar(150) DEFAULT NULL,
  `COMMENT` varchar(200) DEFAULT NULL,
  `LAB_CBC` varchar(150) DEFAULT NULL,
  `LAB_HEMOG` varchar(150) DEFAULT NULL,
  `LAB_BLOOD` varchar(150) DEFAULT NULL,
  `LAB_HIV` varchar(150) DEFAULT NULL,
  `LAB_HBSAG` varchar(150) DEFAULT NULL,
  `LAB_HCV` varchar(150) DEFAULT NULL,
  `LAB_VDRL` varchar(150) DEFAULT NULL,
  `LAB_TPHA` varchar(150) DEFAULT NULL,
  `LAB_RBS` varchar(150) DEFAULT NULL,
  `LAB_SCREAT` varchar(150) DEFAULT NULL,
  `LAB_TOTBILIRU` varchar(150) DEFAULT NULL,
  `LAB_SGPT` varchar(150) DEFAULT NULL,
  `LAB_SGOT` varchar(150) DEFAULT NULL,
  `LAB_ALP` varchar(150) DEFAULT NULL,
  `LAB_U_SUG` varchar(150) DEFAULT NULL,
  `LAB_U_HCG` varchar(150) DEFAULT NULL,
  `LAB_U_PROT` varchar(150) DEFAULT NULL,
  `DATE_EXAM` date DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- ----------------------------
-- Records of medispot
-- ----------------------------

-- ----------------------------
-- Table structure for `members`
-- ----------------------------
CREATE TABLE `members` (
  `id` int(11) NOT NULL,
  `first_name` varchar(500) NOT NULL,
  `last_name` varchar(500) NOT NULL,
  `email` varchar(500) NOT NULL,
  `phone` varchar(15) DEFAULT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  `status` enum('Active','Inactive') NOT NULL DEFAULT 'Active',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Records of members
-- ----------------------------

-- ----------------------------
-- Table structure for `monsales`
-- ----------------------------
CREATE TABLE `monsales` (
  `Cus_Code` varchar(20) DEFAULT NULL,
  `cus_name` varchar(50) DEFAULT NULL,
  `limit1` varchar(20) DEFAULT NULL,
  `cat` varchar(10) DEFAULT NULL,
  `brand` varchar(20) DEFAULT NULL,
  `month1` varchar(20) DEFAULT NULL,
  `month2` varchar(20) DEFAULT NULL,
  `month3` varchar(20) DEFAULT NULL,
  `C_TYPE` varchar(10) DEFAULT NULL,
  `id` bigint(20) NOT NULL,
  `target` decimal(20,2) DEFAULT NULL,
  `print` varchar(5) DEFAULT '0',
  `user_id` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of monsales
-- ----------------------------

-- ----------------------------
-- Table structure for `para_mast`
-- ----------------------------
CREATE TABLE `para_mast` (
  `inv_no` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of para_mast
-- ----------------------------

-- ----------------------------
-- Table structure for `pnl_notes_data`
-- ----------------------------
CREATE TABLE `pnl_notes_data` (
  `sdate` date DEFAULT NULL,
  `l_amount` decimal(10,2) DEFAULT NULL,
  `l_code` varchar(255) DEFAULT NULL,
  `mrow` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of pnl_notes_data
-- ----------------------------

-- ----------------------------
-- Table structure for `pur_serino`
-- ----------------------------
CREATE TABLE `pur_serino` (
  `serino` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `stk_no` varchar(40) DEFAULT NULL,
  `arno` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `serino` (`serino`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of pur_serino
-- ----------------------------

-- ----------------------------
-- Table structure for `qty_discount_auto`
-- ----------------------------
CREATE TABLE `qty_discount_auto` (
  `brand_name` varchar(255) DEFAULT NULL,
  `qty` float DEFAULT NULL,
  `per` float DEFAULT NULL,
  `id` int(11) NOT NULL,
  `sdate` date DEFAULT NULL,
  `active` int(11) DEFAULT 1,
  `ptype` varchar(20) DEFAULT NULL,
  `group1` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of qty_discount_auto
-- ----------------------------

-- ----------------------------
-- Table structure for `reason`
-- ----------------------------
CREATE TABLE `reason` (
  `reason_id` varchar(10) DEFAULT NULL,
  `reason` varchar(200) DEFAULT NULL,
  `short` varchar(200) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of reason
-- ----------------------------

-- ----------------------------
-- Table structure for `ref_history`
-- ----------------------------
CREATE TABLE `ref_history` (
  `OldRefno` char(10) DEFAULT NULL,
  `NewRefNo` char(10) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of ref_history
-- ----------------------------

-- ----------------------------
-- Table structure for `rej_mas`
-- ----------------------------
CREATE TABLE `rej_mas` (
  `ID` int(11) NOT NULL,
  `CUSNAME` varchar(50) DEFAULT NULL,
  `CUSCODE` varchar(50) DEFAULT NULL,
  `CUSAD1` varchar(50) DEFAULT NULL,
  `CUSAD2` varchar(50) DEFAULT NULL,
  `PARTNO` varchar(150) DEFAULT NULL,
  `BATNO` varchar(20) DEFAULT NULL,
  `MODEL` varchar(50) DEFAULT NULL,
  `BRAND` varchar(30) DEFAULT NULL,
  `INVDATE` date DEFAULT NULL,
  `INVNO` varchar(50) DEFAULT NULL,
  `batchno` varchar(50) DEFAULT NULL,
  `ENTdATE` date DEFAULT NULL,
  `ent_user` varchar(50) DEFAULT NULL,
  `Claim_no` char(10) DEFAULT NULL,
  `Claim_date` date DEFAULT NULL,
  `Claim_amount` float(15,2) DEFAULT 0.00,
  `paid_amo` float(15,2) DEFAULT 0.00,
  `paid_per` float(15,2) DEFAULT 0.00,
  `remark` char(100) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of rej_mas
-- ----------------------------

-- ----------------------------
-- Table structure for `reptrn`
-- ----------------------------
CREATE TABLE `reptrn` (
  `rep_code` varchar(50) DEFAULT NULL,
  `BrAnd` varchar(50) DEFAULT NULL,
  `Target` bigint(20) DEFAULT 0,
  `tt` char(10) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of reptrn
-- ----------------------------
INSERT INTO `reptrn` VALUES ('R/004', 'A Plus', '1', null, null, '0');
INSERT INTO `reptrn` VALUES ('9', 'A Plus', '1', null, null, '0');
INSERT INTO `reptrn` VALUES ('6', 'Aoteli', '1', null, null, '0');
INSERT INTO `reptrn` VALUES ('10', 'A Plus', '1', null, null, '0');
INSERT INTO `reptrn` VALUES ('R/007', 'A Plus', '0', null, null, '0');
INSERT INTO `reptrn` VALUES ('R/014', 'A Plus', '1', null, null, '0');
INSERT INTO `reptrn` VALUES ('R/014', 'ARL', '0', null, null, '0');

-- ----------------------------
-- Table structure for `rep_serial_scan`
-- ----------------------------
CREATE TABLE `rep_serial_scan` (
  `scan` varchar(90) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `id` int(11) NOT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `scan` (`scan`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of rep_serial_scan
-- ----------------------------

-- ----------------------------
-- Table structure for `rep_target`
-- ----------------------------
CREATE TABLE `rep_target` (
  `id` int(11) NOT NULL,
  `rep` varchar(10) DEFAULT NULL,
  `cus_code` varchar(10) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `target` decimal(15,2) DEFAULT 0.00,
  `ldate` date DEFAULT NULL,
  `TMonth` int(11) DEFAULT NULL,
  `Tyear` int(11) DEFAULT NULL,
  `Brand` char(20) DEFAULT NULL,
  `Type` char(20) DEFAULT NULL,
  `lock` char(10) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of rep_target
-- ----------------------------

-- ----------------------------
-- Table structure for `rep_targetbrand`
-- ----------------------------
CREATE TABLE `rep_targetbrand` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rep` varchar(20) DEFAULT NULL,
  `target` float(20,2) DEFAULT NULL,
  `month` date DEFAULT NULL,
  `brand` varchar(50) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of rep_targetbrand
-- ----------------------------
INSERT INTO `rep_targetbrand` VALUES ('7', 'R/005', '1.00', '2023-11-06', 'A Plus', '1');
INSERT INTO `rep_targetbrand` VALUES ('8', 'R/005', '1.00', '2023-12-06', 'B', '0');
INSERT INTO `rep_targetbrand` VALUES ('9', 'R/005', '1.00', '2023-12-07', 'BATTERY WATER', '0');
INSERT INTO `rep_targetbrand` VALUES ('10', 'R/005', '1.00', '2023-12-07', 'Aoteli', '0');
INSERT INTO `rep_targetbrand` VALUES ('11', '9', '222.00', '2023-12-07', 'ARL', '0');
INSERT INTO `rep_targetbrand` VALUES ('12', '10', '1.00', '2023-12-08', 'Arpico', '0');
INSERT INTO `rep_targetbrand` VALUES ('13', 'R/008', '333.00', '2023-12-06', 'ARL', '0');
INSERT INTO `rep_targetbrand` VALUES ('14', 'R/015', '2.00', '2023-12-11', 'A Plus', '0');

-- ----------------------------
-- Table structure for `rep_target_week`
-- ----------------------------
CREATE TABLE `rep_target_week` (
  `id` int(11) NOT NULL,
  `rep` varchar(10) DEFAULT NULL,
  `cus_code` varchar(10) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `target` bigint(20) DEFAULT 0,
  `ldate` date DEFAULT NULL,
  `TMonth` int(11) DEFAULT NULL,
  `Tyear` int(11) DEFAULT NULL,
  `Brand` char(20) DEFAULT NULL,
  `Type` char(20) DEFAULT NULL,
  `week` int(11) DEFAULT NULL,
  `lock` char(10) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of rep_target_week
-- ----------------------------

-- ----------------------------
-- Table structure for `requestdatamodi`
-- ----------------------------
CREATE TABLE `requestdatamodi` (
  `id` int(11) NOT NULL,
  `code` varchar(20) DEFAULT NULL,
  `uniq` varchar(30) DEFAULT NULL,
  `reqby` varchar(20) DEFAULT NULL,
  `des` varchar(500) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `user` varchar(20) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of requestdatamodi
-- ----------------------------

-- ----------------------------
-- Table structure for `ret_chq_history`
-- ----------------------------
CREATE TABLE `ret_chq_history` (
  `Ref_no` char(20) DEFAULT NULL,
  `Inv_no` char(20) DEFAULT NULL,
  `Inv_date` date DEFAULT NULL,
  `inv_Amt` decimal(15,2) DEFAULT 0.00,
  `st_amt` decimal(15,2) DEFAULT 0.00,
  `chk_no` varchar(30) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of ret_chq_history
-- ----------------------------

-- ----------------------------
-- Table structure for `salrep`
-- ----------------------------
CREATE TABLE `salrep` (
  `rep` varchar(30) DEFAULT NULL,
  `brand` varchar(30) DEFAULT NULL,
  `target` varchar(30) DEFAULT NULL,
  `week1` varchar(30) DEFAULT NULL,
  `week2` varchar(30) DEFAULT NULL,
  `week3` varchar(30) DEFAULT NULL,
  `week4` varchar(30) DEFAULT NULL,
  `week5` varchar(30) DEFAULT NULL,
  `no` varchar(10) DEFAULT NULL,
  `cus_code` varchar(30) DEFAULT NULL,
  `cus_name` varchar(50) DEFAULT NULL,
  `scat` varchar(50) DEFAULT NULL,
  `user_id` varchar(50) DEFAULT NULL,
  KEY `rep` (`rep`,`brand`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of salrep
-- ----------------------------

-- ----------------------------
-- Table structure for `salrep_mon`
-- ----------------------------
CREATE TABLE `salrep_mon` (
  `rep` varchar(30) DEFAULT NULL,
  `brand` varchar(30) DEFAULT NULL,
  `target` varchar(30) DEFAULT NULL,
  `month1` varchar(30) DEFAULT NULL,
  `month2` varchar(30) DEFAULT NULL,
  `month3` varchar(30) DEFAULT NULL,
  `month4` varchar(30) DEFAULT NULL,
  `month5` varchar(30) DEFAULT NULL,
  `month6` varchar(30) DEFAULT NULL,
  `month7` varchar(30) DEFAULT NULL,
  `month8` varchar(30) DEFAULT NULL,
  `month9` varchar(30) DEFAULT NULL,
  `month10` varchar(30) DEFAULT NULL,
  `month11` varchar(30) DEFAULT NULL,
  `month12` varchar(30) DEFAULT NULL,
  `no` varchar(10) DEFAULT NULL,
  `cus_code` varchar(30) DEFAULT NULL,
  `cus_name` varchar(50) DEFAULT NULL,
  `scat` varchar(50) DEFAULT NULL,
  `user_id` varchar(50) DEFAULT NULL,
  KEY `rep` (`rep`,`brand`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of salrep_mon
-- ----------------------------

-- ----------------------------
-- Table structure for `sal_comm`
-- ----------------------------
CREATE TABLE `sal_comm` (
  `sal_ex` varchar(255) DEFAULT NULL,
  `T1` varchar(255) DEFAULT NULL,
  `T2` varchar(255) DEFAULT NULL,
  `id` bigint(20) NOT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of sal_comm
-- ----------------------------

-- ----------------------------
-- Table structure for `sal_comm_new`
-- ----------------------------
CREATE TABLE `sal_comm_new` (
  `Sal_ex` varchar(10) DEFAULT NULL,
  `D_group` varchar(10) DEFAULT NULL,
  `T1` decimal(20,2) DEFAULT 0.00,
  `P1` decimal(20,2) DEFAULT 0.00,
  `T2` decimal(20,2) DEFAULT 0.00,
  `P2` decimal(20,2) DEFAULT 0.00,
  `T3` decimal(20,2) DEFAULT 0.00,
  `P3` decimal(20,2) DEFAULT 0.00,
  `Base` decimal(20,2) DEFAULT 0.00,
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `tmp_no` varchar(50) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of sal_comm_new
-- ----------------------------

-- ----------------------------
-- Table structure for `seri_trn`
-- ----------------------------
CREATE TABLE `seri_trn` (
  `id` int(11) NOT NULL,
  `stk_no` varchar(255) DEFAULT NULL,
  `seri_no` varchar(255) DEFAULT NULL,
  `Arno` varchar(255) DEFAULT NULL,
  `loc` varchar(255) DEFAULT NULL,
  `EnNo` varchar(255) DEFAULT NULL,
  `ChNo` varchar(255) DEFAULT NULL,
  `Color` varchar(255) DEFAULT NULL,
  `Sold` varchar(255) DEFAULT NULL,
  `ArSeri` varchar(255) DEFAULT NULL,
  `invNo` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of seri_trn
-- ----------------------------

-- ----------------------------
-- Table structure for `stk_cost_all`
-- ----------------------------
CREATE TABLE `stk_cost_all` (
  `stk_no` varchar(255) DEFAULT NULL,
  `acc_cost` float DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of stk_cost_all
-- ----------------------------

-- ----------------------------
-- Table structure for `stk_take`
-- ----------------------------
CREATE TABLE `stk_take` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(255) DEFAULT NULL,
  `SDATE` varchar(255) DEFAULT NULL,
  `STK_NO` varchar(255) DEFAULT NULL,
  `DESCRIPT` varchar(255) DEFAULT NULL,
  `UNIT` varchar(255) DEFAULT NULL,
  `PART_NO` varchar(255) DEFAULT NULL,
  `COST` varchar(255) DEFAULT NULL,
  `PRICE` varchar(255) DEFAULT NULL,
  `QTY` varchar(255) DEFAULT NULL,
  `DEPARTMENT` varchar(255) DEFAULT NULL,
  `DIS_PER` varchar(255) DEFAULT NULL,
  `DIS_RS` varchar(255) DEFAULT NULL,
  `GROUP` varchar(255) DEFAULT NULL,
  `REP` varchar(255) DEFAULT NULL,
  `TAX_PER` varchar(255) DEFAULT NULL,
  `ret_qty` varchar(255) DEFAULT NULL,
  `BRAND` varchar(255) DEFAULT NULL,
  `DEV` varchar(255) DEFAULT '0',
  `damage` bigint(20) DEFAULT 0,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of stk_take
-- ----------------------------

-- ----------------------------
-- Table structure for `stk_take_mas`
-- ----------------------------
CREATE TABLE `stk_take_mas` (
  `id` int(11) NOT NULL,
  `ref_no` varchar(255) DEFAULT NULL,
  `sdate` varchar(255) DEFAULT NULL,
  `location` varchar(100) DEFAULT NULL,
  `cancell` varchar(255) DEFAULT '0',
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of stk_take_mas
-- ----------------------------

-- ----------------------------
-- Table structure for `stk_take_mas_undelever`
-- ----------------------------
CREATE TABLE `stk_take_mas_undelever` (
  `id` int(11) NOT NULL,
  `ref_no` varchar(255) DEFAULT NULL,
  `sdate` varchar(255) DEFAULT NULL,
  `cancell` varchar(255) DEFAULT '0',
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of stk_take_mas_undelever
-- ----------------------------

-- ----------------------------
-- Table structure for `stk_take_undelever`
-- ----------------------------
CREATE TABLE `stk_take_undelever` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(255) DEFAULT NULL,
  `SDATE` varchar(255) DEFAULT NULL,
  `STK_NO` varchar(255) DEFAULT NULL,
  `DESCRIPT` varchar(255) DEFAULT NULL,
  `UNIT` varchar(255) DEFAULT NULL,
  `PART_NO` varchar(255) DEFAULT NULL,
  `COST` varchar(255) DEFAULT NULL,
  `PRICE` varchar(255) DEFAULT NULL,
  `QTY` varchar(255) DEFAULT NULL,
  `DEPARTMENT` varchar(255) DEFAULT NULL,
  `DIS_PER` varchar(255) DEFAULT NULL,
  `DIS_RS` varchar(255) DEFAULT NULL,
  `GROUP` varchar(255) DEFAULT NULL,
  `REP` varchar(255) DEFAULT NULL,
  `TAX_PER` varchar(255) DEFAULT NULL,
  `ret_qty` varchar(255) DEFAULT NULL,
  `BRAND` varchar(255) DEFAULT NULL,
  `DEV` varchar(255) DEFAULT '0',
  `damage` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of stk_take_undelever
-- ----------------------------

-- ----------------------------
-- Table structure for `s_admas`
-- ----------------------------
CREATE TABLE `s_admas` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(20) DEFAULT NULL,
  `TRN_TYPE` varchar(4) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `C_CODE` varchar(5) DEFAULT NULL,
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `C_ADD1` varchar(100) DEFAULT NULL,
  `TYPE` varchar(3) DEFAULT NULL,
  `SAL_EX` varchar(5) DEFAULT NULL,
  `DISCOU` decimal(20,2) DEFAULT 0.00,
  `AMOUNT` decimal(20,2) DEFAULT 0.00,
  `GST` decimal(20,2) DEFAULT 0.00,
  `GRAND_TOT` decimal(20,2) DEFAULT 0.00,
  `DUMMY_VAL` decimal(15,2) DEFAULT 0.00,
  `DIS` decimal(15,2) DEFAULT 0.00,
  `DIS1` decimal(15,2) DEFAULT 0.00,
  `DIS2` decimal(15,2) DEFAULT 0.00,
  `DIS_RUP` decimal(20,2) DEFAULT 0.00,
  `CASH` decimal(20,2) DEFAULT 0.00,
  `TOTPAY` decimal(20,2) DEFAULT 0.00,
  `ORD_NO` varchar(30) DEFAULT NULL,
  `ORD_DA` date DEFAULT NULL,
  `SETTLED` char(1) DEFAULT NULL,
  `TOTPAY1` decimal(15,2) DEFAULT 0.00,
  `DES_CAT` varchar(5) DEFAULT NULL,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `REMARK` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `BTT` decimal(15,2) DEFAULT 0.00,
  `VAT` decimal(15,2) DEFAULT 0.00,
  `VAT_VAL` decimal(20,2) DEFAULT 0.00,
  `Brand` varchar(30) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `Account` char(15) DEFAULT NULL,
  `Accname` char(60) DEFAULT NULL,
  `Costcenter` char(2) DEFAULT NULL,
  `RET_AMO` decimal(15,2) DEFAULT 0.00,
  `comm` char(1) DEFAULT NULL,
  `approveby` char(50) DEFAULT NULL,
  `appdate` date DEFAULT NULL,
  `INVNO` char(20) DEFAULT NULL,
  `REQ_DATE` date DEFAULT NULL,
  `Limit_need` decimal(15,2) DEFAULT 0.00,
  `Forward` char(10) DEFAULT NULL,
  `Result` char(5) DEFAULT NULL,
  `Rejectby` char(50) DEFAULT NULL,
  `rejectdate` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_cusordmas` (`REF_NO`,`TRN_TYPE`,`SDATE`,`C_CODE`,`SAL_EX`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_admas
-- ----------------------------

-- ----------------------------
-- Table structure for `s_adtrn`
-- ----------------------------
CREATE TABLE `s_adtrn` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(20) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `STK_NO` varchar(5) DEFAULT NULL,
  `DESCRIPT` varchar(100) DEFAULT NULL,
  `UNIT` varchar(13) DEFAULT NULL,
  `PART_NO` varchar(30) DEFAULT NULL,
  `COST` decimal(15,2) DEFAULT 0.00,
  `PRICE` decimal(15,2) DEFAULT 0.00,
  `QTY` bigint(20) DEFAULT NULL,
  `DEPARTMENT` varchar(3) DEFAULT NULL,
  `DIS_per` decimal(15,2) DEFAULT 0.00,
  `DIS_rs` decimal(15,2) DEFAULT 0.00,
  `GROUP` varchar(5) DEFAULT NULL,
  `REP` varchar(5) DEFAULT NULL,
  `TAX_PER` decimal(15,2) DEFAULT 0.00,
  `ret_qty` bigint(20) DEFAULT 0,
  `BRAND` varchar(50) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `CANCELL` char(1) DEFAULT '0',
  `c_code` char(10) DEFAULT NULL,
  `stk` int(11) DEFAULT NULL,
  `subtot` decimal(20,2) DEFAULT 0.00,
  `inv_qty` int(11) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_cusordtrn` (`REF_NO`,`SDATE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_adtrn
-- ----------------------------

-- ----------------------------
-- Table structure for `s_adva`
-- ----------------------------
CREATE TABLE `s_adva` (
  `C_REFNO` varchar(12) DEFAULT NULL,
  `C_DATE` date DEFAULT NULL,
  `C_CODE` varchar(4) DEFAULT NULL,
  `C_INVNO` varchar(12) DEFAULT NULL,
  `C_PAYMENT` decimal(20,2) DEFAULT 0.00,
  `C_REMARK` varchar(100) DEFAULT NULL,
  `C_TOTREPAY` decimal(20,2) DEFAULT 0.00,
  `C_GST` decimal(20,2) DEFAULT 0.00,
  `cash` varchar(50) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_adva
-- ----------------------------

-- ----------------------------
-- Table structure for `s_bank`
-- ----------------------------
CREATE TABLE `s_bank` (
  `ID` int(20) NOT NULL,
  `REFNO` varchar(100) DEFAULT NULL,
  `NAME` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of s_bank
-- ----------------------------
INSERT INTO `s_bank` VALUES ('1', 'COMMERCIAL', 'COMMERCIAL', '0');
INSERT INTO `s_bank` VALUES ('2', 'PEOPLES', 'PEOPLES', '0');
INSERT INTO `s_bank` VALUES ('3', 'SAMPATH', 'SAMPATH', '0');
INSERT INTO `s_bank` VALUES ('4', 'DFCC', 'DFCC', '0');
INSERT INTO `s_bank` VALUES ('5', 'HNB', 'HNB', '0');
INSERT INTO `s_bank` VALUES ('6', 'BOC', 'BOC', '0');
INSERT INTO `s_bank` VALUES ('7', 'PAN ASIA', 'PAN ASIA', '0');
INSERT INTO `s_bank` VALUES ('8', 'NDB', 'NDB', '0');
INSERT INTO `s_bank` VALUES ('9', 'NTB', 'NTB', '0');
INSERT INTO `s_bank` VALUES ('10', 'OTHER', 'OTHER', '0');

-- ----------------------------
-- Table structure for `s_cheq`
-- ----------------------------
CREATE TABLE `s_cheq` (
  `CR_REFNO` varchar(20) NOT NULL DEFAULT '',
  `CR_DATE` date DEFAULT NULL,
  `CR_REGEREF` varchar(20) DEFAULT NULL,
  `CR_CRNO` varchar(20) DEFAULT NULL,
  `CR_CRVAL` decimal(15,2) DEFAULT 0.00,
  `CR_CRDATE` date DEFAULT NULL,
  `CR_C_CODE` varchar(20) DEFAULT '',
  `CR_C_NAME` varchar(50) DEFAULT NULL,
  `CR_C_ADD` varchar(50) DEFAULT NULL,
  `CR_CHNO` varchar(12) DEFAULT NULL,
  `CR_CHEVAL` decimal(15,2) DEFAULT 0.00,
  `CR_REPAY` decimal(15,2) DEFAULT 0.00,
  `CR_CHDATE` date DEFAULT NULL,
  `CR_BANK` varchar(30) DEFAULT NULL,
  `CR_RESON` varchar(60) DEFAULT NULL,
  `CR_RESON1` varchar(60) DEFAULT NULL,
  `CR_REPOSIT` bit(1) DEFAULT NULL,
  `REDEPOSITDATE` date DEFAULT NULL,
  `REDEPOSITREF` char(12) DEFAULT NULL,
  `CR_FLAG` varchar(1) DEFAULT NULL,
  `PAID` decimal(15,2) DEFAULT 0.00,
  `S_REF` varchar(5) DEFAULT NULL,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `REMARK` varchar(255) DEFAULT NULL,
  `DEBACC` char(15) DEFAULT NULL,
  `CREACC` char(15) DEFAULT NULL,
  `dev` char(1) DEFAULT '0',
  `ret_chno` char(10) DEFAULT NULL,
  `ret_chdate` date DEFAULT NULL,
  `noof` int(11) DEFAULT NULL,
  `ret_refno` char(20) DEFAULT NULL,
  `rep_remark` char(100) DEFAULT NULL,
  `depobank` char(20) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `tmp` char(10) DEFAULT NULL,
  `FORwhat` char(20) DEFAULT NULL,
  `FORwhatDATE` date DEFAULT NULL,
  `crenoteno` char(20) DEFAULT NULL,
  `crenoteamo` decimal(15,2) DEFAULT 0.00,
  `debnoteno` char(20) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `Costcenter` char(2) DEFAULT NULL,
  `reason` varchar(100) DEFAULT NULL,
  `retcout` int(11) DEFAULT NULL,
  `pdno` varchar(50) DEFAULT NULL,
  `clicked` varchar(1) DEFAULT '0',
  `ch_count_ret` char(1) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_cheq` (`CR_REFNO`,`CR_CRNO`) USING BTREE,
  KEY `CR_C_CODE` (`CR_C_CODE`,`CR_CHEVAL`,`CR_FLAG`,`PAID`) USING BTREE,
  KEY `CR_FLAG` (`CR_FLAG`,`CR_DATE`,`dev`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_cheq
-- ----------------------------

-- ----------------------------
-- Table structure for `s_cheque_extend`
-- ----------------------------
CREATE TABLE `s_cheque_extend` (
  `refno` varchar(20) DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `sal_ex` varchar(25) DEFAULT NULL,
  `c_code` varchar(20) DEFAULT '',
  `c_name` varchar(50) DEFAULT NULL,
  `ch_no` varchar(20) DEFAULT '',
  `ch_amount` decimal(20,2) DEFAULT 0.00,
  `ch_date` date DEFAULT NULL,
  `ch_exdate` date DEFAULT NULL,
  `approved` varchar(100) DEFAULT NULL,
  `acc_approved` varchar(100) DEFAULT NULL,
  `e_time` time DEFAULT NULL,
  `ID` int(11) NOT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `app` int(11) DEFAULT 0,
  `ded` varchar(20) DEFAULT NULL,
  `ins` varchar(3) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `refno` (`refno`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_cheque_extend
-- ----------------------------

-- ----------------------------
-- Table structure for `s_cheq_tmp`
-- ----------------------------
CREATE TABLE `s_cheq_tmp` (
  `CR_REFNO` varchar(20) DEFAULT '',
  `CR_DATE` date DEFAULT NULL,
  `CR_REGEREF` varchar(20) DEFAULT '',
  `CR_CRNO` varchar(20) DEFAULT '',
  `CR_CRVAL` float(15,2) DEFAULT 0.00,
  `CR_CRDATE` date DEFAULT NULL,
  `CR_C_CODE` varchar(20) DEFAULT '',
  `CR_C_NAME` varchar(50) DEFAULT NULL,
  `CR_C_ADD` varchar(50) DEFAULT NULL,
  `CR_CHNO` varchar(12) DEFAULT NULL,
  `CR_CHEVAL` float(15,2) DEFAULT 0.00,
  `CR_REPAY` float(15,2) DEFAULT 0.00,
  `CR_CHDATE` date DEFAULT NULL,
  `CR_BANK` varchar(30) DEFAULT NULL,
  `CR_RESON` varchar(60) DEFAULT NULL,
  `CR_RESON1` varchar(60) DEFAULT NULL,
  `CR_REPOSIT` bit(1) DEFAULT NULL,
  `REDEPOSITDATE` date DEFAULT NULL,
  `REDEPOSITREF` char(12) DEFAULT NULL,
  `CR_FLAG` varchar(1) DEFAULT NULL,
  `PAID` float(15,2) DEFAULT 0.00,
  `S_REF` varchar(5) DEFAULT NULL,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `REMARK` varchar(255) DEFAULT NULL,
  `DEBACC` char(15) DEFAULT NULL,
  `CREACC` char(15) DEFAULT NULL,
  `dev` char(1) DEFAULT '0',
  `ret_chno` char(10) DEFAULT NULL,
  `ret_chdate` date DEFAULT NULL,
  `noof` int(11) DEFAULT NULL,
  `ret_refno` char(20) DEFAULT NULL,
  `rep_remark` char(100) DEFAULT NULL,
  `depobank` char(20) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `tmp` char(10) DEFAULT NULL,
  `FORwhat` char(20) DEFAULT NULL,
  `FORwhatDATE` date DEFAULT NULL,
  `crenoteno` char(20) DEFAULT NULL,
  `crenoteamo` float(15,2) DEFAULT 0.00,
  `debnoteno` char(20) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `Costcenter` char(2) DEFAULT NULL,
  `reason` varchar(100) DEFAULT NULL,
  `updated` varchar(10) DEFAULT '0',
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_cheq` (`CR_REFNO`,`CR_CRNO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_cheq_tmp
-- ----------------------------

-- ----------------------------
-- Table structure for `s_chtr`
-- ----------------------------
CREATE TABLE `s_chtr` (
  `CT_REFNO` varchar(20) DEFAULT NULL,
  `CT_DATE` date DEFAULT NULL,
  `CT_CODE` varchar(5) DEFAULT NULL,
  `CT_TYPE` varchar(4) DEFAULT NULL,
  `CT_REFNO1` varchar(12) DEFAULT NULL,
  `CT_AMOUNT` decimal(15,2) DEFAULT 0.00,
  `CT_BANK` varchar(12) DEFAULT NULL,
  `CT_DEPDATE` date DEFAULT NULL,
  `CT_DATES` bigint(20) DEFAULT 0,
  `CT_FLAG` varchar(3) DEFAULT NULL,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_chtr
-- ----------------------------

-- ----------------------------
-- Table structure for `s_commadva`
-- ----------------------------
CREATE TABLE `s_commadva` (
  `refno` varchar(30) DEFAULT NULL,
  `sale` decimal(15,2) DEFAULT 0.00,
  `per` decimal(15,2) DEFAULT 0.00,
  `advance` decimal(15,2) DEFAULT 0.00,
  `ded` decimal(15,2) DEFAULT 0.00,
  `remark` varchar(900) DEFAULT NULL,
  `rep` char(10) DEFAULT NULL,
  `comdate` date DEFAULT NULL,
  `sdate` date DEFAULT NULL,
  `appby` char(30) DEFAULT NULL,
  `appdate` date DEFAULT NULL,
  `dev` char(5) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `chno` char(20) DEFAULT NULL,
  `Bank` char(20) DEFAULT NULL,
  `PCHNO` char(20) DEFAULT NULL,
  `ADJ` decimal(15,2) DEFAULT 0.00,
  `Dedcap1` char(50) DEFAULT NULL,
  `Dedcap2` char(50) DEFAULT NULL,
  `Dedcap3` char(50) DEFAULT NULL,
  `Dedcap4` char(50) DEFAULT NULL,
  `Dedcap5` char(50) DEFAULT NULL,
  `Dedcap6` char(50) DEFAULT NULL,
  `Dedcap7` char(50) DEFAULT NULL,
  `Dedcap8` char(50) DEFAULT NULL,
  `Dedamount1` decimal(15,2) DEFAULT 0.00,
  `Dedamount2` decimal(15,2) DEFAULT 0.00,
  `Dedamount3` decimal(15,2) DEFAULT 0.00,
  `Dedamount4` decimal(15,2) DEFAULT 0.00,
  `Dedamount5` decimal(15,2) DEFAULT 0.00,
  `Dedamount6` decimal(15,2) DEFAULT 0.00,
  `Dedamount7` decimal(15,2) DEFAULT 0.00,
  `Dedamount8` decimal(15,2) DEFAULT 0.00,
  `Lock1` int(11) DEFAULT 0,
  `Over60out` decimal(15,2) DEFAULT 0.00,
  `Returnchk` decimal(15,2) DEFAULT 0.00,
  `Over60Ratio` decimal(15,5) DEFAULT 0.00000,
  `RatioDed` decimal(15,2) DEFAULT 0.00,
  `Sale_tyre` decimal(15,2) DEFAULT 0.00,
  `Sale_battery` decimal(15,2) DEFAULT 0.00,
  `Sale_AW` decimal(15,2) DEFAULT 0.00,
  `Sale_Tube` decimal(15,2) DEFAULT 0.00,
  `Com_tyre` decimal(15,2) DEFAULT 0.00,
  `Com_battery` decimal(15,2) DEFAULT 0.00,
  `Com_AW` decimal(15,2) DEFAULT 0.00,
  `Com_tube` decimal(15,2) DEFAULT 0.00,
  `FLAG` char(3) DEFAULT NULL,
  `CHEQ_Date` date DEFAULT NULL,
  `diductam` decimal(15,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `grn_a` decimal(15,2) DEFAULT NULL,
  `grn_b` decimal(15,2) DEFAULT NULL,
  `crn_a` decimal(15,2) DEFAULT NULL,
  `crn_b` decimal(15,2) DEFAULT NULL,
  `grn` decimal(15,2) DEFAULT NULL,
  `crn` decimal(15,2) DEFAULT NULL,
  `tar_salA` decimal(15,2) DEFAULT NULL,
  `tar_salB` decimal(15,2) DEFAULT NULL,
  `tar_salc` float DEFAULT NULL,
  `crn_c` float DEFAULT NULL,
  `Crn_d` float DEFAULT NULL,
  `tar_salcom` float DEFAULT NULL,
  `Crn_bcom` float DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_commadva
-- ----------------------------

-- ----------------------------
-- Table structure for `s_commadva_ind_rep`
-- ----------------------------
CREATE TABLE `s_commadva_ind_rep` (
  `repcode` varchar(50) DEFAULT NULL,
  `month` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `advance` decimal(20,2) DEFAULT 0.00,
  `sysdate` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_commadva_ind_rep
-- ----------------------------

-- ----------------------------
-- Table structure for `s_commadva_tmp`
-- ----------------------------
CREATE TABLE `s_commadva_tmp` (
  `refno` varchar(30) DEFAULT NULL,
  `chno` char(20) DEFAULT NULL,
  `Bank` char(20) DEFAULT NULL,
  `PCHNO` char(20) DEFAULT NULL,
  `updated` varchar(5) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_commadva_tmp
-- ----------------------------

-- ----------------------------
-- Table structure for `s_commadva_tmp_up`
-- ----------------------------
CREATE TABLE `s_commadva_tmp_up` (
  `refno` varchar(30) DEFAULT NULL,
  `chno` char(20) DEFAULT NULL,
  `Bank` char(20) DEFAULT NULL,
  `PCHNO` char(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_commadva_tmp_up
-- ----------------------------

-- ----------------------------
-- Table structure for `s_copy`
-- ----------------------------
CREATE TABLE `s_copy` (
  `REF_NO` tinyint(4) NOT NULL,
  `SDATE` tinyint(4) NOT NULL,
  `CANCELL` tinyint(4) NOT NULL,
  `REFNO` tinyint(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=FIXED;

-- ----------------------------
-- Records of s_copy
-- ----------------------------

-- ----------------------------
-- Table structure for `s_crec`
-- ----------------------------
CREATE TABLE `s_crec` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `CA_REFNO` varchar(20) DEFAULT NULL,
  `CA_CODE` varchar(20) DEFAULT '',
  `CA_CASSH` decimal(20,2) DEFAULT 0.00,
  `CA_AMOUNT` decimal(20,2) DEFAULT 0.00,
  `CA_SALESEX` varchar(20) DEFAULT '',
  `RET_CHNO` varchar(12) DEFAULT NULL,
  `RET_FLAG` varchar(1) DEFAULT NULL,
  `DEPARTMENT` varchar(1) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `DEV` varchar(1) DEFAULT '0',
  `overpay` decimal(20,2) DEFAULT 0.00,
  `FLAG` char(5) DEFAULT NULL,
  `pay_type` char(100) DEFAULT '',
  `cus_ref` char(20) DEFAULT NULL,
  `CA_DATE` date DEFAULT NULL,
  `AC_REFNO` char(20) DEFAULT NULL,
  `TTDATE` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `cashtype` varchar(100) DEFAULT '',
  `company` varchar(100) DEFAULT NULL,
  `remarks` varchar(500) DEFAULT NULL,
  `INVNO` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  UNIQUE KEY `CA_REFNO` (`CA_REFNO`) USING BTREE,
  KEY `s_crec` (`CA_REFNO`,`CA_CODE`,`CANCELL`,`DEV`,`FLAG`) USING BTREE,
  KEY `CA_CODE` (`CA_CODE`,`CANCELL`,`FLAG`,`CA_DATE`) USING BTREE,
  FULLTEXT KEY `CA_CODE_2` (`CA_CODE`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crec
-- ----------------------------
INSERT INTO `s_crec` VALUES ('3', 'IS/PR/000003', 'V/0027', '16000.00', '16000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '662', '', 'IS', null, 'IS/INV/CB/000003');
INSERT INTO `s_crec` VALUES ('4', 'IS/PR/000004', 'V/0027', '16000.00', '16000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '662', '', 'IS', null, 'IS/INV/CB/000004');
INSERT INTO `s_crec` VALUES ('5', 'IS/PR/000005', 'V/0027', '16000.00', '16000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '662', '', 'IS', null, 'IS/INV/CB/000005');
INSERT INTO `s_crec` VALUES ('6', 'IS/PR/000006', 'V/0027', '16000.00', '16000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '662', '', 'IS', null, 'IS/INV/CB/000006');
INSERT INTO `s_crec` VALUES ('7', 'IS/PR/000007', 'V/0027', '15000.00', '15000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '671', '', 'IS', null, 'IS/INV/CB/000007');
INSERT INTO `s_crec` VALUES ('8', 'IS/PR/000008', 'V/0001', '199.80', '199.80', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '674', '', 'IS', null, 'IS/INV/CB/000008');
INSERT INTO `s_crec` VALUES ('9', 'IS/PR/000009', 'V/0001', '2000.00', '2000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '678', '', 'IS', null, 'IS/INV/CB/000009');
INSERT INTO `s_crec` VALUES ('10', 'IS/PR/000010', 'V/0001', '2000.00', '2000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '681', '', 'IS', null, 'IS/INV/CB/000010');
INSERT INTO `s_crec` VALUES ('11', 'IS/PR/000011', 'V/0001', '2000.00', '2000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '684', '', 'IS', null, 'IS/INV/CB/000011');
INSERT INTO `s_crec` VALUES ('12', 'IS/PR/000012', 'V/0001', '2000.00', '2000.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '693', '', 'IS', null, 'IS/INV/CB/000012');
INSERT INTO `s_crec` VALUES ('13', 'IS/PR/000013', 'V/0027', '10800.00', '10800.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '697', '', 'IS', null, 'IS/INV/CB/000013');
INSERT INTO `s_crec` VALUES ('14', 'IS/PR/000014', 'V/0027', '0.00', '0.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '822', '', 'IS', null, 'IS/INV/CB/000014');
INSERT INTO `s_crec` VALUES ('15', 'IS/PR/000015', 'V/0027', '0.00', '0.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-23', '', '0000-00-00', '822', '', 'IS', null, 'IS/INV/CB/000015');
INSERT INTO `s_crec` VALUES ('16', 'IS/PR/000016', 'V/0001', '300.00', '300.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-29', '', '0000-00-00', '65b74a1ee88d8', '', 'IS', null, 'IS/INV/CB/000016');
INSERT INTO `s_crec` VALUES ('17', 'IS/PR/000017', 'V/0027', '23700.00', '23700.00', 'R/016', null, null, 'O', '0', '0', '0.00', 'REC', 'Cash', '0', '2024-01-30', '', '0000-00-00', '65b881e4998e0', '', 'IS', null, 'IS/INV/CB/000017');

-- ----------------------------
-- Table structure for `s_crnfrm`
-- ----------------------------
CREATE TABLE `s_crnfrm` (
  `Refno` char(50) DEFAULT NULL,
  `Sdate` date DEFAULT NULL,
  `Code` char(20) DEFAULT '',
  `Sal_ex` bigint(20) DEFAULT 0,
  `Mon` date DEFAULT NULL,
  `Brand` char(15) DEFAULT NULL,
  `Amount` decimal(15,2) DEFAULT 0.00,
  `Remark` varchar(800) DEFAULT NULL,
  `Checked` char(20) DEFAULT NULL,
  `Check_date` date DEFAULT NULL,
  `Approved` char(20) DEFAULT NULL,
  `App_date` date DEFAULT NULL,
  `Lock1` varchar(1) DEFAULT NULL,
  `Cancell` varchar(1) DEFAULT '0',
  `Credit_note` char(20) DEFAULT NULL,
  `Flag` char(5) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_crnfrm` (`Refno`,`Sdate`,`Code`,`Sal_ex`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crnfrm
-- ----------------------------

-- ----------------------------
-- Table structure for `s_crnfrmtrn`
-- ----------------------------
CREATE TABLE `s_crnfrmtrn` (
  `Sdate` date DEFAULT NULL,
  `Refno` char(30) DEFAULT NULL,
  `Code` char(20) DEFAULT '',
  `Name` char(50) DEFAULT NULL,
  `Sal_ex` bigint(20) DEFAULT 0,
  `Mon` date DEFAULT NULL,
  `Inv_no` varchar(20) DEFAULT NULL,
  `Inv_date` date DEFAULT NULL,
  `Amount` decimal(15,3) DEFAULT 0.000,
  `disc` decimal(15,3) DEFAULT 0.000,
  `Qty` decimal(15,3) DEFAULT 0.000,
  `Incen_per` decimal(15,3) DEFAULT 0.000,
  `Incen_val` decimal(15,3) DEFAULT 0.000,
  `Brand` char(50) DEFAULT NULL,
  `Id` int(11) NOT NULL,
  `Settle_amo` decimal(15,3) DEFAULT 0.000,
  `Flag` char(5) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `disc1` float(20,3) DEFAULT 0.000,
  `st_refno` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`Id`) USING BTREE,
  UNIQUE KEY `Id` (`Id`) USING BTREE,
  KEY `s_crnfrmtrn` (`Sdate`,`Refno`,`Code`,`Sal_ex`,`Inv_no`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crnfrmtrn
-- ----------------------------

-- ----------------------------
-- Table structure for `s_crnma`
-- ----------------------------
CREATE TABLE `s_crnma` (
  `REF_NO` varchar(20) DEFAULT NULL,
  `DDATE` date DEFAULT NULL,
  `TRN_TYPE` varchar(5) DEFAULT NULL,
  `INVOICENO` varchar(20) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `C_CODE` varchar(20) DEFAULT '',
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `TYPE` varchar(3) DEFAULT NULL,
  `SAL_EX` varchar(5) DEFAULT NULL,
  `DISCOU` decimal(15,2) DEFAULT 0.00,
  `AMOUNT` decimal(15,2) DEFAULT 0.00,
  `GST` bigint(20) DEFAULT 0,
  `GRAND_TOT` decimal(15,2) DEFAULT 0.00,
  `DUMMY_VAL` decimal(15,2) DEFAULT 0.00,
  `DIS` decimal(15,2) DEFAULT 0.00,
  `DIS1` decimal(15,2) DEFAULT 0.00,
  `DIS_RUP` decimal(15,2) DEFAULT 0.00,
  `CASH` decimal(15,2) DEFAULT 0.00,
  `TOT_REPAY` decimal(15,2) DEFAULT 0.00,
  `DEPARTMENT` varchar(20) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `C_BAL` decimal(15,2) DEFAULT 0.00,
  `DEP_CODE` varchar(5) DEFAULT NULL,
  `Brand` varchar(50) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `stoRef` varchar(20) DEFAULT NULL,
  `seri_no` varchar(30) DEFAULT NULL,
  `vatrate` decimal(10,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `REMARK` varchar(50) DEFAULT NULL,
  `sdate1` date DEFAULT NULL,
  `prob` varchar(20) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `VAT` varchar(1) DEFAULT '0',
  `VAT_AMOUNT` float(20,2) DEFAULT 0.00,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_crnma` (`REF_NO`,`DDATE`,`TRN_TYPE`,`INVOICENO`,`SDATE`,`C_CODE`,`TYPE`,`SAL_EX`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=29800 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crnma
-- ----------------------------
INSERT INTO `s_crnma` VALUES ('IS/GRN/000005', '2024-01-23', 'GRN', 'IS/INV/CB/000013', '2024-01-29', 'V/0027', 'SISIRA  TYRE  HOUSE', null, 'R/016', '0.00', '0.00', '0', '4500.00', '0.00', '1000.00', '0.00', '0.00', '0.00', '0.00', '04', '1', '0.00', '04', '', '0', '', '', '0.00', '65b7bf5315615', '29795', '', '2024-01-29', null, 'IS', '0', '0.00');
INSERT INTO `s_crnma` VALUES ('IS/GRN/000006', '2024-01-23', 'GRN', 'IS/INV/CB/000013', '2024-01-29', 'V/0027', 'SISIRA  TYRE  HOUSE', 'CA', 'R/016', '0.00', '1800.00', '0', '1800.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '04', '0', '0.00', '04', '', '0', '', '', '0.00', '65b7c77c36941', '29796', '', '2024-01-29', null, 'IS', '0', '0.00');
INSERT INTO `s_crnma` VALUES ('IS/GRN/000007', '2024-01-23', 'GRN', 'IS/INV/CB/000013', '2024-01-29', 'V/0027', 'SISIRA  TYRE  HOUSE', 'CA', 'R/016', '200.00', '900.00', '0', '900.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '04', '0', '0.00', '04', '', '0', '', '', '0.00', '65b7c7f9dfbe1', '29797', '', '2024-01-29', null, 'IS', '0', '0.00');
INSERT INTO `s_crnma` VALUES ('IS/GRN/000008', '2024-01-23', 'GRN', 'IS/INV/CB/000011', '2024-01-29', 'V/0001', 'CASH SALE', 'CA', 'R/016', '0.00', '2000.00', '0', '2000.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '04', '1', '0.00', '04', 'AMORON', '0', '', '', '0.00', '65b7df789816b', '29798', '', '2024-01-29', null, 'IS', '0', '0.00');
INSERT INTO `s_crnma` VALUES ('IS/GRN/000009', '2024-01-23', 'GRN', 'IS/INV/CB/000013', '2024-01-29', 'V/0027', 'SISIRA  TYRE  HOUSE', 'CA', 'R/016', '400.00', '3600.00', '0', '3600.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '04', '0', '0.00', '04', 'AMORON', '0', '', '', '0.00', '65b7e125dd638', '29799', '', '2024-01-29', null, 'IS', '0', '0.00');

-- ----------------------------
-- Table structure for `s_crnma_stores`
-- ----------------------------
CREATE TABLE `s_crnma_stores` (
  `REF_NO` varchar(20) DEFAULT NULL,
  `DDATE` date DEFAULT NULL,
  `TRN_TYPE` varchar(5) DEFAULT NULL,
  `INVOICENO` varchar(20) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `C_CODE` varchar(5) DEFAULT NULL,
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `TYPE` varchar(3) DEFAULT NULL,
  `SAL_EX` varchar(5) DEFAULT NULL,
  `DISCOU` decimal(15,2) DEFAULT 0.00,
  `AMOUNT` decimal(15,2) DEFAULT 0.00,
  `GST` bigint(20) DEFAULT 0,
  `GRAND_TOT` decimal(15,2) DEFAULT 0.00,
  `DUMMY_VAL` decimal(15,2) DEFAULT 0.00,
  `DIS` decimal(15,2) DEFAULT 0.00,
  `DIS1` decimal(15,2) DEFAULT 0.00,
  `DIS_RUP` decimal(15,2) DEFAULT 0.00,
  `CASH` decimal(15,2) DEFAULT 0.00,
  `TOT_REPAY` decimal(15,2) DEFAULT 0.00,
  `DEPARTMENT` varchar(20) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `C_BAL` decimal(15,2) DEFAULT 0.00,
  `DEP_CODE` varchar(5) DEFAULT NULL,
  `Brand` varchar(50) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `stoRef` varchar(20) DEFAULT NULL,
  `seri_no` varchar(30) DEFAULT NULL,
  `vatrate` decimal(10,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  KEY `s_crnma` (`REF_NO`,`DDATE`,`TRN_TYPE`,`INVOICENO`,`SDATE`,`C_CODE`,`TYPE`,`SAL_EX`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crnma_stores
-- ----------------------------

-- ----------------------------
-- Table structure for `s_crntrn`
-- ----------------------------
CREATE TABLE `s_crntrn` (
  `REF_NO` varchar(20) DEFAULT NULL,
  `STK_NO` varchar(10) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `DESCRIPT` varchar(100) DEFAULT NULL,
  `UNIT` varchar(13) DEFAULT NULL,
  `DIS_RS` decimal(15,3) DEFAULT 0.000,
  `DIS_P` decimal(15,10) DEFAULT 0.0000000000,
  `PRICE` decimal(15,2) DEFAULT 0.00,
  `QTY` decimal(15,2) DEFAULT 0.00,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `BRAND` varchar(30) DEFAULT NULL,
  `CANCELL` char(1) DEFAULT '0',
  `VAT` char(1) DEFAULT NULL,
  `Seri_no` char(30) DEFAULT NULL,
  `vatrate` decimal(10,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  `s_price` decimal(15,2) DEFAULT NULL,
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`ID`),
  KEY `s_crntrn` (`REF_NO`,`STK_NO`,`SDATE`) USING BTREE,
  KEY `DIS_P` (`DIS_P`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crntrn
-- ----------------------------
INSERT INTO `s_crntrn` VALUES ('IS/GRN/000005', '100', '2024-01-29', 'TOYOTA SUPRA', null, '0.000', '10.0000000000', '1000.00', '5.00', '04', null, '1', '0', '', '0.00', '65b7bf5315615', '1000.00', '10');
INSERT INTO `s_crntrn` VALUES ('IS/GRN/000006', '100', '2024-01-29', 'TOYOTA SUPRA', null, '0.000', '10.0000000000', '1000.00', '2.00', '04', null, '0', '0', '', '0.00', '65b7c77c36941', '1000.00', '11');
INSERT INTO `s_crntrn` VALUES ('IS/GRN/000007', '100', '2024-01-29', 'TOYOTA SUPRA', null, '0.000', '10.0000000000', '1000.00', '1.00', '04', null, '0', '0', '', '0.00', '65b7c7f9dfbe1', '1000.00', '12');
INSERT INTO `s_crntrn` VALUES ('IS/GRN/000008', 'IT/0727', '2024-01-29', '', null, '0.000', '0.0000000000', '2000.00', '1.00', '04', null, '1', '0', '', '0.00', '65b7df789816b', '2000.00', '13');
INSERT INTO `s_crntrn` VALUES ('IS/GRN/000009', '100', '2024-01-29', 'TOYOTA SUPRA', null, '0.000', '10.0000000000', '1000.00', '2.00', '04', null, '0', '0', '', '0.00', '65b7e125dd638', '1000.00', '14');
INSERT INTO `s_crntrn` VALUES ('IS/GRN/000009', 'IT/0727', '2024-01-29', '', null, '0.000', '10.0000000000', '2000.00', '1.00', '04', null, '0', '0', '', '0.00', '65b7e125dd638', '2000.00', '15');

-- ----------------------------
-- Table structure for `s_crntrn_stores`
-- ----------------------------
CREATE TABLE `s_crntrn_stores` (
  `REF_NO` varchar(20) DEFAULT NULL,
  `STK_NO` varchar(10) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `DESCRIPT` varchar(100) DEFAULT NULL,
  `UNIT` varchar(13) DEFAULT NULL,
  `DIS_RS` decimal(15,2) DEFAULT 0.00,
  `DIS_P` decimal(15,2) DEFAULT 0.00,
  `PRICE` decimal(15,2) DEFAULT 0.00,
  `QTY` decimal(15,2) DEFAULT 0.00,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `BRAND` varchar(30) DEFAULT NULL,
  `CANCELL` char(1) DEFAULT '0',
  `VAT` char(1) DEFAULT NULL,
  `Seri_no` char(30) DEFAULT NULL,
  `vatrate` decimal(10,2) DEFAULT 0.00,
  `tmp_no` varchar(50) DEFAULT NULL,
  KEY `s_crntrn` (`REF_NO`,`STK_NO`,`SDATE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_crntrn_stores
-- ----------------------------

-- ----------------------------
-- Table structure for `s_cusordmas`
-- ----------------------------
CREATE TABLE `s_cusordmas` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(20) DEFAULT NULL,
  `TRN_TYPE` varchar(4) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `C_CODE` varchar(20) DEFAULT '',
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `C_ADD1` varchar(100) DEFAULT NULL,
  `TYPE` varchar(3) DEFAULT NULL,
  `SAL_EX` varchar(5) DEFAULT NULL,
  `DISCOU` decimal(20,2) DEFAULT 0.00,
  `AMOUNT` decimal(20,2) DEFAULT 0.00,
  `GST` decimal(20,2) DEFAULT 0.00,
  `GRAND_TOT` decimal(20,2) DEFAULT 0.00,
  `DUMMY_VAL` decimal(15,2) DEFAULT 0.00,
  `DIS` decimal(15,2) DEFAULT 0.00,
  `DIS1` decimal(15,2) DEFAULT 0.00,
  `DIS2` decimal(15,2) DEFAULT 0.00,
  `DIS_RUP` decimal(20,2) DEFAULT 0.00,
  `CASH` decimal(20,2) DEFAULT 0.00,
  `TOTPAY` decimal(20,2) DEFAULT 0.00,
  `ORD_NO` varchar(30) DEFAULT NULL,
  `ORD_DA` date DEFAULT NULL,
  `SETTLED` char(1) DEFAULT NULL,
  `TOTPAY1` decimal(15,2) DEFAULT 0.00,
  `DES_CAT` varchar(5) DEFAULT NULL,
  `DEPARTMENT` varchar(5) DEFAULT NULL,
  `REMARK` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `BTT` decimal(15,2) DEFAULT 0.00,
  `VAT` decimal(15,2) DEFAULT 0.00,
  `VAT_VAL` decimal(20,2) DEFAULT 0.00,
  `Brand` varchar(30) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `Account` char(15) DEFAULT NULL,
  `Accname` char(60) DEFAULT NULL,
  `Costcenter` char(2) DEFAULT NULL,
  `RET_AMO` decimal(15,2) DEFAULT 0.00,
  `comm` char(1) DEFAULT NULL,
  `approveby` char(50) DEFAULT NULL,
  `appdate` date DEFAULT NULL,
  `INVNO` char(20) DEFAULT NULL,
  `REQ_DATE` date DEFAULT NULL,
  `Limit_need` decimal(15,2) DEFAULT 0.00,
  `Forward` char(10) DEFAULT NULL,
  `Result` char(5) DEFAULT NULL,
  `Rejectby` char(50) DEFAULT NULL,
  `rejectdate` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `c_code1` varchar(20) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `TYPE1` varchar(100) DEFAULT NULL,
  `DUPLI_NO` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_cusordmas` (`REF_NO`,`TRN_TYPE`,`SDATE`,`C_CODE`,`SAL_EX`) USING BTREE,
  KEY `Brand` (`Brand`) USING BTREE,
  KEY `C_CODE` (`C_CODE`) USING BTREE,
  KEY `CANCELL` (`CANCELL`,`INVNO`,`Forward`,`Result`,`Limit_need`) USING BTREE,
  KEY `REF_NO` (`REF_NO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_cusordmas
-- ----------------------------
INSERT INTO `s_cusordmas` VALUES ('205276', 'IU/SO/1/0000001', 'INV', '2023-10-12', 'V/0001', 'CASH SALE', null, 'CA', '1', '0.00', '166000.00', '0.00', '166000.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '', '2023-10-12', '', '0.00', '', '01', '', '0', '0.00', '0.00', '0.00', 'Ceat', '0', '', '', '', '0.00', '0', '0', null, '0', '2023-10-12', '166000.00', 'MM', 'P', '0', null, 'IU/SO/', 'V/0001', 'IU', 'Proforma Invoice', '');

-- ----------------------------
-- Table structure for `s_cusordtrn`
-- ----------------------------
CREATE TABLE `s_cusordtrn` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(20) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `STK_NO` varchar(20) DEFAULT '',
  `DESCRIPT` varchar(100) DEFAULT NULL,
  `UNIT` varchar(13) DEFAULT NULL,
  `PART_NO` varchar(30) DEFAULT NULL,
  `COST` decimal(15,2) DEFAULT 0.00,
  `PRICE` decimal(15,2) DEFAULT 0.00,
  `QTY` bigint(20) DEFAULT NULL,
  `DEPARTMENT` varchar(20) DEFAULT '',
  `DIS_per` decimal(15,3) DEFAULT 0.000,
  `DIS_rs` decimal(15,3) DEFAULT 0.000,
  `GROUP` varchar(5) DEFAULT NULL,
  `REP` varchar(5) DEFAULT NULL,
  `TAX_PER` decimal(15,2) DEFAULT 0.00,
  `ret_qty` bigint(20) DEFAULT 0,
  `BRAND` varchar(50) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `CANCELL` char(1) DEFAULT '0',
  `c_code` char(10) DEFAULT NULL,
  `stk` int(11) DEFAULT NULL,
  `subtot` decimal(20,2) DEFAULT 0.00,
  `inv_qty` int(11) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_cusordtrn` (`REF_NO`,`SDATE`) USING BTREE,
  KEY `REF_NO` (`REF_NO`,`STK_NO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_cusordtrn
-- ----------------------------
INSERT INTO `s_cusordtrn` VALUES ('419073', 'IU/SO/1/0000001', '2023-10-12', 'IT/0011', '12.4/11.28 Ceat', 'ORD', '', '81513.20', '83000.00', '2', '01', '0.000', '0.000', null, '1', '0.00', '0', 'Ceat', '', '0', '', '0', '0.00', '2', 'IU/SO/');

-- ----------------------------
-- Table structure for `s_debmas`
-- ----------------------------
CREATE TABLE `s_debmas` (
  `ID` int(11) NOT NULL,
  `REF_NO` varchar(15) DEFAULT NULL,
  `TRN_TYPE` varchar(4) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `C_CODE` varchar(5) DEFAULT NULL,
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `C_ADD1` varchar(100) DEFAULT NULL,
  `TYPE` varchar(3) DEFAULT NULL,
  `FLAG1` char(10) DEFAULT NULL,
  `FLAG2` char(10) DEFAULT NULL,
  `SAL_EX` varchar(5) DEFAULT NULL,
  `GRAND_TOT` decimal(20,2) DEFAULT 0.00,
  `TOTPAY` float(15,2) DEFAULT 0.00,
  `ORD_NO` varchar(30) DEFAULT NULL,
  `ORD_DA` date DEFAULT NULL,
  `DEPARTMENT` varchar(5) DEFAULT '',
  `REMARK` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `BRAND` varchar(30) DEFAULT NULL,
  `DEV` varchar(1) DEFAULT '0',
  `COSTCENTER` char(2) DEFAULT NULL,
  `DELI_DATE` date DEFAULT NULL,
  `SVAT` bigint(20) DEFAULT 0,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_debmas
-- ----------------------------

-- ----------------------------
-- Table structure for `s_deftrn`
-- ----------------------------
CREATE TABLE `s_deftrn` (
  `ID` int(11) NOT NULL,
  `REFNO` varchar(20) DEFAULT NULL,
  `BAT_NO` varchar(50) DEFAULT NULL,
  `CLAM_NO` varchar(50) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `c_code` varchar(50) DEFAULT '',
  `SAL_EX` varchar(10) DEFAULT NULL,
  `DEP` varchar(15) DEFAULT NULL,
  `STK_NO` varchar(25) DEFAULT '',
  `AMOUNT` decimal(15,2) DEFAULT 0.00,
  `REsult` varchar(100) DEFAULT NULL,
  `Remarks` varchar(300) DEFAULT NULL,
  `qty` bigint(20) DEFAULT 0,
  `dis` decimal(15,2) DEFAULT 0.00,
  `CANCELL` char(1) DEFAULT '0',
  `arno` char(30) DEFAULT NULL,
  `ref_per` decimal(15,4) DEFAULT 0.0000,
  `tmp_no` varchar(50) DEFAULT NULL,
  `cl_no` varchar(20) DEFAULT NULL,
  `approve_md_wd` varchar(40) DEFAULT NULL,
  `approve_by` varchar(40) DEFAULT NULL,
  `ap_datetime` datetime DEFAULT NULL,
  `approve` char(1) DEFAULT '0',
  `denie` varchar(1) DEFAULT '0',
  `hide` varchar(1) DEFAULT '0',
  `sdate1` date DEFAULT NULL,
  `prob` varchar(2) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `s_deftrn` (`REFNO`,`BAT_NO`,`CLAM_NO`,`SDATE`,`c_code`,`SAL_EX`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_deftrn
-- ----------------------------

-- ----------------------------
-- Table structure for `s_dep`
-- ----------------------------
CREATE TABLE `s_dep` (
  `Depcode` varchar(3) DEFAULT NULL,
  `Name` varchar(50) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_dep
-- ----------------------------

-- ----------------------------
-- Table structure for `s_district`
-- ----------------------------
CREATE TABLE `s_district` (
  `ID` int(11) NOT NULL,
  `DISTRICT` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- ----------------------------
-- Records of s_district
-- ----------------------------

-- ----------------------------
-- Table structure for `s_ginmas`
-- ----------------------------
CREATE TABLE `s_ginmas` (
  `SDATE` date DEFAULT NULL,
  `REF_NO` varchar(20) DEFAULT NULL,
  `TYPE` varchar(6) DEFAULT NULL,
  `DEP_FROM` varchar(5) DEFAULT NULL,
  `DEP_F_NAME` varchar(30) DEFAULT NULL,
  `DEP_TO` varchar(5) DEFAULT NULL,
  `DEP_T_NAME` varchar(30) DEFAULT NULL,
  `DEL_TO` varchar(60) DEFAULT 'N',
  `VEHICLE_N` varchar(12) DEFAULT NULL,
  `DEL_ORDNO` varchar(12) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  `AR_NO` char(20) DEFAULT NULL,
  `AR_DATE` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_ginmas` (`SDATE`,`REF_NO`) USING BTREE,
  KEY `DEP_TO` (`DEP_TO`,`AR_NO`) USING BTREE,
  KEY `REF_NO` (`REF_NO`,`DEP_TO`) USING BTREE,
  KEY `REF_NO_2` (`REF_NO`,`DEP_TO`,`AR_NO`) USING BTREE,
  KEY `REF_NO_3` (`REF_NO`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_ginmas
-- ----------------------------
INSERT INTO `s_ginmas` VALUES ('2024-01-02', 'IS/ST/0000135', null, '04', 'IT', '05', 'ACCOUNT', 'M', null, null, '1', null, null, '6593ad5c14cc0', '1', 'IS');
INSERT INTO `s_ginmas` VALUES ('2024-01-01', 'IS/ST/0000136', null, '04', 'IT', '08', 'SALES', 'M', null, null, '0', null, null, '6593b105e71d8', '2', 'IS');
INSERT INTO `s_ginmas` VALUES ('2024-01-02', 'IS/ST/0000137', null, '04', 'IT', '', '', 'M', null, null, '0', null, null, '6593dd9d5dbea', '3', 'IS');
INSERT INTO `s_ginmas` VALUES ('2024-01-02', 'IS/ST/0000138', null, '04', 'IT', '05', 'ACCOUNT', 'M', null, null, '0', null, null, '6593de2b560e1', '4', 'IS');
INSERT INTO `s_ginmas` VALUES ('2024-01-02', 'IS/ST/0000139', null, '04', 'IT', '05', 'ACCOUNT', 'M', null, null, '0', null, null, '6593dec0e77ee', '5', 'IS');
INSERT INTO `s_ginmas` VALUES ('2024-01-02', 'IS/ST/0000140', null, '04', 'IT', '05', 'ACCOUNT', 'M', null, null, '0', null, null, '6593df34696e2', '6', 'IS');
INSERT INTO `s_ginmas` VALUES ('2024-01-02', 'IS/ST/0000141', null, '04', 'IT', '08', 'SALES', 'M', null, null, '0', null, null, '6593dfd5a1f78', '7', 'IS');

-- ----------------------------
-- Table structure for `s_ginmas_multi`
-- ----------------------------
CREATE TABLE `s_ginmas_multi` (
  `SDATE` date DEFAULT NULL,
  `REF_NO` varchar(20) DEFAULT NULL,
  `TYPE` varchar(6) DEFAULT NULL,
  `DEP_FROM` varchar(5) DEFAULT NULL,
  `DEP_F_NAME` varchar(30) DEFAULT NULL,
  `DEP_TO` varchar(5) DEFAULT NULL,
  `DEP_T_NAME` varchar(30) DEFAULT NULL,
  `DEL_TO` varchar(60) DEFAULT NULL,
  `VEHICLE_N` varchar(12) DEFAULT NULL,
  `DEL_ORDNO` varchar(12) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  `AR_NO` char(20) DEFAULT NULL,
  `AR_DATE` date DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `REF_NO_3` (`REF_NO`) USING BTREE,
  KEY `s_ginmas` (`SDATE`,`REF_NO`) USING BTREE,
  KEY `s_ginmas1` (`DEP_TO`,`AR_NO`) USING BTREE,
  KEY `REF_NO` (`REF_NO`,`DEP_TO`) USING BTREE,
  KEY `REF_NO_2` (`REF_NO`,`DEP_TO`,`AR_NO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_ginmas_multi
-- ----------------------------

-- ----------------------------
-- Table structure for `s_gintrn`
-- ----------------------------
CREATE TABLE `s_gintrn` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `SDATE` date DEFAULT NULL,
  `STK_NO` varchar(50) DEFAULT NULL,
  `REFNO` varchar(50) DEFAULT NULL,
  `BATCHNO` varchar(20) DEFAULT NULL,
  `CUSCODE` varchar(20) DEFAULT NULL,
  `QTY` decimal(15,2) DEFAULT 0.00,
  `FROM_DEP` varchar(50) DEFAULT '',
  `COST` float(20,2) DEFAULT 0.00,
  `SERIALNO` varchar(100) DEFAULT NULL,
  `TO_DEP` varchar(100) DEFAULT NULL,
  `ARNNO` varchar(20) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `STK_NO_2` (`STK_NO`,`FROM_DEP`) USING BTREE,
  KEY `STK_NO_3` (`STK_NO`,`REFNO`,`FROM_DEP`) USING BTREE,
  KEY `SDATE` (`SDATE`,`STK_NO`) USING BTREE,
  KEY `ID` (`ID`,`STK_NO`) USING BTREE,
  KEY `STK_NO` (`STK_NO`) USING BTREE,
  KEY `REFNO` (`REFNO`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_gintrn
-- ----------------------------
INSERT INTO `s_gintrn` VALUES ('1', '2024-01-02', 'IT/0742', 'IS/ST/0000135', null, null, '20.00', '04', '0.00', null, '05', null, '1');
INSERT INTO `s_gintrn` VALUES ('2', '2024-01-01', 'IT/0742', 'IS/ST/0000136', null, null, '30.00', '04', '0.00', null, '08', null, '0');
INSERT INTO `s_gintrn` VALUES ('3', '2024-01-01', 'IT/0743', 'IS/ST/0000136', null, null, '10.00', '04', '0.00', null, '08', null, '0');
INSERT INTO `s_gintrn` VALUES ('4', '2024-01-02', '100', 'IS/ST/0000137', null, null, '2.00', '04', '0.00', null, '', null, '0');
INSERT INTO `s_gintrn` VALUES ('5', '2024-01-02', '100', 'IS/ST/0000138', null, null, '2.00', '', '0.00', null, '05', null, '0');
INSERT INTO `s_gintrn` VALUES ('6', '2024-01-02', '100', 'IS/ST/0000139', null, null, '4.00', '', '0.00', null, '05', null, '0');
INSERT INTO `s_gintrn` VALUES ('7', '2024-01-02', '100', 'IS/ST/0000140', null, null, '3.00', '', '0.00', null, '05', null, '0');
INSERT INTO `s_gintrn` VALUES ('8', '2024-01-02', '100', 'IS/ST/0000141', null, null, '3.00', '04', '0.00', null, '08', null, '0');

-- ----------------------------
-- Table structure for `s_grut`
-- ----------------------------
CREATE TABLE `s_grut` (
  `C_REFNO` varchar(15) DEFAULT NULL,
  `C_DATE` date DEFAULT NULL,
  `C_CODE` varchar(5) DEFAULT NULL,
  `C_INVNO` varchar(12) DEFAULT NULL,
  `C_PAYMENT` decimal(20,2) DEFAULT 0.00,
  `C_REMARK` varchar(55) DEFAULT NULL,
  `C_REMARK1` varchar(55) DEFAULT NULL,
  `C_REMARK2` varchar(55) DEFAULT NULL,
  `C_REMARK3` varchar(55) DEFAULT NULL,
  `C_TOTREPAY` float(15,2) DEFAULT 0.00,
  `C_GST` float(15,2) DEFAULT 0.00,
  `D` float(15,2) DEFAULT 0.00,
  `CRE_NO_NO` varchar(12) DEFAULT NULL,
  `TYPE` varchar(3) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_grut
-- ----------------------------

-- ----------------------------
-- Table structure for `s_guaratee`
-- ----------------------------
CREATE TABLE `s_guaratee` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) DEFAULT '',
  `name` varchar(75) DEFAULT NULL,
  `type` varchar(10) DEFAULT NULL,
  `Expire` date DEFAULT NULL,
  `amount` decimal(15,2) DEFAULT 0.00,
  `status` int(11) DEFAULT NULL,
  `Bank` varchar(50) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `gr_id` varchar(100) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=617 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_guaratee
-- ----------------------------
INSERT INTO `s_guaratee` VALUES ('615', 'V/0130', null, 'CASH', '2023-12-12', '111.00', '1', 'Bank', null, '2', '0');
INSERT INTO `s_guaratee` VALUES ('616', 'V/0129', null, 'BANK', '2023-12-01', '1.00', '0', 'b', null, null, '0');

-- ----------------------------
-- Table structure for `s_inquiry`
-- ----------------------------
CREATE TABLE `s_inquiry` (
  `ID` int(20) NOT NULL,
  `REFNO` varchar(150) DEFAULT NULL,
  `NAME` varchar(150) DEFAULT NULL,
  `COMPANY` varchar(150) DEFAULT NULL,
  `REP` varchar(150) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `TEL1` varchar(100) DEFAULT NULL,
  `TEL2` varchar(100) DEFAULT NULL,
  `ADDRESS` varchar(500) DEFAULT NULL,
  `NOTE` varchar(1000) DEFAULT NULL,
  `CANCELL` varchar(1) DEFAULT '0',
  `STATUS` varchar(1) DEFAULT '0',
  `VEHICLE` varchar(100) DEFAULT NULL,
  `USER` varchar(100) DEFAULT NULL,
  `USERDTIME` datetime DEFAULT NULL,
  `REMIND1` varchar(100) DEFAULT NULL,
  `REMIND2` varchar(100) DEFAULT NULL,
  `REMIND3` varchar(100) DEFAULT NULL,
  `REMIND4` varchar(100) DEFAULT NULL,
  `REMIND5` varchar(100) DEFAULT NULL,
  `SIZE` varchar(100) DEFAULT NULL,
  `BRAND` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of s_inquiry
-- ----------------------------
INSERT INTO `s_inquiry` VALUES ('9', '/INQ/000001', 'dr Asiri', 'IS', '1', '2023-10-19', '777318098', '', '', '17800', '0', '0', '', 'admin', '2023-10-19 18:51:22', 'admin-2023-10-19 18:51:40', 'admin-2023-10-22 10:49:47', null, null, null, '600/12', '');
INSERT INTO `s_inquiry` VALUES ('10', '/INQ/000002', 'dr isanka', 'IS', '1', '2023-10-22', '0743007646', '', '', '29000/', '0', '1', '', 'admin', '2023-10-22 10:48:23', 'admin-2023-10-31 08:35:08', null, null, null, null, '185/55/16', 'nankang');

-- ----------------------------
-- Table structure for `s_invcheq`
-- ----------------------------
CREATE TABLE `s_invcheq` (
  `ID` int(11) NOT NULL,
  `refno` varchar(20) DEFAULT NULL,
  `Sdate` date DEFAULT NULL,
  `cus_code` varchar(20) DEFAULT '',
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `cheque_no` varchar(12) DEFAULT NULL,
  `che_date` date DEFAULT NULL,
  `bank` varchar(50) DEFAULT NULL,
  `che_amount` decimal(20,2) DEFAULT 0.00,
  `dev` char(1) DEFAULT '0',
  `sal_ex` varchar(5) DEFAULT NULL,
  `trn_type` char(10) DEFAULT NULL,
  `ex_date1` date DEFAULT NULL,
  `ex_date2` date DEFAULT NULL,
  `ex_flag` char(10) DEFAULT NULL,
  `ret_chno` char(10) DEFAULT NULL,
  `ret_chdate` date DEFAULT NULL,
  `noof` int(11) DEFAULT NULL,
  `ret_refno` char(20) DEFAULT NULL,
  `ch_owner` char(3) DEFAULT NULL,
  `ch_count_ret` char(1) DEFAULT NULL,
  `department` char(1) DEFAULT NULL,
  `SERI_NO` char(10) DEFAULT NULL,
  `W` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `s_invcheq` (`refno`,`Sdate`,`cus_code`,`che_date`) USING BTREE,
  KEY `refno` (`refno`,`che_date`) USING BTREE,
  KEY `refno_3` (`refno`,`cheque_no`) USING BTREE,
  KEY `cus_code_2` (`cus_code`,`che_date`) USING BTREE,
  KEY `cus_code` (`cus_code`,`che_date`,`trn_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_invcheq
-- ----------------------------

-- ----------------------------
-- Table structure for `s_invcheq1`
-- ----------------------------
CREATE TABLE `s_invcheq1` (
  `ID` int(11) NOT NULL,
  `refno` varchar(20) DEFAULT NULL,
  `Sdate` date DEFAULT NULL,
  `cus_code` varchar(20) DEFAULT '',
  `CUS_NAME` varchar(100) DEFAULT NULL,
  `cheque_no` varchar(12) DEFAULT NULL,
  `che_date` date DEFAULT NULL,
  `bank` varchar(50) DEFAULT NULL,
  `che_amount` decimal(20,2) DEFAULT 0.00,
  `dev` char(1) DEFAULT '0',
  `sal_ex` varchar(5) DEFAULT NULL,
  `trn_type` char(10) DEFAULT NULL,
  `ex_date1` date DEFAULT NULL,
  `ex_date2` date DEFAULT NULL,
  `ex_flag` char(10) DEFAULT NULL,
  `ret_chno` char(10) DEFAULT NULL,
  `ret_chdate` date DEFAULT NULL,
  `noof` int(11) DEFAULT NULL,
  `ret_refno` char(20) DEFAULT NULL,
  `ch_owner` char(3) DEFAULT NULL,
  `ch_count_ret` char(1) DEFAULT NULL,
  `department` char(1) DEFAULT NULL,
  `SERI_NO` char(10) DEFAULT NULL,
  `W` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `cancell` varchar(1) DEFAULT '0',
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `s_invcheq` (`refno`,`Sdate`,`cus_code`,`che_date`) USING BTREE,
  KEY `refno` (`refno`,`che_date`) USING BTREE,
  KEY `refno_3` (`refno`,`cheque_no`) USING BTREE,
  KEY `cus_code_2` (`cus_code`,`che_date`) USING BTREE,
  KEY `cus_code` (`cus_code`,`che_date`,`trn_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_invcheq1
-- ----------------------------

-- ----------------------------
-- Table structure for `s_invcheq_tmp`
-- ----------------------------
CREATE TABLE `s_invcheq_tmp` (
  `CR_REFNO` varchar(20) DEFAULT '',
  `ch_count_ret` varchar(10) DEFAULT NULL,
  `cheque_no` varchar(20) DEFAULT NULL,
  `cus_code` varchar(20) DEFAULT NULL,
  `bank` varchar(30) DEFAULT NULL,
  `updated` varchar(10) DEFAULT '0',
  `company` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_invcheq_tmp
-- ----------------------------

-- ----------------------------
-- Table structure for `s_invo`
-- ----------------------------
CREATE TABLE `s_invo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `REF_NO` varchar(20) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `STK_NO` varchar(20) DEFAULT NULL,
  `DESCRIPT` varchar(100) DEFAULT NULL,
  `UNIT` varchar(20) DEFAULT NULL,
  `PART_NO` varchar(50) DEFAULT NULL,
  `COST` decimal(20,2) DEFAULT 0.00,
  `PRICE` decimal(20,2) DEFAULT 0.00,
  `QTY` decimal(10,2) DEFAULT 0.00,
  `DEPARTMENT` varchar(30) DEFAULT NULL,
  `DIS_per` float(20,12) DEFAULT 0.000000000000,
  `DIS_rs` decimal(20,2) DEFAULT 0.00,
  `GROUP` varchar(50) DEFAULT NULL,
  `REP` varchar(20) DEFAULT NULL,
  `TAX_PER` varchar(10) DEFAULT NULL,
  `ret_qty` varchar(20) DEFAULT NULL,
  `BRAND` varchar(20) DEFAULT NULL,
  `DEV` varchar(5) DEFAULT '0',
  `CANCELL` varchar(5) DEFAULT '0',
  `c_code` varchar(20) DEFAULT NULL,
  `seri_no` varchar(20) DEFAULT NULL,
  `Print_dis1` decimal(20,12) DEFAULT 0.000000000000,
  `Print_dis2` decimal(20,12) DEFAULT 0.000000000000,
  `Print_dis3` decimal(10,2) DEFAULT 0.00,
  `subtot` decimal(20,2) DEFAULT 0.00,
  `vatrate` varchar(10) DEFAULT NULL,
  `ad` varchar(20) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `sdate1` date DEFAULT NULL,
  `type1` varchar(100) DEFAULT NULL,
  `SERIALNO` varchar(100) DEFAULT NULL,
  `JOBNO` varchar(100) DEFAULT NULL,
  `MAKE` varchar(100) DEFAULT NULL,
  `DESIGN` varchar(100) DEFAULT NULL,
  `SIZE` varchar(100) DEFAULT NULL,
  `TYPE` varchar(100) DEFAULT '',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `s_invo` (`REF_NO`,`SDATE`,`STK_NO`) USING BTREE,
  KEY `SDATE` (`SDATE`,`STK_NO`,`CANCELL`) USING BTREE,
  KEY `DIS_per` (`DIS_per`) USING BTREE,
  KEY `REF_NO` (`REF_NO`) USING BTREE,
  KEY `STK_NO` (`STK_NO`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT;

-- ----------------------------
-- Records of s_invo
-- ----------------------------
INSERT INTO `s_invo` VALUES ('5', 'IS/INV/CB/000003', '2024-01-23', 'IT/0734', 'TEST111', null, '11', '0.00', '300.00', '50.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', 'TEST2', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '15000.00', '0', '', null, '2024-01-23', null, '', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('6', 'IS/INV/CB/000003', '2024-01-23', '100', 'TOYOTA SUPRA', null, 'D', '410.26', '100.00', '10.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', 'TEST1', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '1000.00', '0', '', null, '2024-01-23', null, '', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('7', 'IS/INV/CB/000007', '2024-01-23', 'IT/0734', 'TEST111', null, '11', '0.00', '300.00', '50.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', 'TEST2', '', '1', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '15000.00', '0', '', null, '2024-01-23', null, '', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('8', 'IS/INV/CB/000008', '2024-01-23', 'IT/0727', '', null, null, '2000.00', '222.00', '1.00', '04', '10.000000000000', '22.20', null, 'R/016', '0', '0', '', '', '0', 'V/0001', '', '0.000000000000', '0.000000000000', '0.00', '199.80', '0', '', null, '2024-01-23', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('9', 'IS/INV/CB/000009', '2024-01-23', 'IT/0727', '', null, null, '2000.00', '2000.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', '', '', '0', 'V/0001', '', '0.000000000000', '0.000000000000', '0.00', '2000.00', '0', '', null, '2024-01-23', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('10', 'IS/INV/CB/000010', '2024-01-23', 'IT/0727', '', null, null, '2000.00', '2000.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', '', '', '0', 'V/0001', '', '0.000000000000', '0.000000000000', '0.00', '2000.00', '0', '', null, '2024-01-23', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('11', 'IS/INV/CB/000011', '2024-01-23', 'IT/0727', '', null, null, '2000.00', '2000.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', '', '', '0', 'V/0001', '', '0.000000000000', '0.000000000000', '0.00', '2000.00', '0', '', null, '2024-01-23', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('12', 'IS/INV/CB/000012', '2024-01-23', 'IT/0727', '', null, null, '2000.00', '2000.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', '', '', '0', 'V/0001', '', '0.000000000000', '0.000000000000', '0.00', '2000.00', '0', '', null, '2024-01-23', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('13', 'IS/INV/CB/000013', '2024-01-23', '100', 'TOYOTA SUPRA', null, 'D', '410.26', '1000.00', '10.00', '04', '10.000000000000', '1000.00', null, 'R/016', '0', '0', 'TEST1', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '9000.00', '0', '', null, '2024-01-23', null, '', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('14', 'IS/INV/CB/000013', '2024-01-23', 'IT/0727', '', null, null, '2000.00', '2000.00', '1.00', '04', '10.000000000000', '200.00', null, 'R/016', '0', '0', '', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '1800.00', '0', '', null, '2024-01-23', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('15', 'IS/INV/CB/000016', '2024-01-29', 'IT/0734', 'TEST111', null, '11', '0.00', '300.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', 'TEST2', '', '1', 'V/0001', '', '0.000000000000', '0.000000000000', '0.00', '300.00', ' 0', '', null, '2024-01-29', null, '', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('16', 'IS/INV/CB/000017', '2024-01-30', 'IT/0734', 'TEST111', null, '11', '0.00', '300.00', '10.00', '04', '10.000000000000', '300.00', null, 'R/016', '0', '0', 'TEST2', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '2700.00', ' 0', '', null, '2024-01-30', null, '11111', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('17', 'IS/INV/CB/000017', '2024-01-30', '100', 'TOYOTA SUPRA', null, 'D', '410.26', '1000.00', '20.00', '04', '5.000000000000', '1000.00', null, 'R/016', '0', '0', 'TEST1', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '19000.00', ' 0', '', null, '2024-01-30', null, '2222', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('18', 'IS/INV/CB/000017', '2024-01-30', 'IT/0727', '', null, null, '2000.00', '2000.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', '', '0', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '2000.00', '0', '', null, '2024-01-30', null, '2', '22', 'MARKER', 'DESIGN', 'SIZE', 'DAG');
INSERT INTO `s_invo` VALUES ('19', 'IS/INV/CRM/000001', '2024-01-31', '100', 'TOYOTA SUPRA', null, 'D', '410.26', '1000.00', '1.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', 'TEST1', '', '0', 'V/0132', '', '0.000000000000', '0.000000000000', '0.00', '1000.00', ' 0', '', null, '2024-01-31', null, '', null, null, null, null, 'PRODUCT');
INSERT INTO `s_invo` VALUES ('20', 'IS/INV/CRM/000003', '2024-01-31', '100', 'TOYOTA SUPRA', null, 'D', '410.26', '1000.00', '2.00', '04', '0.000000000000', '0.00', null, 'R/016', '0', '0', 'TEST1', '', '0', 'V/0027', '', '0.000000000000', '0.000000000000', '0.00', '2000.00', ' 0', '', null, '2024-01-31', null, '', null, null, null, null, 'PRODUCT');

-- ----------------------------
-- Table structure for `s_invo_order`
-- ----------------------------
CREATE TABLE `s_invo_order` (
  `id` int(11) NOT NULL,
  `REF_NO` varchar(255) DEFAULT NULL,
  `SDATE` varchar(255) DEFAULT NULL,
  `STK_NO` varchar(255) DEFAULT NULL,
  `DESCRIPT` varchar(255) DEFAULT NULL,
  `UNIT` varchar(255) DEFAULT NULL,
  `PART_NO` varchar(255) DEFAULT NULL,
  `COST` varchar(255) DEFAULT NULL,
  `PRICE` varchar(255) DEFAULT NULL,
  `QTY` varchar(255) DEFAULT NULL,
  `DEPARTMENT` varchar(255) DEFAULT NULL,
  `DIS_per` varchar(255) DEFAULT NULL,
  `DIS_rs` varchar(255) DEFAULT NULL,
  `GROUP` varchar(255) DEFAULT NULL,
  `REP` varchar(255) DEFAULT NULL,
  `TAX_PER` varchar(255) DEFAULT NULL,
  `ret_qty` varchar(255) DEFAULT NULL,
  `BRAND` varchar(255) DEFAULT NULL,
  `DEV` varchar(255) DEFAULT '0',
  `CANCELL` varchar(255) DEFAULT '0',
  `c_code` varchar(255) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_invo_order
-- ----------------------------

-- ----------------------------
-- Table structure for `s_labour`
-- ----------------------------
CREATE TABLE `s_labour` (
  `CODE` varchar(25) DEFAULT '',
  `DESCRIPTION` varchar(50) DEFAULT NULL,
  `act` char(10) DEFAULT NULL,
  `tmp_no` varchar(30) DEFAULT NULL,
  `cancel` varchar(1) DEFAULT '0',
  `department` varchar(20) DEFAULT NULL,
  `SCODE` varchar(100) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  KEY `s_stomas` (`CODE`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- ----------------------------
-- Records of s_labour
-- ----------------------------
INSERT INTO `s_labour` VALUES ('L/001', 'NONE', '1', null, '0', null, 'IU', '2023-10-02');
INSERT INTO `s_labour` VALUES ('L/002', 'NONE', '1', null, '0', null, 'IAS', '2023-10-02');
INSERT INTO `s_labour` VALUES ('L/003', 'NONE', '1', null, '1', null, 'IS', '2023-10-02');
INSERT INTO `s_labour` VALUES ('L/004', 'Name SUMALI ', '1', null, '0', null, 'IAW', '2023-10-17');
INSERT INTO `s_labour` VALUES ('IS/L/005', 'test', '1', null, '0', null, 'IAS', '2023-12-14');
INSERT INTO `s_labour` VALUES ('IS/L/005', 'PRAKASH', '1', null, '0', null, 'IS', '2023-12-20');

-- ----------------------------
-- Table structure for `s_led`
-- ----------------------------
CREATE TABLE `s_led` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `REF_NO` varchar(20) DEFAULT NULL,
  `C_CODE` varchar(255) DEFAULT NULL,
  `SDATE` date DEFAULT NULL,
  `DEBIT` varchar(255) DEFAULT NULL,
  `CREDIT` varchar(255) DEFAULT NULL,
  `FLAG` varchar(255) DEFAULT NULL,
  `DEPARTMENT` varchar(255) DEFAULT NULL,
  `AMOUNT` decimal(10,2) DEFAULT NULL,
  `DEV` varchar(255) DEFAULT '0',
  `Printed` char(1) DEFAULT NULL,
  `printimes` decimal(15,2) DEFAULT 0.00,
  `ConTno` char(15) DEFAULT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE,
  KEY `s_led` (`REF_NO`,`C_CODE`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_led
-- ----------------------------
INSERT INTO `s_led` VALUES ('3', 'IS/INV/CB/000003', 'V/0027', '2024-01-23', null, null, 'INV', '04', '16000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('4', 'IS/INV/CB/000004', 'V/0027', '2024-01-23', null, null, 'INV', '04', '16000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('5', 'IS/INV/CB/000005', 'V/0027', '2024-01-23', null, null, 'INV', '04', '16000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('6', 'IS/INV/CB/000006', 'V/0027', '2024-01-23', null, null, 'INV', '04', '16000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('8', 'IS/INV/CB/000008', 'V/0001', '2024-01-23', null, null, 'INV', '04', '199.80', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('9', 'IS/INV/CB/000009', 'V/0001', '2024-01-23', null, null, 'INV', '04', '2000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('10', 'IS/INV/CB/000010', 'V/0001', '2024-01-23', null, null, 'INV', '04', '2000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('11', 'IS/INV/CB/000011', 'V/0001', '2024-01-23', null, null, 'INV', '04', '2000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('12', 'IS/INV/CB/000012', 'V/0001', '2024-01-23', null, null, 'INV', '04', '2000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('13', 'IS/INV/CB/000013', 'V/0027', '2024-01-23', null, null, 'INV', '04', '10800.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('15', 'IS/GRN/000002', 'V/0027', '2024-01-26', null, null, 'GRN', '04', '10800.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('16', 'IS/INV/CB/000014', 'V/0027', '2024-01-23', null, null, 'INV', '05', '0.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('17', 'IS/INV/CB/000015', 'V/0027', '2024-01-23', null, null, 'INV', '05', '0.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('20', 'IS/GRN/000004', 'V/0027', '2024-01-29', null, null, 'GRN', '04', '9000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('22', 'IS/GRN/000006', 'V/0027', '2024-01-29', null, null, 'GRN', '04', '1800.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('23', 'IS/GRN/000007', 'V/0027', '2024-01-29', null, null, 'GRN', '04', '900.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('25', 'IS/GRN/000009', 'V/0027', '2024-01-29', null, null, 'GRN', '04', '3600.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('26', 'IS/INV/CB/000017', 'V/0027', '2024-01-30', null, null, 'INV', '04', '23700.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('28', 'IS/CRN/000002', 'V/0027', '2024-01-31', null, null, 'CRN', '04', '200000.00', '0', null, '0.00', null, null, null);
INSERT INTO `s_led` VALUES ('29', 'IS/CRN/000003', 'V/0027', '2024-01-31', null, null, 'CRN', '04', '22.00', '0', null, '0.00', null, null, null);
INSERT INTO `s_led` VALUES ('30', 'IS/CRN/000004', 'V/0027', '2024-01-31', null, null, 'CRN', '04', '111.00', '0', null, '0.00', null, null, null);
INSERT INTO `s_led` VALUES ('33', 'IS/CRN/000005', 'V/0027', '2024-01-31', null, null, 'CRN', '04', '0.00', '0', null, '0.00', null, null, null);
INSERT INTO `s_led` VALUES ('35', 'IS/INV/CRM/000001', 'V/0132', '2024-01-31', null, null, 'INV', '04', '1000.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('36', 'IS/INV/CRM/000002', 'V/0027', '2024-01-31', null, null, 'INV', '04', '0.00', '0', null, '0.00', null, null, 'IS');
INSERT INTO `s_led` VALUES ('37', 'IS/INV/CRM/000003', 'V/0027', '2024-01-31', null, null, 'INV', '04', '2000.00', '0', null, '0.00', null, null, 'IS');

-- ----------------------------
-- Table structure for `s_limithis`
-- ----------------------------
CREATE TABLE `s_limithis` (
  `cuscode` varchar(255) DEFAULT NULL,
  `sdate` varchar(255) DEFAULT NULL,
  `old_limit` varchar(255) DEFAULT NULL,
  `new_limit` varchar(255) DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `username` varchar(255) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `tmp_no` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of s_limithis
-- ----------------------------

-- ----------------------------
