-- Table structure for table `bstock_parcel_history`
--

CREATE TABLE `bstock_parcel_history` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT 'primary id for the table',
  `parcel_id` int(20) NOT NULL COMMENT 'Parcel identification',
  `type_id` int(10) NOT NULL COMMENT 'represents type of transaction like jhangad,SO,PO',
  `customer_id` int(10) NOT NULL COMMENT 'Customer identification',
  `status_of_parcel` enum('In Stock','Sold','Jhangad Placed','Jhangad Issued','Jhangad Issued Partial','Jhangad Couriered Full','Jhangad Couriered Partial','Jhangad Partially Returned','Jhangad Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Deleted') NOT NULL COMMENT 'status of the stock',
  `date` varchar(50) NOT NULL COMMENT 'current date in timestep format',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='parcel life cycle in table structure';

--
-- Dumping data for table `bstock_parcel_history`
--


--
-- Table structure for table `bstock_partners`
--

CREATE TABLE `bstock_partners` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `company_name` varchar(250) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `country` varchar(200) NOT NULL,
  `reference_no` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This is the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the modified date for this record.',
  `iec_no` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1 COMMENT='Actual user for whom this is imported.';

--
-- Dumping data for table `bstock_partners`
--

INSERT INTO `bstock_partners` VALUES (1,'Harshad','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Vishal','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Harshad-Vishal','','','harshad.narvekar@gmail.com','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','UK','Website','on','1265801481','1265801481','EIC234111');

--
-- Table structure for table `bstock_paymenttypes`
--

CREATE TABLE `bstock_paymenttypes` (
  `payment_type_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Name of the payment type.',
  `description` text NOT NULL COMMENT 'Description about the payment type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'If the payment type is active, then it will be available for use.',
  `has_api` enum('0','1') NOT NULL COMMENT 'Indicates whether this payment gateway has an API or not.',
  `api_key` varchar(250) NOT NULL COMMENT 'API Key for the payment gateway.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this particular payment type was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this payment type was last modified.',
  PRIMARY KEY (`payment_type_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores the different payment types.';

--
-- Dumping data for table `bstock_paymenttypes`
--


--
-- Table structure for table `bstock_pl_businessloans`
--

CREATE TABLE `bstock_pl_businessloans` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `party_name` varchar(500) NOT NULL COMMENT 'Loan taken from or given to.',
  `loan_amount` decimal(10,2) NOT NULL,
  `rate_of_interest` decimal(10,2) NOT NULL,
  `start_date` varchar(20) NOT NULL,
  `end_date` varchar(20) NOT NULL,
  `no_of_years` int(10) NOT NULL COMMENT 'Loan tenure in years.',
  `no_of_months` int(10) NOT NULL COMMENT 'Loan tenure in months.',
  `no_of_days` int(10) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `entry_type` enum('Debit','Credit') NOT NULL COMMENT 'Debit means loan given & credit means loan taken.',
  `dce_id` int(10) NOT NULL COMMENT 'ID of record in bstock_pl_dailycashentries table.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores loans taken or given for the business.';

--
-- Dumping data for table `bstock_pl_businessloans`
--


--
-- Table structure for table `bstock_pl_businessloans_repayments`
--

CREATE TABLE `bstock_pl_businessloans_repayments` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `loan_id` int(10) NOT NULL COMMENT 'PRimary key of bstock_pl_businessloans table.',
  `repayment_month` int(10) NOT NULL COMMENT 'The repayment is for which month.',
  `repayment_year` int(10) NOT NULL COMMENT 'The repayment is for which year.',
  `interest_paid` decimal(10,2) NOT NULL COMMENT 'Interest paid from the repayment amount. Calculated automatically.',
  `principal_paid` decimal(10,2) NOT NULL COMMENT 'Principal paid from the repayment amount. Calculated automatically.',
  `balance_interest` decimal(10,2) NOT NULL COMMENT 'Balance interest amount remaining.',
  `balance_principal` decimal(10,2) NOT NULL COMMENT 'Principal remaining to be paid after this repayment.',
  `per_day_interest` decimal(10,2) NOT NULL COMMENT 'New per day interest if principal is paid.',
  `interest_pending_till_date` decimal(10,2) NOT NULL COMMENT 'Stores interest pending till date when this repayment is made.',
  `no_of_days` int(10) NOT NULL COMMENT 'Number of days since last repayment or since loan start date if this is first repayment entry.',
  `remarks` text NOT NULL,
  `repayment_date` int(11) NOT NULL COMMENT 'Date when this repayment was made.',
  `dce_id` int(10) NOT NULL COMMENT 'ID of record in bstock_pl_dailycashentries table.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores repayment entries for every loan.';

--
-- Dumping data for table `bstock_pl_businessloans_repayments`
--


--
-- Table structure for table `bstock_pl_categories`
--

CREATE TABLE `bstock_pl_categories` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primiary key',
  `parent_category_id` int(10) NOT NULL COMMENT 'this is will store the parent id of the category. if zero then that is the parent category',
  `name` varchar(255) NOT NULL COMMENT 'this will store the name of the category',
  `desc` varchar(255) NOT NULL COMMENT 'this will store the desc of the category',
  `created_by_id` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `is_featured` enum('off','on') NOT NULL COMMENT 'This will be field to mark if this is a feature category or not',
  `image_filename` varchar(50) NOT NULL COMMENT 'this field will save the image path',
  `filename_cover_image` varchar(50) NOT NULL,
  `is_default` enum('0','1') NOT NULL COMMENT 'this is created to get the default categorty when product is not selected',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=88 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_categories`
--

INSERT INTO `bstock_pl_categories` VALUES (1,11,'Engagement & Wedding','Engagement & Wedding ',87,'on','off','','Engagement & Wedding.jpeg','1','1274611761','1274611761'),(2,1,'Engagement','Engagement ',87,'on','off','','Enagement.jpeg','1','1274611842','1274611842'),(3,2,'Pave','Pave ',87,'on','off','','Pave.jpg','1','1274611888','1274611888'),(4,2,'Solitaire','Solitaire ',87,'on','off','','solitaire.jpg','0','1274611918','1274611918'),(5,2,'Sidestone','Sidestone ',87,'on','off','','sidestone.jpg','0','1274611945','1274611945'),(6,1,'Weddings','Weddings ',87,'on','off','','Weddings.png','0','1274611989','1275127369'),(7,6,'Men\'s Wedding Rings','Men\'s Wedding Rings ',87,'on','off','','Men\'s Wedding Rings.jpeg','0','1274612021','1274612021'),(8,6,'Plain Bands','Plain Bands ',87,'on','off','','Plain Bands.jpeg','1','1274612166','1274612166'),(9,6,'Diamond Wedding Rings','Diamond Wedding Rings ',87,'on','off','','Diamond Wedding Rings.jpeg','0','1274612319','1274612319'),(10,6,'Wedding Ring Sets','Wedding Ring Sets ',87,'on','off','','Wedding Ring Sets.jpeg','0','1274612485','1274612485'),(11,0,'parent','parent',87,'on','off','','','0','',''),(12,11,'Fine Jewelry','Fine Jewelry ',87,'on','off','','Fine Jewelry.jpeg','0','1274613691','1274613691'),(13,12,'Diamond Jewelry','Diamond Jewelry ',87,'on','off','','Diamond Jewelry.jpeg','1','1274613817','1274613817'),(14,13,'Studs','Studs ',87,'on','off','','diamond jewelry Studs.jpeg','0','1274613899','1274613899'),(15,13,'Rings','Rings ',87,'on','off','','diamond jewelary Rings.jpeg','1','1274613978','1274613978'),(16,12,'Gold Jewelry','Gold Jewelry ',87,'on','off','','Gold Jewelry.jpeg','0','1274614094','1274614094'),(17,16,'Studs','Studs ',87,'on','off','','gold jewelry Studs.jpeg','1','1274614164','1274614164'),(18,16,'Rings','Rings ',87,'on','off','','gold jewelry rings.jpeg','0','1274614251','1274614251'),(19,11,'Loose Diamonds','Loose Diamonds ',87,'on','off','','Loose Diamonds.jpeg','0','1274614844','1274614844'),(20,19,'Rough','Rough ',87,'on','off','','loose diamonds Rough.jpeg','0','1274614967','1274614967'),(21,19,'Polish','Polish ',87,'on','off','','loose diamonds Polish.jpeg','1','1274615114','1274615114'),(22,13,'Bracelets','Bracelets ',87,'on','off','','diamond jewelry Bracelets.jpg','1','1274953401','1274953401'),(23,13,'Pendants','Pendants ',87,'on','off','','diamond jewelry Pendants.jpg','0','1274953708','1274953708'),(24,13,'Necklace','Necklace ',87,'on','off','','diamond jewelry Necklace.jpg','0','1274953850','1274953850'),(25,13,'Earings','Earings ',87,'on','off','','diamond jewelry Earings.jpg','0','1274954035','1274954035'),(26,16,'Bracelets','Bracelets ',87,'on','off','','gold jewelry Bracelets.jpg','0','1274954405','1274954405'),(27,16,'Pendants','Pendants ',87,'on','off','','gold jewelry Pendants.jpg','1','1274954521','1274954521'),(28,16,'Necklace','Necklace ',87,'on','off','','gemstone jewelry Necklace.jpg','0','1274954573','1279346956'),(29,16,'Earings','Earings ',87,'on','off','','gold jewelry Earings.jpg','0','1274954891','1274954891'),(30,12,'Gemstone Jewelry','Gemstone Jewelry ',87,'on','off','','gemstone jewelry.jpg','0','1274955193','1274955193'),(31,30,'Studs','Studs ',87,'on','off','','gemstone jewelry Studs.jpg','0','1274955420','1274955420'),(32,30,'Rings','Rings ',87,'on','off','','gemstone jewelry Rings.jpg','0','1274955477','1274955477'),(33,30,'Bracelets','Bracelets ',87,'on','off','','gemstone jewelry Bracelets.jpg','0','1274955801','1274955801'),(34,30,'Pendants','Pendants ',87,'on','off','','gemstone jewelry Pendants.jpg','0','1274956019','1274956019'),(35,30,'Necklace','Necklace ',87,'on','off','','gemstone jewelry Necklace.jpg','1','1274956294','1274956294'),(36,30,'Earings','Earings ',87,'on','off','','gemstone jewelry Rings.jpg','0','1274956480','1274956480'),(37,12,'Pearl Jewelry','Pearl Jewelry ',87,'on','off','','Pearl Jewelry.jpg','0','1274956772','1274956772'),(38,37,'Studs','Studs ',87,'on','off','','Pearl Jewelry studs.jpg','0','1274957670','1274957670'),(39,37,'Rings','Rings ',87,'on','off','','Pearl Jewelry Rings.jpg','0','1274957837','1274957837'),(40,37,'Bracelets','Bracelets ',87,'on','off','','Pearl Jewelry Bracelate.jpg','0','1274957859','1274957859'),(41,37,'Pendants','Pendants ',87,'on','off','','Pearl Jewelry Pendants.jpg','0','1274957995','1274957995'),(42,37,'Necklace','Necklace ',87,'on','off','','Pearl Jewelry Necklace.jpg','0','1274958053','1274958053'),(43,37,'Earings','Earings ',87,'on','off','','Pearl Jewelry Earing.jpg','1','1274958073','1274958073'),(44,12,'Silver Jewelry','Silver Jewelry ',87,'on','off','','Silver Jewelry.jpg','0','1274958675','1274958675'),(45,44,'Studs','Studs ',87,'on','off','','Silver Jewelry Studs.jpeg','1','1274959121','1274959121'),(46,44,'Rings','Rings ',87,'on','off','','Silver Jewelry Rings.jpg','0','1274959207','1274959207'),(47,44,'Bracelets','Bracelets ',87,'on','off','','Silver Jewelry bracelet.jpg','0','1274959308','1274959308'),(48,44,'Pendants','Pendants ',87,'on','off','','Silver Jewelry Pendants.jpg','0','1274959887','1274959887'),(49,44,'Necklace','Necklace ',87,'on','off','','Silver Jewelry Necklace.jpg','0','1274959996','1274959996'),(50,44,'Earings','Earings ',87,'on','off','','Silver Jewelry Earings.jpg','0','1274960170','1274960170'),(51,12,'Designer Jewelry','Designer Jewelry ',87,'on','off','','designer-jewelry.png','0','1274960511','1275127654'),(52,51,'Studs','Studs ',87,'on','off','','Designer Jewelry Studs.jpeg','0','1274960588','1274960588'),(53,51,'Rings','Rings ',87,'on','off','','Designer Jewelry Rings.jpeg','1','1274960708','1274960708'),(54,51,'Bracelets','Bracelets ',87,'on','off','','Designer Jewelry Bracelets.jpeg','0','1274960838','1274960838'),(55,51,'Pendants','Pendants ',87,'on','off','','Designer Jewelry Pendants.jpeg','0','1274960939','1274960939'),(56,51,'Necklace','Necklace ',87,'on','off','','Designer Jewelry Necklace.jpeg','0','1274960981','1274960981'),(57,51,'Earings','Earings ',87,'on','off','','Designer Jewelry Earings.jpeg','0','1274961081','1274961081'),(58,12,'Gift Ideas','Gift Ideas ',87,'on','off','','gift-idea.png','0','1274961234','1274961234'),(59,58,'Studs','Studs ',87,'on','off','','gift idea Studs.jpeg','0','1274961482','1274961482'),(60,58,'Rings','Rings ',87,'on','off','','gift idea Rings.jpeg','0','1274961517','1274961517'),(61,58,'Bracelets','Bracelets ',87,'on','off','','gift idea Bracelets.jpeg','0','1274961568','1274961568'),(62,58,'Pendants','Pendants ',87,'on','off','','gift idea Pendants.jpeg','1','1274961618','1274961618'),(63,58,'Necklace','Necklace ',87,'on','off','','gift idea Necklace.jpeg','0','1274961668','1274961668'),(64,58,'Earings','Earings ',87,'on','off','','gift idea Earings.jpeg','0','1274961734','1274961734'),(87,2,'Mone','Mone ',87,'on','off','','diamond jewelry Bracelets.jpg','0','1279346253','1279346253'),(79,2,'Tension','Tension ',87,'on','off','','designer-jewelry.png','0','1279304378','1279346526'),(70,6,'Eternity Rings','Eternity Rings ',87,'on','off','','diamond jewelary Rings.jpeg','0','1279299992','1279346744'),(72,6,'Three-Stone Diamond Rings','Three-Stone Diamond Rings ',87,'on','off','','gift idea Rings.jpeg','0','1279300607','1279300607'),(86,2,'Gemstone','Gemstone ',87,'on','off','','Diamond Wedding Rings.jpeg','0','1279346207','1279346207');

--
-- Table structure for table `bstock_pl_dailycashentries`
--

CREATE TABLE `bstock_pl_dailycashentries` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `party_id` int(10) NOT NULL COMMENT 'Customer ID or Vendor ID or Karigar ID',
  `party_type` varchar(50) NOT NULL COMMENT 'Table name for each party id i.e. bstock_customers, bstock_vendors, _jwl_labour_info',
  `payment_type` varchar(50) NOT NULL COMMENT 'Type of payment made / received.',
  `payment_mode` varchar(25) NOT NULL COMMENT 'Cash or Angadia',
  `angadia_id` int(10) NOT NULL COMMENT 'ID of Angadia company',
  `from_account` varchar(100) NOT NULL COMMENT 'Name on Angadia account of party transferring funds.',
  `to_account` varchar(100) NOT NULL COMMENT 'Name on Angadia account of party receiving funds.',
  `entry_type` enum('Debit','Credit') NOT NULL COMMENT 'Debit or Credit',
  `amount` decimal(10,2) NOT NULL COMMENT 'Amount to be debited or credit.',
  `vataav` decimal(10,2) NOT NULL COMMENT '''Vataav'' in case of cash payments. Amount + Vataav will be adjusted against balance.',
  `cheque_no` varchar(20) NOT NULL COMMENT 'Keeping varchar as sometimes this can have 1,2 or 3 zeroes preceeding the cheque no.',
  `closing_balance` decimal(10,2) NOT NULL COMMENT 'This is to store the closing balance after every transaction.',
  `date` varchar(15) NOT NULL COMMENT 'Timestamp of date for this entry.',
  `date_timestamp` int(10) NOT NULL COMMENT 'Timestamp format of date for the entry.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `remarks` varchar(500) NOT NULL COMMENT 'Remarks or comments for a cash entry.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Stores daily cashbook entries.';

--
-- Dumping data for table `bstock_pl_dailycashentries`
--

INSERT INTO `bstock_pl_dailycashentries` VALUES (1,2,'bstock_customers','Sales','Cash',0,'','','Credit',2300000.00,0.00,'',2300000.00,'06/29/2011',1309370817,1309370817,1309370817,''),(2,1,'bstock_customers','Purchase','Cash',0,'','','Debit',1000000.00,0.00,'',1300000.00,'06/29/2011',1309370855,1309370855,1309370855,'partial pmt'),(3,2,'bstock_customers','Sales','Cash',0,'','','Credit',2500000.00,0.00,'',3800000.00,'07/03/2011',1309679329,1309679329,1309679329,'');

--
-- Table structure for table `bstock_pl_dailycashentries_logs`
--

CREATE TABLE `bstock_pl_dailycashentries_logs` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `dce_id` int(10) NOT NULL COMMENT 'Primary key of bstock_dailycashentries table',
  `order_id` int(10) NOT NULL COMMENT 'Purchase order id or Sale order id.',
  `order_no` int(10) NOT NULL COMMENT 'PO or SO Number.',
  `amount_paid` decimal(10,2) NOT NULL COMMENT 'Actual amount paid by the customer.',
  `previous_balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order before this payment.',
  `new_balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order after this payment.',
  `payment_date` varchar(15) NOT NULL COMMENT 'Timestamp when the payment was made.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Stores orders affected by each cashbook entry.';

--
-- Dumping data for table `bstock_pl_dailycashentries_logs`
--

INSERT INTO `bstock_pl_dailycashentries_logs` VALUES (1,1,1,0,2300000.00,0.00,46120.00,'1309370817',1309370817,1309370817),(2,2,1,0,1000000.00,0.00,2843000.00,'1309370855',1309370855,1309370855),(3,3,2,0,2500000.00,0.00,254000.00,'1309679329',1309679329,1309679329);

--
-- Table structure for table `bstock_pl_demands`
--

CREATE TABLE `bstock_pl_demands` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(50) NOT NULL,
  `demand_date_to` varchar(50) NOT NULL,
  `demand_date_from` varchar(50) NOT NULL,
  `status` enum('Active','Temporary deactive','Permanently Deactive') NOT NULL,
  `shape` set('ROUND','PRINCESS','PEAR','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT') NOT NULL,
  `size_to` varchar(25) NOT NULL,
  `size_from` varchar(25) NOT NULL,
  `color_to` set('D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R') NOT NULL,
  `color_from` enum('D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R') NOT NULL,
  `clarity_to` set('IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `clarity_from` enum('IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `cut_to` set('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish_to` set('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `symm_to` set('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `symm_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `flour_to` set('NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `flour_from` enum('NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `lab` set('ALL LABS','GIA',' EGL SA',' HRD',' IDL',' DIA','IGI') NOT NULL,
  `location` varchar(25) NOT NULL,
  `price_to` int(50) NOT NULL,
  `price_from` int(50) NOT NULL,
  `discount_from` varchar(50) NOT NULL,
  `discount_to` varchar(50) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(59) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_demands`
--

INSERT INTO `bstock_pl_demands` VALUES (1,12,'1270013022','1269667422','Permanently Deactive','','2','1','F','D','VVS2','IF','FAIR','EXCELLENT','FAIR','EXCELLENT','FAIR','EXCELLENT','STRONG','NONE','GIA','All',0,0,'40','45','1269667422','1269667422'),(2,3,'1310021345','1310021345','Active','','3','1','Q','D','I3','IF','EXCELLENT','FAIR','EXCELLENT','FAIR','EXCELLENT','FAIR','VERY SLIGHT','NONE','ALL LABS','All',3555,3333,'2','4','1310021345','1310021345'),(9,10,'','','Active','','','','R','D','I3','IF','EXCELLENT','FAIR','EXCELLENT','FAIR','EXCELLENT','FAIR','VERY SLIGHT','NONE','ALL LABS','All',0,0,'','','1313222495','1313222495'),(8,3,'1312031821','1311772621','Active','','3','0.2','E','D','VVS1','IF','VERY GOOD','EXCELLENT','VERY GOOD','EXCELLENT','GOOD','EXCELLENT','FAINT','NONE','GIA','All',0,0,'25','30','1311859021','1311859021'),(24,10,'1314698880','1312366080','Active','PRINCESS','30','3','D','D','IF','IF','EXCELLENT','EXCELLENT','VERY GOOD','EXCELLENT','GOOD','EXCELLENT','NONE','NONE','ALL LABS','',0,0,'3','30','1313748480','1313748480'),(27,10,'','','Active','ROUND,PRINCESS,PEAR,MARQUISE,EMERALD,HEART,OVAL','30','3','D,E,F,G,H,I,J','D','IF,VVS1,VVS2,VS1,VS2,SI2','IF','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','NONE,FAINT,MEDIUM,STRONG,VERY STRONG,SLIGHT,VERY SLIGHT','NONE','ALL LABS,GIA,IGI','',0,0,'','','1313755227','1313755227'),(26,10,'1314699461','1312366661','Active','ROUND,PRINCESS,PEAR','30','3','D,E,F','D','IF,VVS1,VVS2','IF','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','NONE,FAINT,MEDIUM','NONE','ALL LABS,GIA,IGI','',0,0,'3','30','1313749061','1313749061'),(28,10,'1314688918','1312356118','Active','ROUND,PRINCESS,PEAR,MARQUISE,EMERALD,OVAL,CUSHION,TRIANGLE,ASCHER,RADIANT','30','3','D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R','D','IF,VVS1,VVS2,VS1,VS2,SI1,SI2,I1,I2,I3','IF','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','NONE,FAINT,MEDIUM,STRONG,VERY STRONG,SLIGHT,VERY SLIGHT','NONE','ALL LABS,GIA,IGI','',0,0,'3','30','1313997718','1313997718'),(29,10,'1312356558','1314689358','Active','ROUND,PRINCESS,PEAR,MARQUISE,EMERALD,HEART,OVAL,CUSHION,TRIANGLE,ASCHER,RADIANT','3000000','3000000','D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R','D','IF,VVS1,VVS2,VS1,VS2,SI1,SI2,I1,I2,I3','IF','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','EXCELLENT,VERY GOOD,GOOD,FAIR','EXCELLENT','NONE,FAINT,MEDIUM,STRONG,VERY STRONG,SLIGHT,VERY SLIGHT','NONE','ALL LABS,GIA,IGI','',0,0,'3000000','3000000','1313998158','1313998158'),(30,10,'1314781062','1313571462','Permanently Deactive','ROUND,PRINCESS','5','0.5','D,H,I','D','IF,VVS2','IF','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','FAINT','NONE','GIA','',0,0,'3','20','1314176262','1314176262'),(31,10,'1314264877','1314178477','Active','ROUND,PRINCESS,PEAR','2','1','D,E','D','IF,VVS1,VVS2','IF','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','EXCELLENT,VERY GOOD','EXCELLENT','EXCELLENT,VERY GOOD','EXCELLENT','FAINT,MEDIUM,STRONG','NONE','GIA,IGI','',0,0,'22','23','1314178477','1314178477'),(32,10,'1314265070','1314178670','Active','ROUND,PRINCESS,PEAR,MARQUISE','2','1','D,E,F,G','D','IF,VVS1,VVS2','IF','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','','EXCELLENT','NONE,FAINT','NONE','GIA,IGI','',0,0,'22','23','1314178670','1314178670'),(33,10,'1314265520','1314179120','Active','ROUND,PRINCESS,PEAR,MARQUISE','3','2','D,E,F,G','D','IF,VVS1,VVS2,VS1','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'22','23','1314179120','1314179120'),(34,10,'','','Active','ROUND,PRINCESS','3','2','D,E','D','IF,VVS1','IF','EXCELLENT,VERY GOOD','EXCELLENT','EXCELLENT,VERY GOOD,GOOD','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'22','23','1314181739','1314181739'),(35,10,'','','Active','ROUND,PRINCESS','3','2','D,E','D','IF,VVS1','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314182068','1314182068'),(36,10,'','','Active','ROUND,PRINCESS,PEAR','2','1','D,E','D','IF,VVS1,VVS2','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314182140','1314182140'),(37,10,'','','Active','ROUND,PRINCESS','2','3','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314182216','1314182216'),(38,10,'','','Active','ROUND,PRINCESS','4','2','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314182542','1314182542'),(39,10,'','','Active','ROUND,PRINCESS','3','2','D,E','D','IF,VVS1','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314183403','1314183403'),(40,10,'','','Active','ROUND,PRINCESS','3','2','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314183608','1314183608'),(41,10,'','','Active','ROUND,PRINCESS','3','2','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314183769','1314183769'),(42,10,'','','Active','ROUND,PRINCESS,PEAR','3','2','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314183985','1314183985'),(43,10,'','','Active','ROUND,PRINCESS,PEAR,MARQUISE,EMERALD,HEART','3','2','D','D','IF','IF','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','','NONE','','',0,0,'','','1314184275','1314184275'),(44,10,'','','Active','ROUND,PRINCESS,PEAR','3','2','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314184714','1314184714'),(45,10,'','','Active','ROUND,PRINCESS,PEAR','','','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314184825','1314184825'),(46,10,'','','Active','ROUND,PRINCESS,PEAR','','','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314184881','1314184881'),(47,10,'','','Active','ROUND,PRINCESS','','','','D','','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1314184947','1314184947'),(48,10,'1314690487','1312357687','Active','ROUND,PRINCESS,PEAR,MARQUISE,EMERALD,HEART,OVAL,CUSHION,TRIANGLE,ASCHER,RADIANT','300','3','D','D','IF','IF','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','EXCELLENT','NONE','NONE','GIA','',0,0,'3','300','1314258487','1314258487'),(49,8,'1320999220','1320826420','Active','ROUND,PRINCESS','1.2','1','D,E,F','D','IF,VVS1','IF','','EXCELLENT','','EXCELLENT','','EXCELLENT','','NONE','','',0,0,'','','1320999220','1320999220');

--
-- Table structure for table `bstock_pl_demands_comments`
--

CREATE TABLE `bstock_pl_demands_comments` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `demand_id` int(10) NOT NULL,
  `commentor_id` int(25) NOT NULL,
  `comments` varchar(1000) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_demands_comments`
--

INSERT INTO `bstock_pl_demands_comments` VALUES (1,1,87,'will contact you later.','1274700903','1274700903'),(2,5,3,'test','1310029934','1310029934'),(3,5,3,'test1','1310030071','1310030071'),(4,5,3,'this is not a good offer you can raise it.','1310030205','1310030205'),(5,7,3,'test','1311253555','1311253555'),(6,7,3,'teste test','1311253620','1311253620'),(7,7,3,'','1311253701','1311253701'),(8,7,3,'','1311253871','1311253871'),(9,30,10,'not possible right now.','1314176713','1314176713');

--
-- Table structure for table `bstock_pl_ems`
--

CREATE TABLE `bstock_pl_ems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) NOT NULL COMMENT 'Foriegn key - This will be the foriegn key from bstock_customers table',
  `contact_person` varchar(500) NOT NULL,
  `source` enum('Email Marketing','Website','Internet Search') NOT NULL,
  `priority` enum('High','Medium','Low') NOT NULL,
  `referred_by` varchar(500) NOT NULL,
  `attended_by_id` int(10) NOT NULL,
  `status_id` int(10) NOT NULL,
  `remarks` varchar(1000) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_ems`
--


--
-- Table structure for table `bstock_pl_ems_enquiry_products`
--

CREATE TABLE `bstock_pl_ems_enquiry_products` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `enquiry_id` int(50) NOT NULL,
  `demand_date_to` varchar(50) NOT NULL,
  `demand_date_from` varchar(50) NOT NULL,
  `status` enum('Active','Temporary deactive','Permanently Deactive') NOT NULL,
  `shape` varchar(50) NOT NULL,
  `size_to` varchar(25) NOT NULL,
  `size_from` varchar(25) NOT NULL,
  `color_to` enum('D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R') NOT NULL,
  `color_from` enum('D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R') NOT NULL,
  `clarity_to` enum('IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `clarity_from` enum('IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `cut_to` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish_to` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `symm_to` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `symm_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `flour_to` enum('NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `flour_from` enum('NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `lab` varchar(25) NOT NULL,
  `finestar_price` decimal(10,3) NOT NULL,
  `client_offer_price` decimal(10,3) NOT NULL,
  `location` varchar(25) NOT NULL,
  `price_to` int(50) NOT NULL,
  `price_from` int(50) NOT NULL,
  `discount_from` varchar(50) NOT NULL,
  `discount_to` varchar(50) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(59) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_ems_enquiry_products`
--


--
-- Table structure for table `bstock_pl_ems_followup`
--

CREATE TABLE `bstock_pl_ems_followup` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `enquiry_id` int(10) NOT NULL,
  `followup_date` int(10) NOT NULL,
  `follow_up_type` enum('Fax','Mail','Personal Visit','Phone') NOT NULL,
  `follow_up_remarks` varchar(1000) NOT NULL,
  `next_followup_date` int(10) NOT NULL,
  `next_followup_date_mmddyy` varchar(50) NOT NULL,
  `next_followup_remarks` varchar(1000) NOT NULL,
  `remind_me` enum('on','off') NOT NULL,
  `status` enum('closed','open') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_ems_followup`
--


--
-- Table structure for table `bstock_pl_emsitems`
--

CREATE TABLE `bstock_pl_emsitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `enquiry_id` int(10) NOT NULL,
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `product_id` int(50) NOT NULL,
  `finestar_price` decimal(10,2) NOT NULL,
  `client_offer_price` decimal(10,2) NOT NULL,
  `discount_percent` decimal(10,0) NOT NULL,
  `discount_amount` decimal(10,0) NOT NULL,
  `remarks` varchar(1000) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PAN','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY   SLIGHT','PC-2','PC-4','PC-5','M') NOT NULL DEFAULT 'NONE',
  `lab` enum('All Labs','GIA','IGI','HRD','AGS','EGL','IGC') NOT NULL,
  `quantity` int(11) NOT NULL,
  `symmetry` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3','M-VVS','L-SI','M-SI','I-SI','L-VVS','M-VS','LB','PK','PK-1','M-VS1','J-VVS','G-SI2','F-SI2','F-SI2','K-PK','J-SI','F-VVS','H-VVS','K-VVS','G-VS','K-SI','PTS','J-VS','K-VS','E-VVS','PC-16','J-SI','I-VVS') NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','  U','V','NC','NC-I','NC-M','N-O') NOT NULL,
  `certificate_id` varchar(50) NOT NULL,
  `width` decimal(10,2) NOT NULL,
  `height` decimal(10,2) NOT NULL,
  `measurement` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_pl_emsitems`
--


--
-- Table structure for table `bstock_pl_emsstatus`
--

CREATE TABLE `bstock_pl_emsstatus` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `status` varchar(250) NOT NULL COMMENT 'Name of the order status type.',
  `description` text NOT NULL COMMENT 'Description for the order status type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'Whether this order type is active or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this order status type was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this order status type was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different order status types';

--
-- Dumping data for table `bstock_pl_emsstatus`
--


--
-- Table structure for table `bstock_pl_expenses`
--

CREATE TABLE `bstock_pl_expenses` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `expense_type_id` int(10) NOT NULL COMMENT 'Category to which the expense belongs.',
  `dce_id` int(10) NOT NULL COMMENT 'ID of record in bstock_pl_dailycashentries table.',
  `payment_mode` varchar(25) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `entry_date` varchar(15) NOT NULL COMMENT 'transaction date',
  `created_date` varchar(15) NOT NULL,
  `modified_date` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores daily expenses.';

--
-- Dumping data for table `bstock_pl_expenses`
--


--
-- Table structure for table `bstock_pl_expenses_categories`
--

CREATE TABLE `bstock_pl_expenses_categories` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(250) NOT NULL,
  `category_desc` varchar(500) NOT NULL,
  `parent_id` int(10) NOT NULL COMMENT 'If this is a sub-category, then this will store the parent category''s id, else it will contain 0 for a parent category.',
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(15) NOT NULL,
  `modified_date` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COMMENT='Categories of Expenses';

--
-- Dumping data for table `bstock_pl_expenses_categories`
--

INSERT INTO `bstock_pl_expenses_categories` VALUES (1,'Salaries and Wages','Salaries and Wages',0,'on','',''),(2,'Travel','Travel',0,'on','',''),(3,'Rent','Rent',0,'on','',''),(4,'Advertising','Advertising',0,'on','',''),(5,'Professional Fees','Professional Fees',0,'on','',''),(6,'Bank Charges and Fees','Bank Charges and Fees',0,'on','',''),(7,'Supplies','All types of daily supplies',0,'on','',''),(8,'Repairs & Maintenance','Repairs & Maintenance in office, building, etc.',0,'on','',''),(9,'Entertainment','Meals, gifts, events, etc.',0,'on','',''),(10,'Utility Bills','Electricity, Water, etc.',0,'on','',''),(11,'Telephone','Telephone',0,'on','',''),(12,'Internet Access & Services','Internet Access & Services',0,'on','',''),(13,'Taxes','Taxes',0,'on','',''),(14,'Donations','Donations',0,'on','',''),(15,'Penalties & Fines','Penalties & Fines',0,'on','',''),(16,'Interest','Interests paid',0,'on','',''),(17,'Software','Software subscriptions, etc.',0,'on','',''),(18,'Depreciation','Depreciation',0,'on','',''),(19,'Furniture and equipment','Furniture and equipment',0,'on','',''),(20,'Other','Other expenses',0,'on','','');

--
-- Table structure for table `bstock_pl_jhangad`
--

CREATE TABLE `bstock_pl_jhangad` (
  `id` int(8) unsigned zerofill NOT NULL AUTO_INCREMENT,
  `jhangad_number` varchar(255) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `broker_id` int(11) NOT NULL COMMENT 'This will store the id of the broker who has taken the jhangad',
  `giver_id` int(11) NOT NULL,
  `transaction_date` int(11) NOT NULL,
  `carrier_id` int(10) NOT NULL,
  `tracking_number` varchar(50) NOT NULL,
  `status_id` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `due_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `gst` decimal(10,3) NOT NULL,
  `subtotal` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `adjustment` decimal(10,2) NOT NULL,
  `include_gst` enum('on','off') NOT NULL DEFAULT 'off' COMMENT 'This field indicates whether prices of product in this Appro are inclusive of GST or not',
  `type_of_jhangad` enum('Memo','Consignment') NOT NULL DEFAULT 'Memo' COMMENT 'Memo means local jhangad, consignment means out of country jhangad.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_jhangad`
--


--
-- Table structure for table `bstock_pl_jhgitems`
--

CREATE TABLE `bstock_pl_jhgitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `jhangad_id` int(8) unsigned zerofill NOT NULL COMMENT 'Foreign key that is mapped to primary key of orders table.',
  `product_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `quantity` decimal(10,3) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `quantity_returned` float(10,3) NOT NULL COMMENT 'this field will store the  quantity of stone returned in this jhanagad',
  `rate` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `total_in_inr` decimal(10,2) NOT NULL,
  `product_status_in_this_jhangad` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Onhold') NOT NULL DEFAULT 'Approval Placed' COMMENT 'this field will show the status of the product in this jhangad',
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the date when this record was inserted i.e. when the order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this order.',
  `discount_percent` varchar(20) NOT NULL COMMENT 'Percentage of discount offered on this order item.',
  `discount_value` varchar(20) NOT NULL COMMENT 'Discount (in value) offered on this order item.',
  `carat_selling_price` decimal(10,2) NOT NULL,
  `size` decimal(10,3) NOT NULL,
  `invoice_note` varchar(500) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_pl_jhgitems`
--


--
-- Table structure for table `bstock_pl_jhgstatustypes`
--

CREATE TABLE `bstock_pl_jhgstatustypes` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_jhgstatustypes`
--

INSERT INTO `bstock_pl_jhgstatustypes` VALUES (1,'Approval Placed','Approval Created','on',0,0),(2,'Approval Issued','Approval Issued','on',0,0),(3,'Approval Issued Partial','Approval Issued Partial','on',1267005563,1267005563),(4,'Approval Couriered Full','Approval Couriered Full','on',0,0),(5,'Approval Couriered Partial','Approval Couriered Partial','on',0,0),(6,'Approval Partially Returned','Approval Partially Returned','on',0,0),(7,'Approval Returned Full','Approval Returned Full','on',0,0);

--
-- Table structure for table `bstock_pl_login_stat`
--

CREATE TABLE `bstock_pl_login_stat` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) NOT NULL COMMENT 'This is the customer id.',
  `ip_address` varchar(50) NOT NULL COMMENT 'IP Address from where the user logs in.',
  `login_time` varchar(50) NOT NULL COMMENT 'This field will contain the timestamp.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=397 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the login stats of customers.';

--
-- Dumping data for table `bstock_pl_login_stat`
--

INSERT INTO `bstock_pl_login_stat` VALUES (1,3,'59.182.179.49','1310018813'),(2,3,'59.182.183.214','1310109990'),(3,3,'59.182.183.214','1310110130'),(4,3,'59.182.183.214','1310113850'),(5,3,'59.182.183.214','1310114031'),(6,3,'59.182.183.214','1310114965'),(7,3,'59.182.183.214','1310116186'),(8,3,'59.182.183.214','1310119939'),(9,3,'59.182.183.214','1310120533'),(10,3,'59.182.183.214','1310120773'),(11,3,'59.182.147.139','1310189625'),(12,3,'59.182.160.107','1310205380'),(13,3,'59.182.179.127','1310362202'),(14,3,'59.182.179.127','1310362914'),(15,3,'59.182.162.174','1310449346'),(16,3,'59.182.162.174','1310457717'),(17,3,'59.182.162.174','1310457888'),(18,3,'59.182.162.174','1310457899'),(19,3,'59.182.162.174','1310457912'),(20,3,'59.182.162.174','1310457927'),(21,3,'59.182.162.174','1310457991'),(22,3,'59.182.162.174','1310461311'),(23,3,'59.182.164.220','1310470260'),(24,3,'59.182.164.220','1310470387'),(25,3,'59.182.144.224','1310475682'),(26,3,'59.182.144.224','1310475787'),(27,3,'59.182.144.224','1310475838'),(28,3,'59.182.144.224','1310476208'),(29,3,'59.182.144.224','1310476251'),(30,3,'59.182.144.224','1310476302'),(31,3,'59.182.144.224','1310476307'),(32,3,'59.182.144.224','1310476321'),(33,3,'59.182.144.224','1310476500'),(34,3,'59.182.144.224','1310476623'),(35,3,'59.182.144.224','1310476868'),(36,3,'59.182.144.224','1310477077'),(37,3,'59.182.144.224','1310477159'),(38,3,'59.182.144.224','1310477313'),(39,3,'59.182.144.224','1310477319'),(40,3,'59.182.144.224','1310477358'),(41,3,'59.182.144.224','1310477378'),(42,3,'59.182.144.224','1310477403'),(43,3,'59.182.144.224','1310477440'),(44,3,'59.182.144.224','1310477526'),(45,3,'59.182.144.224','1310477659'),(46,3,'59.182.129.118','1310533916'),(47,3,'59.182.129.118','1310537137'),(48,3,'59.182.129.118','1310537153'),(49,3,'59.182.129.118','1310537654'),(50,3,'59.182.129.118','1310537786'),(51,3,'59.182.129.118','1310537791'),(52,3,'59.182.129.118','1310540504'),(53,3,'59.182.129.118','1310540544'),(54,3,'59.182.129.118','1310540601'),(55,3,'59.182.129.118','1310541793'),(56,3,'59.182.129.118','1310541798'),(57,3,'59.182.129.118','1310542416'),(58,3,'59.182.129.118','1310542429'),(59,3,'59.182.129.118','1310542449'),(60,3,'59.182.129.118','1310542458'),(61,3,'59.182.129.118','1310542469'),(62,3,'59.182.129.118','1310542477'),(63,3,'59.182.129.118','1310542541'),(64,3,'59.182.129.118','1310542577'),(65,3,'59.182.129.118','1310542608'),(66,3,'59.182.129.118','1310542622'),(67,3,'59.182.129.118','1310542631'),(68,3,'59.182.129.118','1310542743'),(69,3,'59.182.129.118','1310542756'),(70,3,'59.182.129.118','1310542814'),(71,3,'59.182.129.118','1310542949'),(72,3,'59.182.129.118','1310542989'),(73,3,'59.182.129.118','1310543010'),(74,3,'59.182.129.118','1310547407'),(75,3,'59.182.129.118','1310547458'),(76,3,'59.182.129.118','1310547815'),(77,3,'59.182.129.118','1310547963'),(78,3,'59.182.129.118','1310547975'),(79,3,'59.182.129.118','1310548335'),(80,3,'59.182.129.118','1310548415'),(81,3,'59.182.129.118','1310549087'),(82,3,'59.182.129.118','1310549784'),(83,3,'59.182.129.118','1310550447'),(84,3,'59.182.129.118','1310550675'),(85,3,'59.182.129.118','1310550858'),(86,3,'59.182.129.118','1310550863'),(87,3,'59.182.129.118','1310550906'),(88,3,'59.182.129.118','1310551375'),(89,3,'59.182.129.118','1310551381'),(90,3,'59.182.129.118','1310552174'),(91,3,'59.182.147.229','1310552349'),(92,3,'59.182.147.229','1310552383'),(93,3,'59.182.147.229','1310552392'),(94,3,'59.182.147.229','1310552401'),(95,3,'59.182.147.229','1310552476'),(96,3,'59.182.147.229','1310552484'),(97,3,'59.182.147.229','1310552535'),(98,3,'59.182.147.229','1310552543'),(99,3,'59.182.147.229','1310552600'),(100,3,'59.182.147.229','1310552641'),(101,3,'59.182.147.229','1310552706'),(102,3,'59.182.147.229','1310552724'),(103,3,'59.182.147.229','1310553010'),(104,3,'59.182.147.229','1310553045'),(105,3,'59.182.147.229','1310553211'),(106,3,'59.182.147.229','1310553232'),(107,3,'59.182.147.229','1310553235'),(108,3,'59.182.147.229','1310553239'),(109,3,'59.182.147.229','1310553497'),(110,3,'59.182.147.229','1310553508'),(111,3,'59.182.147.229','1310553593'),(112,3,'59.182.147.229','1310553922'),(113,3,'59.182.147.229','1310553981'),(114,3,'59.182.147.229','1310554050'),(115,3,'59.182.147.229','1310554135'),(116,3,'59.182.147.229','1310554169'),(117,3,'59.182.147.229','1310554181'),(118,3,'59.182.147.229','1310554233'),(119,3,'59.182.147.229','1310554260'),(120,3,'59.182.147.229','1310554396'),(121,3,'59.182.147.229','1310554399'),(122,3,'59.182.147.229','1310554524'),(123,3,'59.182.147.229','1310554543'),(124,3,'59.182.147.229','1310554585'),(125,3,'59.182.147.229','1310554897'),(126,3,'59.182.147.229','1310554920'),(127,3,'59.182.147.229','1310555006'),(128,3,'59.182.147.229','1310555009'),(129,3,'120.60.146.112','1310562499'),(130,3,'120.60.146.112','1310562540'),(131,3,'120.60.146.112','1310562601'),(132,3,'120.60.146.112','1310564617'),(133,3,'59.182.153.181','1310620125'),(134,3,'59.182.172.236','1310707074'),(135,3,'59.182.172.236','1310707304'),(136,3,'59.182.172.236','1310707319'),(137,3,'59.182.172.236','1310707656'),(138,3,'59.182.172.236','1310707991'),(139,3,'59.182.172.236','1310708105'),(140,3,'59.182.172.236','1310708110'),(141,3,'59.182.172.236','1310708180'),(142,3,'59.182.172.236','1310708182'),(143,3,'59.182.172.236','1310708247'),(144,3,'59.182.172.236','1310708250'),(145,3,'59.182.172.236','1310708378'),(146,3,'59.182.172.236','1310708586'),(147,3,'59.182.172.236','1310708654'),(148,3,'59.182.172.236','1310708657'),(149,3,'59.182.172.236','1310708854'),(150,3,'59.182.172.236','1310708937'),(151,3,'59.182.172.236','1310709048'),(152,3,'59.182.172.236','1310709239'),(153,3,'59.182.172.236','1310709265'),(154,3,'59.182.172.236','1310709267'),(155,3,'59.182.172.236','1310709285'),(156,3,'59.182.172.236','1310709287'),(157,3,'59.182.172.236','1310709304'),(158,3,'59.182.172.236','1310709307'),(159,3,'59.182.172.236','1310709340'),(160,3,'59.182.172.236','1310709350'),(161,3,'59.182.172.236','1310709367'),(162,3,'59.182.172.236','1310709851'),(163,3,'59.182.172.236','1310710094'),(164,3,'59.182.172.236','1310710152'),(165,3,'59.182.172.236','1310710211'),(166,3,'59.182.172.236','1310710382'),(167,3,'59.182.172.236','1310710590'),(168,3,'59.182.172.236','1310711696'),(169,3,'59.182.172.236','1310711744'),(170,3,'59.182.172.236','1310711858'),(171,3,'59.182.172.236','1310711983'),(172,3,'59.182.172.236','1310712025'),(173,3,'59.182.172.236','1310712094'),(174,3,'59.182.172.236','1310712096'),(175,3,'59.182.172.236','1310712233'),(176,3,'59.182.172.236','1310712243'),(177,3,'59.182.172.236','1310712264'),(178,3,'59.182.172.236','1310712351'),(179,3,'59.182.172.236','1310712712'),(180,3,'59.182.172.236','1310712736'),(181,3,'59.182.172.236','1310712764'),(182,3,'59.182.172.236','1310713581'),(183,3,'59.182.172.236','1310713630'),(184,3,'59.182.172.236','1310713729'),(185,3,'59.182.172.236','1310713782'),(186,3,'59.182.172.236','1310713900'),(187,3,'59.182.172.236','1310713925'),(188,3,'59.182.172.236','1310714096'),(189,3,'59.182.172.236','1310714307'),(190,3,'59.182.172.236','1310714349'),(191,3,'59.182.172.236','1310714867'),(192,3,'59.182.172.236','1310714980'),(193,3,'59.182.172.236','1310724087'),(194,3,'59.182.172.236','1310726053'),(195,3,'59.182.142.2','1310794324'),(196,3,'59.182.142.2','1310794337'),(197,3,'59.182.142.2','1310795141'),(198,3,'59.182.159.251','1310817093'),(199,3,'59.182.159.251','1310820794'),(200,3,'59.182.159.251','1310820869'),(201,3,'59.182.191.138','1311065096'),(202,3,'59.182.191.138','1311065659'),(203,3,'59.182.191.138','1311065803'),(204,3,'59.182.191.138','1311065863'),(205,3,'59.182.191.138','1311066144'),(206,3,'59.182.191.138','1311066461'),(207,3,'59.182.191.138','1311066646'),(208,3,'59.182.191.138','1311066688'),(209,3,'59.182.168.191','1311068163'),(210,3,'59.182.168.191','1311068165'),(211,3,'59.182.168.191','1311068200'),(212,3,'59.182.168.191','1311068240'),(213,3,'59.182.168.191','1311068302'),(214,3,'59.182.168.191','1311073099'),(215,3,'59.182.168.191','1311077936'),(216,3,'59.182.168.191','1311082888'),(217,3,'59.182.168.191','1311082896'),(218,3,'59.182.153.44','1311140473'),(219,3,'59.182.153.44','1311144595'),(220,3,'59.182.153.44','1311146487'),(221,3,'59.182.153.44','1311146595'),(222,3,'59.182.153.44','1311147765'),(223,3,'59.182.153.44','1311148542'),(224,3,'59.182.153.44','1311148654'),(225,3,'59.182.153.44','1311153169'),(226,3,'59.182.153.44','1311156718'),(227,3,'59.182.182.39','1311163333'),(228,3,'59.182.182.39','1311163579'),(229,3,'59.182.163.160','1311226750'),(230,3,'59.182.163.160','1311227298'),(231,3,'59.182.163.160','1311237775'),(232,3,'59.182.163.160','1311238393'),(233,3,'59.182.163.160','1311240079'),(234,3,'59.182.163.160','1311245185'),(235,3,'59.182.174.128','1311247785'),(236,3,'59.182.174.128','1311247839'),(237,3,'59.182.174.128','1311247839'),(238,9,'59.182.174.128','1311252455'),(239,3,'59.182.174.128','1311252541'),(240,3,'59.182.174.128','1311255046'),(241,3,'59.182.174.128','1311256258'),(242,3,'120.60.151.92','1311272331'),(243,3,'59.182.122.45','1311274566'),(244,3,'59.182.122.45','1311278609'),(245,3,'59.182.122.45','1311279202'),(246,3,'59.182.122.45','1311280311'),(247,3,'59.182.188.103','1311313040'),(248,3,'59.182.188.103','1311314029'),(249,3,'59.182.188.103','1311314144'),(250,3,'59.182.188.103','1311314319'),(251,3,'59.182.188.103','1311314443'),(252,3,'59.182.188.103','1311314827'),(253,3,'59.182.188.103','1311314904'),(254,3,'59.182.188.103','1311315305'),(255,3,'59.182.188.103','1311315614'),(256,3,'59.182.188.103','1311316212'),(257,3,'59.182.188.103','1311324669'),(258,3,'59.182.188.103','1311324925'),(259,10,'59.182.188.103','1311325062'),(260,10,'59.182.188.103','1311325090'),(261,3,'59.182.188.103','1311325581'),(262,3,'59.182.188.103','1311325869'),(263,3,'59.182.188.103','1311326024'),(264,3,'59.182.188.103','1311326140'),(265,3,'59.182.188.103','1311326533'),(266,3,'59.182.188.103','1311326745'),(267,3,'59.182.188.103','1311327043'),(268,3,'59.182.188.103','1311328837'),(269,3,'59.182.188.103','1311329025'),(270,3,'59.182.188.103','1311329246'),(271,3,'59.182.188.103','1311329325'),(272,3,'59.182.188.103','1311329516'),(273,3,'59.182.188.103','1311329602'),(274,3,'59.182.188.103','1311329770'),(275,10,'59.182.188.103','1311330165'),(276,10,'59.182.188.103','1311330191'),(277,10,'59.182.157.146','1311332215'),(278,10,'59.182.157.146','1311332322'),(279,10,'59.182.157.146','1311332510'),(280,3,'59.182.157.146','1311338076'),(281,10,'59.182.157.146','1311338129'),(282,10,'59.182.157.146','1311338344'),(283,10,'59.182.157.146','1311338425'),(284,10,'59.182.157.146','1311338527'),(285,10,'59.182.157.146','1311338861'),(286,10,'59.182.157.146','1311338911'),(287,10,'59.182.157.146','1311338978'),(288,10,'59.182.157.146','1311339040'),(289,10,'59.182.157.146','1311339129'),(290,10,'59.182.157.146','1311339228'),(291,10,'59.182.157.146','1311339298'),(292,10,'59.182.157.146','1311339393'),(293,10,'59.182.157.146','1311339532'),(294,10,'59.182.157.146','1311339639'),(295,10,'59.182.157.146','1311341818'),(296,10,'59.182.147.166','1311670608'),(297,3,'59.182.187.254','1311757782'),(298,3,'59.182.187.254','1311757936'),(299,3,'59.182.183.33','1311772422'),(300,3,'59.182.72.43','1311786815'),(301,3,'59.182.158.144','1311842764'),(302,3,'59.182.158.144','1311842816'),(303,3,'59.182.186.15','1311851446'),(304,3,'59.182.186.15','1311851452'),(305,3,'59.182.186.15','1311851715'),(306,3,'59.182.186.15','1311851718'),(307,3,'59.182.186.15','1311855144'),(308,3,'59.182.186.15','1311855222'),(309,3,'59.182.186.15','1311855283'),(310,3,'59.182.186.15','1311855349'),(311,3,'59.182.186.15','1311855358'),(312,3,'59.182.186.15','1311855439'),(313,3,'59.182.186.15','1311856936'),(314,3,'59.182.186.15','1311857740'),(315,3,'59.182.139.11','1311860124'),(316,3,'59.182.139.11','1311860152'),(317,3,'59.182.139.11','1311860194'),(318,3,'59.182.139.11','1311860318'),(319,3,'59.182.139.11','1311860354'),(320,3,'59.182.118.12','1311873791'),(321,3,'59.182.118.12','1311880074'),(322,10,'59.182.179.5','1311921333'),(323,3,'59.182.0.209','1311957870'),(324,3,'59.182.0.209','1311968904'),(325,3,'59.182.0.209','1311970563'),(326,3,'59.182.161.117','1312007226'),(327,3,'59.182.186.230','1312009371'),(328,3,'59.182.186.230','1312010250'),(329,3,'59.182.186.230','1312027335'),(330,3,'59.182.138.241','1312199492'),(331,3,'59.182.138.241','1312200412'),(332,3,'84.108.15.245','1312200419'),(333,3,'59.182.138.241','1312201533'),(334,3,'59.182.138.241','1312203919'),(335,10,'59.182.138.241','1312204164'),(336,10,'101.209.250.170','1312206801'),(337,10,'27.106.107.184','1312265357'),(338,10,'59.182.66.225','1312352288'),(339,10,'59.182.66.225','1312352522'),(340,10,'59.182.66.225','1312352765'),(341,10,'27.106.107.187','1312363055'),(342,10,'27.106.107.187','1312363068'),(343,10,'27.106.107.187','1312363073'),(344,10,'27.106.107.187','1312363108'),(345,10,'59.182.133.210','1312441075'),(346,10,'59.182.132.116','1312450931'),(347,10,'59.182.106.21','1312723491'),(348,10,'59.182.181.155','1312782844'),(349,10,'59.182.169.132','1312789393'),(350,10,'59.182.156.167','1312797697'),(351,10,'59.182.156.167','1312798578'),(352,10,'59.182.156.167','1312801780'),(353,10,'59.182.156.167','1312806604'),(354,10,'59.182.156.167','1312806619'),(355,10,'59.182.166.26','1313213048'),(356,10,'59.182.166.26','1313215396'),(357,10,'59.182.166.26','1313219851'),(358,10,'59.182.155.157','1313466430'),(359,10,'59.182.140.191','1313576434'),(360,10,'59.182.164.183','1313579557'),(361,10,'59.182.164.183','1313580794'),(362,10,'59.182.164.183','1313585046'),(363,10,'59.182.179.84','1313645094'),(364,10,'59.182.179.84','1313646168'),(365,10,'59.182.179.84','1313648798'),(366,10,'59.182.179.84','1313648977'),(367,10,'59.182.179.84','1313649251'),(368,10,'59.182.179.84','1313649516'),(369,10,'59.182.179.84','1313649527'),(370,10,'59.182.79.218','1313649557'),(371,10,'59.182.145.12','1313665394'),(372,10,'59.182.135.255','1313732727'),(373,10,'59.182.135.255','1313743881'),(374,10,'59.182.135.255','1313745214'),(375,10,'59.182.135.255','1313749180'),(376,10,'59.182.149.252','1313991499'),(377,10,'59.182.149.252','1314005354'),(378,10,'59.182.165.97','1314077095'),(379,10,'59.182.165.97','1314077698'),(380,10,'59.182.165.97','1314078542'),(381,10,'59.182.165.97','1314079309'),(382,10,'59.182.165.97','1314084388'),(383,10,'59.182.165.97','1314086509'),(384,10,'59.182.159.177','1314098794'),(385,10,'59.182.175.2','1314163446'),(386,10,'59.182.175.2','1314171215'),(387,10,'59.182.175.2','1314176056'),(388,10,'59.182.175.2','1314182112'),(389,10,'59.182.154.92','1314249909'),(390,10,'59.182.154.92','1314251522'),(391,10,'59.182.154.92','1314256651'),(392,10,'123.201.188.210','1320213254'),(393,8,'59.182.138.39','1320993180'),(394,8,'14.97.194.111','1322630526'),(395,3,'59.182.165.111','1326444422'),(396,3,'59.182.165.111','1326444842');

--
-- Table structure for table `bstock_pl_multipleimagesupload`
--

CREATE TABLE `bstock_pl_multipleimagesupload` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This field will be the auto increment field and the primary field.',
  `product_id` int(25) NOT NULL COMMENT 'This will store the product id to which the photo is related. field name is: parent_id which is infact product_jwl_id',
  `module_id` int(5) NOT NULL COMMENT 'This will have the moduel id to which the photo belongs to . field name is photo_parent_id',
  `title` varchar(255) NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `is_default` enum('1','0') NOT NULL DEFAULT '1',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=94 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_multipleimagesupload`
--

INSERT INTO `bstock_pl_multipleimagesupload` VALUES (3,3,1,'Pave 1','Pave1.png','1','',''),(15,4,1,'Pave 2','bridal_jewelry_2.png','1','',''),(13,5,1,'Pave 3','jewelry_add_screen.png','1','',''),(14,656,1,'E145-0014-Main-Jh','1_656_15_08042010025620.jpg','1','',''),(7,647,1,'test78','1_647_7_08042010025349.jpg','1','',''),(8,0,1,'sfwr234234','1__15_05042010034300.jpg','0','',''),(9,2,1,'test553','1_2_15_05042010034343.jpg','1','',''),(10,653,1,'Samsung HDD - 500 GB','1_653_15_08042010013444.jpg','1','',''),(11,651,1,'Samsung HDD - 2000 GB','1_651_15_08042010020042.jpg','1','',''),(12,648,1,'Samsung HDD - 2terabyte GB','1_648_15_08042010020930.jpg','1','',''),(16,658,1,'T555-5004-main','1_658_15_08042010025929.jpg','1','',''),(17,659,1,'T555-5004-main','1_659_15_08042010025959.jpg','1','',''),(18,660,1,'T555-5004-main','1_660_15_08042010030019.jpg','1','',''),(19,661,1,'Samsung Laser Printer','1_661_19_13042010004033.jpg','1','2022220202','2020202020'),(20,662,1,'lcd 25 \\\\\\&quot;','1_662_20_01052010011145.jpg','1','',''),(21,663,1,'lcd 42','1_663_21_01052010014205.jpg','1','',''),(22,664,1,'desktop','1_664_22_01052010014128.jpg','1','',''),(23,665,1,'laptop','1_665_23_01052010013815.jpg','1','',''),(24,666,1,'processor','1_666_15_01052010011915.jpg','1','',''),(25,667,1,'Flash Drive','1_667_25_01052010033600.jpg','1','',''),(26,668,1,'AOC 2330V 23\\\\\\&quot; Widescreen LCD Monitor','1_668_15_19052010132141.jpg','1','',''),(27,669,1,'hard disk','1_669_15_20052010072637.jpg','1','',''),(28,648,1,'Samsung','1_648_15_21052010030447.jpeg','0','',''),(29,648,1,'video uploaded for testing purpose','1_648_16_17062010114340.flv','0','',''),(30,648,1,'video uploaded for testing purpose','1_648_16_17062010114911.flv','0','',''),(31,648,1,'video uploaded for testing purpose','1_648_16_17062010115255.flv','0','',''),(32,648,1,'video uploaded for testing purpose','1_648_16_17062010120049.flv','0','',''),(33,648,1,'video uploaded for testing purpose','1_648_16_17062010120453.flv','0','',''),(34,648,1,'testing images','1_648_16_17062010120739.jpg','0','',''),(35,648,1,'testing images','1_648_16_17062010120751.jpg','0','',''),(36,648,1,'testing images','1_648_16_17062010120944.jpg','0','',''),(37,648,1,'testing images','1_648_16_17062010120957.jpg','0','',''),(38,648,1,'testing images','1_648_16_17062010121356.jpg','0','',''),(39,648,1,'testing images','1_648_16_17062010121427.jpg','0','',''),(40,648,1,'testing for video but adding image','1_648_16_18062010103937.png','0','',''),(41,648,1,'testing for video but adding image','1_648_16_18062010104634.png','0','',''),(42,648,1,'testing image','1_648_16_18062010105445.jpg','0','',''),(43,648,1,'testing images','1_648_16_18062010112701.JPG','0','',''),(44,5,1,'Pave1','Pave1.png','0','',''),(45,5,1,'Pave2','Pave2.png','0','',''),(46,1,1,'Pave','jewelry_add_screen.png','1','',''),(47,2,1,'Pave2','large_65721_Y.png','1','',''),(48,6,1,'Pave6','large_662859_Y.png','1','',''),(49,7,1,'Pave7','yellow-gold-ring.png','1','',''),(50,8,1,'Pave8','bridal_jewelry_2.png','1','',''),(51,9,1,'Pave9','jewelry_add_screen.png','1','',''),(52,10,1,'Pave10','large_65721_Y.png','1','',''),(53,11,1,'Pave11','bridal_jewelry_2.png','1','',''),(54,12,1,'Pave12','large_662859_Y.png','1','',''),(55,13,1,'Pave13','yellow-gold-ring.png','1','',''),(56,14,1,'Pave14','bridal_jewelry_2.png','1','',''),(58,16,1,'Solitaire6','large_662859_Y.png','1','',''),(59,17,1,'Solitaire7','yellow-gold-ring.png','1','',''),(60,18,1,'Solitaire8','bridal_jewelry_2.png','1','',''),(61,19,1,'Solitaire9','jewelry_add_screen.png','1','',''),(62,20,1,'Solitaire10','large_65721_Y.png','1','',''),(63,21,1,'Solitaire11','large_662859_Y.png','1','',''),(64,22,1,'Solitaire12','yellow-gold-ring.png','1','',''),(65,23,1,'Solitaire13','bridal_jewelry_2.png','1','',''),(66,24,1,'Solitaire14','jewelry_add_screen.png','1','',''),(67,25,1,'Sidestone6','large_662859_Y.png','1','',''),(68,26,1,'Sidestone7','yellow-gold-ring.png','1','',''),(69,27,1,'Sidestone8','bridal_jewelry_2.png','1','',''),(70,28,1,'Sidestone9','jewelry_add_screen.png','1','',''),(71,29,1,'Sidestone10','large_65721_Y.png','1','',''),(72,30,1,'Sidestone11','large_662859_Y.png','1','',''),(73,31,1,'Sidestone12','yellow-gold-ring.png','1','',''),(74,32,1,'Sidestone13','bridal_jewelry_2.png','1','',''),(75,33,1,'Sidestone14','jewelry_add_screen.png','1','',''),(76,34,1,'Mone6','large_662859_Y.png','1','',''),(77,35,1,'Mone7','yellow-gold-ring.png','1','',''),(78,36,1,'Mone8','bridal_jewelry_2.png','1','',''),(79,37,1,'Mone9','jewelry_add_screen.png','1','',''),(80,38,1,'Mone10','large_65721_Y.png','1','',''),(81,39,1,'Mone11','large_662859_Y.png','1','',''),(82,40,1,'Mone12','yellow-gold-ring.png','1','',''),(83,41,1,'Mone13','bridal_jewelry_2.png','1','',''),(84,42,1,'Mone14','jewelry_add_screen.png','1','',''),(85,43,1,'Tension6','large_662859_Y.png','1','',''),(86,44,1,'Tension7','yellow-gold-ring.png','1','',''),(87,45,1,'Tension8','bridal_jewelry_2.png','1','',''),(88,46,1,'Tension9','jewelry_add_screen.png','1','',''),(89,47,1,'Tension10','large_65721_Y.png','1','',''),(90,48,1,'Tension11','large_662859_Y.png','1','',''),(91,49,1,'Tension12','yellow-gold-ring.png','1','',''),(92,50,1,'Tension13','bridal_jewelry_2.png','1','',''),(93,51,1,'Tension14','jewelry_add_screen.png','1','','');

--
-- Table structure for table `bstock_pl_multiplevideoupload`
--

CREATE TABLE `bstock_pl_multiplevideoupload` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This field will be the auto increment field and the primary field.',
  `product_id` int(25) NOT NULL COMMENT 'This will store the product id to which the photo is related. field name is: parent_id',
  `module_id` int(5) NOT NULL COMMENT 'This will have the moduel id to which the photo belongs to . field name is photo_parent_id',
  `title` varchar(255) NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `file_type` varchar(50) NOT NULL COMMENT 'this is created to hacdle file type as it is needed while displaying',
  `is_default` enum('1','0') NOT NULL DEFAULT '1',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_multiplevideoupload`
--

INSERT INTO `bstock_pl_multiplevideoupload` VALUES (47,3,1,'testing one more time','Ring_1_1_F6_2Mb_002_2_Pass VBR.flv','video/x-flv','1','','');

--
-- Table structure for table `bstock_pl_offers`
--

CREATE TABLE `bstock_pl_offers` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(25) NOT NULL,
  `customer_id` int(25) NOT NULL,
  `price` int(50) NOT NULL,
  `percentage_back` varchar(50) NOT NULL DEFAULT '0',
  `comments` varchar(255) NOT NULL,
  `valid_till` int(10) NOT NULL,
  `status` enum('Pending','Revise It','Accepted') NOT NULL DEFAULT 'Pending',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_offers`
--

INSERT INTO `bstock_pl_offers` VALUES (1,4,12,3000,'','Offer accepted.',0,'Accepted','1269634301','1274699151'),(2,36,12,1000,'','sorry, rejecting this one.',0,'','1269634301','1274699320'),(3,50,12,3999,'','Your Comments here',0,'Pending','1269634301','1269634301'),(11,4,87,0,'','',0,'Revise It','1310190626','1313230618'),(10,1,87,22,'','Your Comments here',0,'Pending','1310190626','1310190626'),(9,1,3,0,'20','',1311228417,'Accepted','1310121778','1313229095'),(12,4,3,17,'','cannot',0,'','1310193188','1310205473'),(13,4,3,0,'16','test',1311252652,'Accepted','1310206340','1310362523'),(14,5,3,0,'13','rejected dude.',1311600848,'','1311255248','1311255521'),(15,4,3,0,'18','acccepted...',1311687248,'Accepted','1311255248','1311255651'),(16,8,3,0,'14','',1312032135,'Revise It','1311859335','1313230604'),(17,9,3,0,'13','',1311945735,'Revise It','1311859335','1313229135'),(18,1,10,0,'21','',1312008075,'Revise It','1311921675','1313229158'),(19,13,10,0,'15','',1312539236,'Revise It','1312366436','1313229188'),(20,15,10,0,'18','',1313392850,'Revise It','1312366436','1313229168'),(21,13,10,0,'15','',0,'Revise It','1313219984','1313229178'),(22,2,10,0,'10','',1314182405,'Pending','1314009605','1314009605'),(23,16,10,0,'3','',1314701051,'Pending','1314009851','1314009851'),(24,15,10,0,'+10','',0,'Pending','1314009963','1314010458'),(25,14,10,0,'20','',0,'Pending','1314010274','1314010274'),(26,25,10,0,'10','test',1314250463,'Pending','1314164063','1314164063'),(27,30,10,0,'11','',1314172292,'Pending','1314166834','1314172292'),(28,14,8,0,'13','test',1321344997,'Pending','1320999397','1320999397');

--
-- Table structure for table `bstock_pl_parcel`
--

CREATE TABLE `bstock_pl_parcel` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parcel_name` varchar(500) NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `price_per_carat` decimal(10,0) NOT NULL,
  `total_price` decimal(10,0) NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T',' U','V') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `shape` enum('ROUND','PRINCESS','PAN','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI') NOT NULL,
  `stoneid` varchar(50) NOT NULL,
  `typeofstone` enum('Single','Loose') NOT NULL DEFAULT 'Single',
  `barcode_number` varchar(20) NOT NULL,
  `transaction_date` varchar(50) NOT NULL,
  `created_date` varchar(500) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `verified` enum('0','1','2') NOT NULL,
  `status` enum('In Stock','Sold','Jhangad Placed','Jhangad Issued','Jhangad Issued Partial','Jhangad Couriered Full','Jhangad Couriered Partial','Jhangad Partially Returned','Jhangad Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full') NOT NULL,
  `last_verified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores parcel information';

--
-- Dumping data for table `bstock_pl_parcel`
--


--
-- Table structure for table `bstock_pl_parcelitems`
--

CREATE TABLE `bstock_pl_parcelitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `parcel_id` int(10) NOT NULL,
  `product_id` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores products contained in parcel.';

--
-- Dumping data for table `bstock_pl_parcelitems`
--


--
-- Table structure for table `bstock_pl_poadjustment`
--

CREATE TABLE `bstock_pl_poadjustment` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(10) NOT NULL,
  `name` varchar(200) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `percentage` int(5) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poadjustment`
--


--
-- Table structure for table `bstock_pl_pobilladd`
--

CREATE TABLE `bstock_pl_pobilladd` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(11) NOT NULL,
  `po_bill_firstname` varchar(255) NOT NULL,
  `po_bill_lastname` varchar(255) NOT NULL,
  `po_bill_city` varchar(255) NOT NULL,
  `po_bill_state` int(4) NOT NULL,
  `po_bill_contry` int(4) NOT NULL,
  `po_bill_address` varchar(255) NOT NULL,
  `po_bill_postcode` int(10) NOT NULL,
  `phone_number` varchar(255) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_pobilladd`
--

INSERT INTO `bstock_pl_pobilladd` VALUES (1,2,'baba','n','mumbai',3,840,'3, pradeep niwas (Billing)',400093,'8989898989',1263286811,1263286811);

--
-- Table structure for table `bstock_pl_pocommission`
--

CREATE TABLE `bstock_pl_pocommission` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(5) NOT NULL,
  `broker_id` int(5) NOT NULL,
  `vendor_id` int(5) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `percentage` decimal(10,2) NOT NULL,
  `amount` date NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_pocommission`
--


--
-- Table structure for table `bstock_pl_podiscount`
--

CREATE TABLE `bstock_pl_podiscount` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `percentage` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_podiscount`
--


--
-- Table structure for table `bstock_pl_poitems`
--

CREATE TABLE `bstock_pl_poitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(10) NOT NULL,
  `product_id` int(5) NOT NULL COMMENT 'This will be the foriegn key. and will store the product id of the product ',
  `vendor_id` int(11) NOT NULL,
  `broker_id_1` int(10) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `broker_id_2` int(10) NOT NULL,
  `brokerage_2` decimal(10,2) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `listprice` int(11) NOT NULL,
  `discount_percent` float(10,2) NOT NULL,
  `discount_amount` float(10,2) NOT NULL,
  `comment` varchar(255) NOT NULL,
  `tax1` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `exporter_id` int(11) NOT NULL,
  `partner_id` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poitems`
--

INSERT INTO `bstock_pl_poitems` VALUES (1,1,1,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1309370486,1309370486,0,1),(2,1,2,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1309370486,1309370486,0,1),(3,2,3,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1309679058,1309679058,0,1);

--
-- Table structure for table `bstock_pl_ponotificationhistory`
--

CREATE TABLE `bstock_pl_ponotificationhistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `po_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `email_address` varchar(250) NOT NULL COMMENT 'This is kept incase the user wants  to send the notification to another  email address specified by the  customer which is different then the  email address on account.',
  `comments` text NOT NULL COMMENT 'Comments entered by the user for this notification.',
  `sent_date` varchar(50) NOT NULL COMMENT 'This will store the date when the notification was sent.',
  `user_id` int(10) NOT NULL COMMENT 'This is the foreign key of the users table & is mapped to it''s primary key. User who sent the notification is stored.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

--
-- Dumping data for table `bstock_pl_ponotificationhistory`
--

INSERT INTO `bstock_pl_ponotificationhistory` VALUES (1,1,'','','1309370486',1),(2,2,'','','1309679058',1);

--
-- Table structure for table `bstock_pl_poshipadd`
--

CREATE TABLE `bstock_pl_poshipadd` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(11) NOT NULL,
  `po_ship_firstname` varchar(255) NOT NULL,
  `po_ship_lastname` varchar(255) NOT NULL,
  `po_ship_city` varchar(255) NOT NULL,
  `po_ship_state` int(4) NOT NULL,
  `po_ship_contry` int(4) NOT NULL,
  `po_ship_address` varchar(255) NOT NULL,
  `po_ship_postcode` int(10) NOT NULL,
  `phone_number` varchar(255) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poshipadd`
--


--
-- Table structure for table `bstock_pl_postatushistory`
--

CREATE TABLE `bstock_pl_postatushistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `po_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the orders table & mapped to it''s primary key.',
  `status_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the order status table & mapped to it''s primary key. Here we will store the new status id which was there after being updated.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the timestamp of the date when the order status was changed.',
  `user_id` int(10) DEFAULT '0' COMMENT 'This is the foreign key of the user who changed the status & is mapped to it''s primary key.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=178 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

--
-- Dumping data for table `bstock_pl_postatushistory`
--

INSERT INTO `bstock_pl_postatushistory` VALUES (1,1,0,'1298972823','1298972823',1),(2,2,0,'1300533123','1300533123',1),(3,3,0,'1300954800','1300954800',1),(4,4,0,'1300965143','1300965143',1),(5,4,0,'1300965420','1300965420',1),(6,5,0,'1302848561','1302848561',1),(7,6,0,'1303279524','1303279524',1),(8,6,0,'1303557303','1303557303',1),(9,6,0,'1303557350','1303557350',1),(10,6,0,'1303557571','1303557571',1),(11,6,0,'1303558282','1303558282',1),(12,6,0,'1303799226','1303799226',1),(13,7,0,'1303995044','1303995044',1),(14,7,0,'1303995089','1303995089',1),(15,8,0,'1303995883','1303995883',1),(16,8,0,'1303995919','1303995919',1),(17,8,0,'1304420846','1304420846',1),(18,9,0,'1304421065','1304421065',1),(19,10,0,'1304423964','1304423964',1),(20,11,0,'1304424002','1304424002',1),(21,12,0,'1304424145','1304424145',1),(22,13,0,'1304424225','1304424225',1),(23,14,0,'1304424374','1304424374',1),(24,15,0,'1304944491','1304944491',1),(25,16,0,'1304944656','1304944656',1),(26,17,0,'1304944764','1304944764',1),(27,18,0,'1304945022','1304945022',1),(28,19,0,'1304945573','1304945573',1),(29,20,0,'1304945662','1304945662',1),(30,21,0,'1304948171','1304948171',1),(31,22,0,'1304948203','1304948203',1),(32,22,0,'1304948225','1304948225',1),(33,23,0,'1304948313','1304948313',1),(34,24,0,'1304948564','1304948564',1),(35,25,0,'1304948597','1304948597',1),(36,25,0,'1304950387','1304950387',1),(37,25,0,'1304950486','1304950486',1),(38,26,0,'1305094257','1305094257',1),(39,27,0,'1305145939','1305145939',1),(40,27,0,'1305146120','1305146120',1),(41,28,0,'1305183504','1305183504',1),(42,29,0,'1305183796','1305183796',1),(43,30,0,'1305184181','1305184181',1),(44,31,0,'1305226325','1305226325',1),(45,32,0,'1305226372','1305226372',1),(46,33,0,'1305230214','1305230214',1),(47,34,0,'1305230609','1305230609',1),(48,35,0,'1305231940','1305231940',1),(49,36,0,'1305232067','1305232067',1),(50,37,0,'1305232236','1305232236',1),(51,38,0,'1305233898','1305233898',1),(52,38,0,'1305233922','1305233922',1),(53,39,0,'1305270511','1305270511',1),(54,40,0,'1305271640','1305271640',1),(55,41,0,'1305271723','1305271723',1),(56,42,0,'1305272523','1305272523',1),(57,43,0,'1305281970','1305281970',1),(58,44,0,'1305282034','1305282034',1),(59,45,0,'1305714079','1305714079',1),(60,46,0,'1305717882','1305717882',1),(61,47,0,'1305718405','1305718405',1),(62,46,0,'1305723419','1305723419',1),(63,47,0,'1305723613','1305723613',1),(64,47,0,'1305723840','1305723840',1),(65,47,0,'1305723858','1305723858',1),(66,48,0,'1305829922','1305829922',1),(67,48,0,'1305830372','1305830372',1),(68,49,0,'1305834343','1305834343',1),(69,49,0,'1305835938','1305835938',1),(70,50,0,'1305837618','1305837618',1),(71,51,0,'1305872010','1305872010',1),(72,52,0,'1305876030','1305876030',1),(73,1,0,'1305891564','1305891564',1),(74,2,0,'1305891669','1305891669',1),(75,2,0,'1305891752','1305891752',1),(76,3,0,'1305895857','1305895857',1),(77,4,0,'1305956280','1305956280',1),(78,4,0,'1305956311','1305956311',1),(79,4,0,'1305956321','1305956321',1),(80,4,0,'1305956339','1305956339',1),(81,5,0,'1305960834','1305960834',1),(82,5,0,'1305961079','1305961079',1),(83,6,0,'1306138261','1306138261',1),(84,7,0,'1306216037','1306216037',1),(85,6,0,'1306228959','1306228959',1),(86,6,0,'1306230339','1306230339',1),(87,6,0,'1306231058','1306231058',1),(88,6,0,'1306231148','1306231148',1),(89,6,0,'1306231550','1306231550',1),(90,8,0,'1306232111','1306232111',1),(91,8,0,'1306232135','1306232135',1),(92,8,0,'1306232184','1306232184',1),(93,8,0,'1306232385','1306232385',1),(94,8,0,'1306232545','1306232545',1),(95,8,0,'1306232602','1306232602',1),(96,9,0,'1306262855','1306262855',1),(97,9,0,'1306263907','1306263907',1),(98,9,0,'1306264862','1306264862',1),(99,9,0,'1306265304','1306265304',1),(100,9,0,'1306265918','1306265918',1),(101,9,0,'1306265975','1306265975',1),(102,9,0,'1306266464','1306266464',1),(103,9,0,'1306266648','1306266648',1),(104,9,0,'1306267413','1306267413',1),(105,9,0,'1306267520','1306267520',1),(106,9,0,'1306268397','1306268397',1),(107,9,0,'1306268515','1306268515',1),(108,9,0,'1306268539','1306268539',1),(109,9,0,'1306268857','1306268857',1),(110,10,0,'1306303093','1306303093',1),(111,11,0,'1306304943','1306304943',1),(112,11,0,'1306305270','1306305270',1),(113,11,0,'1306306714','1306306714',1),(114,12,0,'1306307117','1306307117',1),(115,12,0,'1306307686','1306307686',1),(116,12,0,'1306307777','1306307777',1),(117,13,0,'1306314095','1306314095',1),(118,14,0,'1306314654','1306314654',1),(119,15,0,'1306316665','1306316665',1),(120,16,0,'1306317930','1306317930',1),(121,17,0,'1306318118','1306318118',1),(122,17,0,'1306318163','1306318163',1),(123,18,0,'1306350923','1306350923',1),(124,18,0,'1306351406','1306351406',1),(125,18,0,'1306351441','1306351441',1),(126,19,0,'1306351512','1306351512',1),(127,19,0,'1306392640','1306392640',1),(128,19,0,'1306392914','1306392914',1),(129,20,0,'1306397152','1306397152',1),(130,18,0,'1306403548','1306403548',1),(131,18,0,'1306405640','1306405640',1),(132,21,0,'1306405877','1306405877',1),(133,21,0,'1306407857','1306407857',1),(134,22,0,'1306413125','1306413125',1),(135,23,0,'1306414429','1306414429',1),(136,1,0,'1306416707','1306416707',1),(137,2,0,'1306418496','1306418496',1),(138,3,0,'1306419980','1306419980',1),(139,1,0,'1306433832','1306433832',1),(140,2,0,'1306469219','1306469219',1),(141,3,0,'1306472289','1306472289',1),(142,4,0,'1306484271','1306484271',1),(143,5,0,'1306486508','1306486508',1),(144,4,0,'1306486709','1306486709',1),(145,6,0,'1306495588','1306495588',1),(146,7,0,'1306575431','1306575431',1),(147,8,0,'1306659951','1306659951',1),(148,9,0,'1306670458','1306670458',1),(149,10,0,'1306671269','1306671269',1),(150,11,0,'1306672790','1306672790',1),(151,12,0,'1306673011','1306673011',1),(152,13,0,'1306673385','1306673385',1),(153,14,0,'1306675372','1306675372',1),(154,14,0,'1306675420','1306675420',1),(155,15,0,'1306675763','1306675763',1),(156,16,0,'1306676213','1306676213',1),(157,17,0,'1306689342','1306689342',1),(158,6,0,'1306690052','1306690052',1),(159,17,0,'1306691286','1306691286',1),(160,18,0,'1306695023','1306695023',1),(161,19,0,'1306733838','1306733838',1),(162,20,0,'1306903800','1306903800',1),(163,20,0,'1307366400','1307366400',1),(164,20,0,'1307366432','1307366432',1),(165,17,0,'1307367044','1307367044',1),(166,17,0,'1307367078','1307367078',1),(167,21,0,'1307383721','1307383721',1),(168,1,0,'1307702563','1307702563',1),(169,2,0,'1308747424','1308747424',1),(170,3,0,'1308747638','1308747638',1),(171,4,0,'1308747648','1308747648',1),(172,5,0,'1308747658','1308747658',1),(173,6,0,'1308748430','1308748430',1),(174,7,0,'1308761616','1308761616',1),(175,8,0,'1309357663','1309357663',1),(176,1,0,'1309370486','1309370486',1),(177,2,0,'1309679058','1309679058',1);

--
-- Table structure for table `bstock_pl_postatustypes`
--

CREATE TABLE `bstock_pl_postatustypes` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `is_active` enum('1','0') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_postatustypes`
--

INSERT INTO `bstock_pl_postatustypes` VALUES (1,'Pending','','0',0,0),(2,'Delivered','','0',0,0),(3,'Paid','Paid','1',1267005563,1267005563),(4,'Unpaid','Order Unpaid','1',0,0),(5,'Partially Paid','Order Partially Paid','1',0,0);

--
-- Table structure for table `bstock_pl_productview_stat`
--

CREATE TABLE `bstock_pl_productview_stat` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) NOT NULL COMMENT 'This is the customer id.',
  `product_id` int(10) NOT NULL COMMENT 'This is the product id viewed by the customer.',
  `ip_address` varchar(50) NOT NULL COMMENT 'This is the IP Address of the customer.',
  `viewed_time` varchar(50) NOT NULL COMMENT 'This will contain the timestamp when the product was viewed.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table is used to store the product view stats of the cu';

--
-- Dumping data for table `bstock_pl_productview_stat`
--


--
-- Table structure for table `bstock_pl_purchaseorder`
--

CREATE TABLE `bstock_pl_purchaseorder` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number` varchar(500) NOT NULL,
  `contact_person` varchar(255) NOT NULL,
  `carrier_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from carrier_id table',
  `assigned_to_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from bstock_systemusers table',
  `vendor_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from bstock_vendors table',
  `broker_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from bstock_brokers table',
  `broker_id_1` int(11) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `tracking_no` varchar(255) NOT NULL COMMENT 'Foriegn key - primary from bstock_postatus table',
  `postatus_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from payment_terms_id table',
  `payment_terms_id` int(10) NOT NULL,
  `payment_mode` enum('Credit Card','Paypal','Cash','Cheque','Bank Transfer') NOT NULL COMMENT 'Whether payment is in Cash or Angadia mode.',
  `dollar_rate` decimal(10,2) NOT NULL,
  `type_of_tax` enum('individual','group') NOT NULL,
  `subtotal` decimal(10,2) NOT NULL,
  `packaging` int(11) NOT NULL,
  `octroi` int(11) NOT NULL,
  `exciseduty` int(11) NOT NULL,
  `brokerage` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `subtotal_usd` decimal(10,2) NOT NULL,
  `net_total_usd` decimal(10,2) NOT NULL,
  `adjustment` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order.',
  `terms_condition` varchar(255) NOT NULL,
  `comments_po` varchar(1000) NOT NULL,
  `transaction_type_id` int(10) NOT NULL DEFAULT '1',
  `is_active` enum('on','off') NOT NULL,
  `transaction_date` int(11) NOT NULL COMMENT 'Date when the transaction took place.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `due_date` int(11) NOT NULL COMMENT 'Will store the due date of payment for this PO. Incase of COD, initially this field will contain blank.',
  `type` enum('po') NOT NULL,
  `angadia_id` int(10) NOT NULL COMMENT 'ID of the Angadia company.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_purchaseorder`
--

INSERT INTO `bstock_pl_purchaseorder` VALUES (1,'1','',0,0,1,0,0,0.00,'',5,6,'Cash',45.00,'individual',3843000.00,0,0,0,0.00,3843000.00,85400.00,85400.00,0.00,2843000.00,'terms and conditions comments','',3,'on',1309284086,1309370486,1309370486,1313172086,'po',1),(2,'2','',0,0,1,0,0,0.00,'',4,1,'Cash',45.00,'individual',2677500.00,0,0,0,0.00,2677500.00,59500.00,59500.00,0.00,2677500.00,'terms and conditions comments','',3,'on',1309679058,1309679058,1309679058,1309679058,'po',1);

--
-- Table structure for table `bstock_pl_reportadvfilters`
--

CREATE TABLE `bstock_pl_reportadvfilters` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `query_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_selectquery table. This may not be used.',
  `column_index` int(11) NOT NULL COMMENT 'Contains the serial number of filters (fields) selected for a particular report. Stores in format like 0,1,2,3 & so on.',
  `column_name` varchar(250) NOT NULL COMMENT 'Column name which is to be included in the filter.',
  `comparator` varchar(10) NOT NULL COMMENT 'Comparator i.e. equals (e), not equals (n), contains (c), etc.',
  `value` varchar(200) NOT NULL COMMENT 'Value to be matched that is entered by the user while creating the filter.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1095 DEFAULT CHARSET=latin1 COMMENT='This table contains all the filters except the date filter.';

--
-- Dumping data for table `bstock_pl_reportadvfilters`
--

INSERT INTO `bstock_pl_reportadvfilters` VALUES (1,1,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_Contact_Name:contact_person:V','c','a',0,0),(2,1,0,1,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_Subtotal:subtotal:V','g','200',0,0),(3,1,0,2,'bstock_pl_purchaseorder:type_of_tax:PurchaseOrder_Type_Of_Tax:type_of_tax:V','e','individual',0,0),(4,1,0,3,'bstock_pl_purchaseorder:packaging:PurchaseOrder_Packaging:packaging:V','e','',0,0),(16,7,0,1,'','','',1276586668,1276586668),(17,7,0,2,'','','',1276586668,1276586668),(18,7,0,3,'','','',1276586668,1276586668),(15,7,0,0,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','g','800',1276586668,1276586668),(19,7,0,4,'','','',1276586668,1276586668),(31,10,0,1,'','','',1276591968,1276591968),(32,10,0,2,'','','',1276591968,1276591968),(28,9,0,3,'','','',1276590740,1276590740),(29,9,0,4,'','','',1276590740,1276590740),(26,9,0,1,'','','',1276590740,1276590740),(27,9,0,2,'','','',1276590740,1276590740),(30,10,0,0,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I','e','1',1276591968,1276591968),(25,9,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V','c','a',1276590740,1276590740),(33,10,0,3,'','','',1276591968,1276591968),(34,10,0,4,'','','',1276591968,1276591968),(35,11,0,0,'','','',1276593750,1276593750),(36,11,0,1,'','','',1276593751,1276593751),(37,11,0,2,'','','',1276593752,1276593752),(38,11,0,3,'','','',1276593752,1276593752),(39,11,0,4,'','','',1276593752,1276593752),(40,12,0,0,'','','',1276598766,1276598766),(41,12,0,1,'','','',1276598767,1276598767),(42,12,0,2,'','','',1276598768,1276598768),(43,12,0,3,'','','',1276598768,1276598768),(44,12,0,4,'','','',1276598768,1276598768),(45,13,0,0,'','','',1276608024,1276608024),(46,13,0,1,'','','',1276608025,1276608025),(47,13,0,2,'','','',1276608025,1276608025),(48,13,0,3,'','','',1276608025,1276608025),(49,13,0,4,'','','',1276608025,1276608025),(50,14,0,0,'','','',1276608490,1276608490),(51,14,0,1,'','','',1276608490,1276608490),(52,14,0,2,'','','',1276608490,1276608490),(53,14,0,3,'','','',1276608490,1276608490),(54,14,0,4,'','','',1276608490,1276608490),(55,15,0,0,'','','',1276684109,1276684109),(56,15,0,1,'','','',1276684109,1276684109),(57,15,0,2,'','','',1276684109,1276684109),(58,15,0,3,'','','',1276684109,1276684109),(59,15,0,4,'','','',1276684109,1276684109),(60,16,0,0,'','','',1276687488,1276687488),(61,16,0,1,'','','',1276687488,1276687488),(62,16,0,2,'','','',1276687488,1276687488),(63,16,0,3,'','','',1276687488,1276687488),(64,16,0,4,'','','',1276687488,1276687488),(65,17,0,0,'','','',1276691935,1276691935),(66,17,0,1,'','','',1276691935,1276691935),(67,17,0,2,'','','',1276691935,1276691935),(68,17,0,3,'','','',1276691935,1276691935),(69,17,0,4,'','','',1276691935,1276691935),(70,18,0,0,'','','',1276692775,1276692775),(71,18,0,1,'','','',1276692775,1276692775),(72,18,0,2,'','','',1276692776,1276692776),(73,18,0,3,'','','',1276692776,1276692776),(74,18,0,4,'','','',1276692776,1276692776),(75,19,0,0,'','','',1276693256,1276693256),(76,19,0,1,'','','',1276693256,1276693256),(77,19,0,2,'','','',1276693256,1276693256),(78,19,0,3,'','','',1276693256,1276693256),(79,19,0,4,'','','',1276693256,1276693256),(80,20,0,0,'','','',1276693459,1276693459),(81,20,0,1,'','','',1276693459,1276693459),(82,20,0,2,'','','',1276693459,1276693459),(83,20,0,3,'','','',1276693459,1276693459),(84,20,0,4,'','','',1276693459,1276693459),(85,21,0,0,'','','',1276693750,1276693750),(86,21,0,1,'','','',1276693750,1276693750),(87,21,0,2,'','','',1276693750,1276693750),(88,21,0,3,'','','',1276693750,1276693750),(89,21,0,4,'','','',1276693750,1276693750),(302,24,0,2,'','','',1278674856,1278674856),(303,24,0,3,'','','',1278674856,1278674856),(105,25,0,0,'','','',1276767496,1276767496),(106,25,0,1,'','','',1276767496,1276767496),(107,25,0,2,'','','',1276767496,1276767496),(108,25,0,3,'','','',1276767496,1276767496),(109,25,0,4,'','','',1276767496,1276767496),(110,26,0,0,'','','',1276773451,1276773451),(111,26,0,1,'','','',1276773452,1276773452),(112,26,0,2,'','','',1276773454,1276773454),(113,26,0,3,'','','',1276773454,1276773454),(114,26,0,4,'','','',1276773454,1276773454),(115,27,0,0,'','','',1276775242,1276775242),(116,27,0,1,'','','',1276775242,1276775242),(117,27,0,2,'','','',1276775242,1276775242),(118,27,0,3,'','','',1276775242,1276775242),(119,27,0,4,'','','',1276775242,1276775242),(120,28,0,0,'','','',1276780009,1276780009),(121,28,0,1,'','','',1276780009,1276780009),(122,28,0,2,'','','',1276780009,1276780009),(123,28,0,3,'','','',1276780009,1276780009),(124,28,0,4,'','','',1276780009,1276780009),(239,29,0,4,'','','',1277299809,1277299809),(238,29,0,3,'','','',1277299809,1277299809),(237,29,0,2,'','','',1277299809,1277299809),(236,29,0,1,'','','',1277299809,1277299809),(235,29,0,0,'','','',1277299809,1277299809),(155,30,0,0,'','','',1277189889,1277189889),(156,30,0,1,'','','',1277189889,1277189889),(157,30,0,2,'','','',1277189889,1277189889),(158,30,0,3,'','','',1277189889,1277189889),(159,30,0,4,'','','',1277189889,1277189889),(160,31,0,0,'','','',1277199613,1277199613),(161,31,0,1,'','','',1277199614,1277199614),(162,31,0,2,'','','',1277199614,1277199614),(163,31,0,3,'','','',1277199614,1277199614),(164,31,0,4,'','','',1277199614,1277199614),(174,32,0,4,'','','',1277202389,1277202389),(173,32,0,3,'','','',1277202389,1277202389),(172,32,0,2,'','','',1277202389,1277202389),(171,32,0,1,'','','',1277202389,1277202389),(170,32,0,0,'','','',1277202389,1277202389),(209,33,0,4,'','','',1277292445,1277292445),(208,33,0,3,'','','',1277292445,1277292445),(207,33,0,2,'','','',1277292445,1277292445),(206,33,0,1,'','','',1277292445,1277292445),(205,33,0,0,'','','',1277292445,1277292445),(210,34,0,0,'','','',1277294934,1277294934),(211,34,0,1,'','','',1277294934,1277294934),(212,34,0,2,'','','',1277294934,1277294934),(213,34,0,3,'','','',1277294934,1277294934),(214,34,0,4,'','','',1277294934,1277294934),(215,35,0,0,'','','',1277295055,1277295055),(216,35,0,1,'','','',1277295055,1277295055),(217,35,0,2,'','','',1277295055,1277295055),(218,35,0,3,'','','',1277295055,1277295055),(219,35,0,4,'','','',1277295055,1277295055),(229,36,0,4,'','','',1277297631,1277297631),(228,36,0,3,'','','',1277297631,1277297631),(227,36,0,2,'','','',1277297631,1277297631),(226,36,0,1,'','','',1277297631,1277297631),(225,36,0,0,'','','',1277297631,1277297631),(230,37,0,0,'','','',1277297943,1277297943),(231,37,0,1,'','','',1277297943,1277297943),(232,37,0,2,'','','',1277297943,1277297943),(233,37,0,3,'','','',1277297943,1277297943),(234,37,0,4,'','','',1277297943,1277297943),(254,38,0,4,'','','',1277302290,1277302290),(253,38,0,3,'','','',1277302290,1277302290),(252,38,0,2,'','','',1277302290,1277302290),(251,38,0,1,'','','',1277302290,1277302290),(250,38,0,0,'','','',1277302290,1277302290),(255,39,0,0,'','','',1277373932,1277373932),(256,39,0,1,'','','',1277373932,1277373932),(257,39,0,2,'','','',1277373932,1277373932),(258,39,0,3,'','','',1277373932,1277373932),(259,39,0,4,'','','',1277373932,1277373932),(260,40,0,0,'','','',1277803475,1277803475),(261,40,0,1,'','','',1277803475,1277803475),(262,40,0,2,'','','',1277803475,1277803475),(263,40,0,3,'','','',1277803475,1277803475),(264,40,0,4,'','','',1277803475,1277803475),(304,24,0,4,'','','',1278674856,1278674856),(301,24,0,1,'','','',1278674856,1278674856),(300,24,0,0,'','','',1278674856,1278674856),(653,22,0,3,'','','',1285053610,1285053610),(652,22,0,2,'','','',1285053610,1285053610),(704,41,0,4,'','','',1285734994,1285734994),(703,41,0,3,'','','',1285734994,1285734994),(702,41,0,2,'','','',1285734994,1285734994),(701,41,0,1,'','','',1285734994,1285734994),(385,42,0,0,'','','',1280208747,1280208747),(386,42,0,1,'','','',1280208747,1280208747),(387,42,0,2,'','','',1280208747,1280208747),(388,42,0,3,'','','',1280208747,1280208747),(389,42,0,4,'','','',1280208747,1280208747),(399,43,0,4,'','','',1280210777,1280210777),(398,43,0,3,'','','',1280210777,1280210777),(397,43,0,2,'','','',1280210777,1280210777),(396,43,0,1,'','','',1280210777,1280210777),(395,43,0,0,'','','',1280210777,1280210777),(406,44,0,1,'','','',1280212568,1280212568),(405,44,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V','e','Vishal & Co.',1280212568,1280212568),(407,44,0,2,'','','',1280212568,1280212568),(408,44,0,3,'','','',1280212568,1280212568),(409,44,0,4,'','','',1280212568,1280212568),(410,45,0,0,'bstock_products:sellqty:PurchaseOrder_sellqty:sellqty:I','e','0',1280213104,1280213104),(411,45,0,1,'','','',1280213104,1280213104),(412,45,0,2,'','','',1280213104,1280213104),(413,45,0,3,'','','',1280213104,1280213104),(414,45,0,4,'','','',1280213104,1280213104),(634,46,0,4,'','','',1285048636,1285048636),(633,46,0,3,'','','',1285048636,1285048636),(632,46,0,2,'','','',1285048636,1285048636),(631,46,0,1,'','','',1285048636,1285048636),(630,46,0,0,'','','',1285048636,1285048636),(791,23,0,1,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306316963,1306316963),(790,23,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','e','Unpaid',1306316963,1306316963),(700,41,0,0,'','','',1285734994,1285734994),(484,47,0,4,'','','',1280293802,1280293802),(483,47,0,3,'','','',1280293802,1280293802),(482,47,0,2,'','','',1280293802,1280293802),(481,47,0,1,'','','',1280293802,1280293802),(480,47,0,0,'','','',1280293802,1280293802),(499,48,0,4,'','','',1281116408,1281116408),(498,48,0,3,'','','',1281116408,1281116408),(497,48,0,2,'','','',1281116408,1281116408),(496,48,0,1,'','','',1281116408,1281116408),(495,48,0,0,'','','',1281116408,1281116408),(651,22,0,1,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Delivered',1285053610,1285053610),(580,49,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','n','Paid',1283874192,1283874192),(603,50,0,3,'','','',1283892330,1283892330),(584,49,0,4,'','','',1283874192,1283874192),(582,49,0,2,'','','',1283874192,1283874192),(583,49,0,3,'','','',1283874192,1283874192),(581,49,0,1,'','','',1283874192,1283874192),(601,50,0,1,'','','',1283892330,1283892330),(602,50,0,2,'','','',1283892330,1283892330),(590,51,0,0,'','','',1283892221,1283892221),(591,51,0,1,'','','',1283892221,1283892221),(592,51,0,2,'','','',1283892221,1283892221),(593,51,0,3,'','','',1283892221,1283892221),(594,51,0,4,'','','',1283892221,1283892221),(600,50,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1283892330,1283892330),(604,50,0,4,'','','',1283892330,1283892330),(605,52,0,0,'','','',1283895447,1283895447),(606,52,0,1,'','','',1283895447,1283895447),(607,52,0,2,'','','',1283895447,1283895447),(608,52,0,3,'','','',1283895447,1283895447),(609,52,0,4,'','','',1283895447,1283895447),(621,53,0,1,'','','',1283898236,1283898236),(622,53,0,2,'','','',1283898236,1283898236),(620,53,0,0,'bstock_jwl_labour_info:status:KarigarReports_status:status:V','n','Paid',1283898236,1283898236),(623,53,0,3,'','','',1283898236,1283898236),(624,53,0,4,'','','',1283898236,1283898236),(724,54,0,4,'','','',1294057547,1294057547),(723,54,0,3,'','','',1294057547,1294057547),(722,54,0,2,'','','',1294057547,1294057547),(721,54,0,1,'','','',1294057547,1294057547),(720,54,0,0,'','','',1294057547,1294057547),(650,22,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1285053610,1285053610),(654,22,0,4,'','','',1285053610,1285053610),(719,55,0,4,'','','',1294044165,1294044165),(718,55,0,3,'','','',1294044165,1294044165),(717,55,0,2,'','','',1294044165,1294044165),(716,55,0,1,'','','',1294044165,1294044165),(715,55,0,0,'','','',1294044165,1294044165),(694,56,0,4,'','','',1285678547,1285678547),(693,56,0,3,'','','',1285678547,1285678547),(692,56,0,2,'','','',1285678547,1285678547),(690,56,0,0,'','','',1285678547,1285678547),(691,56,0,1,'','','',1285678547,1285678547),(1089,61,0,4,'','','',1307368160,1307368160),(969,57,0,4,'','','',1306404640,1306404640),(968,57,0,3,'','','',1306404640,1306404640),(1093,58,0,3,'','','',1313818924,1313818924),(1092,58,0,2,'','','',1313818924,1313818924),(1061,59,0,1,'','','',1306746624,1306746624),(1062,59,0,2,'','','',1306746624,1306746624),(735,60,0,0,'bstock_pl_dailycashentries:payment_mode:AngadiaReports_payment_mode:payment_mode:V','e','Angadia',1305726771,1305726771),(736,60,0,1,'','','',1305726771,1305726771),(737,60,0,2,'','','',1305726771,1305726771),(738,60,0,3,'','','',1305726771,1305726771),(739,60,0,4,'','','',1305726771,1305726771),(1086,61,0,1,'','','',1307368160,1307368160),(1087,61,0,2,'','','',1307368160,1307368160),(1091,58,0,1,'','','',1313818924,1313818924),(1054,62,0,4,'','','',1306473428,1306473428),(1053,62,0,3,'','','',1306473428,1306473428),(1052,62,0,2,'','','',1306473428,1306473428),(1051,62,0,1,'','','',1306473428,1306473428),(1050,62,0,0,'','','',1306473428,1306473428),(1088,61,0,3,'','','',1307368160,1307368160),(967,57,0,2,'','','',1306404640,1306404640),(1063,59,0,3,'','','',1306746624,1306746624),(1064,59,0,4,'','','',1306746624,1306746624),(792,23,0,2,'','','',1306316963,1306316963),(793,23,0,3,'','','',1306316963,1306316963),(794,23,0,4,'','','',1306316963,1306316963),(964,63,0,4,'','','',1306404365,1306404365),(1090,58,0,0,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1313818924,1313818924),(963,63,0,3,'','','',1306404365,1306404365),(960,63,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1306404365,1306404365),(1049,64,0,4,'','','',1306471158,1306471158),(966,57,0,1,'bstock_pl_purchaseorder:is_active:PurchaseOrder_is_active:is_active:V','e','on',1306404640,1306404640),(965,57,0,0,'','','',1306404640,1306404640),(1085,61,0,0,'bstock_orders:broker_id:SalesOrder_broker_id:broker_id:I','n','0',1307368160,1307368160),(1048,64,0,3,'','','',1306471158,1306471158),(1047,64,0,2,'','','',1306471158,1306471158),(1046,64,0,1,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306471158,1306471158),(1055,65,0,0,'bstock_pl_jhgstatustypes:status:Approval_status:status:V','n','Approval Returned Full',1306746599,1306746599),(1056,65,0,1,'bstock_pl_jhangad:is_active:Approval_is_active:is_active:V','e','on',1306746599,1306746599),(1057,65,0,2,'','','',1306746599,1306746599),(1058,65,0,3,'','','',1306746599,1306746599),(1059,65,0,4,'','','',1306746599,1306746599),(1060,59,0,0,'bstock_pl_jhangad:is_active:Approval_is_active:is_active:V','e','on',1306746624,1306746624),(1045,64,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','n','Paid',1306471158,1306471158),(962,63,0,2,'','','',1306404365,1306404365),(961,63,0,1,'bstock_pl_purchaseorder:is_active:PurchaseOrder_is_active:is_active:V','e','on',1306404365,1306404365),(1094,58,0,4,'','','',1313818924,1313818924);

--
-- Table structure for table `bstock_pl_reportcolumns`
--

CREATE TABLE `bstock_pl_reportcolumns` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `query_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_selectquery table. This may not be used.',
  `column_index` int(11) NOT NULL COMMENT 'Contains the serial number of fields for a particular report. Stores in format like 0,1,2,3 & so on.',
  `column_name` varchar(250) NOT NULL COMMENT 'Column name which is to be included in the report.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1807 DEFAULT CHARSET=latin1 COMMENT='Contains the columns that are to be displayed in the output ';

--
-- Dumping data for table `bstock_pl_reportcolumns`
--

INSERT INTO `bstock_pl_reportcolumns` VALUES (1,1,0,0,'bstock_pl_purchaseorder:tracking_no:PurchaseOrder_Tracking_No:tracking_no:V',0,0),(2,1,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_Contact_Person:contact_person:V',0,0),(3,1,0,3,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_Subtotal:subtotal:V',0,0),(8,1,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_Net_Total:net_total:V',0,0),(9,1,0,2,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_Brokerage:brokerage:V',0,0),(28,7,0,6,'bstock_vendors:vendor_name:PurchaseOrder_Vendor_Name:vendor_name:V',0,0),(26,7,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276586667,1276586667),(27,7,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276586667,1276586667),(25,7,0,3,'bstock_pl_purchaseorder:exciseduty:PurchaseOrder_exciseduty:exciseduty:I',1276586667,1276586667),(24,7,0,2,'bstock_pl_purchaseorder:octroi:PurchaseOrder_octroi:octroi:I',1276586667,1276586667),(23,7,0,1,'bstock_pl_purchaseorder:packaging:PurchaseOrder_packaging:packaging:I',1276586667,1276586667),(22,7,0,0,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276586667,1276586667),(35,9,0,2,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276590739,1276590739),(34,9,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276590739,1276590739),(33,9,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276590739,1276590739),(36,9,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276590739,1276590739),(37,9,0,4,'bstock_pl_purchaseorder:broker_id:PurchaseOrder_broker_id:broker_id:I',1276590739,1276590739),(38,10,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276591966,1276591966),(39,10,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276591967,1276591967),(40,10,0,2,'bstock_pl_purchaseorder:carrier_id:PurchaseOrder_carrier_id:carrier_id:I',1276591967,1276591967),(41,10,0,3,'bstock_pl_purchaseorder:assigned_to_id:PurchaseOrder_assigned_to_id:assigned_to_id:I',1276591967,1276591967),(42,10,0,4,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1276591967,1276591967),(43,10,0,5,'bstock_pl_purchaseorder:broker_id:PurchaseOrder_broker_id:broker_id:I',1276591967,1276591967),(44,10,0,6,'bstock_pl_purchaseorder:tracking_no:PurchaseOrder_tracking_no:tracking_no:V',1276591967,1276591967),(45,10,0,7,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I',1276591967,1276591967),(46,10,0,8,'bstock_pl_purchaseorder:payment_terms_id:PurchaseOrder_payment_terms_id:payment_terms_id:I',1276591967,1276591967),(47,10,0,9,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1276591967,1276591967),(48,10,0,10,'bstock_pl_purchaseorder:type_of_tax:PurchaseOrder_type_of_tax:type_of_tax:V',1276591967,1276591967),(49,10,0,11,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276591967,1276591967),(50,10,0,12,'bstock_pl_purchaseorder:packaging:PurchaseOrder_packaging:packaging:I',1276591967,1276591967),(51,10,0,13,'bstock_pl_purchaseorder:octroi:PurchaseOrder_octroi:octroi:I',1276591967,1276591967),(52,10,0,14,'bstock_pl_purchaseorder:exciseduty:PurchaseOrder_exciseduty:exciseduty:I',1276591967,1276591967),(53,10,0,15,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276591967,1276591967),(54,10,0,16,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276591967,1276591967),(55,11,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1276593721,1276593721),(56,11,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276593724,1276593724),(57,11,0,2,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276593726,1276593726),(58,11,0,3,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276593726,1276593726),(59,11,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276593726,1276593726),(60,11,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276593726,1276593726),(61,12,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276598759,1276598759),(62,12,0,1,'bstock_pl_postatustypes:name:PurchaseOrder_name:name:V',1276598761,1276598761),(63,12,0,2,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276598761,1276598761),(64,12,0,3,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276598761,1276598761),(65,12,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276598761,1276598761),(66,13,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276608007,1276608007),(67,13,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276608009,1276608009),(68,13,0,2,'bstock_vendors:vendor_name:Vendors_vendor_name:vendor_name:V',1276608011,1276608011),(69,13,0,3,'bstock_pl_postatustypes:name:PurchaseOrder_name:name:V',1276608011,1276608011),(70,13,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276608014,1276608014),(71,13,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276608014,1276608014),(72,14,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276608489,1276608489),(73,14,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276608489,1276608489),(74,14,0,2,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1276608489,1276608489),(75,14,0,3,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276608489,1276608489),(76,14,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276608489,1276608489),(77,14,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276608489,1276608489),(78,15,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276684106,1276684106),(79,15,0,1,'bstock_pl_pobilladd:po_bill_firstname:PurchaseOrder_po_bill_firstname:po_bill_firstname:V',1276684108,1276684108),(80,15,0,2,'bstock_pl_pobilladd:po_bill_lastname:PurchaseOrder_po_bill_lastname:po_bill_lastname:V',1276684108,1276684108),(81,15,0,3,'bstock_pl_pobilladd:po_bill_city:PurchaseOrder_po_bill_city:po_bill_city:V',1276684108,1276684108),(82,15,0,4,'bstock_pl_pobilladd:po_bill_state:PurchaseOrder_po_bill_state:po_bill_state:I',1276684108,1276684108),(83,15,0,5,'bstock_pl_pobilladd:po_bill_contry:PurchaseOrder_po_bill_contry:po_bill_contry:I',1276684108,1276684108),(84,15,0,6,'bstock_pl_pobilladd:po_bill_address:PurchaseOrder_po_bill_address:po_bill_address:V',1276684108,1276684108),(85,15,0,7,'bstock_pl_pobilladd:po_bill_postcode:PurchaseOrder_po_bill_postcode:po_bill_postcode:I',1276684108,1276684108),(86,15,0,8,'bstock_pl_pobilladd:phone_number:PurchaseOrder_phone_number:phone_number:V',1276684108,1276684108),(87,15,0,9,'bstock_pl_poshipadd:po_ship_firstname:PurchaseOrder_po_ship_firstname:po_ship_firstname:V',1276684108,1276684108),(88,15,0,10,'bstock_pl_poshipadd:po_ship_lastname:PurchaseOrder_po_ship_lastname:po_ship_lastname:V',1276684108,1276684108),(89,15,0,11,'bstock_pl_poshipadd:po_ship_city:PurchaseOrder_po_ship_city:po_ship_city:V',1276684108,1276684108),(90,15,0,12,'bstock_pl_poshipadd:po_ship_state:PurchaseOrder_po_ship_state:po_ship_state:I',1276684108,1276684108),(91,15,0,13,'bstock_pl_poshipadd:po_ship_contry:PurchaseOrder_po_ship_contry:po_ship_contry:I',1276684108,1276684108),(92,15,0,14,'bstock_pl_poshipadd:po_ship_address:PurchaseOrder_po_ship_address:po_ship_address:V',1276684108,1276684108),(93,15,0,15,'bstock_pl_poshipadd:po_ship_postcode:PurchaseOrder_po_ship_postcode:po_ship_postcode:I',1276684108,1276684108),(94,15,0,16,'bstock_pl_poshipadd:phone_number:PurchaseOrder_phone_number:phone_number:V',1276684108,1276684108),(95,16,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276687488,1276687488),(96,16,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276687488,1276687488),(97,16,0,2,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1276687488,1276687488),(98,16,0,3,'bstock_orders:brokerage:SalesOrder_brokerage:brokerage:I',1276687488,1276687488),(99,16,0,4,'bstock_orders:subtotal:SalesOrder_subtotal:subtotal:V',1276687488,1276687488),(100,16,0,5,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276687488,1276687488),(101,16,0,6,'bstock_orderstatustypes:name:SalesOrder_Status:name:V',0,0),(102,17,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276691933,1276691933),(103,17,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276691933,1276691933),(104,17,0,2,'bstock_orders:subtotal:SalesOrder_subtotal:subtotal:V',1276691933,1276691933),(105,17,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276691933,1276691933),(106,17,0,4,'bstock_orderstatustypes:name:SalesOrder_name:name:V',1276691933,1276691933),(115,18,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276692763,1276692763),(116,18,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276692763,1276692763),(117,18,0,2,'bstock_customers:username:Customers_username:username:V',1276692763,1276692763),(118,18,0,3,'bstock_customers:customer_password:Customers_customer_password:customer_password:V',1276692768,1276692768),(119,18,0,4,'bstock_customers:email:Customers_email:email:V',1276692768,1276692768),(120,18,0,5,'bstock_customers:first_name:Customers_first_name:first_name:V',1276692768,1276692768),(121,18,0,6,'bstock_customers:last_name:Customers_last_name:last_name:V',1276692768,1276692768),(122,18,0,7,'bstock_customers:company_name:Customers_company_name:company_name:V',1276692768,1276692768),(123,18,0,8,'bstock_customers:mobile_number:Customers_mobile_number:mobile_number:V',1276692768,1276692768),(124,19,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693256,1276693256),(125,19,0,1,'bstock_orderpaymentstaxes:tax_amount:SalesOrder_tax_amount:tax_amount:V',1276693256,1276693256),(126,19,0,2,'bstock_orderpaymentstaxes:tax_id:SalesOrder_tax_id:tax_id:I',1276693256,1276693256),(127,20,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693459,1276693459),(128,20,0,1,'bstock_taxtypes:name:SalesOrder_name:name:V',1276693459,1276693459),(129,20,0,2,'bstock_orderpaymentstaxes:tax_amount:SalesOrder_tax_amount:tax_amount:V',1276693459,1276693459),(130,21,0,0,'bstock_orders:id:SalesOrder_id:id:I',1276693749,1276693749),(131,21,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693749,1276693749),(132,21,0,2,'bstock_orderitems:product_id:SalesOrder_product_id:product_id:I',1276693749,1276693749),(133,21,0,3,'bstock_orderitems:quantity:SalesOrder_quantity:quantity:I',1276693749,1276693749),(134,21,0,4,'bstock_orderitems:price:SalesOrder_price:price:V',1276693749,1276693749),(1012,22,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1285053610,1285053610),(662,47,0,6,'bstock_pl_poitems:listprice:DetailedSalesReports_listprice:listprice:I',1280293802,1280293802),(1229,23,0,6,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306316963,1306316963),(1228,23,0,5,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306316963,1306316963),(1227,23,0,4,'bstock_customers:office_phone_number:Customers_office_phone_number:office_phone_number:V',1306316963,1306316963),(1226,23,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306316963,1306316963),(318,24,0,7,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1278674856,1278674856),(317,24,0,6,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1278674856,1278674856),(316,24,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1278674856,1278674856),(315,24,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1278674856,1278674856),(314,24,0,3,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1278674856,1278674856),(313,24,0,2,'bstock_vendors:last_name:Vendors_last_name:last_name:V',1278674856,1278674856),(311,24,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1278674856,1278674856),(158,25,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276767496,1276767496),(159,25,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276767496,1276767496),(160,25,0,2,'bstock_orders:customer_first_name:SalesOrder_customer_first_name:customer_first_name:V',1276767496,1276767496),(161,25,0,3,'bstock_orders:customer_last_name:SalesOrder_customer_last_name:customer_last_name:V',1276767496,1276767496),(162,25,0,4,'bstock_orders:brokerage:SalesOrder_brokerage:brokerage:I',1276767496,1276767496),(163,25,0,5,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276767496,1276767496),(164,25,0,6,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1276767496,1276767496),(165,25,0,7,'bstock_orderstatustypes:status:SalesOrder_name:status:V',1276767496,1276767496),(166,25,0,8,'bstock_customers:company_name:Customers_company_name:company_name:V',1276767496,1276767496),(167,26,0,0,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276773443,1276773443),(168,26,0,1,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276773443,1276773443),(169,26,0,2,'bstock_customers:company_name:CustomersOrderItems_company_name:company_name:V',1276773444,1276773444),(170,26,0,3,'bstock_customers:mobile_number:CustomersOrderItems_mobile_number:mobile_number:V',1276773445,1276773445),(171,26,0,4,'bstock_orderitems:price:CustomersOrderItems_price:price:V',1276773445,1276773445),(172,26,0,5,'bstock_orderitems:profit_amount:CustomersOrderItems_profit_amount:profit_amount:I',1276773445,1276773445),(173,26,0,6,'bstock_orderitems:profit_percent:CustomersOrderItems_profit_percent:profit_percent:I',1276773445,1276773445),(174,27,0,0,'bstock_orderitems:price:CustomersOrderItems_price:price:V',1276775241,1276775241),(175,27,0,1,'bstock_orderitems:profit_amount:CustomersOrderItems_profit_amount:profit_amount:I',1276775241,1276775241),(176,27,0,2,'bstock_orderitems:profit_percent:CustomersOrderItems_profit_percent:profit_percent:I',1276775241,1276775241),(177,27,0,3,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276775241,1276775241),(178,27,0,4,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276775241,1276775241),(179,27,0,5,'bstock_customers:mobile_number:CustomersOrderItems_mobile_number:mobile_number:V',1276775241,1276775241),(180,28,0,0,'bstock_customers:username:CustomersOrderItems_username:username:V',1276780008,1276780008),(181,28,0,1,'bstock_customers:customer_password:CustomersOrderItems_customer_password:customer_password:V',1276780008,1276780008),(182,28,0,2,'bstock_customers:email:CustomersOrderItems_email:email:V',1276780008,1276780008),(183,28,0,3,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276780008,1276780008),(184,28,0,4,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276780008,1276780008),(185,28,0,5,'bstock_customers:company_name:CustomersOrderItems_company_name:company_name:V',1276780008,1276780008),(186,28,0,6,'bstock_customers:office_phone_number:CustomersOrderItems_office_phone_number:office_phone_number:V',1276780008,1276780008),(204,30,0,0,'bstock_customers:email:BestCustomer_email:email:V',1277189888,1277189888),(205,30,0,1,'bstock_customers:first_name:BestCustomer_first_name:first_name:V',1277189888,1277189888),(246,29,0,2,'bstock_customers:last_name:BestCustomer_last_name:last_name:V',1277299808,1277299808),(245,29,0,1,'bstock_customers:first_name:BestCustomer_first_name:first_name:V',1277299808,1277299808),(244,29,0,0,'bstock_customers:email:BestCustomer_email:email:V',1277299808,1277299808),(206,30,0,2,'bstock_customers:last_name:BestCustomer_last_name:last_name:V',1277189888,1277189888),(207,30,0,3,'bstock_customers:company_name:BestCustomer_company_name:company_name:V',1277189888,1277189888),(208,31,0,0,'bstock_vendors:vendor_name:BestVendor_vendor_name:vendor_name:V',1277199611,1277199611),(209,31,0,1,'bstock_vendors:email:BestVendor_email:email:V',1277199612,1277199612),(213,32,0,1,'bstock_vendors:email:BestVendor_email:email:V',1277202389,1277202389),(212,32,0,0,'bstock_vendors:vendor_name:BestVendor_vendor_name:vendor_name:V',1277202388,1277202388),(235,34,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277294934,1277294934),(234,34,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277294934,1277294934),(233,33,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277292443,1277292443),(232,33,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277292443,1277292443),(236,35,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277295055,1277295055),(237,35,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277295055,1277295055),(241,36,0,1,'bstock_pl_poitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277297631,1277297631),(240,36,0,0,'bstock_pl_poitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277297630,1277297630),(242,37,0,0,'bstock_pl_poitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277297943,1277297943),(243,37,0,1,'bstock_pl_poitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277297943,1277297943),(247,29,0,3,'bstock_customers:company_name:BestCustomer_company_name:company_name:V',1277299808,1277299808),(254,39,0,0,'bstock_countries:name:SalesOrder_name:name:V',1277373930,1277373930),(255,40,0,0,'bstock_pl_purchaseorder:id:Ledger_id:id:I',1277803475,1277803475),(1225,23,0,2,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306316963,1306316963),(312,24,0,1,'bstock_vendors:first_name:Vendors_first_name:first_name:V',1278674856,1278674856),(1011,22,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1285053610,1285053610),(1010,22,0,3,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1285053610,1285053610),(1008,22,0,1,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1285053610,1285053610),(509,42,0,0,'trial_balance_entries:particulars:Accounting_particulars:particulars:V',1280208747,1280208747),(1082,41,0,13,'bstock_products:purchase_price_inr:Products_purchase_price_inr:purchase_price_inr:I',1285734994,1285734994),(1081,41,0,12,'bstock_products:piece_price_dollar:Products_piece_price_dollar:piece_price_dollar:I',1285734994,1285734994),(1080,41,0,11,'bstock_products:piece_price_inr:Products_piece_price_inr:piece_price_inr:I',1285734994,1285734994),(510,42,0,1,'trial_balance_entries:debit:Accounting_debit:debit:I',1280208747,1280208747),(511,42,0,2,'trial_balance_entries:credit:Accounting_credit:credit:I',1280208747,1280208747),(512,42,0,3,'trial_balance_entries:created_date:Accounting_created_date:created_date:I',1280208747,1280208747),(529,43,0,7,'bstock_orderitems:profit_percent:DetailedSalesReports_profit_percent:profit_percent:I',1280210777,1280210777),(528,43,0,6,'bstock_orderitems:profit_amount:DetailedSalesReports_profit_amount:profit_amount:I',1280210777,1280210777),(527,43,0,5,'bstock_orderitems:price:DetailedSalesReports_price:price:V',1280210777,1280210777),(526,43,0,4,'bstock_pl_poitems:listprice:DetailedSalesReports_listprice:listprice:I',1280210777,1280210777),(525,43,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280210777,1280210777),(524,43,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280210777,1280210777),(523,43,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280210777,1280210777),(522,43,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280210777,1280210777),(530,43,0,8,'bstock_customers:company_name:DetailedSalesReports_company_name:company_name:V',1280210777,1280210777),(531,43,0,9,'bstock_customers:email:DetailedSalesReports_email:email:V',1280210777,1280210777),(540,44,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280212568,1280212568),(539,44,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280212568,1280212568),(538,44,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280212568,1280212568),(537,44,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280212568,1280212568),(541,44,0,4,'bstock_orderitems:price:DetailedSalesReports_price:price:I',1280212568,1280212568),(542,45,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1280213104,1280213104),(543,45,0,1,'bstock_vendors:vendor_name:Vendors_vendor_name:vendor_name:V',1280213104,1280213104),(544,45,0,2,'bstock_products:shape:PurchaseOrder_shape:shape:V',1280213104,1280213104),(545,45,0,3,'bstock_products:size:PurchaseOrder_size:size:I',1280213104,1280213104),(546,45,0,4,'bstock_products:color:PurchaseOrder_color:color:V',1280213104,1280213104),(547,45,0,5,'bstock_pl_poitems:listprice:PurchaseOrder_listprice:listprice:I',1280213104,1280213104),(548,45,0,6,'bstock_pl_poitems:qty:PurchaseOrder_qty:qty:I',1280213104,1280213104),(971,46,0,5,'bstock_products:qty:StockReports_qty:qty:I',1285048636,1285048636),(970,46,0,4,'bstock_products:color:StockReports_color:color:V',1285048636,1285048636),(969,46,0,3,'bstock_products:size:StockReports_size:size:I',1285048636,1285048636),(968,46,0,2,'bstock_products:shape:StockReports_shape:shape:V',1285048636,1285048636),(967,46,0,1,'bstock_pl_purchaseorder:po_number:StockReports_po_number:po_number:V',1285048636,1285048636),(966,46,0,0,'bstock_customers:company_name:StockReports_company_name:company_name:V',1285048636,1285048636),(1009,22,0,2,'bstock_customers:company_name:Customers_company_name:company_name:V',1285053610,1285053610),(1224,23,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1306316963,1306316963),(1079,41,0,10,'bstock_products:price:Products_price:price:V',1285734994,1285734994),(1078,41,0,9,'bstock_products:symmetry:Products_symmetry:symmetry:V',1285734994,1285734994),(1077,41,0,8,'bstock_products:polish:Products_polish:polish:V',1285734994,1285734994),(1223,23,0,0,'bstock_customers:company_name:Customers_company_name:company_name:V',1306316963,1306316963),(661,47,0,5,'bstock_pl_poitems:qty:DetailedSalesReports_qty:qty:I',1280293802,1280293802),(660,47,0,4,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280293802,1280293802),(659,47,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280293802,1280293802),(658,47,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280293802,1280293802),(657,47,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280293802,1280293802),(656,47,0,0,'bstock_vendors:vendor_name:DetailedSalesReports_vendor_name:vendor_name:V',1280293802,1280293802),(663,47,0,7,'bstock_pl_poitems:created_date:DetailedSalesReports_created_date:created_date:I',1280293802,1280293802),(688,48,0,7,'bstock_pl_poitems:listprice:StockReports_listprice:listprice:I',1281116408,1281116408),(689,48,0,8,'bstock_pl_poitems:created_date:StockReports_created_date:created_date:I',1281116408,1281116408),(687,48,0,6,'bstock_pl_poitems:qty:StockReports_qty:qty:I',1281116408,1281116408),(686,48,0,5,'bstock_products:color:StockReports_color:color:V',1281116408,1281116408),(684,48,0,3,'bstock_products:size:StockReports_size:size:I',1281116408,1281116408),(685,48,0,4,'bstock_products:flourescence:StockReports_flourescence:flourescence:I',1281116408,1281116408),(683,48,0,2,'bstock_products:shape:StockReports_shape:shape:V',1281116408,1281116408),(682,48,0,1,'bstock_products:stoneid:StockReports_stoneid:stoneid:V',1281116408,1281116408),(681,48,0,0,'bstock_pl_poitems:po_number_id:StockReports_po_number_id:po_number_id:I',1281116408,1281116408),(1007,22,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1285053610,1285053610),(1076,41,0,7,'bstock_products:cut:Products_cut:cut:V',1285734994,1285734994),(1075,41,0,6,'bstock_products:lab:Products_lab:lab:V',1285734994,1285734994),(1074,41,0,5,'bstock_products:flourescence:Products_flourescence:flourescence:I',1285734994,1285734994),(885,49,0,13,'bstock_products:cash_back:Products_cash_back:cash_back:I',1283874192,1283874192),(886,49,0,14,'bstock_products:conversion_rate:Products_conversion_rate:conversion_rate:I',1283874192,1283874192),(887,49,0,15,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1283874192,1283874192),(884,49,0,12,'bstock_products:discount:Products_discount:discount:V',1283874192,1283874192),(881,49,0,9,'bstock_products:flourescence:Products_flourescence:flourescence:I',1283874192,1283874192),(883,49,0,11,'bstock_products:inr_price:Products_inr_price:inr_price:I',1283874192,1283874192),(882,49,0,10,'bstock_products:rap_price:Products_rap_price:rap_price:I',1283874192,1283874192),(880,49,0,8,'bstock_products:clarity:Products_clarity:clarity:V',1283874192,1283874192),(879,49,0,7,'bstock_products:color:Products_color:color:V',1283874192,1283874192),(878,49,0,6,'bstock_products:size:Products_size:size:I',1283874192,1283874192),(877,49,0,5,'bstock_products:shape:Products_shape:shape:V',1283874192,1283874192),(875,49,0,3,'bstock_orderitems:total_in_inr:SalesOrder_total_in_inr:total_in_inr:I',1283874192,1283874192),(876,49,0,4,'bstock_products:purchase_price_inr:Products_purchase_price_inr:purchase_price_inr:I',1283874192,1283874192),(874,49,0,2,'bstock_orders:balance:SalesOrder_balance:balance:I',1283874192,1283874192),(873,49,0,1,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1283874192,1283874192),(872,49,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1283874192,1283874192),(941,50,0,15,'bstock_products:conversion_rate:PurchaseOrder_conversion_rate:conversion_rate:I',1283892330,1283892330),(940,50,0,14,'bstock_products:cash_back:PurchaseOrder_cash_back:cash_back:I',1283892330,1283892330),(939,50,0,13,'bstock_products:discount:PurchaseOrder_discount:discount:V',1283892330,1283892330),(938,50,0,12,'bstock_products:inr_price:PurchaseOrder_inr_price:inr_price:I',1283892330,1283892330),(937,50,0,11,'bstock_products:price:PurchaseOrder_price:price:I',1283892330,1283892330),(935,50,0,9,'bstock_products:clarity:PurchaseOrder_clarity:clarity:V',1283892330,1283892330),(936,50,0,10,'bstock_products:flourescence:PurchaseOrder_flourescence:flourescence:I',1283892330,1283892330),(934,50,0,8,'bstock_products:color:PurchaseOrder_color:color:V',1283892330,1283892330),(932,50,0,6,'bstock_products:shape:PurchaseOrder_shape:shape:V',1283892330,1283892330),(933,50,0,7,'bstock_products:size:PurchaseOrder_size:size:I',1283892330,1283892330),(931,50,0,5,'bstock_products:purchase_price_dollar:Products_purchase_price_dollar:purchase_price_dollar:I',1283892330,1283892330),(930,50,0,4,'bstock_products:purchase_price_inr:PurchaseOrder_purchase_price_inr:purchase_price_inr:I',1283892330,1283892330),(904,51,0,0,'bstock_brokers:broker_name:BestBroker_broker_name:broker_name:V',1283892221,1283892221),(905,51,0,1,'bstock_orderitems:order_id:BestBroker_order_id:order_id:I',1283892221,1283892221),(906,51,0,2,'bstock_orderitems:product_id:BestBroker_product_id:product_id:I',1283892221,1283892221),(907,51,0,3,'bstock_orderitems:brokerage_1:BestBroker_brokerage_1:brokerage_1:I',1283892221,1283892221),(908,51,0,4,'bstock_orderitems:brokerage_1_amt_inr:BestBroker_brokerage_1_amt_inr:brokerage_1_amt_inr:I',1283892221,1283892221),(929,50,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1283892330,1283892330),(928,50,0,2,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1283892330,1283892330),(927,50,0,1,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1283892330,1283892330),(926,50,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1283892330,1283892330),(942,50,0,16,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1283892330,1283892330),(943,52,0,0,'bstock_pl_purchaseorder:id:Ledger_id:id:I',1283895447,1283895447),(955,53,0,3,'bstock_karigar:karigar_name:KarigarReports_karigar_name:karigar_name:V',1283898236,1283898236),(954,53,0,2,'bstock_jwl_labour_info:balance:KarigarReports_balance:balance:I',1283898236,1283898236),(952,53,0,0,'bstock_orders:so_number:KarigarReports_so_number:so_number:V',1283898236,1283898236),(953,53,0,1,'bstock_jwl_labour_info:price:KarigarReports_price:price:V',1283898236,1283898236),(956,53,0,4,'bstock_jwl_labour_info:status:KarigarReports_status:status:V',1283898236,1283898236),(1106,54,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1294057547,1294057547),(1105,54,0,3,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1294057547,1294057547),(1104,54,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1294057547,1294057547),(972,46,0,6,'bstock_pl_poitems:listprice:StockReports_listprice:listprice:I',1285048636,1285048636),(1103,54,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1294057547,1294057547),(1102,54,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1294057547,1294057547),(1100,55,0,4,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1294044165,1294044165),(1099,55,0,3,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1294044165,1294044165),(1098,55,0,2,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1294044165,1294044165),(1097,55,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1294044165,1294044165),(1096,55,0,0,'bstock_orders:id:SalesOrder_id:id:I',1294044165,1294044165),(1050,56,0,3,'bstock_karigar_metal_info:date_given_timestamp:KarigarReports_date_given_timestamp:date_given_timestamp:I',1285678547,1285678547),(1047,56,0,0,'bstock_karigar_metal_info:id:KarigarReports_id:id:I',1285678547,1285678547),(1048,56,0,1,'bstock_karigar_metal_info:karigar_id:KarigarReports_karigar_id:karigar_id:I',1285678547,1285678547),(1049,56,0,2,'bstock_karigar_metal_info:metal_weight:KarigarReports_metal_weight:metal_weight:I',1285678547,1285678547),(1073,41,0,4,'bstock_products:clarity:Products_clarity:clarity:V',1285734994,1285734994),(1072,41,0,3,'bstock_products:size:Products_size:size:I',1285734994,1285734994),(1071,41,0,2,'bstock_products:shape:Products_shape:shape:V',1285734994,1285734994),(1069,41,0,0,'bstock_products:stoneid:Products_stoneid:stoneid:V',1285734994,1285734994),(1070,41,0,1,'bstock_products:color:Products_color:color:V',1285734994,1285734994),(1083,41,0,14,'bstock_products:purchase_price_dollar:Products_purchase_price_dollar:purchase_price_dollar:I',1285734994,1285734994),(1506,57,0,7,'bstock_pl_purchaseorder:net_total_usd:PurchaseOrder_net_total_usd:net_total_usd:I',1306404640,1306404640),(1507,57,0,8,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1306404640,1306404640),(1503,57,0,4,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1306404640,1306404640),(1504,57,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1306404640,1306404640),(1505,57,0,6,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1306404640,1306404640),(1804,58,0,9,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1313818924,1313818924),(1803,58,0,8,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1313818924,1313818924),(1802,58,0,7,'bstock_orders:delivery_status_id:SalesOrder_delivery_status_id:delivery_status_id:I',1313818924,1313818924),(1101,55,0,5,'bstock_orders:balance:SalesOrder_balance:balance:I',1294044165,1294044165),(1107,54,0,5,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1294057547,1294057547),(1744,59,0,4,'bstock_pl_jhangad:due_date:Approval_due_date:due_date:I',1306746624,1306746624),(1745,59,0,5,'bstock_pl_jhangad:transaction_date:Approval_transaction_date:transaction_date:I',1306746624,1306746624),(1741,59,0,1,'bstock_pl_jhangad:jhangad_number:Approval_jhangad_number:jhangad_number:V',1306746624,1306746624),(1742,59,0,2,'bstock_pl_jhangad:customer_id:Approval_customer_id:customer_id:I',1306746624,1306746624),(1121,60,0,0,'bstock_pl_dailycashentries:date_timestamp:AngadiaReports_date_timestamp:date_timestamp:I',1305726771,1305726771),(1122,60,0,1,'bstock_customers:company_name:AngadiaReports_company_name:company_name:V',1305726771,1305726771),(1123,60,0,2,'bstock_angadia:account_name:AngadiaReports_account_name:account_name:V',1305726771,1305726771),(1124,60,0,3,'bstock_pl_dailycashentries:remarks:AngadiaReports_remarks:remarks:V',1305726771,1305726771),(1125,60,0,4,'bstock_pl_dailycashentries:entry_type:AngadiaReports_entry_type:entry_type:V',1305726771,1305726771),(1126,60,0,5,'bstock_pl_dailycashentries:amount:AngadiaReports_amount:amount:I',1305726771,1305726771),(1127,60,0,6,'bstock_pl_dailycashentries:closing_balance:AngadiaReports_closing_balance:closing_balance:I',1305726771,1305726771),(1793,61,0,8,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1307368160,1307368160),(1792,61,0,7,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1307368160,1307368160),(1791,61,0,6,'bstock_orders:broker_id:SalesOrder_broker_id:broker_id:I',1307368160,1307368160),(1790,61,0,5,'bstock_orders:brokerage_total:SalesOrder_brokerage_total:brokerage_total:I',1307368160,1307368160),(1789,61,0,4,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1307368160,1307368160),(1788,61,0,3,'bstock_orders:brokerage_balance:SalesOrder_brokerage_balance:brokerage_balance:I',1307368160,1307368160),(1725,62,0,14,'bstock_pl_purchaseorder:vendor_id:ProfitLossReports_vendor_id:vendor_id:I',1306473428,1306473428),(1724,62,0,13,'bstock_pl_poitems:po_number_id:ProfitLossReports_po_number_id:po_number_id:I',1306473428,1306473428),(1723,62,0,12,'bstock_orders:dollar_rate:ProfitLossReports_dollar_rate:dollar_rate:I',1306473428,1306473428),(1720,62,0,9,'bstock_orderitems:size:ProfitLossReports_size:size:I',1306473428,1306473428),(1721,62,0,10,'bstock_products:purchase_price_dollar:ProfitLossReports_purchase_price_dollar:purchase_price_dollar:I',1306473428,1306473428),(1722,62,0,11,'bstock_products:purchase_price_inr:ProfitLossReports_purchase_price_inr:purchase_price_inr:I',1306473428,1306473428),(1719,62,0,8,'bstock_orders:brokerage_total:ProfitLossReports_brokerage_total:brokerage_total:I',1306473428,1306473428),(1718,62,0,7,'bstock_orders:customer_id:ProfitLossReports_customer_id:customer_id:I',1306473428,1306473428),(1717,62,0,6,'bstock_orders:broker_id:ProfitLossReports_broker_id:broker_id:I',1306473428,1306473428),(1716,62,0,5,'bstock_orders:transaction_date:ProfitLossReports_transaction_date:transaction_date:I',1306473428,1306473428),(1715,62,0,4,'bstock_orderitems:total_in_inr:ProfitLossReports_total_in_inr:total_in_inr:I',1306473428,1306473428),(1714,62,0,3,'bstock_orderitems:total_in_dollar:ProfitLossReports_total_in_dollar:total_in_dollar:I',1306473428,1306473428),(1801,58,0,6,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1313818924,1313818924),(1800,58,0,5,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1313818924,1313818924),(1799,58,0,4,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1313818924,1313818924),(1501,57,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1306404640,1306404640),(1743,59,0,3,'bstock_pl_jhangad:net_total:Approval_net_total:net_total:I',1306746624,1306746624),(1496,63,0,8,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1306404365,1306404365),(1495,63,0,7,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1306404365,1306404365),(1494,63,0,6,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1306404365,1306404365),(1493,63,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1306404365,1306404365),(1492,63,0,4,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1306404365,1306404365),(1491,63,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1306404365,1306404365),(1707,64,0,8,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1306471158,1306471158),(1709,64,0,10,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1306471158,1306471158),(1708,64,0,9,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306471158,1306471158),(1706,64,0,7,'bstock_orders:delivery_status_id:SalesOrder_delivery_status_id:delivery_status_id:I',1306471158,1306471158),(1732,65,0,0,'bstock_pl_jhangad:id:Approval_id:id:I',1306746599,1306746599),(1733,65,0,1,'bstock_pl_jhangad:jhangad_number:Approval_jhangad_number:jhangad_number:V',1306746599,1306746599),(1734,65,0,2,'bstock_pl_jhangad:customer_id:Approval_customer_id:customer_id:I',1306746599,1306746599),(1735,65,0,3,'bstock_pl_jhangad:net_total:Approval_net_total:net_total:I',1306746599,1306746599),(1736,65,0,4,'bstock_pl_jhangad:due_date:Approval_due_date:due_date:I',1306746599,1306746599),(1737,65,0,5,'bstock_pl_jhangad:transaction_date:Approval_transaction_date:transaction_date:I',1306746599,1306746599),(1738,65,0,6,'bstock_pl_jhangad:status_id:Approval_status_id:status_id:I',1306746599,1306746599),(1746,59,0,6,'bstock_pl_jhangad:status_id:Approval_status_id:status_id:I',1306746624,1306746624),(1740,59,0,0,'bstock_pl_jhangad:id:Approval_id:id:I',1306746624,1306746624),(1739,65,0,7,'bstock_pl_jhangad:broker_id:Approval_broker_id:broker_id:I',1306746599,1306746599),(1705,64,0,6,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1306471158,1306471158),(1703,64,0,4,'bstock_orders:balance:SalesOrder_balance:balance:I',1306471158,1306471158),(1704,64,0,5,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306471158,1306471158),(1488,63,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1306404365,1306404365),(1489,63,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1306404365,1306404365),(1490,63,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1306404365,1306404365),(1502,57,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1306404640,1306404640),(1499,57,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1306404640,1306404640),(1500,57,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1306404640,1306404640),(1702,64,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306471158,1306471158),(1787,61,0,2,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1307368160,1307368160),(1786,61,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1307368160,1307368160),(1726,62,0,15,'bstock_pl_poitems:partner_id:ProfitLossReports_partner_id:partner_id:I',1306473428,1306473428),(1497,63,0,9,'bstock_pl_purchaseorder:net_total_usd:PurchaseOrder_net_total_usd:net_total_usd:I',1306404365,1306404365),(1498,63,0,10,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I',1306404365,1306404365),(1508,57,0,9,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1306404640,1306404640),(1713,62,0,2,'bstock_orderitems:invoice_note:ProfitLossReports_invoice_note:invoice_note:V',1306473428,1306473428),(1711,62,0,0,'bstock_orderitems:id:ProfitLossReports_id:id:I',1306473428,1306473428),(1712,62,0,1,'bstock_orderitems:product_id:ProfitLossReports_product_id:product_id:I',1306473428,1306473428),(1701,64,0,2,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1306471158,1306471158),(1700,64,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306471158,1306471158),(1798,58,0,3,'bstock_orders:balance:SalesOrder_balance:balance:I',1313818924,1313818924),(1797,58,0,2,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1313818924,1313818924),(1796,58,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1313818924,1313818924),(1795,58,0,0,'bstock_orders:id:SalesOrder_id:id:I',1313818924,1313818924),(1710,64,0,11,'bstock_brokers:broker_name:SalesOrder_broker_name:broker_name:V',1306471158,1306471158),(1699,64,0,0,'bstock_orders:id:SalesOrder_id:id:I',1306471158,1306471158),(1727,62,0,16,'bstock_orderitems:percent_back:ProfitLossReports_percent_back:percent_back:I',1306473428,1306473428),(1728,62,0,17,'bstock_orderitems:aadat:ProfitLossReports_aadat:aadat:I',1306473428,1306473428),(1729,62,0,18,'bstock_orderitems:cash_back:ProfitLossReports_cash_back:cash_back:I',1306473428,1306473428),(1730,62,0,19,'bstock_orderitems:carat_selling_price_usd:ProfitLossReports_carat_selling_price_usd:carat_selling_price_usd:I',1306473428,1306473428),(1731,62,0,20,'bstock_orderitems:carat_selling_price:ProfitLossReports_carat_selling_price:carat_selling_price:I',1306473428,1306473428),(1747,59,0,7,'bstock_pl_jhangad:broker_id:Approval_broker_id:broker_id:I',1306746624,1306746624),(1785,61,0,0,'bstock_orders:id:SalesOrder_id:id:I',1307368160,1307368160),(1794,61,0,9,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1307368160,1307368160),(1805,58,0,10,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1313818924,1313818924),(1806,58,0,11,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1313818924,1313818924);

--
-- Table structure for table `bstock_pl_reportdatefilter`
--

CREATE TABLE `bstock_pl_reportdatefilter` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key of bstock_pl_reports table.',
  `date_column_name` varchar(255) NOT NULL COMMENT 'Column name of the date field.',
  `date_filter` varchar(50) NOT NULL COMMENT 'Name of the date filter i.e. custom, lastmonth, prevfy, etc.',
  `start_date` date NOT NULL COMMENT 'Start date of the chosen filter.',
  `end_date` date NOT NULL COMMENT 'End date of the chosen filter.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=220 DEFAULT CHARSET=latin1 COMMENT='Contains columnnames of date fields on which we set filters ';

--
-- Dumping data for table `bstock_pl_reportdatefilter`
--

INSERT INTO `bstock_pl_reportdatefilter` VALUES (1,1,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_Created_Date','thisfy','2010-01-01','2010-12-31',0,0),(4,7,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276586668,1276586668),(6,9,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276590739,1276590739),(7,10,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276591967,1276591967),(8,11,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276593741,1276593741),(9,12,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276598765,1276598765),(10,13,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276608023,1276608023),(11,14,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276608490,1276608490),(12,15,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276684109,1276684109),(13,16,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276687488,1276687488),(14,17,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276691934,1276691934),(15,18,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276692773,1276692773),(16,19,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276693256,1276693256),(17,20,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276693459,1276693459),(18,21,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276693750,1276693750),(131,22,'bstock_pl_purchaseorder:due_date:due_date:PurchaseOrder_due_date','custom','2010-01-01','2010-12-31',1285053610,1285053610),(159,23,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1306316963,1306316963),(61,24,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1278674856,1278674856),(22,25,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276767496,1276767496),(23,26,'bstock_customers:created_date:created_date:CustomersOrderItems_created_date','custom','0000-00-00','0000-00-00',1276773450,1276773450),(24,27,'bstock_customers:created_date:created_date:CustomersOrderItems_created_date','custom','0000-00-00','0000-00-00',1276775241,1276775241),(25,28,'bstock_customers:created_date:created_date:CustomersOrderItems_created_date','custom','0000-00-00','0000-00-00',1276780009,1276780009),(48,29,'Not Accessible','','0000-00-00','0000-00-00',1277299809,1277299809),(51,38,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1277302290,1277302290),(32,30,'bstock_customers:created_date:created_date:BestCustomer_created_date','custom','0000-00-00','0000-00-00',1277189889,1277189889),(33,31,'bstock_vendors:created_date:created_date:BestVendor_created_date','custom','0000-00-00','0000-00-00',1277199613,1277199613),(35,32,'bstock_vendors:created_date:created_date:BestVendor_created_date','custom','0000-00-00','0000-00-00',1277202389,1277202389),(42,33,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277292444,1277292444),(43,34,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277294934,1277294934),(44,35,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277295055,1277295055),(46,36,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277297631,1277297631),(47,37,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277297943,1277297943),(52,39,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1277373932,1277373932),(53,40,'bstock_pl_purchaseorder:created_date:created_date:Ledger_created_date','custom','0000-00-00','0000-00-00',1277803475,1277803475),(141,41,'bstock_products:created_date:created_date:Products_created_date','custom','0000-00-00','0000-00-00',1285734994,1285734994),(78,42,'trial_balance_entries:created_date:created_date:Accounting_created_date','custom','0000-00-00','0000-00-00',1280208747,1280208747),(80,43,'bstock_orderitems:created_date:created_date:DetailedSalesReports_created_date','custom','0000-00-00','0000-00-00',1280210777,1280210777),(82,44,'bstock_orderitems:created_date:created_date:DetailedSalesReports_created_date','custom','0000-00-00','0000-00-00',1280212568,1280212568),(83,45,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1280213104,1280213104),(127,46,'bstock_pl_poitems:created_date:created_date:StockReports_created_date','custom','0000-00-00','0000-00-00',1285048636,1285048636),(97,47,'Not Accessible','','0000-00-00','0000-00-00',1280293802,1280293802),(100,48,'bstock_pl_poitems:created_date:created_date:StockReports_created_date','thisfy','2010-01-01','2010-12-31',1281116408,1281116408),(117,49,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1283874192,1283874192),(121,50,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1283892330,1283892330),(119,51,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1283892221,1283892221),(122,52,'bstock_pl_purchaseorder:created_date:created_date:Ledger_created_date','custom','0000-00-00','0000-00-00',1283895447,1283895447),(125,53,'bstock_jwl_labour_info:created_date:created_date:KarigarReports_created_date','custom','0000-00-00','0000-00-00',1283898236,1283898236),(145,54,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1294057547,1294057547),(144,55,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1294044165,1294044165),(139,56,'bstock_jwl_labour_info:created_date:created_date:KarigarReports_created_date','custom','0000-00-00','0000-00-00',1285678547,1285678547),(194,57,'bstock_pl_purchaseorder:transaction_date:transaction_date:PurchaseOrder_transaction_date','custom','0000-00-00','0000-00-00',1306404640,1306404640),(219,58,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1313818924,1313818924),(213,59,'bstock_pl_jhangad:transaction_date:transaction_date:Approval_transaction_date','custom','0000-00-00','0000-00-00',1306746624,1306746624),(148,60,'bstock_angadia:created_date:created_date:AngadiaReports_created_date','custom','0000-00-00','0000-00-00',1305726771,1305726771),(218,61,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1307368160,1307368160),(211,62,'bstock_orderitems:created_date:created_date:ProfitLossReports_created_date','custom','0000-00-00','0000-00-00',1306473428,1306473428),(193,63,'bstock_pl_purchaseorder:transaction_date:transaction_date:PurchaseOrder_transaction_date','custom','0000-00-00','0000-00-00',1306404365,1306404365),(210,64,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1306471158,1306471158),(212,65,'bstock_pl_jhangad:transaction_date:transaction_date:Approval_transaction_date','custom','0000-00-00','0000-00-00',1306746599,1306746599);

--
-- Table structure for table `bstock_pl_reportfolder`
--

CREATE TABLE `bstock_pl_reportfolder` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `folder_name` varchar(255) NOT NULL COMMENT 'Folder name will be stored here.',
  `description` text NOT NULL COMMENT 'Description for this folder.',
  `state` varchar(50) NOT NULL COMMENT 'State will be either ''SAVED'' or ''CUSTOMIZED''. ''SAVED'' will be for default folders & ''CUSTOMIZED'' will be for user created folders.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COMMENT='Stores the folder related data.';

--
-- Dumping data for table `bstock_pl_reportfolder`
--

INSERT INTO `bstock_pl_reportfolder` VALUES (1,'PurchaseOrder Reports','PurchaseOrder Reports','SAVED',0,0,'off'),(2,'SalesOrder Reports','SalesOrder Reports','SAVED',1276763466,1276763466,'on'),(4,'Intelligent Reports','Intelligent Reports','SAVED',1277184290,1277184290,'off'),(5,'Financial Reports','Financial Reports','SAVED',1277184290,1277184290,'off'),(7,'Accounting Reports','Accounting Reports','SAVED',0,0,'off'),(8,'Periodic Reports','Periodic Reports','CUSTOMIZED',0,0,'off'),(10,'Stock Reports','Stock Reports','SAVED',0,0,'on'),(11,'Karigar Reports','Karigar Reports','CUSTOMIZED',0,0,'off');

--
-- Table structure for table `bstock_pl_reportmodules`
--

CREATE TABLE `bstock_pl_reportmodules` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key of bstock_pl_reports table.',
  `primary_module` varchar(50) NOT NULL COMMENT 'Primary folder/module name selected while creating the report.',
  `secondary_modules` varchar(250) NOT NULL COMMENT 'Secondary folder/module name(s) selected while creating the report.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=62 DEFAULT CHARSET=latin1 COMMENT='Contains the primary & secondary modules of a particular rep';

--
-- Dumping data for table `bstock_pl_reportmodules`
--

INSERT INTO `bstock_pl_reportmodules` VALUES (1,1,'PurchaseOrder','Vendors',0,0),(3,7,'PurchaseOrder','Vendors',1276586667,1276586667),(5,9,'PurchaseOrder','Vendors',1276590739,1276590739),(6,10,'PurchaseOrder','Vendors',1276591967,1276591967),(7,11,'PurchaseOrder','Vendors',1276593726,1276593726),(8,12,'PurchaseOrder','Vendors',1276598761,1276598761),(9,13,'PurchaseOrder','Vendors',1276608018,1276608018),(10,14,'PurchaseOrder','Brokers',1276608489,1276608489),(11,15,'PurchaseOrder','',1276684108,1276684108),(12,16,'SalesOrder','Brokers',1276687488,1276687488),(13,17,'SalesOrder','Customers',1276691933,1276691933),(14,18,'SalesOrder','Customers',1276692770,1276692770),(15,19,'SalesOrder','Customers',1276693256,1276693256),(16,20,'SalesOrder','',1276693459,1276693459),(17,21,'SalesOrder','',1276693749,1276693749),(18,22,'PurchaseOrder','Customers',1276695042,1276695042),(19,23,'SalesOrder','Customers',1276763688,1276763688),(20,24,'PurchaseOrder','Vendors',1276767342,1276767342),(21,25,'SalesOrder','Customers',1276767496,1276767496),(22,26,'CustomersOrderItems','',1276773445,1276773445),(23,27,'CustomersOrderItems','',1276775241,1276775241),(24,28,'CustomersOrderItems','',1276780008,1276780008),(25,29,'BestCustomer','',1276780133,1276780133),(26,30,'BestCustomer','',1277189888,1277189888),(27,31,'BestVendor','',1277199612,1277199612),(28,32,'BestVendor','',1277201407,1277201407),(29,33,'BestBroker','',1277210594,1277210594),(30,34,'BestBroker','',1277294934,1277294934),(31,35,'BestBroker','',1277295055,1277295055),(32,36,'BestBroker','',1277295640,1277295640),(33,37,'BestBroker','',1277297943,1277297943),(35,39,'SalesOrder','',1277373930,1277373930),(36,40,'Ledger','',1277803475,1277803475),(37,41,'Products','',1280169197,1280169197),(38,42,'Accounting','',1280208747,1280208747),(39,43,'PeriodicReports','',1280210617,1280210617),(40,44,'PeriodicReports','',1280212486,1280212486),(41,45,'PurchaseOrder','Vendors',1280213104,1280213104),(42,46,'StockReports','',1280216443,1280216443),(43,47,'PeriodicReports','PO Items',1280233294,1280233294),(44,48,'StockReports','PO Items',1281116296,1281116296),(45,49,'SalesOrder','Products',1283868324,1283868324),(46,50,'PurchaseOrder','Products',1283886791,1283886791),(47,51,'BestBroker','Order Items',1283892221,1283892221),(48,52,'Ledger','',1283895447,1283895447),(49,53,'KarigarReports','',1283898167,1283898167),(50,54,'PurchaseOrder','CashBook',1284727408,1284727408),(51,55,'SalesOrder','CashBook',1285421632,1285421632),(52,56,'KarigarReports','Karigar Metal Info',1285669916,1285669916),(53,57,'PurchaseOrder','CashBook',1286260199,1286260199),(54,58,'SalesOrder','Brokers',1286279262,1286279262),(55,59,'Approval','',1299599072,1299599072),(56,60,'AngadiaReports','DailyCashEntries',1305726771,1305726771),(57,61,'SalesOrder','Brokers',1305972075,1305972075),(58,62,'ProfitLossReports','Order Items',1306129485,1306129485),(59,63,'PurchaseOrder','CashBook',1306319667,1306319667),(60,64,'SalesOrder','Brokers',1306324374,1306324374),(61,65,'Approval','',1306325548,1306325548);

--
-- Table structure for table `bstock_pl_reports`
--

CREATE TABLE `bstock_pl_reports` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `folder_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reportfolders table.',
  `report_name` varchar(255) NOT NULL COMMENT 'Report name.',
  `description` text NOT NULL COMMENT 'Description for the report.',
  `report_type` varchar(50) NOT NULL COMMENT 'Type of report i.e. summary or tabular',
  `query_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key of bstock_pl_selectquery table.',
  `state` varchar(50) NOT NULL COMMENT '''CUSTOMIZED'' or ''SAVED'' for user created & default reports, respectively.',
  `customizable` enum('0','1') NOT NULL COMMENT 'Whether this report can be customized or not.',
  `category` int(11) NOT NULL COMMENT 'The category to which the report belongs to, might not be used currently though.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `is_active` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=66 DEFAULT CHARSET=latin1 COMMENT='Stores details of each report in the system.';

--
-- Dumping data for table `bstock_pl_reports`
--

INSERT INTO `bstock_pl_reports` VALUES (1,1,'PurchaseOrder by Contacts','PurchaseOrder by Contacts','summary',0,'SAVED','1',0,0,0,'0'),(30,4,'Best Customer by Sale','Best Customer by Sale','summary',0,'SAVED','1',0,1277189888,1277189888,'1'),(22,1,'Outstanding Payables','Outstanding Payables - Pending PO Payments','summary',0,'CUSTOM','1',0,1276695038,1276695038,'0'),(23,2,'Outstanding Receivables','Outstanding Receivables - Pending SO Payments','summary',0,'CUSTOM','1',0,1276763685,1276763685,'0'),(24,1,'PO Details','PO Details','summary',0,'CUSTOM','1',0,1276767341,1276767341,'0'),(25,2,'SO Details','SO Details','tabular',0,'CUSTOM','1',0,1276767496,1276767496,'0'),(29,4,'Best Customer by Profit','Best Customer by Profit','summary',0,'SAVED','1',0,1276780133,1276780133,'1'),(31,4,'Best Vendor by Profit','Best Vendor by Profit','summary',0,'SAVED','1',0,1277199610,1277199610,'1'),(32,4,'Best Vendor by Purchase','Best Vendor by Purchase','tabular',0,'SAVED','1',0,1277201402,1277201402,'1'),(33,4,'Best Broker by Profit','Best Broker by Profit','summary',0,'SAVED','1',0,1277210594,1277210594,'1'),(34,4,'Best Broker by Brokerage - SO','Best Broker by Brokerage - SO','summary',0,'SAVED','1',0,1277294934,1277294934,'0'),(35,4,'Best Broker by Sale','Best Broker by Sale','summary',0,'SAVED','1',0,1277295055,1277295055,'1'),(36,4,'Best Broker by Purchase','Best Broker by Purchase','summary',0,'SAVED','1',0,1277295640,1277295640,'0'),(37,4,'Best Broker by Brokerage - PO','Best Broker by Brokerage - PO','summary',0,'SAVED','1',0,1277297943,1277297943,'0'),(39,2,'Country wise sales','Country wise sales','summary',0,'CUSTOM','1',0,1277373930,1277373930,'0'),(40,5,'Purchase & Sales Ledger','Purchase & Sales Ledger','summary',0,'CUSTOM','1',0,1277803475,1277803475,'0'),(41,10,'Stock Ledger','Stock Ledger','summary',0,'CUSTOM','1',0,1280169197,1280169197,'1'),(42,7,'Trial Balance','Trial Balance','tabular',0,'CUSTOM','1',0,1280208747,1280208747,'0'),(43,8,'Monthly Sales','Monthly Sales','tabular',0,'CUSTOM','1',0,1280210617,1280210617,'0'),(44,8,'Profit/Loss for Vishal & Co.','Profit/Loss for Vishal & Co.','tabular',0,'CUSTOM','1',0,1280212486,1280212486,'0'),(46,10,'Pending Stock Report','Pending Stock Report','tabular',0,'CUSTOM','1',0,1280216443,1280216443,'0'),(47,8,'Monthly Purchase','Monthly Purchase','summary',0,'CUSTOM','1',0,1280233294,1280233294,'0'),(48,10,'Purchase Details','Details of materials purchased date-wise','summary',0,'CUSTOM','1',0,1281116296,1281116296,'0'),(49,2,'Party wise Sales Ledger','Party wise Sales Ledger','summary',0,'CUSTOM','1',0,1283868324,1283868324,'0'),(51,8,'Calculated Brokerage for Brokers','This report will pull the brokerage amount of brokers for the specified period.','tabular',0,'CUSTOM','1',0,1283892221,1283892221,'1'),(52,5,'Quarterly Payments','Quarterly Payments','summary',0,'CUSTOM','1',0,1283895447,1283895447,'0'),(53,11,'Karigar Cash Ledger','Karigar Cash Ledger','summary',0,'CUSTOM','1',0,1283898167,1283898167,'1'),(54,1,'Vendor wise Purchase Ledger','Vendor wise Purchase Ledger','tabular',0,'CUSTOM','1',0,1284727408,1284727408,'0'),(55,2,'Customer wise Sales Ledger','Customer wise Sales Ledger','tabular',0,'CUSTOM','1',0,1285421632,1285421632,'0'),(56,11,'Karigar Metal Ledger','Karigar Metal Ledger','summary',0,'CUSTOM','1',0,1285669916,1285669916,'1'),(57,1,'Customer wise Purchase Report - Detailed','Customer wise Purchase Report - Detailed','summary',0,'CUSTOM','1',0,1286260199,1286260199,'1'),(58,2,'Customer wise Sales Report - Detailed','Customer wise Sales Report - Detailed','tabular',0,'CUSTOM','1',0,1286279262,1286279262,'1'),(59,2,'Customer wise Approval Report - Detailed','Customer wise Approval Report - Detailed','tabular',0,'CUSTOM','1',0,1299599072,1299599072,'0'),(60,5,'Angadia Inward/Outward Transactions','Angadia Inward/Outward Transactions','summary',0,'CUSTOM','1',0,1305726771,1305726771,'1'),(61,5,'Broker wise Report','Broker wise Report','tabular',0,'CUSTOM','1',0,1305972075,1305972075,'1'),(62,5,'Profit / Loss Report','Profit / Loss Report','summary',0,'CUSTOM','1',0,1306129485,1306129485,'1'),(63,1,'Pending Payments','Pending Payments','summary',0,'CUSTOM','1',0,1306319667,1306319667,'1'),(64,2,'Pending Receivables','Pending Receivables','summary',0,'CUSTOM','1',0,1306324374,1306324374,'1'),(65,2,'Pending Approvals','Pending Approvals','tabular',0,'CUSTOM','1',0,1306325548,1306325548,'0');

--
-- Table structure for table `bstock_pl_reportsortcol`
--

CREATE TABLE `bstock_pl_reportsortcol` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `column_name` varchar(250) NOT NULL COMMENT 'Name of the column on which to sort.',
  `sort_order` varchar(50) NOT NULL COMMENT 'Will contain ''Ascending'' or ''Descending'' order to sort.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=657 DEFAULT CHARSET=latin1 COMMENT='Contains fields that have been selected to ORDER BY while cr';

--
-- Dumping data for table `bstock_pl_reportsortcol`
--

INSERT INTO `bstock_pl_reportsortcol` VALUES (1,1,'bstock_pl_purchaseorder:net_total:PurchaseOrder_Net_Total:net_total:V','Descending',0,0),(2,1,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_Brokerage:brokerage:V','Descending',0,0),(11,7,'none','Ascending',1276586668,1276586668),(10,7,'none','Ascending',1276586667,1276586667),(9,7,'none','Ascending',1276586667,1276586667),(17,9,'none','Ascending',1276590739,1276590739),(16,9,'none','Ascending',1276590739,1276590739),(15,9,'none','Ascending',1276590739,1276590739),(18,10,'none','Ascending',1276591967,1276591967),(19,10,'none','Ascending',1276591967,1276591967),(20,10,'none','Ascending',1276591967,1276591967),(21,11,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V','Ascending',1276593734,1276593734),(22,11,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','Descending',1276593737,1276593737),(23,11,'none','Ascending',1276593741,1276593741),(24,12,'none','Ascending',1276598763,1276598763),(25,12,'none','Ascending',1276598764,1276598764),(26,12,'none','Ascending',1276598765,1276598765),(27,13,'none','Ascending',1276608020,1276608020),(28,13,'none','Ascending',1276608021,1276608021),(29,13,'none','Ascending',1276608022,1276608022),(30,14,'none','Ascending',1276608489,1276608489),(31,14,'none','Ascending',1276608489,1276608489),(32,14,'none','Ascending',1276608490,1276608490),(33,15,'none','Ascending',1276684108,1276684108),(34,15,'none','Ascending',1276684109,1276684109),(35,15,'none','Ascending',1276684109,1276684109),(36,16,'none','Ascending',1276687488,1276687488),(37,16,'none','Ascending',1276687488,1276687488),(38,16,'none','Ascending',1276687488,1276687488),(39,17,'none','Ascending',1276691933,1276691933),(40,17,'none','Ascending',1276691934,1276691934),(41,17,'none','Ascending',1276691934,1276691934),(42,18,'none','Ascending',1276692770,1276692770),(43,18,'none','Ascending',1276692770,1276692770),(44,18,'none','Ascending',1276692773,1276692773),(45,19,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1276693256,1276693256),(46,19,'none','Ascending',1276693256,1276693256),(47,19,'none','Ascending',1276693256,1276693256),(48,20,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1276693459,1276693459),(49,20,'none','Ascending',1276693459,1276693459),(50,20,'none','Ascending',1276693459,1276693459),(51,21,'bstock_orders:id:SalesOrder_id:id:I','Ascending',1276693749,1276693749),(52,21,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1276693750,1276693750),(53,21,'none','Ascending',1276693750,1276693750),(180,24,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Descending',1278674856,1278674856),(63,25,'none','Ascending',1276767496,1276767496),(64,25,'none','Ascending',1276767496,1276767496),(65,25,'none','Ascending',1276767496,1276767496),(66,26,'bstock_customers:id:CustomersOrderItems_id:id:I','Ascending',1276773447,1276773447),(67,26,'none','Ascending',1276773448,1276773448),(68,26,'none','Ascending',1276773450,1276773450),(69,27,'bstock_customers:id:CustomersOrderItems_id:id:I','Ascending',1276775241,1276775241),(70,27,'none','Ascending',1276775241,1276775241),(71,27,'none','Ascending',1276775241,1276775241),(72,28,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V','Ascending',1276780008,1276780008),(73,28,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V','Ascending',1276780008,1276780008),(74,28,'none','Ascending',1276780009,1276780009),(143,29,'none','Ascending',1277299808,1277299808),(142,29,'none','Ascending',1277299808,1277299808),(141,29,'none','Ascending',1277299808,1277299808),(93,30,'none','Ascending',1277189888,1277189888),(94,30,'none','Ascending',1277189889,1277189889),(95,30,'none','Ascending',1277189889,1277189889),(96,31,'none','Ascending',1277199613,1277199613),(97,31,'none','Ascending',1277199613,1277199613),(98,31,'none','Ascending',1277199613,1277199613),(104,32,'none','Ascending',1277202389,1277202389),(103,32,'none','Ascending',1277202389,1277202389),(102,32,'none','Ascending',1277202389,1277202389),(125,33,'none','Ascending',1277292444,1277292444),(124,33,'none','Ascending',1277292444,1277292444),(123,33,'none','Ascending',1277292444,1277292444),(126,34,'none','Ascending',1277294934,1277294934),(127,34,'none','Ascending',1277294934,1277294934),(128,34,'none','Ascending',1277294934,1277294934),(129,35,'none','Ascending',1277295055,1277295055),(130,35,'none','Ascending',1277295055,1277295055),(131,35,'none','Ascending',1277295055,1277295055),(137,36,'none','Ascending',1277297631,1277297631),(136,36,'none','Ascending',1277297631,1277297631),(135,36,'none','Ascending',1277297631,1277297631),(138,37,'none','Ascending',1277297943,1277297943),(139,37,'none','Ascending',1277297943,1277297943),(140,37,'none','Ascending',1277297943,1277297943),(151,38,'none','Ascending',1277302290,1277302290),(152,38,'none','Ascending',1277302290,1277302290),(150,38,'bstock_vendors:country:Vendors_country:country:V','Ascending',1277302290,1277302290),(153,39,'none','Ascending',1277373930,1277373930),(154,39,'none','Ascending',1277373932,1277373932),(155,39,'none','Ascending',1277373932,1277373932),(156,40,'none','Ascending',1277803475,1277803475),(157,40,'none','Ascending',1277803475,1277803475),(158,40,'none','Ascending',1277803475,1277803475),(476,23,'none','Descending',1306316963,1306316963),(182,24,'none','Descending',1278674856,1278674856),(181,24,'none','Descending',1278674856,1278674856),(392,22,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','Descending',1285053610,1285053610),(391,22,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','Descending',1285053610,1285053610),(421,41,'none','Ascending',1285734994,1285734994),(231,42,'none','Ascending',1280208747,1280208747),(232,42,'none','Ascending',1280208747,1280208747),(233,42,'none','Ascending',1280208747,1280208747),(239,43,'none','Ascending',1280210777,1280210777),(238,43,'none','Ascending',1280210777,1280210777),(237,43,'none','Ascending',1280210777,1280210777),(245,44,'none','Ascending',1280212568,1280212568),(244,44,'none','Ascending',1280212568,1280212568),(243,44,'none','Ascending',1280212568,1280212568),(246,45,'none','Ascending',1280213104,1280213104),(247,45,'none','Ascending',1280213104,1280213104),(248,45,'none','Ascending',1280213104,1280213104),(380,46,'none','Ascending',1285048636,1285048636),(379,46,'none','Ascending',1285048636,1285048636),(378,46,'none','Ascending',1285048636,1285048636),(390,22,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Descending',1285053610,1285053610),(475,23,'bstock_orders:due_date:SalesOrder_due_date:due_date:I','Ascending',1306316963,1306316963),(288,47,'bstock_vendors:vendor_name:PeriodicReports_vendor_name:vendor_name:V','Ascending',1280293802,1280293802),(289,47,'none','Ascending',1280293802,1280293802),(290,47,'none','Ascending',1280293802,1280293802),(298,48,'none','Ascending',1281116408,1281116408),(299,48,'none','Ascending',1281116408,1281116408),(297,48,'bstock_pl_poitems:po_number_id:StockReports_po_number_id:po_number_id:I','Ascending',1281116408,1281116408),(474,23,'none','Ascending',1306316963,1306316963),(350,49,'bstock_orderstatustypes:status:SalesOrder_status:status:V','Ascending',1283874192,1283874192),(348,49,'bstock_orders:due_date:SalesOrder_due_date:due_date:I','Ascending',1283874192,1283874192),(349,49,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1283874192,1283874192),(362,50,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','Ascending',1283892330,1283892330),(360,50,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Ascending',1283892330,1283892330),(361,50,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V','Ascending',1283892330,1283892330),(354,51,'none','Ascending',1283892221,1283892221),(355,51,'none','Ascending',1283892221,1283892221),(356,51,'none','Ascending',1283892221,1283892221),(363,52,'none','Ascending',1283895447,1283895447),(364,52,'none','Ascending',1283895447,1283895447),(365,52,'none','Ascending',1283895447,1283895447),(374,53,'none','Ascending',1283898236,1283898236),(373,53,'none','Ascending',1283898236,1283898236),(372,53,'none','Ascending',1283898236,1283898236),(433,54,'none','Ascending',1294057547,1294057547),(432,54,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Ascending',1294057547,1294057547),(430,55,'none','Ascending',1294044165,1294044165),(429,55,'bstock_orders:due_date:SalesOrder_due_date:due_date:I','Ascending',1294044165,1294044165),(416,56,'none','Ascending',1285678547,1285678547),(415,56,'none','Ascending',1285678547,1285678547),(414,56,'none','Ascending',1285678547,1285678547),(420,41,'bstock_products:color:Products_color:color:V','Ascending',1285734994,1285734994),(422,41,'none','Ascending',1285734994,1285734994),(581,57,'none','Ascending',1306404640,1306404640),(580,57,'none','Ascending',1306404640,1306404640),(579,57,'none','Ascending',1306404640,1306404640),(656,58,'none','Ascending',1313818924,1313818924),(655,58,'none','Ascending',1313818924,1313818924),(654,58,'none','Ascending',1313818924,1313818924),(431,55,'none','Ascending',1294044165,1294044165),(434,54,'none','Ascending',1294057547,1294057547),(638,59,'none','Ascending',1306746624,1306746624),(637,59,'none','Ascending',1306746624,1306746624),(636,59,'none','Ascending',1306746624,1306746624),(441,60,'bstock_pl_dailycashentries:date_timestamp:AngadiaReports_date_timestamp:date_timestamp:I','Ascending',1305726771,1305726771),(442,60,'none','Ascending',1305726771,1305726771),(443,60,'none','Ascending',1305726771,1305726771),(653,61,'none','Ascending',1307368160,1307368160),(652,61,'none','Ascending',1307368160,1307368160),(651,61,'none','Ascending',1307368160,1307368160),(632,62,'none','Ascending',1306473428,1306473428),(631,62,'none','Ascending',1306473428,1306473428),(630,62,'none','Ascending',1306473428,1306473428),(578,63,'none','Ascending',1306404365,1306404365),(577,63,'none','Ascending',1306404365,1306404365),(576,63,'none','Ascending',1306404365,1306404365),(629,64,'none','Ascending',1306471158,1306471158),(628,64,'none','Ascending',1306471158,1306471158),(627,64,'none','Ascending',1306471158,1306471158),(635,65,'none','Ascending',1306746599,1306746599),(634,65,'none','Ascending',1306746599,1306746599),(633,65,'none','Ascending',1306746599,1306746599);

--
-- Table structure for table `bstock_pl_reportsummary`
--

CREATE TABLE `bstock_pl_reportsummary` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `summary_type` int(11) NOT NULL COMMENT 'Contains the serial number of summary type fields for a particular report. Stores in format like 0,1,2,3 & so on.',
  `column_name` varchar(250) NOT NULL COMMENT 'Column name on which the operation of SUM, AVG, MIN or MAX is to be done.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=187 DEFAULT CHARSET=latin1 COMMENT='Contains fields that are selected to SUM, AVG, MIN or MAX fo';

--
-- Dumping data for table `bstock_pl_reportsummary`
--

INSERT INTO `bstock_pl_reportsummary` VALUES (1,1,0,'cb:bstock_orderitems:profit_percent:Avg_Profit_Percent_AVG:3',0,0),(2,1,2,'cb:bstock_pl_purchaseorder:net_total:Net_Total_SUM:2',0,0),(3,1,1,'cb:bstock_pl_purchaseorder:subtotal:Sub_Total_AVG:3',0,0),(4,1,3,'cb:bstock_pl_purchaseorder:net_total:Net_Total_AVG:3',0,0),(5,1,4,'cb:bstock_pl_purchaseorder:subtotal:Sub_Total_MIN:4',0,0),(6,1,5,'cb:bstock_pl_purchaseorder:net_total:Net_Total_MIN:4',0,0),(7,1,6,'cb:bstock_pl_purchaseorder:subtotal:Sub_Total_MAX:5',0,0),(8,1,7,'cb:bstock_pl_purchaseorder:net_total:Net_Total_MAX:5',0,0),(9,1,8,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_SUM:2',0,0),(10,1,9,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_AVG:3',0,0),(11,1,10,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_MIN:4',0,0),(12,1,11,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_MAX:5',0,0),(13,9,0,'cb:bstock_pl_purchaseorder:subtotal:subtotal_SUM:2',1276590739,1276590739),(14,9,1,'cb:bstock_pl_purchaseorder:subtotal:subtotal_AVG:3',1276590740,1276590740),(15,9,2,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MIN:4',1276590740,1276590740),(16,9,3,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MAX:5',1276590740,1276590740),(17,9,4,'cb:bstock_pl_purchaseorder:brokerage:brokerage_AVG:3',1276590740,1276590740),(18,9,5,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1276590740,1276590740),(19,9,6,'cb:bstock_pl_purchaseorder:net_total:net_total_AVG:3',1276590740,1276590740),(20,9,7,'cb:bstock_pl_purchaseorder:net_total:net_total_MIN:4',1276590740,1276590740),(21,9,8,'cb:bstock_pl_purchaseorder:net_total:net_total_MAX:5',1276590740,1276590740),(22,11,0,'cb:bstock_pl_purchaseorder:subtotal:subtotal_SUM:2',1276593742,1276593742),(23,11,1,'cb:bstock_pl_purchaseorder:subtotal:subtotal_AVG:3',1276593745,1276593745),(24,11,2,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MIN:4',1276593746,1276593746),(25,11,3,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MAX:5',1276593749,1276593749),(26,11,4,'cb:bstock_pl_purchaseorder:brokerage:brokerage_AVG:3',1276593749,1276593749),(27,11,5,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1276593750,1276593750),(28,11,6,'cb:bstock_pl_purchaseorder:net_total:net_total_AVG:3',1276593750,1276593750),(29,11,7,'cb:bstock_pl_purchaseorder:net_total:net_total_MIN:4',1276593750,1276593750),(30,11,8,'cb:bstock_pl_purchaseorder:net_total:net_total_MAX:5',1276593750,1276593750),(31,17,0,'cb:bstock_orders:brokerage:brokerage_SUM:2',1276691934,1276691934),(32,17,1,'cb:bstock_orders:brokerage:brokerage_AVG:3',1276691935,1276691935),(33,17,2,'cb:bstock_orders:brokerage:brokerage_MIN:4',1276691935,1276691935),(34,17,3,'cb:bstock_orders:brokerage:brokerage_MAX:5',1276691935,1276691935),(35,17,4,'cb:bstock_orders:net_total:net_total_SUM:2',1276691935,1276691935),(36,17,5,'cb:bstock_orders:net_total:net_total_AVG:3',1276691935,1276691935),(37,17,6,'cb:bstock_orders:net_total:net_total_MIN:4',1276691935,1276691935),(38,17,7,'cb:bstock_orders:net_total:net_total_MAX:5',1276691935,1276691935),(39,18,0,'cb:bstock_orders:net_total:net_total_SUM:2',1276692773,1276692773),(122,47,0,'cb:bstock_pl_poitems:listprice:listprice_SUM:2',1280293802,1280293802),(151,23,0,'cb:bstock_orders:net_total:net_total_SUM:2',1306316963,1306316963),(139,22,1,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1285053610,1285053610),(138,22,0,'cb:bstock_pl_purchaseorder:subtotal:subtotal_SUM:2',1285053610,1285053610),(55,31,0,'cb:bstock_orderitems:profit_amount:profit_amount_SUM:2',1277199613,1277199613),(56,31,1,'cb:bstock_orderitems:profit_amount:profit_amount_AVG:3',1277199613,1277199613),(57,31,2,'cb:bstock_orderitems:profit_percent:profit_percent_SUM:2',1277199613,1277199613),(58,31,3,'cb:bstock_orderitems:profit_percent:profit_percent_AVG:3',1277199613,1277199613),(103,42,0,'cb:trial_balance_entries:debit:debit_SUM:2',1280208747,1280208747),(104,42,1,'cb:trial_balance_entries:credit:credit_SUM:2',1280208747,1280208747),(106,44,0,'cb:bstock_orderitems:profit_amount:profit_amount_SUM:2',1280212568,1280212568),(125,48,0,'cb:bstock_pl_poitems:listprice:listprice_SUM:2',1281116408,1281116408),(135,51,0,'cb:bstock_orderitems:brokerage_1_amt_inr:brokerage_1_amt_inr_SUM:2',1283892221,1283892221),(140,54,0,'cb:bstock_pl_purchaseorder:dollar_rate:dollar_rate_SUM:2',1294057547,1294057547),(141,54,1,'cb:bstock_pl_purchaseorder:dollar_rate:dollar_rate_MIN:4',1294057547,1294057547),(142,54,2,'cb:bstock_pl_purchaseorder:dollar_rate:dollar_rate_MAX:5',1294057547,1294057547),(174,63,0,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1306404365,1306404365),(178,64,0,'cb:bstock_orders:net_total:net_total_SUM:2',1306471158,1306471158),(184,61,0,'cb:bstock_orders:brokerage_total:brokerage_total_SUM:2',1307368160,1307368160),(186,58,0,'cb:bstock_orders:net_total:net_total_SUM:2',1313818924,1313818924),(185,61,1,'cb:bstock_orders:brokerage_balance:brokerage_balance_SUM:2',1307368160,1307368160);

--
-- Table structure for table `bstock_pl_save_searches`
--

CREATE TABLE `bstock_pl_save_searches` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `search_name` varchar(50) NOT NULL COMMENT 'This is the search name entered by the user.',
  `shape` varchar(250) NOT NULL COMMENT 'Shape of the diamond.',
  `size_from` decimal(10,2) NOT NULL COMMENT 'Size of the diamond.',
  `size_to` decimal(10,2) NOT NULL,
  `color_from` varchar(10) NOT NULL COMMENT 'Color of the diamond.',
  `color_to` varchar(10) NOT NULL,
  `clarity_from` varchar(10) NOT NULL COMMENT 'Clarity of the diamond.',
  `clarity_to` varchar(10) NOT NULL,
  `cut_from` varchar(50) NOT NULL COMMENT 'Cut of the diamond.',
  `cut_to` varchar(50) NOT NULL,
  `polish_from` varchar(50) NOT NULL COMMENT 'Polish of the diamond.',
  `polish_to` varchar(50) NOT NULL,
  `symmetry_from` varchar(50) NOT NULL COMMENT 'Symmetry of the diamond.',
  `symmetry_to` varchar(50) NOT NULL,
  `lab` varchar(20) NOT NULL COMMENT 'Certified by which lab i.e. GIA, IGI, etc.',
  `flourescence_from` varchar(50) NOT NULL COMMENT 'Flourescence of the diamond.',
  `flourescence_to` varchar(50) NOT NULL,
  `location` varchar(50) NOT NULL COMMENT 'Location of the diamond.',
  `stone_id` varchar(50) NOT NULL COMMENT 'Stone id / lot number of the diamond.',
  `customer_id` int(10) NOT NULL COMMENT 'Customer id which is primary key of bstock_customers table.',
  `ip_address` varchar(50) NOT NULL COMMENT 'IP Address from where the customer is logged in.',
  `created_date` varchar(50) NOT NULL COMMENT 'Timestamp when the search record was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Timestamp when the search record was modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores all the saved searches.';

--
-- Dumping data for table `bstock_pl_save_searches`
--


--
-- Table structure for table `bstock_pl_seeit`
--

CREATE TABLE `bstock_pl_seeit` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(50) NOT NULL,
  `customer_id` int(50) NOT NULL,
  `is_seeit` enum('0','1') NOT NULL DEFAULT '0' COMMENT 'This field shall be used to check if the diamond is under current see it or not.',
  `is_more_seeit` enum('0','1') NOT NULL DEFAULT '0' COMMENT 'This shall determine if some onelse has seen a see it.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=60 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_seeit`
--

INSERT INTO `bstock_pl_seeit` VALUES (54,20,10,'1','0','1314100364','1314100364'),(59,14,8,'1','0','1320998933','1320998933'),(49,1,2262,'1','0','1311921719','1311921719'),(48,1,10,'1','0','1311921714','1311921714'),(47,5,3,'0','0','1311252670','1311252670'),(46,4,3,'0','0','1311252670','1311252670'),(58,30,10,'1','0','1314184308','1314184308'),(57,14,10,'1','0','1314101083','1314101083');

--
-- Table structure for table `bstock_pl_selectquery`
--

CREATE TABLE `bstock_pl_selectquery` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `start_index` int(11) NOT NULL COMMENT 'Not sure of the purpose of this field.',
  `num_of_objects` int(11) NOT NULL COMMENT 'Not sure of the purpose of this field.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Not sure what this table does. We may not need this table.';

--
-- Dumping data for table `bstock_pl_selectquery`
--


--
-- Table structure for table `bstock_pl_selectqueryseq`
--

CREATE TABLE `bstock_pl_selectqueryseq` (
  `id` int(11) NOT NULL COMMENT 'Contains the id of the last created report.'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Contains only one record of the latest report id. We may not';

--
-- Dumping data for table `bstock_pl_selectqueryseq`
--


--
-- Table structure for table `bstock_pl_wishlist`
--

CREATE TABLE `bstock_pl_wishlist` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(10) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_wishlist`
--

INSERT INTO `bstock_pl_wishlist` VALUES (10,2,3,'1311772539','1311772539'),(9,1,3,'1311241618','1311241618'),(11,9,3,'1311856100','1311856100'),(13,9,2262,'1311921476','1311921476'),(14,17,2262,'1312438411','1312438411'),(26,14,8,'1320998866','1320998866');

--
-- Table structure for table `bstock_plugins`
--

CREATE TABLE `bstock_plugins` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `plugin_label` varchar(25) NOT NULL,
  `plugin_desc` varchar(500) NOT NULL,
  `folder_name` varchar(25) NOT NULL COMMENT 'This will store the folder name of that plugin',
  `class_file_name` varchar(25) NOT NULL COMMENT 'This will store the main/class file name',
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `icon` varchar(250) NOT NULL COMMENT 'Contains name of the plugin icon.',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_plugins`
--

INSERT INTO `bstock_plugins` VALUES (1,'Wishlist','Adding to wishlist','Wishlist','Wishlist','on','','1265469043','Wishlist.png'),(3,'AddToCart','AddToCart','AddToCart','AddToCart','on','','1263192828','home_big.gif'),(4,'SeeIt','SeeIt','SeeIt','SeeIt','on','','','home.gif'),(5,'ExportToExcel','ExportToExcel','ExportToExcel','ExportToExcel','off','1263281971','1263281971','home_big.gif'),(6,'PrintIt','PrintIt','PrintIt','PrintIt','on','1263298312','1263298312','home_big.gif'),(9,'Statistics','This will record the stats.','Statistics','Statistics','off','1264168261','1264168261','Statistics.png'),(10,'Product Upload','Uploading products to db using csv','ProductUpload','ProductUpload','on','','','home_big.gif'),(12,'SaveSearches','SaveSearches - this will save the searches made by client from the search result page - baba','SaveSearches','SaveSearches','off','','','home_big.gif'),(13,'ExportToExcelWithPercent','Export to Excel allowing the customer/broker to add a % to the price field.','ExportToExcelWithPercent','ExportToExcelWithPercent','off','','','home_big.gif'),(15,'Purchase Order','purchase order','PurchaseOrder','PurchaseOrder','on','','','home_big.gif'),(16,'Reports','Reports module','Reports','Report','on','','','home_big.gif'),(17,'Invoice','SalesOrder','SalesOrder','SalesOrder','on','1267005563','1267005563','home.gif'),(19,'Assemble Jewelry','Assemble Jewelry','Jewelry','Jewelry','off','','',''),(20,'Approval','Approval','Jhangad','Jhangad','on','1269635676','1269635676',''),(21,'Daily Cashbook Entries','Daily Cashbook Entries','DailyCashEntries','DailyCashEntries','on','','',''),(22,'Enquiry Management System','Enquiry Management System','Ems','Ems','on','1263281971','1263281971','enquiry_module.png'),(23,'Sticker Generation','Sticker Generation','StickerGeneration','StickerGeneration','on','','','barcode_generation.png'),(24,'Verify Stock','Verify Stock','VerifyStock','VerifyStock','on','','','verify_stock.png'),(25,'Courier Approval','Courier Management','Courier','Courier','on','','','home.gif'),(26,'Approval Issue','Approval Issue','JhangadIssued','JhangadIssued','on','','','approval_issue.png'),(27,'Approval Return','Approval Return','JhangadReturn','JhangadReturn','on','','','approval_return.png'),(28,'Parcel Mixing','Parcel Mixing','ParcelMixing','ParcelMixing','on','','','parcel_mixing.png'),(29,'Sales Order Issued','Sales Order Issued','SalesOrderIssued','SalesOrderIssued','on','','','salesorder_issue.png'),(30,'Sales Order Return','Sales Order Return','SalesOrderReturn','SalesOrderReturn','on','','','salesorder_return.png'),(31,'CourierSO','CourierSO','CourierSO','CourierSO','on','1286637172','1286637172','salesorder_courier.png'),(32,'Special Stones','Special stones','SpecialStones','SpecialStones','on','124534543','123435435','special_stones.png'),(33,'Rapnet Uploaded Stock','RapnetUploadedStock','RapnetUploadedStock','RapnetUploadedStock','on','124534543','123435435','rapnet_upload.png'),(34,'Customer Upload','Customer Upload','CustomerUpload','CustomerUpload','on','1213123213','1231231231','home.gif'),(35,'Jhangad Upload','Jhangad Upload','JhangadUpload','JhangadUpload','on','','','home.gif'),(36,'MyAccount','MyAccount','MyAccount','MyAccount','on','1213123213','1231231231','home.gif'),(37,'Update Sales Price','UpdateSalesPrice','UpdateSalesPrice','UpdateSalesPrice','on','','','home.gif'),(38,'Expense Tracking','Expense Tracking','ExpenseTracking','ExpenseTracking','on','','',''),(39,'Business Loans','Interest Finance - Loans taken / given','BusinessLoans','BusinessLoans','on','','','home.gif'),(40,'ParcelSplitting','Parcel Splitting','ParcelSplitting','ParcelSplitting','on','23432423432','23234234324',''),(41,'','','','','','','',''),(42,'','','','','','','',''),(43,'Demands','Demands','Demands','Demands','on','1263279097','1263279097',''),(44,'Offers','Offers','Offers','Offers','on','1263279097','1263279097','');

--
-- Table structure for table `bstock_product_discounts`
--

CREATE TABLE `bstock_product_discounts` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `order_id` int(10) NOT NULL COMMENT 'Will contain the product id of the product.',
  `purpose` varchar(255) NOT NULL COMMENT 'Expense purpose.',
  `price` varchar(20) NOT NULL COMMENT 'Actual Expenses Incurred.',
  `date` varchar(20) NOT NULL COMMENT 'Date of expense.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 COMMENT='Store the expenses of products in the system.';

--
-- Dumping data for table `bstock_product_discounts`
--

INSERT INTO `bstock_product_discounts` VALUES (1,'1272440387','1272440387',37,'test','50','04/30/2010'),(2,'1272440414','1272440414',2,'test 12','100','04/28/2010'),(3,'1273217433','1273217433',4,'Cleaning.','100','05/04/2010'),(4,'1273217779','1273217779',4,'Polishing','200','05/03/2010'),(5,'1273218326','1273218326',5,'Polishing.','1500','05/04/2010'),(6,'1273274831','1273274831',645,'certification','50','05/04/2010'),(7,'1273274930','1273274930',645,'polishing.','100','05/06/2010'),(8,'1273361761','1273361761',644,'certification ','500','05/07/2010'),(9,'1273361800','1273361800',644,'polishing ','300','05/07/2010'),(10,'1273615692','1273615692',646,'certification','100','05/05/2010'),(11,'1274684194','1274684194',0,'test','333','1273560994'),(12,'1274684194','1274684194',0,'test','333','1273560994'),(13,'1274696539','1274696539',0,'test','1111','1274178139'),(14,'1274696778','1274696778',0,'test','42325','1273832778'),(15,'1274697267','1274697267',2,'test','32232','1273574067'),(16,'1277233812','1277233812',44,'testing for new discount','890','1276110612'),(17,'1282119125','1282119125',51,'Relation','2','');

--
-- Table structure for table `bstock_product_expenses`
--

CREATE TABLE `bstock_product_expenses` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `product_id` int(10) NOT NULL COMMENT 'Will contain the product id of the product.',
  `purpose` varchar(255) NOT NULL COMMENT 'Expense purpose.',
  `price` varchar(20) NOT NULL COMMENT 'Actual Expenses Incurred.',
  `percent` decimal(10,2) NOT NULL,
  `date` varchar(20) NOT NULL COMMENT 'Date of expense.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=latin1 COMMENT='Store the expenses of products in the system.';

--
-- Dumping data for table `bstock_product_expenses`
--

INSERT INTO `bstock_product_expenses` VALUES (1,'1272440387','1272440387',2,'test','50',0.00,'04/30/2010'),(2,'1272440414','1272440414',2,'test 12','100',0.00,'04/28/2010'),(3,'1273217433','1273217433',4,'Cleaning.','100',0.00,'05/04/2010'),(4,'1273217779','1273217779',4,'Polishing','200',0.00,'05/03/2010'),(5,'1273218326','1273218326',5,'Polishing.','1500',0.00,'05/04/2010'),(6,'1273274831','1273274831',645,'certification','50',0.00,'05/04/2010'),(7,'1273274930','1273274930',645,'polishing.','100',0.00,'05/06/2010'),(8,'1273361761','1273361761',644,'certification ','500',0.00,'05/07/2010'),(9,'1273361800','1273361800',644,'polishing ','300',0.00,'05/07/2010'),(10,'1273615692','1273615692',646,'certification','100',0.00,'05/05/2010'),(11,'1274684194','1274684194',0,'test','333',0.00,'1273560994'),(12,'1274684194','1274684194',0,'test','333',0.00,'1273560994'),(13,'1274696539','1274696539',0,'test','1111',0.00,'1274178139'),(14,'1274696778','1274696778',0,'test','42325',0.00,'1273832778'),(15,'1274697267','1274697267',2,'test','32232',0.00,'1273574067');

--
-- Table structure for table `bstock_product_history`
--

CREATE TABLE `bstock_product_history` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `stoneid` varchar(50) NOT NULL,
  `product_id` int(10) NOT NULL COMMENT 'Will contain the product id of the product.',
  `shape` enum('ROUND','PRINCESS','PEAR','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL DEFAULT 'NONE',
  `symmetry` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V') NOT NULL,
  `price` varchar(100) NOT NULL DEFAULT '0',
  `piece_price` varchar(50) NOT NULL,
  `carat_price` varchar(50) NOT NULL,
  `length` varchar(50) NOT NULL,
  `width` varchar(50) NOT NULL,
  `height` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  `girdle` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1 COMMENT='Store the history of products in the system.';

--
-- Dumping data for table `bstock_product_history`
--

INSERT INTO `bstock_product_history` VALUES (6,'1272438543','1272438543','',2,'ROUND',1.01,'NONE','EXCELLENT','EXCELLENT','EXCELLENT','','','1','','','0.9','','1','0.9','0.7',''),(5,'1272437360','1272437360','',2,'ROUND',1.02,'FAINT','GOOD','EXCELLENT','EXCELLENT','','','2','','','1','','1','0.9','0.8',''),(4,'1272333453','1272333453','',2,'PRINCESS',1.09,'FAINT','GOOD','VERY GOOD','EXCELLENT','','','2','','','1','','2','1','1',''),(7,'1273216374','1273216374','',4,'PRINCESS',2.00,'NONE','VERY GOOD','VERY GOOD','EXCELLENT','','','2','','','1','','2','','1',''),(8,'1273216520','1273216520','',4,'PRINCESS',1.00,'FAINT','VERY GOOD','EXCELLENT','VERY GOOD','','','3','','','2','','3','2','2',''),(9,'1273218349','1273218349','',5,'ROUND',1.00,'FAINT','EXCELLENT','EXCELLENT','EXCELLENT','','','2','','','1','','2','2','1',''),(10,'1273274894','1273274894','',645,'ROUND',0.17,'FAINT','EXCELLENT','EXCELLENT','EXCELLENT','','','1','','','2','','1','2','2',''),(11,'1273361857','1273361857','',644,'ROUND',0.90,'FAINT','EXCELLENT','EXCELLENT','EXCELLENT','','','3','','','2','','5','20','30',''),(12,'1273361885','1273361885','',644,'ROUND',0.74,'NONE','EXCELLENT','EXCELLENT','EXCELLENT','','','3','','','2','','5','20','30','');

--
-- Table structure for table `bstock_product_master`
--

CREATE TABLE `bstock_product_master` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this will be referred as product_id in all other tables',
  `type_id` int(10) NOT NULL COMMENT 'type_id is used to map the record with main type_master table to knw which type of product is this',
  `product_name` varchar(500) NOT NULL,
  `vendor_id` int(10) NOT NULL COMMENT 'vendor_id is used to map with particular vendor with vendoe master table',
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=76 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_product_master`
--

INSERT INTO `bstock_product_master` VALUES (1,1,'20g Platinum',1,'',''),(2,2,'10g Gold',2,'',''),(3,5,'Men\'s Wedding Rings',3,'',''),(4,5,'Engagement Rings',4,'',''),(5,5,'Wedding Ring',0,'',''),(6,5,'Gemstone Rings',1,'',''),(7,5,'Diamond Studed Rings',2,'',''),(8,5,'Eternity Rings',3,'',''),(9,5,'Dedicated Rings',4,'',''),(10,5,'Wedding Rings',5,'',''),(11,5,'Engagement Rings',6,'',''),(12,5,'Designer Rings',7,'',''),(13,5,'Touch of Gold Rings',8,'',''),(14,5,'Touch of Silver Rings',9,'',''),(15,5,'Touch of Platinum Rings',10,'',''),(16,5,'Solitaire Ring',1,'',''),(17,5,'Solitaire Studed Ring',2,'',''),(18,5,'Solitaire Wedding Rings',3,'',''),(19,5,'Solitaire Engagement Rings',4,'',''),(20,5,'Solitaire Wedding Ring',0,'',''),(21,5,'Solitaire Gemstone Rings',1,'',''),(22,5,'Solitaire Diamond Studed Rings',2,'',''),(23,5,'Solitaire Eternity Rings',3,'',''),(24,5,'Solitaire Dedicated Rings',4,'',''),(25,5,'Sidestone Ring',1,'',''),(26,5,'Sidestone Studed Ring',2,'',''),(27,5,'Sidestone Wedding Rings',3,'',''),(28,5,'Sidestone Engagement Rings',4,'',''),(29,5,'Sidestone Wedding Ring',0,'',''),(30,5,'Sidestone Gemstone Rings',1,'',''),(31,5,'Sidestone Diamond Studed Rings',2,'',''),(32,5,'Sidestone Eternity Rings',3,'',''),(33,5,'Sidestone Dedicated Rings',4,'',''),(34,5,'Mone Ring',1,'',''),(35,5,'Mone Studed Ring',2,'',''),(36,5,'Mone Wedding Rings',3,'',''),(37,5,'Mone Engagement Rings',4,'',''),(38,5,'Mone Wedding Ring',0,'',''),(39,5,'Mone Gemstone Rings',1,'',''),(40,5,'Mone Diamond Studed Rings',2,'',''),(41,5,'Mone Eternity Rings',3,'',''),(42,5,'Mone Dedicated Rings',4,'',''),(43,5,'Tension Ring',1,'',''),(44,5,'Tension Studed Ring',2,'',''),(45,5,'Tension Wedding Rings',3,'',''),(46,5,'Tension Engagement Rings',4,'',''),(47,5,'Tension Wedding Ring',0,'',''),(48,5,'Tension Gemstone Rings',1,'',''),(49,5,'Tension Diamond Studed Rings',2,'',''),(50,5,'Tension Eternity Rings',3,'',''),(51,5,'Tension Dedicated Rings',4,'',''),(55,5,'Ring / Diamond 2k / 3.00gm',1,'1263281971','1263281971'),(56,5,'Ring with diamond',1,'123223223','123223223'),(57,5,'Jewelry',1,'1283757521','1283757521'),(58,5,'Jewelry',3,'1283759338','1283759338'),(59,5,'Jewelry',1,'1283777612','1283777612'),(60,5,'Jewelry',1,'1283852927','1283852927'),(61,5,'Jewelry',0,'1283873378','1283873378'),(62,5,'Jewelry',0,'1283873848','1283873848'),(63,5,'Jewelry',0,'1283875146','1283875146'),(64,5,'Jewelry',0,'1285668597','1285668597'),(65,5,'Jewelry',0,'1285668708','1285668708'),(66,5,'Jewelry',0,'1285668868','1285668868'),(67,5,'Jewelry',0,'1285668956','1285668956'),(68,5,'Jewelry',0,'1285669106','1285669106'),(69,5,'Jewelry',0,'1285676716','1285676716'),(70,5,'Jewelry',0,'1285678016','1285678016'),(71,5,'Jewelry',0,'1285678155','1285678155'),(72,5,'Jewelry',0,'1285678201','1285678201'),(73,5,'Jewelry',0,'1285678485','1285678485'),(74,5,'Jewelry',0,'1285680273','1285680273'),(75,5,'Jewelry',0,'1285680330','1285680330');

--
-- Table structure for table `bstock_products`
--

CREATE TABLE `bstock_products` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `store_id` int(10) NOT NULL DEFAULT '1' COMMENT 'Can be used in future if multiple  stores are added.',
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `stoneid` varchar(50) NOT NULL,
  `serial_no` int(11) NOT NULL,
  `typeofstone` enum('Loose','Single') NOT NULL DEFAULT 'Single' COMMENT 'This field will inform us that this field is loose or single stone',
  `shape` enum('ROUND','PRINCESS','PEAR','EMERALD','MARQUISE','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `location` enum('Mumbai','Delhi') NOT NULL DEFAULT 'Mumbai',
  `is_active` enum('on','off') NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY   SLIGHT') NOT NULL DEFAULT 'NONE',
  `lab` enum('All Labs','GIA','IGI','HRD','AGS','PGS','VGR','EGL USA','EGL Israel','EGL Other','DCLA','Uncertified','Other') NOT NULL,
  `symmetry` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `polish` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','SI3','I1','I2','I3') NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','  U','V') NOT NULL,
  `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'This field is used as RAP $ price instead of rap_price.',
  `rap_price` decimal(10,2) NOT NULL COMMENT 'This field is not being used for any calculations as the ''price'' field is used instead of this.',
  `inr_price` decimal(10,2) NOT NULL,
  `inr_sale_price_with_margin` decimal(10,2) NOT NULL COMMENT 'This will store the sales price of that diamond in aud- (inr_sale_price_with_margin = piece_price_dollar  * margin * conversion rate) ',
  `total_sales_piece_price_with_margin` decimal(10,2) NOT NULL,
  `current_rap_price` decimal(10,2) NOT NULL COMMENT 'This field will store the latest rap price of that product. this willbe updated during rap update',
  `total_piece_price_asper_rap` decimal(10,2) NOT NULL COMMENT 'This will store the total piece price as per the rapnet price per carat. ',
  `conversion_rate` decimal(10,3) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `cash_back` decimal(10,2) NOT NULL,
  `aadat` decimal(10,2) NOT NULL,
  `brokerage` decimal(10,2) NOT NULL,
  `purchase_price_dollar` decimal(10,2) NOT NULL COMMENT 'Piece Purchase Price (after deductions)($)',
  `purchase_price_inr` decimal(10,2) NOT NULL COMMENT 'Piece Purchase Price (after deductions)(INR)',
  `certificate_id` varchar(50) NOT NULL,
  `certificate_status` enum('Given','Back') NOT NULL DEFAULT 'Back',
  `discount` varchar(50) NOT NULL,
  `length` decimal(10,0) NOT NULL,
  `width` varchar(5) NOT NULL,
  `height` varchar(5) NOT NULL,
  `measurement` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  `country` enum('India','Hong Kong','USA','Belgium') NOT NULL,
  `qty` varchar(10) NOT NULL DEFAULT '1',
  `orignal_qty` decimal(10,2) NOT NULL,
  `purchase_price` varchar(10) NOT NULL,
  `vendorname` varchar(500) NOT NULL,
  `sellqty` int(5) NOT NULL,
  `jwl_category` enum('Ring','Bangles','Necklace','Earnings','Bracelet','Nose Ring','Painjan','Bajuband','KamarPata') NOT NULL,
  `category` enum('Loose','Single') NOT NULL,
  `piece_price_inr` decimal(10,2) NOT NULL COMMENT 'inr_price * size',
  `piece_price_dollar` decimal(10,2) NOT NULL COMMENT 'price * size',
  `rough_to_polish_cost_price_dollar` decimal(10,2) NOT NULL COMMENT 'Cost price of the rough (in dollar) that is calculated while publishing the stone from ''RoughToPolish'' module.',
  `rough_to_polish_cost_price_inr` decimal(10,2) NOT NULL COMMENT 'Cost price of the rough (in INR) that is calculated while publishing the stone from ''RoughToPolish'' module.',
  `last_verified_date` int(50) NOT NULL COMMENT 'store the verification date',
  `status` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Onhold','Out Of Stock','On Approval') NOT NULL COMMENT 'different status of the stock',
  `verified` enum('0','1','2') NOT NULL COMMENT 'Enum value to check and uncheck verification',
  `is_special_stone` enum('true','false') NOT NULL,
  `is_rapnet_uploaded` enum('true','false') NOT NULL,
  `barcode_number` varchar(20) NOT NULL,
  `parcel_id` int(10) NOT NULL COMMENT 'Stores the parcel id of the parcel of which this product is part of.',
  `girdle` varchar(255) NOT NULL,
  `certificate_filename` varchar(250) NOT NULL,
  `depth` varchar(5) NOT NULL,
  `description` varchar(250) NOT NULL,
  `published` enum('on','off') NOT NULL COMMENT 'published on website',
  `supplier_id` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  `crown_height` float(10,2) NOT NULL,
  `pavilion_height` float(10,2) NOT NULL,
  `crown_angle` float(10,2) NOT NULL,
  `pavilion_angle` float(10,2) NOT NULL,
  `girdle_percentage` float(10,2) NOT NULL,
  `culet` float(10,2) NOT NULL,
  `report_no` varchar(100) NOT NULL,
  `laser_inscription` float(10,2) NOT NULL,
  `laser_inclusion` float(10,2) NOT NULL,
  `report_date` int(10) NOT NULL,
  `report_comments` varchar(500) NOT NULL,
  `key_to_symbol` varchar(100) NOT NULL,
  `table_inclusion` float(10,2) NOT NULL,
  `black_inclusion` float(10,2) NOT NULL,
  `parent_product_id` int(11) NOT NULL DEFAULT '0',
  `is_new_stone` enum('true','false') NOT NULL COMMENT 'Whether this is a new stone or not.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_products`
--

INSERT INTO `bstock_products` VALUES (1,1,NULL,'1314011684','10',0,'Single','ROUND',1.40,'Mumbai','on','ANY','GIA','ANY','ANY','ANY','IF','E',17000.00,17000.00,765000.00,765000.00,1071000.00,21000.00,0.00,45.000,0.00,0.00,0.00,0.00,23800.00,1071000.00,'2116069130','Back','10',0,'','','','','','India','-22',1.40,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','10RIRFFF',0,'','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,0,'true'),(2,1,NULL,'1314011684','11',0,'Single','PRINCESS',2.80,'Mumbai','on','ANY','GIA','GOOD','VERY GOOD','VERY GOOD','VVS1','D',22000.00,22000.00,990000.00,990000.00,2772000.00,24000.00,0.00,45.000,0.00,0.00,0.00,0.00,61600.00,2772000.00,'2116069130','Back','10',0,'','','','','','India','-1',2.80,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','11PNNFFF',0,'','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,0,'true'),(3,1,'1309679058','1314011950','12',0,'Single','ROUND',1.70,'Mumbai','on','ANY','GIA','ANY','ANY','ANY','IF','D',35000.00,35000.00,1575000.00,1575000.00,2677500.00,35000.00,0.00,45.000,0.00,0.00,0.00,0.00,59500.00,2677500.00,'2116069130','Back','10',0,'','','','','','India','-1',1.70,'','harry',0,'Ring','Loose',2677500.00,59500.00,0.00,0.00,0,'Order Placed','0','true','true','12RETFFF',0,'','','','','on',0,1,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,0,'true'),(4,1,'1310189811','1314011875','65',0,'Single','ROUND',1.00,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VVS2','G',0.00,5000.00,0.00,0.00,0.00,11500.00,0.00,45.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',12,'12','12','13','13','13','India','3',1.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','65',0,'13','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,0,'false'),(5,1,'1311249101','1314100233','1',0,'Loose','ROUND',4.00,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,35000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-4',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(9,1,'1311322098','1312790551','70',0,'Loose','PRINCESS',4.92,'Mumbai','on','NONE','GIA','GOOD','','VERY GOOD','SI1','D',0.00,0.00,0.00,8888.00,8888.00,9000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-3',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,''),(8,1,'1311322098','1312794017','69',0,'Loose','PRINCESS',11.22,'Mumbai','on','NONE','GIA','GOOD','','VERY GOOD','VVS2','E',0.00,0.00,0.00,8888.00,8888.00,12000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-2',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'In Stock','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(10,1,'1312199851','1314078675','100',0,'Loose','PRINCESS',4.50,'Mumbai','on','NONE','GIA','GOOD','','VERY GOOD','VVS1','E',0.00,0.00,0.00,8888.00,8888.00,12000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-2',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(11,1,'1312199851','1312806641','101',0,'Loose','PRINCESS',1.10,'Mumbai','on','NONE','GIA','GOOD','','VERY GOOD','SI2','D',0.00,0.00,0.00,8888.00,8888.00,9000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-1',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,''),(12,1,'1312199851','1314092499','102',0,'Loose','ROUND',8.40,'Mumbai','on','NONE','IGI','EXCELLENT','','EXCELLENT','VVS1','F',0.00,0.00,0.00,8888.00,8888.00,30500.00,0.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-3',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(13,1,'1312199851','1314092733','103',0,'Loose','ROUND',9.20,'Mumbai','on','NONE','GIA','GOOD','','GOOD','SI2','H',0.00,0.00,0.00,8888.00,8888.00,15500.00,0.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-3',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','3.17','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,''),(14,1,'1312199851','1321000321','104',0,'Loose','ROUND',3.60,'Mumbai','on','NONE','GIA','GOOD','','VERY GOOD','VVS1','D',0.00,0.00,0.00,8888.00,8888.00,26000.00,0.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-3',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(15,1,'1312199851','1314079020','105',0,'Loose','PEAR',3.80,'Mumbai','on','NONE','IGI','GOOD','','VERY GOOD','SI2','H',0.00,0.00,0.00,8888.00,8888.00,11000.00,0.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-2',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,''),(16,1,'1312199851','1314079686','106',0,'Loose','PEAR',3.20,'Mumbai','on','NONE','GIA','EXCELLENT','','EXCELLENT','VVS1','D',0.00,0.00,0.00,8888.00,8888.00,16000.00,0.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-3',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(17,1,'1312199851','1314086368','107',0,'Loose','ROUND',11.60,'Mumbai','on','NONE','GIA','GOOD','','GOOD','SI2','D',0.00,0.00,0.00,8888.00,8888.00,24000.00,0.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',36,'37','38','','30','35','India','-2',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'In Stock','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,''),(18,1,NULL,'1314091373','',0,'Single','PRINCESS',1.50,'Mumbai','on','MEDIUM','EGL Israel','VERY GOOD','GOOD','GOOD','VVS2','D',0.00,0.00,0.00,0.00,5555.00,3333.00,0.00,45.000,0.00,0.00,0.00,0.00,0.00,0.00,'2116069130','Back','10',4,'5','5','3','6','7','India','2',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'2','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,0,'true'),(19,1,'1313745903','1314079094','201',0,'Single','ROUND',1.00,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,18000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(20,1,'1313745903','1326444554','202',0,'Single','ROUND',2.00,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,35000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(21,1,'1313745903','1314086677','203',0,'Single','ROUND',1.50,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,22500.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(22,1,'1313745903','1314087508','204',0,'Single','ROUND',1.60,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,22500.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(23,1,NULL,'1314093222','205',0,'Single','ROUND',2.80,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',0.00,0.00,0.00,8888.00,8888.00,53000.00,0.00,45.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(24,1,'1313745903','1314093874','206',0,'Single','ROUND',2.30,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,35000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(25,1,'1313745903','1314180700','207',0,'Single','ROUND',1.90,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,22500.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(26,1,'1313745903','1313820283','208',0,'Single','ROUND',1.40,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,18000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Sold','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(27,1,NULL,'1314093993','209',0,'Single','ROUND',2.40,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VS2','H',0.00,0.00,0.00,8888.00,8888.00,35000.00,0.00,45.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(28,1,NULL,'1314095128','210',0,'Single','ROUND',2.60,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS2','G',0.00,0.00,0.00,8888.00,8888.00,21000.00,0.00,45.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(29,1,'1313745903','1314094375','211',0,'Single','ROUND',2.30,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,35000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','0',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'Order Placed','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true'),(30,1,'1313745903','1314091038','213',0,'Single','ROUND',2.20,'Mumbai','on','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',0.00,0.00,0.00,8888.00,8888.00,35000.00,7777.00,0.000,0.00,0.00,0.00,0.00,0.00,0.00,'','Back','10',36,'37','38','','30','35','India','1',0.00,'','',0,'Ring','Loose',0.00,0.00,0.00,0.00,0,'In Stock','0','true','true','',0,'44','','','','on',0,0,39.00,40.00,41.00,42.00,45.00,46.00,'47',48.00,49.00,50,'51','52',54.00,53.00,0,'true');

--
-- Table structure for table `bstock_products_history`
--

CREATE TABLE `bstock_products_history` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT 'primary id for the table',
  `product_id` int(20) NOT NULL COMMENT 'Product identification',
  `type_id` int(10) NOT NULL COMMENT 'represents type of transaction like jhangad,SO,PO',
  `customer_id` int(10) NOT NULL COMMENT 'Customer identification',
  `status_of_products` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Deleted','Onhold') NOT NULL COMMENT 'status of the stock',
  `date` varchar(50) NOT NULL COMMENT 'current date in timestep format',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='product life cycle in table structure';

--
-- Dumping data for table `bstock_products_history`
--


--
-- Table structure for table `bstock_products_history_new`
--

CREATE TABLE `bstock_products_history_new` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(10) NOT NULL,
  `status` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Onhold','Out Of Stock','Sales Price Updated','Purchased','Mass Upload','Split') NOT NULL,
  `size` decimal(10,3) NOT NULL,
  `amount` decimal(10,3) NOT NULL,
  `order_appro_id` int(8) unsigned zerofill NOT NULL COMMENT 'Order ID / Approval ID',
  `customer_id` int(10) NOT NULL,
  `old_price` decimal(10,3) NOT NULL COMMENT 'In case price being updated through Update Price module, this field will store the previous price of the stone.',
  `current_rap_price` float(10,2) NOT NULL,
  `discount` float(10,2) NOT NULL,
  `created_date` varchar(25) NOT NULL,
  `modified_date` varchar(25) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=134 DEFAULT CHARSET=latin1 COMMENT='product life cycle in table structure';

--
-- Dumping data for table `bstock_products_history_new`
--

INSERT INTO `bstock_products_history_new` VALUES (1,1,'Purchased',1.400,1071000.000,00000001,1,0.000,0.00,0.00,'1309370486','1309370486'),(2,2,'Purchased',2.800,2772000.000,00000001,1,0.000,21000.00,0.00,'1309370489','1309370489'),(3,2,'Order Placed',2.800,2346120.000,00000001,2,0.000,0.00,0.00,'1309370696','1309370696'),(4,3,'Purchased',1.700,2677500.000,00000002,1,0.000,0.00,0.00,'1309679058','1309679058'),(5,3,'Order Placed',1.700,2754000.000,00000002,2,0.000,0.00,0.00,'1309679125','1309679125'),(6,1,'Order Returned Full',0.000,765000.000,00000003,87,0.000,0.00,0.00,'1310367921','1310367921'),(7,4,'Order Returned Full',0.000,0.000,00000003,87,0.000,0.00,0.00,'1310367921','1310367921'),(8,1,'Order Returned Full',0.000,765000.000,00000003,87,0.000,0.00,0.00,'1310368958','1310368958'),(9,4,'Order Returned Full',0.000,0.000,00000003,87,0.000,0.00,0.00,'1310368958','1310368958'),(10,1,'Order Returned Full',0.000,765000.000,00000004,3,0.000,0.00,0.00,'1310368963','1310368963'),(11,4,'Order Returned Full',0.000,0.000,00000004,3,0.000,0.00,0.00,'1310368963','1310368963'),(12,1,'Order Returned Full',0.000,765000.000,00000004,3,0.000,0.00,0.00,'1310369096','1310369096'),(13,4,'Order Returned Full',0.000,0.000,00000004,3,0.000,0.00,0.00,'1310369096','1310369096'),(14,4,'Order Returned Full',0.000,0.000,00000005,3,0.000,0.00,0.00,'1310369102','1310369102'),(15,4,'Order Returned Full',0.000,0.000,00000005,3,0.000,0.00,0.00,'1310371735','1310371735'),(16,1,'Order Returned Full',0.000,765000.000,00000006,3,0.000,0.00,0.00,'1310371738','1310371738'),(17,1,'Order Returned Full',0.000,765000.000,00000006,3,0.000,0.00,0.00,'1310374400','1310374400'),(18,1,'Order Returned Full',0.000,765000.000,00000006,3,0.000,0.00,0.00,'1310374635','1310374635'),(19,1,'Order Returned Full',0.000,765000.000,00000007,3,0.000,0.00,0.00,'1310374641','1310374641'),(20,4,'Order Returned Full',0.000,0.000,00000007,3,0.000,0.00,0.00,'1310374641','1310374641'),(21,1,'Order Returned Full',0.000,765000.000,00000007,3,0.000,0.00,0.00,'1310375102','1310375102'),(22,4,'Order Returned Full',0.000,0.000,00000007,3,0.000,0.00,0.00,'1310375104','1310375104'),(23,1,'Order Returned Full',0.000,765000.000,00000007,3,0.000,0.00,0.00,'1310375683','1310375683'),(24,4,'Order Returned Full',0.000,0.000,00000007,3,0.000,0.00,0.00,'1310375683','1310375683'),(25,4,'Order Returned Full',0.000,0.000,00000009,3,0.000,0.00,0.00,'1310375688','1310375688'),(26,1,'Order Returned Full',0.000,765000.000,00000008,3,0.000,0.00,0.00,'1310375693','1310375693'),(27,1,'Order Returned Full',0.000,765000.000,00000008,3,0.000,0.00,0.00,'1310376910','1310376910'),(28,1,'Order Returned Full',1.400,23799.300,00000012,3,0.000,0.00,0.00,'1310378649','1310378649'),(29,4,'Order Returned Full',1.000,5666.100,00000011,3,0.000,0.00,0.00,'1310378654','1310378654'),(30,1,'Order Returned Full',0.000,765000.000,00000010,3,0.000,0.00,0.00,'1310378657','1310378657'),(31,1,'Order Returned Full',0.000,765000.000,00000010,3,0.000,0.00,0.00,'1310378815','1310378815'),(32,1,'Order Returned Full',1.400,23799.300,00000013,3,0.000,0.00,0.00,'1310378822','1310378822'),(33,1,'Order Returned Full',1.400,23799.300,00000013,3,0.000,0.00,0.00,'1310378942','1310378942'),(34,1,'Order Returned Full',1.400,23799.300,00000015,3,0.000,0.00,0.00,'1310378949','1310378949'),(35,1,'Order Returned Full',1.400,23799.300,00000014,3,0.000,0.00,0.00,'1310378953','1310378953'),(36,1,'Order Returned Full',1.400,23799.300,00000014,3,0.000,0.00,0.00,'1310378996','1310378996'),(37,1,'Order Returned Full',1.400,23799.300,00000016,3,0.000,0.00,0.00,'1310379000','1310379000'),(38,1,'Order Returned Full',1.400,23799.300,00000016,3,0.000,0.00,0.00,'1310379118','1310379118'),(39,1,'Order Returned Full',1.400,23799.300,00000017,3,0.000,0.00,0.00,'1310379127','1310379127'),(40,1,'Order Returned Full',1.400,23799.300,00000017,3,0.000,0.00,0.00,'1310379237','1310379237'),(41,1,'Order Returned Full',1.400,23799.300,00000018,3,0.000,0.00,0.00,'1310379245','1310379245'),(42,1,'Order Returned Full',1.400,23799.300,00000018,3,0.000,0.00,0.00,'1310379485','1310379485'),(43,1,'Order Returned Full',1.400,23799.300,00000019,3,0.000,0.00,0.00,'1310379489','1310379489'),(44,1,'Order Returned Full',1.400,23799.300,00000019,3,0.000,0.00,0.00,'1310379592','1310379592'),(45,1,'Order Returned Full',1.400,23799.300,00000019,3,0.000,0.00,0.00,'1310379604','1310379604'),(46,1,'Order Returned Full',1.400,23799.300,00000020,3,0.000,0.00,0.00,'1310379610','1310379610'),(47,1,'Order Returned Full',1.400,23799.300,00000020,3,0.000,0.00,0.00,'1310379723','1310379723'),(48,1,'Order Returned Full',1.400,23799.300,00000021,3,0.000,0.00,0.00,'1310379727','1310379727'),(49,1,'Order Returned Full',1.400,23799.300,00000021,3,0.000,0.00,0.00,'1310379757','1310379757'),(50,1,'Order Returned Full',1.400,23799.300,00000021,3,0.000,0.00,0.00,'1310379926','1310379926'),(51,1,'Order Returned Full',1.400,23799.300,00000022,3,0.000,0.00,0.00,'1310379931','1310379931'),(52,1,'Order Returned Full',1.400,23799.300,00000022,3,0.000,0.00,0.00,'1310380041','1310380041'),(53,1,'Order Returned Full',1.400,23799.300,00000023,3,0.000,0.00,0.00,'1310380046','1310380046'),(54,1,'Order Returned Full',1.400,23799.300,00000023,3,0.000,0.00,0.00,'1310380065','1310380065'),(55,1,'Order Placed',1.400,1197000.000,00000026,1,0.000,0.00,0.00,'1311243922','1311243922'),(56,1,'Order Returned Full',1.400,1260000.000,00000026,1,0.000,0.00,0.00,'1311245166','1311245166'),(57,5,'Mass Upload',1.000,8888.000,00000000,0,0.000,7777.00,0.00,'1311249088','1311249088'),(58,5,'Mass Upload',1.000,8888.000,00000000,0,0.000,7777.00,0.00,'1311249101','1311249101'),(59,5,'Mass Upload',0.000,0.000,00000000,0,0.000,0.00,0.00,'1311321404','1311321404'),(60,5,'Mass Upload',0.000,0.000,00000000,0,0.000,0.00,0.00,'1311321482','1311321482'),(61,6,'Mass Upload',1.870,8888.000,00000000,0,0.000,12000.00,0.00,'1311321995','1311321995'),(62,7,'Mass Upload',1.230,8888.000,00000000,0,0.000,9000.00,0.00,'1311321995','1311321995'),(63,8,'Mass Upload',1.870,8888.000,00000000,0,0.000,12000.00,0.00,'1311322098','1311322098'),(64,9,'Mass Upload',1.230,8888.000,00000000,0,0.000,9000.00,0.00,'1311322098','1311322098'),(65,8,'Order Returned Full',1.870,0.000,00000030,10,0.000,0.00,0.00,'1311337899','1311337899'),(66,9,'Order Returned Full',1.230,0.000,00000030,10,0.000,0.00,0.00,'1311337913','1311337913'),(67,9,'Order Returned Full',2.460,0.000,00000031,10,0.000,0.00,0.00,'1311339838','1311339838'),(68,2,'Order Returned Full',2.800,0.000,00000031,10,0.000,0.00,0.00,'1311339901','1311339901'),(69,1,'Order Returned Full',1.400,0.000,00000029,3,0.000,0.00,0.00,'1311339972','1311339972'),(70,3,'Order Returned Full',1.700,2754000.000,00000002,2,0.000,0.00,0.00,'1311339999','1311339999'),(71,3,'Order Returned Full',1.700,0.000,00000028,3,0.000,0.00,0.00,'1311340012','1311340012'),(72,5,'Order Returned Full',1.000,0.000,00000027,3,0.000,0.00,0.00,'1311340521','1311340521'),(73,4,'Order Returned Full',1.000,0.000,00000027,3,0.000,0.00,0.00,'1311340530','1311340530'),(74,4,'Order Returned Full',1.000,0.000,00000025,3,0.000,0.00,0.00,'1311340539','1311340539'),(75,1,'Order Returned Full',1.400,0.000,00000024,3,0.000,0.00,0.00,'1311340546','1311340546'),(76,10,'Mass Upload',1.500,8888.000,00000000,0,0.000,12000.00,0.00,'1312199851','1312199851'),(77,11,'Mass Upload',1.100,8888.000,00000000,0,0.000,9000.00,0.00,'1312199851','1312199851'),(78,12,'Mass Upload',2.100,8888.000,00000000,0,0.000,13000.00,0.00,'1312199851','1312199851'),(79,13,'Mass Upload',2.300,8888.000,00000000,0,0.000,14000.00,0.00,'1312199851','1312199851'),(80,14,'Mass Upload',0.900,8888.000,00000000,0,0.000,15000.00,0.00,'1312199851','1312199851'),(81,15,'Mass Upload',1.900,8888.000,00000000,0,0.000,11000.00,0.00,'1312199851','1312199851'),(82,16,'Mass Upload',1.600,8888.000,00000000,0,0.000,16000.00,0.00,'1312199851','1312199851'),(83,17,'Mass Upload',2.900,8888.000,00000000,0,0.000,17000.00,0.00,'1312199851','1312199851'),(84,17,'Order Placed',2.900,2231550.000,00000043,1,0.000,0.00,0.00,'1312367639','1312367639'),(85,15,'Order Placed',1.900,940500.000,00000043,1,0.000,0.00,0.00,'1312367639','1312367639'),(86,17,'Order Returned Full',2.900,2479500.000,00000043,1,0.000,0.00,0.00,'1312368642','1312368642'),(87,15,'Order Returned Full',1.900,940500.000,00000043,1,0.000,0.00,0.00,'1312369455','1312369455'),(88,17,'Order Returned Full',2.900,0.000,00000046,10,0.000,0.00,0.00,'1313741133','1313741133'),(89,13,'Order Returned Full',2.300,0.000,00000058,10,0.000,0.00,0.00,'1313741260','1313741260'),(90,3,'Order Returned Full',1.700,0.000,00000048,10,0.000,0.00,0.00,'1313741566','1313741566'),(91,2,'Order Returned Full',2.800,0.000,00000034,3,0.000,0.00,0.00,'1313743897','1313743897'),(92,2,'Order Returned Full',2.800,0.000,00000035,3,0.000,0.00,0.00,'1313743935','1313743935'),(93,1,'Order Returned Full',1.400,0.000,00000033,3,0.000,0.00,0.00,'1313743959','1313743959'),(94,3,'Order Returned Full',1.700,0.000,00000036,3,0.000,0.00,0.00,'1313743970','1313743970'),(95,4,'Order Returned Full',1.000,0.000,00000048,10,0.000,0.00,0.00,'1313743985','1313743985'),(96,8,'Order Returned Full',3.740,0.000,00000039,3,0.000,0.00,0.00,'1313744000','1313744000'),(97,8,'Order Returned Full',3.740,0.000,00000050,10,0.000,0.00,0.00,'1313744013','1313744013'),(98,1,'Order Returned Full',1.400,0.000,00000047,10,0.000,0.00,0.00,'1313744298','1313744298'),(99,2,'Order Returned Full',2.800,0.000,00000047,10,0.000,0.00,0.00,'1313744317','1313744317'),(100,10,'Order Returned Full',1.500,0.000,00000040,3,0.000,0.00,0.00,'1313744333','1313744333'),(101,10,'Order Returned Full',1.500,0.000,00000053,10,0.000,0.00,0.00,'1313744372','1313744372'),(102,16,'Order Returned Full',1.600,0.000,00000044,10,0.000,0.00,0.00,'1313744384','1313744384'),(103,14,'Order Returned Full',0.900,0.000,00000055,10,0.000,0.00,0.00,'1313744545','1313744545'),(104,15,'Order Returned Full',1.900,0.000,00000057,10,0.000,0.00,0.00,'1313744768','1313744768'),(105,19,'Order Returned Full',1.000,0.000,00000059,10,0.000,0.00,0.00,'1313746362','1313746362'),(106,19,'Order Placed',1.000,810000.000,00000061,10,0.000,0.00,0.00,'1313746630','1313746630'),(107,19,'Order Returned Full',1.000,810000.000,00000061,10,0.000,0.00,0.00,'1313746912','1313746912'),(108,20,'Order Returned Full',2.000,0.000,00000060,10,0.000,0.00,0.00,'1313746921','1313746921'),(109,20,'Order Placed',2.000,3150000.000,00000063,10,0.000,0.00,0.00,'1313747027','1313747027'),(110,19,'Order Returned Full',1.000,0.000,00000062,10,0.000,0.00,0.00,'1313754128','1313754128'),(111,20,'Order Returned Full',2.000,3150000.000,00000063,10,0.000,0.00,0.00,'1313755903','1313755903'),(112,12,'Order Returned Full',2.100,0.000,00000052,10,0.000,0.00,0.00,'1313820218','1313820218'),(113,23,'Order Placed',2.800,6678000.000,00000064,10,0.000,0.00,0.00,'1313820282','1313820282'),(114,24,'Order Placed',2.300,3622500.000,00000064,10,0.000,0.00,0.00,'1313820282','1313820282'),(115,25,'Order Placed',1.900,1923750.000,00000064,10,0.000,0.00,0.00,'1313820282','1313820282'),(116,26,'Order Placed',1.400,1134000.000,00000064,10,0.000,0.00,0.00,'1313820283','1313820283'),(117,23,'Order Returned Full',2.800,6678000.000,00000064,10,0.000,0.00,0.00,'1313820345','1313820345'),(118,24,'Order Returned Full',2.300,3622500.000,00000064,10,0.000,0.00,0.00,'1313820415','1313820415'),(119,25,'Order Returned Full',1.900,1923750.000,00000064,10,0.000,0.00,0.00,'1313820600','1313820600'),(120,17,'Order Returned Full',5.800,0.000,00000076,10,0.000,0.00,0.00,'1314092427','1314092427'),(121,13,'Order Returned Full',4.600,0.000,00000086,10,0.000,0.00,0.00,'1314092440','1314092440'),(122,12,'Order Returned Full',4.200,0.000,00000070,10,0.000,0.00,0.00,'1314092457','1314092457'),(123,23,'Order Returned Full',2.800,0.000,00000080,10,0.000,0.00,0.00,'1314093111','1314093111'),(124,28,'Order Returned Full',2.600,0.000,00000083,10,0.000,0.00,0.00,'1314093132','1314093132'),(125,27,'Order Returned Full',2.400,0.000,00000082,10,0.000,0.00,0.00,'1314093150','1314093150'),(126,24,'Order Returned Full',2.300,0.000,00000078,10,0.000,0.00,0.00,'1314093211','1314093211'),(127,29,'Order Returned Full',2.300,0.000,00000084,10,0.000,0.00,0.00,'1314093865','1314093865'),(128,28,'Order Returned Full',2.600,0.000,00000093,10,0.000,0.00,0.00,'1314094356','1314094356'),(129,30,'Order Returned Full',2.200,0.000,00000085,10,0.000,0.00,0.00,'1314098739','1314098739'),(130,5,'Order Returned Full',2.000,0.000,00000068,10,0.000,0.00,0.00,'1314098758','1314098758'),(131,20,'Order Returned Full',2.000,0.000,00000075,10,0.000,0.00,0.00,'1314098779','1314098779'),(132,25,'Order Returned Full',1.900,0.000,00000081,10,0.000,0.00,0.00,'1314098800','1314098800'),(133,14,'Order Returned Full',1.800,0.000,00000071,10,0.000,0.00,0.00,'1314098818','1314098818');

--
-- Table structure for table `bstock_products_jwl`
--

CREATE TABLE `bstock_products_jwl` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `product_id` int(10) NOT NULL COMMENT 'This column is will map particular product from bstock_product_master',
  `dollar_rate` decimal(10,0) NOT NULL,
  `category_id` int(11) NOT NULL COMMENT 'this id is used to get the information abt category from pl_cateogry table',
  `quantity` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `item_number` varchar(50) NOT NULL COMMENT 'field is related to product code which is for internal use',
  `price` varchar(50) NOT NULL,
  `metal_color` varchar(50) NOT NULL,
  `metal_weight` varchar(50) NOT NULL,
  `metal_karat` varchar(50) NOT NULL,
  `width` varchar(50) NOT NULL,
  `price_type` varchar(50) NOT NULL,
  `condition` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=71 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_products_jwl`
--

INSERT INTO `bstock_products_jwl` VALUES (1,0,0,5,45,2,0,'14k White Gold 1cttw Journey Diamond Pendant ','46080W','100','White','.1','24','.1','Fixed','New','on','',''),(2,0,0,4,0,2,0,'14k White Gold 1/2cttw Journey Diamond Pendant ','46071W','200','Gold','.1','24','.1','FIxed','New','on','',''),(3,0,0,3,45,3,0,'Walk down your memory lane with this 1/2 carat diamond pendant that represents your journey of love! Five bezel set brilliant diamonds descend in size as they bend and curve on a white gold path towards the largest diamond. This lovely gift comes on a 14 ','46072W','300','Silver','.1','24','.1','Fixed','New','on','',''),(4,0,0,2,0,3,0,'Stud Diamond Rings','46073W','400','Gold','.1','24','.1','Fixed','New','on','',''),(5,0,0,1,0,3,0,'Single Diamond Ring','46074W','300','Gold','30','30','30','Fixed','New','on','',''),(6,0,0,6,0,3,0,'Gemstone Ring with diamonds','46075W','100','Gold','.1','.1','5','Fixed','New','on','',''),(7,0,0,7,0,3,0,'Diamond Studed Rings with Gold','46076W','200','Gold','.2','.2','10','Fixed','New','on','',''),(8,0,0,8,0,3,0,'Eternity Rings with White Gold','46077W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(9,0,0,9,0,3,0,'Dedicated Rings with Silver platings','46078W','400','Silver','.4','.4','20','Fixed','New','on','',''),(10,0,0,10,0,3,0,'Wedding Ring for special occasions','46079W','500','Silver','.5','.5','25','Fixed','New','on','',''),(11,0,0,11,0,3,0,'Engagement Ring with Gold','46080W','600','Gold','.6','.6','30','Fixed','New','on','',''),(12,0,0,12,0,3,0,'Desinger Ring with Wide range of variety','46081W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(13,0,0,13,0,3,0,'Touch of Gold Ring in all range','46082W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(14,0,0,14,0,3,0,'Touch of Silver Ring in all range','46083W','900','Silver','.9','.9','45','Fixed','New','on','',''),(15,0,0,15,1,0,1,'','','1000','Gold','1.0','1.0','50','Fixed','New','on','','1283728343'),(16,0,0,16,0,4,0,'Solitaire Gemstone Ring with diamonds','46084W','100','Gold','.1','.1','5','Fixed','New','on','',''),(17,0,0,17,0,4,0,'Solitaire Diamond Studed Rings with Gold','46085W','200','Gold','.2','.2','10','Fixed','New','on','',''),(18,0,0,18,0,4,0,'Solitaire Eternity Rings with White Gold','46086W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(19,0,0,19,0,4,0,'Solitaire Dedicated Rings with Silver platings','46087W','400','Silver','.4','.4','20','Fixed','New','on','',''),(20,0,0,20,0,4,0,'Solitaire Wedding Ring for special occasions','46088W','500','Silver','.5','.5','25','Fixed','New','on','',''),(21,0,0,21,0,4,0,'Solitaire Engagement Ring with Gold','46089W','600','Gold','.6','.6','30','Fixed','New','on','',''),(22,0,0,22,0,4,0,'Solitaire Desinger Ring with Wide range of variety','46090W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(23,0,0,23,0,4,0,'Solitaire Touch of Gold Ring in all range','46091W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(24,0,0,24,0,4,0,'Solitaire Touch of Silver Ring in all range','46092W','900','Silver','.9','.9','45','Fixed','New','on','',''),(25,0,0,25,0,5,0,'Sidestone Gemstone Ring with diamonds','46093W','100','Gold','.1','.1','5','Fixed','New','on','',''),(26,0,0,26,0,5,0,'Sidestone Diamond Studed Rings with Gold','46095W','200','Gold','.2','.2','10','Fixed','New','on','',''),(27,0,0,27,0,5,0,'Sidestone Eternity Rings with White Gold','46096W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(28,0,0,28,0,5,0,'Sidestone Dedicated Rings with Silver platings','46097W','400','Silver','.4','.4','20','Fixed','New','on','',''),(29,0,0,29,0,5,0,'Sidestone Wedding Ring for special occasions','4609W','500','Silver','.5','.5','25','Fixed','New','on','',''),(30,0,55,55,0,5,0,'Sidestone Engagement Ring with Gold','46099','600','Gold','.6','.6','30','Fixed','New','on','',''),(31,0,0,31,0,5,0,'Sidestone Desinger Ring with Wide range of variety','4609W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(32,0,0,32,0,5,0,'Sidestone Touch of Gold Ring in all range','4601W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(33,0,0,33,0,5,0,'Sidestone Touch of Silver Ring in all range','4692W','900','Silver','.9','.9','45','Fixed','New','on','',''),(34,0,0,34,0,87,0,'Mone Gemstone Ring with diamonds','46093W','100','Gold','.1','.1','5','Fixed','New','on','',''),(35,0,0,35,0,87,0,'Mone Diamond Studed Rings with Gold','46095W','200','Gold','.2','.2','10','Fixed','New','on','',''),(36,0,0,36,0,87,0,'Mone Eternity Rings with White Gold','46096W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(37,0,0,37,0,87,0,'Mone Dedicated Rings with Silver platings','46097W','400','Silver','.4','.4','20','Fixed','New','on','',''),(38,0,0,38,0,87,0,'Mone Wedding Ring for special occasions','4609W','500','Silver','.5','.5','25','Fixed','New','on','',''),(39,0,0,39,0,87,0,'Mone Engagement Ring with Gold','46099','600','Gold','.6','.6','30','Fixed','New','on','',''),(40,0,0,40,0,87,0,'Mone Desinger Ring with Wide range of variety','4609W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(41,0,0,41,0,87,0,'Mone Touch of Gold Ring in all range','4601W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(42,0,0,42,0,87,0,'Mone Touch of Silver Ring in all range','4692W','900','Silver','.9','.9','45','Fixed','New','on','',''),(43,0,0,34,0,79,0,'Tension Gemstone Ring with diamonds','46093W','100','Gold','.1','.1','5','Fixed','New','on','',''),(44,0,0,35,0,79,0,'Tension Diamond Studed Rings with Gold','46095W','200','Gold','.2','.2','10','Fixed','New','on','',''),(45,0,0,36,0,79,0,'Tension Eternity Rings with White Gold','46096W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(46,0,0,37,0,79,0,'Tension Dedicated Rings with Silver platings','46097W','400','Silver','.4','.4','20','Fixed','New','on','',''),(47,0,0,38,0,79,0,'Tension Wedding Ring for special occasions','4609W','500','Silver','.5','.5','25','Fixed','New','on','',''),(48,0,0,39,0,79,0,'Tension Engagement Ring with Gold','46099','600','Gold','.6','.6','30','Fixed','New','on','',''),(49,0,0,40,0,79,0,'Tension Desinger Ring with Wide range of variety','4609W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(50,0,0,41,0,79,0,'Tension Touch of Gold Ring in all range','4601W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(51,0,0,42,0,79,0,'Tension Touch of Silver Ring in all range','4692W','900','Silver','.9','.9','45','Fixed','New','on','',''),(52,0,58,56,1,0,1,'','','','','','','','','','on','1283757521','1283757521'),(53,0,59,58,1,0,1,'','','','','','','','','','on','1283759338','1283759338'),(54,0,60,59,1,0,1,'','','','','','','','','','on','1283777612','1283777612'),(55,0,62,60,1,0,1,'','','','','','','','','','on','1283852927','1283852927'),(56,0,70,61,1,0,1,'','','','','','','','','','on','1283873378','1283873378'),(57,0,71,62,1,0,1,'','','','','','','','','','on','1283873848','1283873848'),(58,0,72,63,1,0,1,'','','','','','','','','','on','1283875146','1283875146'),(59,0,79,64,1,0,1,'','','','','','','','','','on','1285668597','1285668597'),(60,0,80,65,1,0,1,'','','','','','','','','','on','1285668708','1285668708'),(61,0,81,66,1,0,1,'','','','','','','','','','on','1285668868','1285668868'),(62,0,82,67,1,0,1,'','','','','','','','','','on','1285668956','1285668956'),(63,0,83,68,1,0,1,'','','','','','','','','','on','1285669106','1285669106'),(64,0,84,69,1,0,1,'','','','','','','','','','on','1285676716','1285676716'),(65,0,85,70,1,0,1,'','','','','','','','','','on','1285678016','1285678016'),(66,0,86,71,1,0,1,'','','','','','','','','','on','1285678155','1285678155'),(67,0,87,72,1,0,1,'','','','','','','','','','on','1285678201','1285678201'),(68,0,88,73,1,0,1,'','','','','','','','','','on','1285678485','1285678485'),(69,0,89,74,1,0,1,'','','','','','','','','','on','1285680273','1285680273'),(70,0,90,75,1,0,1,'','','','','','','','','','on','1285680330','1285680330');

--
