--
-- Host: localhost    Database: reenakak_aryajewel_live
-- ------------------------------------------------------


--
-- Current Database: `reenakak_aryajewel_live`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `reenakak_aryajewel_live` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `reenakak_aryajewel_live`;

--
-- Table structure for table `baseprofile`
--

CREATE TABLE `baseprofile` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `is_active` enum('1','0') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `baseprofile`
--

INSERT INTO `baseprofile` VALUES (1,'Administrator','1','1260879950','1260879950'),(2,'Sub-Admin','1','1260879950','1260879950'),(3,'Customer','1','1260879950','1260879950');

--
-- Table structure for table `bstock_angadia`
--

CREATE TABLE `bstock_angadia` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `bank_name` varchar(250) NOT NULL,
  `bank_address` text NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `user_id` int(10) NOT NULL COMMENT 'This is the user id of the user who added or edited this record.',
  `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.',
  `account_name` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_angadia`
--

INSERT INTO `bstock_angadia` VALUES (1,'Amba Hargovind','Mumbai - 400 004','on',0,'','1281952084','Arya Jewel - AH'),(4,'Jayanti Amba','Marol Maroshi\r\nAdheri East\r\nMumbai 400093','on',0,'','1283462205','Arya Jewel - JA'),(8,'MM','MM','on',0,'1290667126','1290667126','Arya Jewel - MM');

--
-- Table structure for table `bstock_angadia_accounts`
--

CREATE TABLE `bstock_angadia_accounts` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `angadia_id` int(10) NOT NULL,
  `account_name` varchar(250) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `vendor_id` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 COMMENT='Stores Angadia account names of customers & vendors.';

--
-- Dumping data for table `bstock_angadia_accounts`
--

INSERT INTO `bstock_angadia_accounts` VALUES (1,1,'Vishal',12,0,'on'),(2,1,'lamp',22,0,'on'),(3,1,'Harshad Narvekar',0,3,'on'),(4,1,'Bigg Stock',0,4,'on'),(5,1,'Subhash (AH)',0,0,'on'),(6,1,'Anurag Enterprise (AH)',0,0,'on'),(7,4,'Subhash (Jayanti Amba)',0,0,'on'),(8,4,'Anurag Enterprise (Jayanti Amba)',0,0,'on');

--
-- Table structure for table `bstock_bank`
--

CREATE TABLE `bstock_bank` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `bank_name` varchar(250) NOT NULL,
  `bank_address` text NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `user_id` int(10) NOT NULL COMMENT 'This is the user id of the user who added or edited this record.',
  `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.',
  `account_number` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_bank`
--


--
-- Table structure for table `bstock_brokerage_rates`
--

CREATE TABLE `bstock_brokerage_rates` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `amount_from` decimal(10,2) NOT NULL,
  `amount_to` decimal(10,2) NOT NULL COMMENT 'If this is blank or 0, it means any amount greater than amount_from falls in this slab.',
  `brokerage_percent` decimal(10,2) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(20) NOT NULL,
  `modified_date` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='Store the brokerage slabs from which brokerage for every ord';

--
-- Dumping data for table `bstock_brokerage_rates`
--

INSERT INTO `bstock_brokerage_rates` VALUES (1,0.00,1000000.00,1.00,'on','0','0'),(2,1000001.00,0.00,0.50,'on','0','0'),(3,1500001.00,2000000.00,0.25,'on','',''),(4,2000001.00,0.00,0.10,'on','','');

--
-- Table structure for table `bstock_brokers`
--

CREATE TABLE `bstock_brokers` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `broker_name` varchar(255) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `address` varchar(500) NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `reference_name` varchar(255) NOT NULL,
  `reference_no` varchar(50) 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 AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_brokers`
--

INSERT INTO `bstock_brokers` VALUES (1,'Sambhav','','','','','','','','','on',1313741513,1313741513),(2,'Sohil Mehta','','','Malad','9819455007','','','','','on',1313822636,1313822636),(3,'Himanshu Mehta','','','Surat','9820810089','','','Vineybhai ADI','','off',1313826222,1313826222);

--
-- Table structure for table `bstock_countries`
--

CREATE TABLE `bstock_countries` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `country_code` varchar(5) NOT NULL,
  `country_initials` varchar(5) NOT NULL,
  `is_active` enum('on','off') NOT NULL DEFAULT 'on',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=843 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_countries`
--

INSERT INTO `bstock_countries` VALUES (356,'India','IN','IND','on'),(840,'United States','US','USA','off'),(841,'Israel','ISR','IS','off'),(842,'Australia','AU','AU','off');

--
-- Table structure for table `bstock_currency`
--

CREATE TABLE `bstock_currency` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Stores the name of the currency.',
  `code` varchar(50) NOT NULL COMMENT 'Code of the currency, like INR, USD, etc.',
  `symbol` varchar(10) NOT NULL COMMENT 'Symbol of the currency.',
  `conversion_rate` varchar(50) NOT NULL COMMENT 'Conversion rate for this currency.',
  `is_active` enum('0','1') NOT NULL COMMENT 'Whether this currency is active or not. If yes, then only it can be used in the application.',
  `display_on_product` enum('0','1') NOT NULL COMMENT 'This field determines whether this  Currency is to be displayed while  Showing the price for a product.',
  `sequence` int(10) NOT NULL COMMENT 'This field will determine the order in which the currency is to be displayed. Lower sequence numbered currency is displayed first.',
  `created_date` varchar(50) NOT NULL COMMENT 'Will store the created date of this currency.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Will store the last modified date of this currency.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Store the currencies that are being used in the system.';

--
-- Dumping data for table `bstock_currency`
--

INSERT INTO `bstock_currency` VALUES (1,'Dollar','1','$','45','1','1',1,'1267005563','1267005563');

--
-- Table structure for table `bstock_customerbilling`
--

CREATE TABLE `bstock_customerbilling` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `order_id` varchar(25) NOT NULL,
  `address1` varchar(250) NOT NULL COMMENT 'Address field of the billing address.',
  `address2` varchar(250) NOT NULL COMMENT 'Address field 2 of the billing address.',
  `city` varchar(250) NOT NULL COMMENT 'City field of billing address.',
  `state_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the states table.',
  `country_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the countries table.',
  `zip_code` varchar(20) NOT NULL COMMENT 'This will contain the zip code.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `billing_first_name` varchar(100) NOT NULL,
  `billing_last_name` varchar(100) NOT NULL,
  `bill_office_phone_number` varchar(15) NOT NULL,
  `bill_office_phone_number_2` varchar(15) NOT NULL,
  `bill_office_phone_number_3` varchar(15) NOT NULL,
  `type` enum('Jhangad','SalesOrder') NOT NULL COMMENT 'Will store the type of transaction',
  `bill_fax` varchar(15) NOT NULL,
  `bill_email` varchar(250) NOT NULL,
  `bill_website` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

--
-- Dumping data for table `bstock_customerbilling`
--

INSERT INTO `bstock_customerbilling` VALUES (1,1,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(2,2,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(3,3,'','New amrut diamond house','','Mumbai',116,356,'','','','','','','','','Jhangad','','',''),(4,4,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(5,5,'','New amrut diamond house','','Mumbai',116,356,'','','','','','','','','Jhangad','','',''),(6,6,'','','','Delhi',0,0,'','','','','','','','','Jhangad','','',''),(7,7,'','901-902,Panchratna,','','',116,356,'','','','','','','','','Jhangad','','',''),(8,8,'','','','Mumbai',116,356,'','','','','','','','','Jhangad','','',''),(9,9,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(10,10,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(11,11,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(12,12,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(13,13,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(14,14,'','shreeji arcard','','Mumbai',116,356,'','','','','','','','','Jhangad','','',''),(15,15,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(16,16,'','Sopariwala','','Mumbai',116,356,'','','','','','','','','Jhangad','','',''),(17,17,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(18,18,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(19,19,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(20,20,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(21,21,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(22,22,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(23,23,'','','','',129,356,'','','','','','','','','Jhangad','','',''),(24,24,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(25,25,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(26,26,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(27,27,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(28,28,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(29,29,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(30,30,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(31,31,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(32,32,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(33,33,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(34,34,'','','','',129,0,'','','','','','','','','Jhangad','','',''),(35,35,'','','','',129,356,'','','','','','','','','Jhangad','','',''),(36,36,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(37,37,'','','','',129,356,'','','','','','','','','Jhangad','','',''),(38,38,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(39,39,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(40,40,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(41,23,'00000001','','','',129,356,'','1313748523','1313748523',' ','','','','','Jhangad','','',''),(42,3,'00000001','New amrut diamond house','','Mumbai',116,356,'','1313822790','1313822790','','','','','','SalesOrder','','',''),(43,35,'00000002','','','',129,356,'','1313822968','1313822968','','','','','','SalesOrder','','',''),(44,41,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(45,41,'00000003','','','',0,0,'','1313823464','1313823464','','','','','','SalesOrder','','',''),(46,42,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(47,42,'00000004','','','',0,0,'','1313824324','1313824324','','','','','','SalesOrder','','',''),(48,43,'','','','',129,356,'','','','','','','','','Jhangad','','',''),(49,44,'','','','Mumbai',116,356,'','','','','','','','','Jhangad','','',''),(50,45,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(51,46,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(52,46,'00000005','','','',0,356,'','1313826053','1313826053','','','','','','SalesOrder','','',''),(53,6,'00000006','','','Delhi',0,0,'','1313826466','1313826466','','','','','','SalesOrder','','',''),(54,8,'00000007','','','Mumbai',116,356,'','1313826844','1313826844','','','','','','SalesOrder','','',''),(55,47,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(56,47,'00000008','','','',0,356,'','1313827579','1313827579','','','','','','SalesOrder','','',''),(57,48,'','','','Delhi',129,356,'','','','','','','','','Jhangad','','',''),(58,48,'00000009','','','Delhi',129,356,'','1313828415','1313828415','','','','','','SalesOrder','','',''),(59,26,'00000010','','','',116,356,'','1313829101','1313829101','','','','','','SalesOrder','','',''),(60,34,'00000011','','','',129,0,'','1313829244','1313829244','','','','','','SalesOrder','','',''),(61,49,'','','','Delhi',129,356,'','','','','','','','','Jhangad','','',''),(62,49,'00000012','','','Delhi',129,356,'','1313829546','1313829546','','','','','','SalesOrder','','',''),(63,50,'','','','',0,356,'','','','','','','','','Jhangad','','',''),(64,50,'00000013','','','',0,356,'','1314088606','1314088606','','','','','','SalesOrder','','',''),(65,50,'00000014','','','',0,356,'','1314088693','1314088693','','','','','','SalesOrder','','',''),(66,51,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(67,52,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(68,53,'','','','',116,356,'','','','','','','','','Jhangad','','',''),(69,54,'','','','HK',0,0,'','','','','','','','','Jhangad','','','');

--
-- Table structure for table `bstock_customerloginhistory`
--

CREATE TABLE `bstock_customerloginhistory` (
  `history_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `customer_ip` varchar(50) NOT NULL COMMENT 'This will store the IP address from which the customer had logged in.',
  `login_time` varchar(50) NOT NULL COMMENT 'THis will store the timestamp when the customer logged in.',
  `logout_time` varchar(50) NOT NULL COMMENT 'This will store the timestamp when the customer logged out.',
  `login_status` enum('0','1') NOT NULL COMMENT 'This field will contain whether  The customer is signed in or signed off.',
  PRIMARY KEY (`history_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the login stats of customers.Entry is recorded everyti';

--
-- Dumping data for table `bstock_customerloginhistory`
--


--
-- Table structure for table `bstock_customers`
--

CREATE TABLE `bstock_customers` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `username` varchar(50) NOT NULL COMMENT 'Username that will be used to login by the customer to the system.',
  `customer_password` varchar(100) NOT NULL COMMENT 'Password of the user stored in MD5 format.',
  `email` varchar(250) NOT NULL COMMENT 'Email address of the customer.',
  `first_name` varchar(100) NOT NULL COMMENT 'First name of the customer.',
  `last_name` varchar(100) NOT NULL COMMENT 'Last name of the customer.',
  `company_name` varchar(250) NOT NULL COMMENT 'Company name of the customer.',
  `office_phone_number` varchar(50) NOT NULL COMMENT 'Office Phone number of the customer.',
  `mobile_number` varchar(50) NOT NULL COMMENT 'This will be the mobile number of the customer.',
  `address` varchar(2500) NOT NULL,
  `reference_person_name` varchar(10) NOT NULL COMMENT 'this will store the reference person name',
  `reference_company_name` varchar(10) NOT NULL COMMENT 'this will store the reference person company',
  `last_login` varchar(50) NOT NULL COMMENT 'This will contain the last login date & time of the customer.',
  `is_active` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'THis will determine whether the customer is currently active or is blocked from using the system.',
  `customerprofiles` enum('User','Customer') NOT NULL DEFAULT 'Customer' COMMENT 'This will be the foreign key from the profiles table & is mapped to the ''profile_id'' primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this customer record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this customer record.',
  `usertype` set('User','Customer') NOT NULL DEFAULT 'Customer',
  `approved` enum('Yes','No') NOT NULL DEFAULT 'Yes',
  `payment_terms_id` enum('COD','30 Days','60 Days','90 Days','120 Days') NOT NULL,
  `credit_amount` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=55 DEFAULT CHARSET=latin1 COMMENT='Store details of customers. They are not system users.';

--
-- Dumping data for table `bstock_customers`
--

INSERT INTO `bstock_customers` VALUES (1,'','','','','','Sahara Atid','','','','','','','on','Customer','1312957412','1312957412','Customer','Yes','30 Days',100000.00),(2,'','','','Deepakji','','','','','','','','','on','Customer','1312958525','1312958525','Customer','Yes','',100000.00),(3,'','','','Pradeepbhai','','','182186','09819754477','','','','','on','Customer','1312958791','1312958791','Customer','Yes','30 Days',0.00),(4,'','','','Hitendrabhai','','','','','','','','','on','Customer','1312958837','1312958837','Customer','Yes','30 Days',100000.00),(5,'','','','Jaybhai','','Utsav Diamond','23629188','9821390801','','','','','on','Customer','1312958941','1312958941','Customer','Yes','60 Days',100000.00),(6,'','','','Arpanji','','','','','','','','','on','Customer','1312958984','1312958984','Customer','Yes','60 Days',100000.00),(7,'','','','Ankit ','Vora','Venus jewel','23674444','','','','','','on','Customer','1312959117','1312959117','Customer','Yes','',100000.00),(8,'','','','Roshanbhai','','','','','','','','','on','Customer','1312959210','1312959210','Customer','Yes','',100000.00),(9,'','','','Mohil','','','','','','','','','on','Customer','1312959263','1312959263','Customer','Yes','',0.00),(10,'','','','Mahendrabhai','','','','','','','','','on','Customer','1312960291','1312960291','Customer','Yes','30 Days',0.00),(11,'','','','','','Diamex israeil','','','','','','','on','Customer','1312960331','1312960331','Customer','Yes','30 Days',100000.00),(12,'','','','Rajeshbhai','','','','','','','','','on','Customer','1312960378','1312960378','Customer','Yes','30 Days',0.00),(13,'','','','','','Mehta Brothers','','','','','','','on','Customer','1312960428','1312960428','Customer','Yes','30 Days',0.00),(14,'','','','Ruchirbhai','','Kavan export','182125','9819920084','','','','','on','Customer','1312960516','1312960516','Customer','Yes','30 Days',0.00),(15,'','','','Anshumanbhai','','','','','','','','','on','Customer','1312960547','1312960547','Customer','Yes','30 Days',0.00),(16,'','','','Pratikbhai','','Ami Diam','9055','9819092828','','','','','on','Customer','1312960628','1312960628','Customer','Yes','30 Days',0.00),(17,'','','','Vishalbhai','','','','','','','','','on','Customer','1312960671','1312960671','Customer','Yes','30 Days',0.00),(18,'','','','Hitesh','Kubdia','','','','','','','','on','Customer','1312960705','1312960705','Customer','Yes','30 Days',0.00),(19,'','','','Naresh','Bothra','','','','','','','','on','Customer','1313668277','1313668277','Customer','Yes','',0.00),(20,'','','','Rakeshji','','','','','','','','','on','Customer','1313668463','1313668463','Customer','Yes','60 Days',0.00),(21,'','','','SHRIPALBHAI','','J.B.BROTHERS','','','','','','','on','Customer','1313669173','1313669173','Customer','Yes','30 Days',0.00),(22,'','','','sourabh bhai','','','','','','','','','on','Customer','1313670291','1313670291','Customer','Yes','60 Days',0.00),(23,'','','','ArayaJewel','Delhi','AryaJewel Delhi','454543543','89889898','','','','','on','Customer','1313733895','1313733895','Customer','Yes','COD',99999999.99),(24,'','','','Blue Star','','Blue Star','','','','','','','on','Customer','1313735979','1313735979','Customer','Yes','COD',0.00),(25,'','','','Parashbhai','','Paras Gems','','','','','','','on','Customer','1313739893','1313739893','Customer','Yes','',0.00),(26,'','','','Nileshbhai','','Suchi','','','','','','','on','Customer','1313740649','1313740649','Customer','Yes','60 Days',0.00),(27,'','','','Brijeshbhai','','','','','','','','','on','Customer','1313740721','1313740721','Customer','Yes','',0.00),(28,'','','','Sohil','','','','','','','','','on','Customer','1313740844','1313740844','Customer','Yes','COD',0.00),(29,'','','','Deepak ','Sethia','','','','','','','','on','Customer','1313741967','1313741967','Customer','Yes','COD',0.00),(30,'','','','','','Shree Raj Gems','','','','','','','on','Customer','1313742287','1313742287','Customer','Yes','60 Days',0.00),(31,'','','','Ronakbhai','','','','','','','','','on','Customer','1313742318','1313742318','Customer','Yes','COD',0.00),(32,'','','','','','Padmashri Dia','','','','','','','on','Customer','1313742842','1313742842','Customer','Yes','',0.00),(33,'','','','Jignabhai','','','','','','','','','on','Customer','1313743056','1313743056','Customer','Yes','30 Days',0.00),(34,'','','','Komalbhai','','KK Jewel','','','','','','','on','Customer','1313743222','1313743222','Customer','Yes','30 Days',0.00),(35,'','','','Ashishbhai','','','','','','','','','on','Customer','1313743411','1313743411','Customer','Yes','COD',0.00),(36,'','','','','','H.K.EXPORTS','','','','','','','on','Customer','1313743533','1313743533','Customer','Yes','',0.00),(37,'','','','Sahil Bhai','','','','','','','','','on','Customer','1313743653','1313743653','Customer','Yes','COD',0.00),(38,'','','','Krupalji','','','','','','','','','on','Customer','1313743674','1313743674','Customer','Yes','COD',0.00),(39,'','','','Nisargbhai','','','','','','','','','on','Customer','1313744085','1313744085','Customer','Yes','60 Days',0.00),(40,'','','','Vipulbhai','','','','','','','','','on','Customer','1313744110','1313744110','Customer','Yes','COD',0.00),(41,'','','','Ketanbhai','','','','','','','','','on','Customer','1313823249','1313823249','Customer','Yes','',0.00),(42,'','','','sambhav','','','','','','','','','on','Customer','1313824311','1313824311','Customer','Yes','COD',0.00),(43,'','','','BituBhai','','','','','','','','','on','Customer','1313824423','1313824423','Customer','Yes','COD',0.00),(44,'','','','kunalbhai','','','','','','','','','on','Customer','1313824484','1313824484','Customer','Yes','30 Days',0.00),(45,'','','','Varunji','','','','','','','','','on','Customer','1313824534','1313824534','Customer','Yes','COD',0.00),(46,'','','','Ravinbhai','','','','','','','','','on','Customer','1313825851','1313825851','Customer','Yes','COD',0.00),(47,'','','','Mitenbhai','','','','','','','','','on','Customer','1313827378','1313827378','Customer','Yes','30 Days',0.00),(48,'','','','Arunji','','','','','','','','','on','Customer','1313828247','1313828247','Customer','Yes','COD',0.00),(49,'','','','','','LA Solitaire','','','','','','','on','Customer','1313829361','1313829361','Customer','Yes','30 Days',0.00),(50,'','','','Anand2','','GRT','','','','','','','on','Customer','1314088522','1314088522','Customer','Yes','',0.00),(51,'','','','Rahulbhai','Parekh','','','','','','','','on','Customer','1314178511','1314178511','Customer','Yes','COD',0.00),(52,'','','','Dingalbhai','','','','','','','','','on','Customer','1314179348','1314179348','Customer','Yes','30 Days',0.00),(53,'','','','Universal Diamond','','','','','','','','','on','Customer','1314179849','1314179849','Customer','Yes','30 Days',0.00),(54,'','','','chazy','','Vision international ltd','','','','','','','on','Customer','1317112011','1317112011','Customer','Yes','90 Days',5000000.00);

--
-- Table structure for table `bstock_customershipping`
--

CREATE TABLE `bstock_customershipping` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `order_id` varchar(25) NOT NULL,
  `address1` varchar(250) NOT NULL COMMENT 'Address field of the shipping address.',
  `address2` varchar(250) NOT NULL COMMENT 'Address field 2 of the shipping address.',
  `city` varchar(250) NOT NULL COMMENT 'City field of shipping address.',
  `state_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the states table.',
  `country_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the countries table.',
  `zip_code` varchar(20) NOT NULL COMMENT 'This will contain the zip code.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `shipping_first_name` varchar(100) NOT NULL,
  `shipping_last_name` varchar(100) NOT NULL,
  `ship_office_phone_number` varchar(15) NOT NULL,
  `ship_office_phone_number_2` varchar(15) NOT NULL,
  `ship_office_phone_number_3` varchar(15) NOT NULL,
  `type` enum('Jhangad','SalesOrder') NOT NULL COMMENT 'Will store the type of transaction',
  `ship_fax` varchar(15) NOT NULL,
  `ship_email` varchar(250) NOT NULL,
  `ship_website` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

--
-- Dumping data for table `bstock_customershipping`
--

INSERT INTO `bstock_customershipping` VALUES (1,1,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(2,2,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(3,3,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(4,4,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(5,5,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(6,6,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(7,7,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(8,8,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(9,9,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(10,10,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(11,11,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(12,12,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(13,13,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(14,14,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(15,15,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(16,16,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(17,17,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(18,18,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(19,19,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(20,20,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(21,21,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(22,22,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(23,23,'','','','',129,356,'','','','','','','','','Jhangad','','',''),(24,24,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(25,25,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(26,26,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(27,27,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(28,28,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(29,29,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(30,30,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(31,31,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(32,32,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(33,33,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(34,34,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(35,35,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(36,36,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(37,37,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(38,38,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(39,39,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(40,40,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(41,23,'00000001','','','',129,356,'','1313748523','1313748523',' ','','','','','Jhangad','','',''),(42,3,'00000001','','','',0,0,'','1313822790','1313822790','','','','','','SalesOrder','','',''),(43,35,'00000002','','','',0,0,'','1313822968','1313822968','','','','','','SalesOrder','','',''),(44,41,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(45,41,'00000003','','','',0,0,'','1313823464','1313823464','','','','','','SalesOrder','','',''),(46,42,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(47,42,'00000004','','','',0,0,'','1313824324','1313824324','','','','','','SalesOrder','','',''),(48,43,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(49,44,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(50,45,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(51,46,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(52,46,'00000005','','','',0,0,'','1313826053','1313826053','','','','','','SalesOrder','','',''),(53,6,'00000006','','','',0,0,'','1313826466','1313826466','','','','','','SalesOrder','','',''),(54,8,'00000007','','','',0,0,'','1313826844','1313826844','','','','','','SalesOrder','','',''),(55,47,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(56,47,'00000008','','','',0,0,'','1313827579','1313827579','','','','','','SalesOrder','','',''),(57,48,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(58,48,'00000009','','','',0,0,'','1313828415','1313828415','','','','','','SalesOrder','','',''),(59,26,'00000010','','','',0,0,'','1313829101','1313829101','','','','','','SalesOrder','','',''),(60,34,'00000011','','','',0,0,'','1313829244','1313829244','','','','','','SalesOrder','','',''),(61,49,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(62,49,'00000012','','','',0,0,'','1313829546','1313829546','','','','','','SalesOrder','','',''),(63,50,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(64,50,'00000013','','','',0,0,'','1314088606','1314088606','','','','','','SalesOrder','','',''),(65,50,'00000014','','','',0,0,'','1314088693','1314088693','','','','','','SalesOrder','','',''),(66,51,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(67,52,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(68,53,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(69,54,'','','','',0,0,'','','','','','','','','Jhangad','','','');

--
-- Table structure for table `bstock_customnumbers`
--

CREATE TABLE `bstock_customnumbers` (
  `custom_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `module_id` int(10) NOT NULL COMMENT 'This is the foreign key for the modules & is mapped to primary key of modules table.',
  `increment_number` int(10) NOT NULL COMMENT 'This will be the number from which to start the numbering for specific modules.',
  `prefix` varchar(10) NOT NULL COMMENT 'This will be the prefix that will be attached before the ''increment_number'' field.',
  `is_active` enum('0','1') NOT NULL COMMENT 'This will determine whether this record is to be used for custom numbering or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this record.',
  PRIMARY KEY (`custom_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='For Invoice & Order No. field if we want to set an auto-inc ';

--
-- Dumping data for table `bstock_customnumbers`
--


--
-- Table structure for table `bstock_exporters`
--

CREATE TABLE `bstock_exporters` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `exporter_name` varchar(250) NOT NULL,
  `address` text NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `fax` varchar(50) 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=4 DEFAULT CHARSET=latin1 COMMENT='Stores exporter related information like Name, Address, etc.';

--
-- Dumping data for table `bstock_exporters`
--

INSERT INTO `bstock_exporters` VALUES (1,'Vishal & Co.','Seepz, Andheri.','1234567','9999999','1111111','2222222','on','','1263212323',''),(2,'Harshad & Co.','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','','on','','1212356342','0388256202'),(3,'Narvekars','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','Website','off','1265801481','1265801481','EIC234111');

--
-- Table structure for table `bstock_fields`
--

CREATE TABLE `bstock_fields` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(100) NOT NULL COMMENT 'This will be the label displayed while displaying the form.',
  `type` varchar(100) NOT NULL COMMENT 'This will be the type of the field, like text, select box, radio button, etc.',
  `column_name` varchar(50) NOT NULL COMMENT 'This will be the name of the field in the table where this field is being used.',
  `maxlength` int(50) NOT NULL COMMENT 'This will contain the number of characters that will be allowed in this field.',
  `name` varchar(50) NOT NULL COMMENT 'This will contain the name of field in the HTML form that is displayed, i.e. the value contained in the ''name'' attribute of the field''s tag.',
  `value` varchar(2000) NOT NULL,
  `sequence` int(5) NOT NULL COMMENT 'This will be the order of the fields for the module. Lower the sequence, that field will be displayed first.',
  `readonly` enum('on','off') NOT NULL COMMENT 'This will determine if this field is to be kept ''readonly''.',
  `presence` enum('on','off') NOT NULL COMMENT 'This means whether the field will  Be present by default on the form  Or not. This will be useful when we  Assign the rights to add / remove  Fields to a sub-admin.',
  `mandatory` enum('on','off') NOT NULL COMMENT 'Mandatory or not mandatory. This  Will be applicable only while  Adding / editing a field. It will only  Check for NOT NULL for that field.',
  `is_active` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'Active or Deactivated. If deactivated,  It won''t be displayed anywhere.',
  `table_name` varchar(100) NOT NULL COMMENT 'The table to which this field belongs.',
  `user_id` int(10) NOT NULL COMMENT 'The ID of the user who has added  this field.',
  `created_date` varchar(50) NOT NULL COMMENT 'Timestamp when this field was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Timestamp when this field was last modified.',
  `generatedtype` int(19) NOT NULL DEFAULT '0',
  `is_range` int(5) NOT NULL DEFAULT '0',
  `required_msg` varchar(300) NOT NULL,
  `test_field` enum('1','2') NOT NULL,
  `minlength` varchar(10) NOT NULL,
  `validation_type` enum('_AGE_','_NUMBER_','_ALPHA_','_ALPHANUM_','_AGE_','_NUMBER_','_CVVNUMBER_','_CREADITCARDNUMBER_','_USERNAME_','_NAME_','_FIRSTNAME_','_MIDDLENAME_','_LASTNAME_','_TITLE_','_POSITION_','_DESIGNATION_','_MOBILE_','_FAX_','_USPHONE_','_ZIP_','_USZIP_','_UKZIP_','_SSN_','_CURRENCY_','_EMAIL_','_URL_','_IP_','_REGION_','_PRODUCTTITLE_','_COMPANYNAME_','_CATEGORYNAME_','_BLOGTITLE_','_BLOGNAME_','_CITY_','_STATE_','_COUNTRY_','_DATE_') NOT NULL,
  `validation_error_msg` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=254 DEFAULT CHARSET=latin1 COMMENT='This table will store all the custom fields for the modules.';

--
-- Dumping data for table `bstock_fields`
--

INSERT INTO `bstock_fields` VALUES (111,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',13,'off','on','on','on','bstock_products',0,'1261224788','1261224788',0,1,'Is Active is mandatory.','1','','',''),(110,'Location','option','location',0,'location','\'All\',\'Antwerp\',\'Hong Kong\',\'Mumbai\',\'New York\'',10,'off','on','on','on','bstock_products',0,'1261224120','1261224120',0,0,'','1','','',''),(8,'Profile Name','text','profile_name',200,'profile_name','',1,'','on','on','on','bstock_userprofiles',1,'','',1,0,'','','','',''),(9,'Description','textarea','description',255,'description','',2,'','on','on','on','bstock_userprofiles',1,'','',1,0,'','','','',''),(11,'Username','text','username',100,'username','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(12,'Password','password','customer_password',100,'customer_password','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(13,'Email','text','email',255,'email','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(14,'First Name','text','first_name',150,'first_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(15,'Last Name','text','last_name',150,'last_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(16,'Company Name','text','company_name',150,'company_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(17,'Office phone number','text','office_phone_number',11,'office_phone_number','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(18,'Mobile number','text','mobile_number',12,'mobile_number','',0,'','on','','on','bstock_customers',1,'','',0,0,'','','','',''),(19,'is_active','radio','is_active',5,'is_active','\'on\',\'off\'',0,'','on','on','off','bstock_customers',1,'','',0,1,'','','','',''),(20,'User profile','option','customerprofiles',50,'customerprofiles','\'User\',\'Customer\'',0,'','on','on','off','bstock_customers',1,'','',0,0,'','','','',''),(21,'label','text','label',200,'label','',1,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(22,'Type','option','type',200,'type','',2,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(23,'Column name','text','column_name',200,'column_name','',2,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(24,'Max Length','text','maxlength',100,'maxlength','100',4,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(25,'name','text','name',200,'name','',5,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(26,'value','text','value',500,'value','',6,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(27,'sequence','text','sequence',100,'sequence','',7,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(28,'Read Only','radio','readonly',100,'readonly','',8,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(29,'Presence','radio','presence',100,'presence','',9,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(30,'mandatory','radio','mandatory',100,'mandatory','',10,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(31,'Is Active','radio','is_active',100,'is_active','',11,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(32,'Table Name','text','table_name',100,'table_name','',12,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(33,'generated type','text','generatedtype',100,'generatedtype','',13,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(34,'Is Range','text','is_range',100,'is_range','',14,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(35,'order no','text','order_id',100,'order_id','',7,'','on','on','on','bstock_orders',1,'','',0,0,'','','','',''),(36,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761129',1,0,'','','','',''),(37,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761328',1,0,'','','','',''),(38,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761328',1,0,'','','','',''),(39,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761590',1,0,'','','','',''),(40,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761703',1,0,'','','','',''),(41,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761757',1,0,'','','','',''),(42,'Required Msg.','text','required_msg',300,'required_msg','',15,'','on','on','on','bstock_fields',0,'1259848625','1259848625',0,0,'','','','',''),(118,'Color','option','color',0,'color','\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\',\'O\',\'P\',\'Q\',\'R\'',7,'off','on','on','on','bstock_products',0,'1261227132','1261227132',0,1,'','1','','',''),(117,'Clarity','option','clarity',0,'clarity','\'IF\',\'VVS1\',\'VVS2\',\'VS1\',\'VS2\',\'SI1\',\'SI2\',\'I1\',\'I2\',\'I3\'',8,'off','on','on','on','bstock_products',0,'1261227023','1261227023',0,1,'','1','','',''),(116,'Cut','option','cut',0,'cut','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',12,'off','on','on','on','bstock_products',0,'1261226805','1261226805',0,1,'','1','','',''),(115,'Polish','option','polish',0,'polish','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',13,'off','on','on','on','bstock_products',0,'1261226062','1261226062',0,1,'','1','','',''),(114,'Symmetry','option','symmetry',0,'symmetry','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',14,'off','on','on','on','bstock_products',0,'1261225818','1261225818',0,1,'','1','','',''),(89,'Min Length','text','minlength',10,'minlength','',5,'on','on','on','on','bstock_fields',0,'1260185265','1260185265',0,0,'','','','',''),(113,'Lab','option','lab',0,'lab','\'All Labs\',\'GIA\',\'IGI\',\'HRD\',\'AGS\',\'EGL\',\'IGC\'',2,'off','on','on','on','bstock_products',0,'1261225488','1261225488',0,0,'','1','','',''),(112,'Flourescence','option','flourescence',0,'flourescence','\'None\',\'Faint\',\'Medium\',\'Strong\',\'Very Strong\'',15,'off','on','on','on','bstock_products',0,'1261225411','1261225411',0,1,'','1','','',''),(91,'Validation Type','option','validation_type',0,'validation_type','\"_AGE_\", \"_NUMBER_\", \"_ALPHA_\",\"_ALPHANUM_\",\"_AGE_\",\"_NUMBER_\",\"_CVVNUMBER_\",\"_CREADITCARDNUMBER_\",\"_USERNAME_\",\"_NAME_\",\"_FIRSTNAME_\",\"_MIDDLENAME_\",\"_LASTNAME_\",\"_TITLE_\",\"_POSITION_\",\"_DESIGNATION_\",\"_MOBILE_\",\"_FAX_\",\"_USPHONE_\",\"_ZIP_\",\"_USZIP_\",\"_UKZIP_\",\"_SSN_\",\"_CURRENCY_\",\"_EMAIL_\",\"_URL_\",\"_IP_\",\"_REGION_\",\"_PRODUCTTITLE_\",\"_COMPANYNAME_\",\"_CATEGORYNAME_\",\"_BLOGTITLE_\",\"_BLOGNAME_\",\"_CITY_\",\"_STATE_\",\"_COUNTRY_\",\"_DATE_\"',0,'on','on','on','on','bstock_fields',0,'1260186186','1260186186',0,0,'','','','',''),(93,'Validation error msg.','text','validation_error_msg',250,'validation_error_msg','',0,'on','on','on','off','bstock_fields',0,'1260190273','1260190273',0,0,'','','10','',''),(109,'Size','text','size',25,'size','',6,'off','on','on','on','bstock_products',0,'1261221977','1261221977',0,1,'Please enter Size.','1','','',''),(101,'User Type','checkbox','usertype',0,'usertype','\'User\',\'Customer\'',0,'on','on','on','off','bstock_customers',1,'1260792520','1260792520',0,1,'Type is mandatory.','1','','',''),(102,'Base Profile','option','baseprofile',0,'baseprofile','\'Administrator\',\'Sub-Admin\',\'Customer\'',3,'on','on','on','on','bstock_userprofiles',1,'1260879950','1260879950',1,0,'','1','','_AGE_',''),(103,'basepro','checkbox','basepro',0,'basepro','\'Administrator\',\'Sub-Admin\',\'Customer\'',0,'off','on','on','on','bstock_userprofiles',0,'','1260882082',0,2,'','1','','_AGE_',''),(108,'Shape','option','shape',0,'shape','\'None\',\'Round\',\'Princess\',\'Pear\',\'Marquise\',\'Emerald\',\'Heart\',\'Oval\',\'Cushion\',\'Triangle\'',5,'off','on','on','on','bstock_products',0,'1261221691','1261221691',0,0,'Please select Shape.','1','','',''),(107,'Stone Id','text','stoneid',50,'stoneid','',4,'off','on','on','on','bstock_products',0,'1261220658','1261220658',0,0,'Please enter Stone Id.','1','','',''),(119,'Certificate','file','certificate',1,'certificate','\'pdf\',\'doc\'',24,'off','on','on','on','bstock_products',0,'1261391939','1261391939',0,0,'','1','','',''),(120,'Weight','text','weight',100,'weight','',14,'off','on','on','on','bstock_products',0,'','1261551202',0,1,'Please enter Weight','1','','_AGE_',''),(121,'Purchase Price P/CT (USD)','text','price',100,'price','0',33,'off','on','on','on','bstock_products',0,'','1261658120',0,1,'The price field is required!','1','','_AGE_',''),(123,'Customer First Name','text','customer_first_name',100,'customer_first_name','',0,'on','on','on','on','bstock_orders',0,'1262179288','1262179288',0,0,'','1','','_FIRSTNAME_',''),(124,'Customer Last Name','text','customer_last_name',0,'customer_last_name','',0,'on','on','on','on','bstock_orders',0,'1262254685','1262254685',0,0,'','1','','_LASTNAME_',''),(126,'Total Amount','text','total_amount',0,'total_amount','',0,'on','on','on','on','bstock_orders',0,'1262254860','1262254860',0,0,'','1','','_NUMBER_',''),(127,'extra_comments','textarea','extra_comments',0,'extra_comments','',0,'on','on','on','on','bstock_orders',0,'1262255168','1262255168',0,0,'','1','','',''),(128,'Status','text','status_id',0,'status_id','',0,'on','on','on','on','bstock_orders',0,'1262256696','1262256696',0,0,'','1','','',''),(129,'Created Date','text','created_date',0,'created_date','',0,'on','on','on','on','bstock_orders',0,'1262259238','1262259238',0,0,'','1','','',''),(130,'Modified Date','text','modified_date',0,'modified_date','',0,'on','on','on','on','bstock_orders',0,'1262259264','1262259264',0,0,'','1','','',''),(146,'Carrier','option','carrier_id',0,'carrier_id','\'DHL\', \'Fedex\', \'UPS\', \'USPS\', \'Malca-Amit\', \'Brinks\', \'Lemiur\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042946','1263042946',0,0,'','1','','',''),(147,'Vessel/Flight No.','text','flight_no',50,'flight_no','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263043035','1263043035',0,0,'','1','','',''),(149,'Port Of Discharge','option','port_of_discharge',50,'port_of_discharge','\'NA\',\'India\',\'Belgium\',\'Hong Kong\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263043240','1263043240',0,0,'','1','','',''),(150,'Place of Receipt','option','place_of_receipt',0,'place_of_receipt','\'NA\',\'Mumbai\',\'Antwerp\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044185','1263044185',0,0,'','1','','',''),(125,'Customer Id','text','customer_id',0,'customer_id','',0,'','on','','on','bstock_orders',0,'','',0,0,'','','','',''),(136,'Approved','radio','approved',0,'approved','\'Yes\',\'No\'',0,'on','on','on','on','bstock_customers',0,'1262692775','1262692775',0,1,'','1','','',''),(137,'Plugin Label','text','plugin_label',100,'plugin_label','',3,'off','on','on','on','bstock_plugins',0,'','',0,0,'','','','_NAME_','Plugin name is mandatory field!'),(138,'Description','text','plugin_desc',255,'plugin_desc','',2,'off','on','on','on','bstock_plugins',0,'','',0,0,'','','','',''),(140,'is Active','radio','is_active',0,'is_active','\'on\',\'off\'',1,'off','on','off','on','bstock_plugins',0,'','',0,0,'Is Active is mandatory.','1','','',''),(141,'Folder Name of Plugin','text','folder_name',50,'folder_name','',4,'off','on','on','on','bstock_plugins',0,'','',0,0,'Folder name is required','1','','',''),(142,'Class File Name','text','class_file_name',50,'class_file_name','',5,'off','on','on','on','bstock_plugins',0,'','1262952344',0,0,'Class file name field is mandatory','1','','_AGE_',''),(143,'Order Id','text','order_id',10,'order_id','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042701','1263042701',0,0,'','1','','_NUMBER_',''),(144,'Airway Bill No.','text','tracking_number',50,'tracking_number','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042803','1263042803',0,0,'','1','','',''),(145,'Date','text','sent_date',25,'sent_date','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042851','1263042851',0,0,'','1','','_DATE_',''),(151,'Port of Loading','option','port_of_loading',0,'port_of_loading','\'NA\',\'Mumbai\',\'Antwerp\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044308','1263044308',0,0,'','1','','',''),(152,'City of Final Destination','option','city_of_destination',0,'city_of_destination','\'Mumbai\',\'Antwerp\',\'New York\',\'Hong Kong\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044479','1263044479',0,0,'','1','','',''),(153,'Exporter Name','text','exporter_name',250,'exporter_name','',1,'on','on','on','on','bstock_exporters',0,'1263079298','1263079298',0,0,'Exporter name is mandatory.','1','','',''),(154,'Address','textarea','address',0,'address','',2,'on','on','on','on','bstock_exporters',0,'1263079930','1263079930',0,0,'','1','','',''),(155,'Phone 1','text','phone1',50,'phone1','',3,'on','on','on','on','bstock_exporters',0,'1263080046','1263080046',0,0,'Phone 1 is mandatory.','1','','',''),(156,'Phone 2','text','phone2',50,'phone2','',4,'on','on','on','on','bstock_exporters',0,'1263080086','1263080086',0,0,'','1','','',''),(157,'Fax','text','fax',50,'fax','',5,'on','on','on','on','bstock_exporters',0,'1263080106','1263080106',0,0,'','1','','',''),(158,'Exporter\'s Ref','text','reference_no',50,'reference_no','',6,'on','on','on','on','bstock_exporters',0,'1263080161','1263080161',0,0,'Exporters Reference is mandatory.','1','','',''),(159,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_exporters',0,'1263186645','1263186645',0,1,'','1','','',''),(160,'IEC Number','text','iec_no',50,'iec_no','',0,'on','on','on','on','bstock_exporters',0,'1263212262','1263212262',0,0,'','1','','',''),(161,'Country of Origin of goods','option','country_of_origin',0,'country_of_origin','\'NA\',\'India\',\'Belgium\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263273123','1263273123',0,0,'','1','','',''),(162,'Country of Final Destination','option','country_of_destination',0,'country_of_destination','\'NA\',\'India\',\'Belgium\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263273314','1263273314',0,0,'','1','','',''),(163,'Payment Terms','option','payment_terms_id',0,'payment_terms_id','\'NA\',\'120 Days D/A\',\'120 Days\',\'90 Days\'',0,'on','on','on','on','bstock_invoices',0,'1263279097','1263279097',0,0,'','1','','',''),(164,'Company Name','text','bank_name',250,'bank_name','',1,'on','on','on','on','bstock_angadia',0,'1263285663','1263285663',0,0,'Company Name is mandatory.','1','','',''),(165,'Address','textarea','bank_address',0,'bank_address','',2,'on','on','on','on','bstock_angadia',0,'1263285730','1263285730',0,0,'','1','','',''),(166,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_angadia',0,'1263286352','1263286352',0,1,'','1','','',''),(167,'Certificate No.','text','certificate_id',50,'certificate_id','',3,'off','on','on','on','bstock_products',0,'1264597094','1264597094',0,0,'','1','','',''),(204,'Price P/CT (AUD)','text','inr_price',10,'inr_price','',37,'off','on','on','on','bstock_products',0,'','1283885750',0,0,'','1','','_AGE_',''),(169,'Serial No','text','serial_no',50,'serial_no','',17,'off','on','on','on','bstock_products',0,'1264597423','1264597423',0,0,'','1','','_NUMBER_',''),(170,'Discount','text','discount',50,'discount','',9,'off','on','on','on','bstock_products',0,'1264597484','1264597484',0,0,'','1','','',''),(175,'Measurement','text','measurement',50,'measurement','',22,'off','on','on','on','bstock_products',0,'1264597893','1264597893',0,0,'','1','','',''),(176,'Depth %','text','depth_percent',50,'depth_percent','',19,'off','on','on','on','bstock_products',0,'1264597980','1264597980',0,0,'','1','','',''),(177,'Table %','text','table_percent',50,'table_percent','',20,'off','on','on','on','bstock_products',0,'1264598000','1264598000',0,0,'','1','','_AGE_',''),(178,'Girdle','text','girdle',250,'girdle','',21,'off','on','on','on','bstock_products',0,'1264598208','1264598208',0,0,'','1','','',''),(179,'Country','option','country',0,'country','\'India\', \'Hong Kong\', \'USA\', \'Belgium\'',10,'off','on','off','on','bstock_products',0,'1264598444','1264598444',0,0,'','1','','',''),(180,'Quantity','text','qty',10,'qty','',23,'off','on','on','on','bstock_products',0,'1264679156','1264679156',0,0,'','1','','',''),(181,'Vendor Name','text','vendor_name',250,'vendor_name','',1,'on','on','on','on','bstock_vendors',0,'1263079298','1263079298',0,0,'Vendor name is mandatory.','1','','',''),(182,'Address','textarea','address',0,'address','',2,'on','on','on','on','bstock_vendors',0,'1263079930','1263079930',0,0,'','1','','',''),(183,'Phone 1','text','phone1',50,'phone1','',3,'on','on','on','on','bstock_vendors',0,'1263080046','1263080046',0,0,'Phone 1 is mandatory.','1','','',''),(184,'Phone 2','text','phone2',50,'phone2','',4,'on','on','on','on','bstock_vendors',0,'1263080086','1263080086',0,0,'','1','','',''),(185,'Fax','text','fax',50,'fax','',5,'on','on','on','on','bstock_vendors',0,'1263080106','1263080106',0,0,'','1','','',''),(186,'Vendorss Ref','text','reference_no',50,'reference_no','',6,'on','on','on','on','bstock_vendors',0,'1263080161','1263080161',0,0,'Vendors Reference is mandatory.','1','','',''),(187,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_vendors',0,'1263186645','1263186645',0,1,'','1','','',''),(188,'IEC Number','text','iec_no',50,'iec_no','',0,'on','on','on','on','bstock_vendors',0,'1263212262','1263212262',0,0,'','1','','',''),(189,'Purchase Price','text','purchase_price',10,'purchase_price','',0,'off','on','on','off','bstock_products',0,'1272310192','1272310192',0,0,'','1','','_NUMBER_',''),(190,'Vendor Name','option','vendorname',0,'vendorname','\'None\',\'Bigg Stock\', \'Vendor 1\', \'Vendor 2\'',0,'off','on','on','on','bstock_products',0,'1272312993','1272312993',0,0,'Please select Vendor Name','1','','',''),(191,'Original Qty (Do not edit)','text','orignal_qty',100,'orignal_qty','0',0,'off','on','off','on','bstock_products',0,'1277444806','1277444806',0,0,'','1','','_NUMBER_',''),(192,'Type of Account','option','transaction_types',10,'transaction_types','\'All\',\'White\',\'Black\'',6,'on','on','on','on','bstock_userprofiles',0,'1277554424','1277554424',0,0,'','1','','_AGE_',''),(193,'Type of Account','option','transaction_types',10,'transaction_types','\'All\',\'White\',\'Black\'',6,'on','on','on','off','bstock_userprofiles',0,'1277554572','1277554572',0,0,'','1','','_AGE_',''),(194,'Divisor','text','divisor',0,'divisor','',0,'on','on','on','on','bstock_userprofiles',0,'1277554900','1277554900',0,0,'','1','','_NUMBER_',''),(195,'','','',0,'','',0,'on','on','on','on','',0,'1277557077','1277557077',0,0,'','1','','_AGE_',''),(196,'Broker Name','text','broker_name',255,'broker_name','',0,'on','on','on','on','bstock_brokers',0,'1281531239','1281531239',0,0,'Broker Name is mandatory.','1','','',''),(197,'Address','textarea','address',250,'address','',3,'on','on','on','on','bstock_brokers',0,'1281549714','1281549714',0,0,'','1','','',''),(198,'Phone 1','text','phone1',25,'phone1','',4,'on','on','on','on','bstock_brokers',0,'1281549897','1281549897',0,0,'','1','','',''),(199,'Phone 2','text','phone2',50,'phone2','',5,'on','on','on','on','bstock_brokers',0,'1281598101','1281598101',0,0,'','1','','',''),(200,'Fax','text','fax',50,'fax','',6,'on','on','on','on','bstock_brokers',0,'1281598269','1281598269',0,0,'','1','','',''),(201,'Reference Name','text','reference_name',255,'reference_name','',7,'on','on','on','on','bstock_brokers',0,'1281598379','1281598379',0,0,'','1','','',''),(202,'Reference Number','text','reference_no',50,'reference_no','',8,'on','on','on','on','bstock_brokers',0,'1281598411','1281598411',0,0,'','1','','',''),(203,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',9,'on','on','on','on','bstock_brokers',0,'1281601690','1281601690',0,1,'','1','','',''),(205,'Conversion Rate','text','conversion_rate',10,'conversion_rate','',36,'off','on','on','on','bstock_products',0,'1283886076','1283886076',0,0,'','1','','_AGE_',''),(207,'Cash Back','text','cash_back',10,'cash_back','',0,'off','on','on','on','bstock_products',0,'1283886145','1283886145',0,0,'','1','','_AGE_',''),(208,'Total Purchase Price (USD)','text','purchase_price_dollar',10,'purchase_price_dollar','',34,'off','on','on','on','bstock_products',0,'1283886171','1283886171',0,0,'','1','','_AGE_',''),(209,'Total Purchase Price (AUD)','text','purchase_price_inr',10,'purchase_price_inr','',38,'off','on','on','on','bstock_products',0,'1283886194','1283886194',0,0,'','1','','_AGE_',''),(210,'Jewelry Category','option','',0,'jwl_category','\'Ring\', \'Bangles\', \'Necklace\', \'Earnings\', \'Bracelet\', \'Nose Ring\', \'Painjan\', \'Bajuband\', \'KamarPata\'',0,'off','on','on','on','bstock_products',0,'','1285164924',0,0,'','1','','_AGE_',''),(213,'Type of Stone','option','typeofstone',0,'typeofstone','\'Loose\',\'Single\'',24,'off','on','on','on','bstock_products',0,'1285661515','1285661515',0,0,'','1','','',''),(214,'Piece Price (AUD)','text','piece_price_inr',10,'piece_price_inr','',26,'off','on','on','on','bstock_products',0,'1285694553','1285694553',0,0,'','1','','',''),(215,'Piece Price (USD)','text','piece_price_dollar',10,'piece_price_dollar','',32,'off','on','on','off','bstock_products',0,'1285694582','1285694582',0,0,'','1','','',''),(216,'Piece Price (USD)','text','piece_price_dollar',10,'piece_price_dollar','',27,'off','on','on','on','bstock_products',0,'1285694721','1285694721',0,0,'','1','','',''),(217,'Aadat','text','aadat',5,'aadat','',0,'off','on','on','on','bstock_products',0,'1286212567','1286212567',0,0,'','1','','',''),(218,'Item Number','text','barcode_number',20,'barcode_number','',1,'off','on','on','on','bstock_products',0,'1287814129','1287814129',0,0,'','1','','',''),(219,'Payment Terms','option','payment_terms_id',0,'payment_terms_id','\'COD\',\'30 Days\',\'60 Days\',\'90 Days\',\'120 Days\'',1,'on','on','on','on','bstock_customers',0,'1290108359','1290108359',0,0,'','1','','',''),(220,'Credit Amount','text','credit_amount',10,'credit_amount','',2,'on','on','on','on','bstock_customers',0,'1290108520','1290108520',0,0,'','1','','',''),(221,'Status','option','status',0,'status','\'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\'',25,'off','on','on','on','bstock_products',0,'1290109528','1290109528',0,0,'','1','','',''),(222,'Certificate FIle Name','text','certificate_filename',250,'certificate_filename','',25,'on','on','on','on','bstock_products',0,'1291813008','1291813008',0,0,'','1','','',''),(223,'Sale Price P/Ct (AUD)','text','inr_sale_price_with_margin',10,'inr_sale_price_with_margin','',39,'off','on','on','on','bstock_products',0,'1294209813','1294209813',0,0,'','1','','',''),(224,'Sell Qty','text','sellqty',10,'sellqty','',0,'off','on','on','on','bstock_products',0,'1294210047','1294210047',0,0,'','1','','',''),(225,'Length','text','length',5,'length','',16,'off','on','on','on','bstock_products',0,'1294210082','1294210082',0,0,'','1','','',''),(226,'Width','text','width',5,'width','',17,'off','on','on','on','bstock_products',0,'1294210165','1294210165',0,0,'','1','','',''),(227,'Depth','text','depth',5,'depth','',0,'off','on','on','off','bstock_products',0,'1294210185','1294210185',0,0,'','1','','',''),(228,'Height','text','height',5,'height','',18,'off','on','on','on','bstock_products',0,'1294210202','1294210202',0,0,'','1','','',''),(229,'Brokerage','text','brokerage',5,'brokerage','',31,'off','on','on','on','bstock_products',0,'1294210319','1294210319',0,0,'','1','','',''),(230,'Margin','text','margin',5,'margin','',30,'off','on','on','on','bstock_products',0,'1294210341','1294210341',0,0,'','1','','',''),(231,'Current Rap Price P/ct (USD)','text','current_rap_price',10,'current_rap_price','',35,'off','on','on','on','bstock_products',0,'1294210388','1294210388',0,0,'','1','','',''),(232,'Rap Price @ Purchase (Do not edit)','text','rap_price',10,'rap_price','',0,'on','on','on','on','bstock_products',0,'1294210532','1294210532',0,0,'','1','','',''),(233,'Rapnet Uploaded?','radio','is_rapnet_uploaded',2,'is_rapnet_uploaded','\'Yes\',\'No\'',0,'on','on','on','on','bstock_products',0,'1294210659','1294210659',0,1,'','1','','',''),(234,'Special Stone?','radio','is_special_stone',2,'is_special_stone','\'Yes\',\'No\'',0,'on','on','on','on','bstock_products',0,'1294210958','1294210958',0,1,'','1','','',''),(235,'Verified?','radio','verified',2,'verified','\'Yes\',\'No\'',0,'on','on','on','on','bstock_products',0,'1294210981','1294210981',0,1,'','1','','',''),(236,'Description','text','description',250,'description','',0,'on','on','on','on','bstock_products',0,'1294655752','1294655752',0,0,'','1','','',''),(237,'Published','radio','published',0,'published','\'on\',\'off\'',0,'on','on','on','on','bstock_products',0,'1295964195','1295964195',0,1,'','1','','',''),(238,'Approx Sales Piece Price (INR)','text','total_sales_piece_price_with_margin',10,'total_sales_piece_price_with_margin','',40,'on','on','on','on','bstock_products',0,'1297330008','1297330008',0,0,'','1','','',''),(239,'Username','text','user_name',20,'user_name','',1,'on','on','on','on','bstock_systemusers',0,'1298283309','1298283309',0,0,'','1','','',''),(240,'Password','password','password',25,'password','',2,'on','on','on','on','bstock_systemusers',0,'1298283361','1298283361',0,0,'','1','','',''),(241,'Email','text','email',50,'email','',0,'on','on','on','on','bstock_systemusers',0,'1298283406','1298283406',0,0,'','1','','',''),(242,'First Name','text','first_name',50,'first_name','',0,'on','on','on','on','bstock_systemusers',0,'1298283434','1298283434',0,0,'','1','','',''),(243,'Last Name','text','last_name',50,'last_name','',0,'on','on','on','on','bstock_systemusers',0,'1298283474','1298283474',0,0,'','1','','',''),(244,'Company','text','company_name',100,'company_name','',0,'on','on','on','on','bstock_systemusers',0,'1298283499','1298283499',0,0,'','1','','',''),(245,'Office Phone','text','office_phone_number',25,'office_phone_number','',0,'on','on','on','on','bstock_systemusers',0,'1298283523','1298283523',0,0,'','1','','',''),(246,'Mobile No','text','mobile_number',25,'mobile_number','',0,'on','on','on','on','bstock_systemusers',0,'1298283555','1298283555',0,0,'','1','','',''),(247,'Last Login','text','last_login',25,'last_login','',0,'on','on','on','on','bstock_systemusers',0,'1298283614','1298283614',0,0,'','1','','',''),(248,'Active','radio','is_active',2,'is_active','\'on\',\'off\'',10,'on','on','on','on','bstock_systemusers',0,'1298283697','1298283697',0,0,'','1','','',''),(249,'Profile','text','profile_id',10,'profile_id','',0,'on','on','on','on','bstock_systemusers',0,'1298357352','1298357352',0,0,'','1','','',''),(250,'Bank Name','text','bank_name',100,'bank_name','',1,'on','on','on','on','bstock_bank',0,'1306842023','1306842023',0,0,'','1','','',''),(251,'Address','textarea','bank_address',500,'bank_address','',2,'on','on','on','on','bstock_bank',0,'1306842137','1306842137',0,0,'','1','','',''),(252,'Account Number','text','account_number',50,'account_number','',3,'on','on','on','on','bstock_bank',0,'1306842217','1306842217',0,0,'','1','','',''),(253,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',4,'on','on','on','on','bstock_bank',0,'1306842251','1306842251',0,1,'','1','','','');

--
-- Table structure for table `bstock_invoices`
--

CREATE TABLE `bstock_invoices` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `invoice_no` varchar(50) NOT NULL COMMENT 'Invoice number. This is generated from the ''customnumbers'' table.',
  `invoice_date` varchar(50) NOT NULL COMMENT 'This is the date that is selected on the form of invoice creation / editing.',
  `other_references` varchar(100) NOT NULL COMMENT 'This is used to store the other reference number found on Invoice.',
  `invoice_status_id` int(10) NOT NULL COMMENT 'This is the foreign key of the invoice status table & mapped to it''s primary key.',
  `exporter_id` int(10) NOT NULL COMMENT 'This is the exporter_id which is the foreign key here. It is the primary key of the bstock_exporters table.',
  `payment_terms_id` int(10) NOT NULL COMMENT 'This will be the foreign key in the payment_terms table, corresponding to the primary key of that table.',
  `banker_id` int(10) NOT NULL COMMENT 'This is the foreign key & it corresponds to the primary key of the bstock_bankers table.',
  `conversion_rate` decimal(10,3) NOT NULL COMMENT 'This field will store the current rate of USD vs INR',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this invoice was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this invoice was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1 COMMENT='Stores the invoices for every order.';

--
-- Dumping data for table `bstock_invoices`
--

INSERT INTO `bstock_invoices` VALUES (1,1,'1','1302158790','',0,0,0,0,0.000,'1313822790','1313822790'),(2,2,'00000002','1312786168','',0,0,0,0,0.000,'1313822969','1313822969'),(3,3,'00000003','1302937064','',0,0,0,0,0.000,'1313823469','1313823469'),(4,4,'00000004','1307603524','',0,0,0,0,0.000,'1313824325','1313824325'),(5,5,'00000005','1307950853','',0,0,0,0,0.000,'1313826053','1313826053'),(6,6,'00000006','1304495266','',0,0,0,0,0.000,'1313826466','1313826466'),(7,7,'00000007','1307001244','',0,0,0,0,0.000,'1313826845','1313826845'),(8,8,'00000008','1307606779','',0,0,0,0,0.000,'1313827579','1313827579'),(9,9,'00000009','1306743615','',0,0,0,0,0.000,'1313828416','1313828416'),(10,10,'00000010','1305189101','',0,0,0,0,0.000,'1313829102','1313829102'),(11,11,'00000011','1305189244','',0,0,0,0,0.000,'1313829244','1313829244'),(12,12,'00000012','1307608746','',0,0,0,0,0.000,'1313829556','1313829556'),(13,13,'00000013','1308040606','',0,0,0,0,0.000,'1314088606','1314088606'),(14,14,'00000014','1308213493','',0,0,0,0,0.000,'1314088693','1314088693');

--
-- Table structure for table `bstock_invoicestatushistory`
--

CREATE TABLE `bstock_invoicestatushistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `invoice_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the invoices table & mapped to it''s primary key.',
  `status_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the invoices status table & mapped to it''s primary key. Here we will store the new status id which was there after being updated.',
  `comments` text NOT NULL COMMENT 'This will store the comments entered by the Admin.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the timestamp of the date when the invoice 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=15 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the invoices status';

--
-- Dumping data for table `bstock_invoicestatushistory`
--

INSERT INTO `bstock_invoicestatushistory` VALUES (1,1,0,'','1313822790','1313822790',1),(2,2,0,'','1313822969','1313822969',1),(3,3,0,'','1313823469','1313823469',1),(4,4,0,'','1313824325','1313824325',1),(5,5,0,'','1313826053','1313826053',1),(6,6,0,'','1313826466','1313826466',1),(7,7,0,'','1313826845','1313826845',1),(8,8,0,'','1313827579','1313827579',1),(9,9,0,'','1313828416','1313828416',1),(10,10,0,'','1313829102','1313829102',1),(11,11,0,'','1313829244','1313829244',1),(12,12,0,'','1313829556','1313829556',1),(13,13,0,'','1314088606','1314088606',1),(14,14,0,'','1314088693','1314088693',1);

--
-- Table structure for table `bstock_invoicestatustypes`
--

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

--
-- Dumping data for table `bstock_invoicestatustypes`
--

INSERT INTO `bstock_invoicestatustypes` VALUES (1,'Pending','','1','',''),(2,'Paid','','1','','');

--
-- Table structure for table `bstock_inwardproductdetails`
--

CREATE TABLE `bstock_inwardproductdetails` (
  `inward_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `product_id` int(10) NOT NULL COMMENT 'This is the foreign key for the products & is mapped to primary key of products table.',
  `quantity` int(10) NOT NULL COMMENT 'Quantity of products that were added to the stock.',
  `list_price` varchar(50) NOT NULL COMMENT 'Price at which the products were purchased.',
  `vendor_id` int(10) NOT NULL COMMENT 'This will be the vendor_id from whom the products were purchased.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this record.',
  PRIMARY KEY (`inward_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Record transactions when products are added in our inventory';

--
-- Dumping data for table `bstock_inwardproductdetails`
--


--
-- Table structure for table `bstock_jhangadshipping`
--

CREATE TABLE `bstock_jhangadshipping` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `shipping_address_id` int(10) NOT NULL COMMENT 'This is the foriegn key of the shipping address(customershipping) & is mapped to it''s primary key.',
  `remarks` varchar(1000) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This is the date when this record was created. Most of the times it will be same as date when order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the last modified date.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the shipping address of the customer for an order.';

--
-- Dumping data for table `bstock_jhangadshipping`
--


--
-- Table structure for table `bstock_jhangadshippinginfo`
--

CREATE TABLE `bstock_jhangadshippinginfo` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key, it''s the Primary key of orders table & will contain the order id.',
  `tracking_number` varchar(50) NOT NULL COMMENT 'This will be the tracking number of the shipment.',
  `sent_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when the shipment has been delivered.',
  `carrier_id` enum('NA','Drop off','Platinium Express Post','Express Post','Courier') NOT NULL,
  `flight_no` varchar(50) NOT NULL,
  `port_of_discharge` enum('NA','India','Belgium','Hong Kong') NOT NULL,
  `place_of_receipt` enum('NA','Mumbai','Antwerp') NOT NULL,
  `port_of_loading` enum('NA','Mumbai','Antwerp') NOT NULL,
  `city_of_destination` enum('Mumbai','Antwerp','New York','Hong Kong') NOT NULL,
  `user_id` int(10) NOT NULL COMMENT 'This will be the foreign key. It corresponds to Primary key of users table. It will store the id of the user who created this shipment record.',
  `remarks` varchar(1000) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when this entry is created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when this entry is modified.',
  `country_of_origin` enum('NA','India','Belgium') NOT NULL,
  `country_of_destination` enum('NA','India','Belgium') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table is used to store the shipping details of every or';

--
-- Dumping data for table `bstock_jhangadshippinginfo`
--


--
-- Table structure for table `bstock_jwl_dia_info`
--

CREATE TABLE `bstock_jwl_dia_info` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `order_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of orders table.',
  `diamond_product_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `product_jwl_id` int(11) NOT NULL,
  `quantity` int(10) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `price` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `price_inr` decimal(10,0) NOT NULL,
  `percent_back` decimal(10,0) NOT NULL,
  `aadat` decimal(10,0) NOT NULL,
  `dollar_rate` decimal(10,0) NOT NULL,
  `cash_back` decimal(10,0) NOT NULL,
  `total_in_dollar` decimal(10,0) NOT NULL,
  `total_in_inr` decimal(10,0) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `customer_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,
  `profit_amount` decimal(10,4) NOT NULL,
  `profit_percent` decimal(10,4) NOT NULL,
  `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.',
  `quantity_shipped` int(10) NOT NULL COMMENT 'This will be the quantity of the item that has been shipped so far.',
  `exporter_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=159 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_jwl_dia_info`
--

INSERT INTO `bstock_jwl_dia_info` VALUES (5,0,0,20,2,0,1,3366.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270147','1276270147','','',0,1),(6,0,0,21,3,0,1,2470.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270381','1276270381','','',0,1),(7,0,0,22,7,0,1,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270732','1276270732','','',0,1),(8,0,0,23,7,0,1,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270812','1276270812','','',0,1),(9,0,0,24,7,0,1,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271031','1276271031','','',0,1),(10,0,0,25,7,0,2,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271039','1276271039','','',0,1),(11,0,0,25,7,0,2,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(12,0,0,26,77,0,1,5112.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276522281','1276522281','','',0,1),(15,0,0,26,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(16,0,0,29,13,0,1,2750.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523268','1276523268','','',0,1),(18,0,0,31,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523825','1276523825','','',0,1),(19,0,0,33,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524038','1276524038','','',0,1),(20,0,0,34,3,0,1,2470.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524132','1276524132','','',0,1),(21,0,0,35,4,0,1,3266.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524168','1276524168','','',0,1),(22,0,0,35,0,0,0,0.00,0,0,0,0,0,0,0,3,12,0,0.00,0,0.00,5678.0000,1.0200,'1276524168','1276524168','','',0,1),(23,0,0,36,5,0,1,1188.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524306','1276524306','','',0,1),(52,0,0,44,3,0,1,2470.00,0,0,0,0,0,0,0,2,12,1,2.00,2,3.00,-890.0000,-8.9000,'1277233812','1277233812','','',0,1),(51,0,0,37,2,0,4,3366.00,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-50.0000,-0.5000,'1277230461','1277230461','','',0,1),(28,0,0,38,9,0,1,4070.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276582157','1276582157','','',0,1),(43,0,0,38,4,0,2,4444.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,-2238.0000,-22.3800,'1276952739','1276952739','','',0,1),(47,0,0,43,2,0,1,5555.00,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-30193.0000,-301.9300,'1276955065','1276955065','','',0,1),(45,0,0,42,2,0,4,3366.00,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-42480.0000,-424.8000,'1276953033','1276953033','','',0,1),(46,0,0,41,4,0,2,4444.00,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-2238.0000,-22.3800,'1276953062','1276953062','','',0,1),(38,0,0,1,2,0,5,5555.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,2189.0000,21.8900,'1276949635','1276949635','','',0,1),(39,0,0,1,6,0,1,4444.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,2024.0000,20.2400,'1276951188','1276951188','','',0,1),(40,0,55,38,3,0,0,2470.00,0,10,0,45,0,2445,110039,1,12,1,2.00,2,1.00,0.0000,0.0000,'1276951261','1276951261','','',0,1),(41,0,0,38,3,0,1,2470.00,0,0,0,0,0,0,0,1,12,1,1.00,4,2.00,500.0000,2.3000,'1276951512','1276951512','','',0,1),(49,0,0,39,5,0,1,3333.00,0,20,3,45,2,0,0,1,12,4,1.00,0,0.00,1395.0000,13.9500,'1277202736','1277202736','','',0,1),(53,0,0,37,3,0,3,2.47,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972821','1277972821','','',0,1),(54,0,0,37,3,0,4,2.47,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972835','1277972835','','',0,1),(55,0,0,46,6,0,2,5.56,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-4834.4445,-48.3444,'1277982373','1277982373','','',0,1),(56,0,0,46,15,0,2,2.53,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-2527.4700,-25.2747,'1277982373','1277982373','','',0,1),(57,0,0,47,8,0,2,1.44,0,0,0,0,0,0,0,1,12,2,2.00,2,3.00,-2878.5600,-28.7856,'1277986272','1277986272','','',0,1),(58,0,0,48,14,0,1,2.86,0,0,0,0,0,0,0,1,0,1,2.00,0,0.00,-2857.1400,-28.5714,'1277986481','1277986481','','',0,1),(59,0,0,49,14,0,1,2.86,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,-2857.1400,-28.5714,'1277986542','1277986542','','',0,1),(60,0,0,37,15,0,3,2530.00,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-5110.0000,-51.1000,'1277986781','1277986781','','',0,1),(61,0,0,49,15,0,1,4444.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,1914.0000,19.1400,'1277986828','1277986828','','',0,1),(62,0,0,50,14,0,1,2860.00,0,0,0,0,0,0,0,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(63,0,0,50,10,0,1,2604.00,0,0,0,0,0,0,0,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(64,0,0,1,17,0,1,4620.00,0,0,0,0,0,0,0,0,12,0,0.00,0,0.00,0.0000,0.0000,'1280410056','1280410056','','',0,0),(65,0,0,51,17,0,1,4620.00,0,0,0,0,0,0,0,2,12,1,1.00,2,2.00,-2.0000,-0.0200,'1282119125','1282119125','','',0,0),(66,0,0,52,6,0,4,2420.00,0,0,0,0,0,0,0,1,12,1,1.00,2,1.00,-7260.0000,-72.6000,'1283334337','1283334337','','',0,0),(67,0,0,52,8,0,1,1440.00,0,0,0,0,0,0,0,1,12,1,1.00,2,1.00,0.0000,0.0000,'1283334337','1283334337','','',0,0),(68,0,0,53,15,0,1,2530.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0),(69,0,0,53,18,0,1,3150.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0),(70,0,0,54,1,0,1,400.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283460667','1283460667','','',0,0),(71,0,0,39,2,0,4353,4353.00,0,0,0,0,0,6052,272319,1,12,4,1.00,0,0.00,-999999.9999,-189486.0900,'1283710168','1283710168','','',0,0),(72,0,0,39,1,0,1,5500.00,0,10,3,45,2,5694,256213,1,12,4,1.00,0,0.00,-484.0000,-4.8400,'1283710862','1283710862','','',0,0),(73,0,0,55,2,0,1,4353.00,0,10,3,45,2,5996,269816,3,12,2,1.00,0,0.00,-4353.0000,-43.5300,'1283713633','1283713633','','',0,0),(74,0,30,0,2,15,1,6666.00,0,0,0,45,0,10732,482952,1,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283728038','1283728038','','',0,0),(75,0,30,0,2,15,1,6666.00,0,0,0,45,0,10732,482952,1,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283728290','1283728290','','',0,0),(76,0,30,0,2,15,1,6666.00,0,0,0,45,0,10732,482952,1,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283728343','1283728343','','',0,0),(77,0,58,0,2,0,1,5555.00,0,0,0,45,0,8944,402460,1,0,1,0.00,0,0.00,-48455.0000,-484.5500,'1283757521','1283757521','','',0,0),(78,0,59,0,2,0,1,5555.00,0,0,0,45,0,8944,402460,3,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283759338','1283759338','','',0,0),(79,0,59,0,4,0,1,666.00,0,0,0,45,0,673,30270,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283759921','','',0,0),(80,0,59,0,4,0,1,5505.00,0,0,0,45,0,5560,250202,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283776417','','',0,0),(81,0,59,0,6,0,1,5000.00,0,0,0,45,0,5900,265500,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283776792','','',0,0),(82,0,59,0,6,0,1,500.00,0,0,0,45,0,590,26550,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283776915','','',0,0),(83,0,60,0,2,0,1,5000.00,0,0,0,45,0,8050,362250,1,0,1,0.00,0,0.00,-48455.0000,-484.5500,'1283777612','1283777612','','',0,0),(84,0,37,0,6,0,1,5000.00,0,0,0,45,0,5900,265500,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283780164','','',0,0),(85,0,37,0,8,0,1,4000.00,0,0,0,45,0,4840,217800,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283799741','','',0,0),(86,0,37,0,10,0,1,5000.00,0,0,0,45,0,10050,452250,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283808087','','',0,0),(87,0,37,0,7,0,1,3000.00,10,3,2,45,0,3090,139050,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283808363','','',0,0),(92,0,62,0,378,0,1,2000.00,0,33,0,47,0,1348,62682,1,0,0,0.00,0,0.00,-44102.0000,-441.0200,'1283852927','1283852927','','',0,0),(91,0,62,0,382,0,1,850.00,0,0,0,46,0,765,35190,1,0,0,0.00,0,0.00,-44715.7000,-447.1570,'1283852927','1283852927','','',0,0),(95,0,70,0,394,0,1,13000.00,0,20,3,45,2,19772,889762,0,0,0,0.00,0,0.00,-56102.0000,-561.0200,'1283873378','1283873378','','',0,0),(96,0,70,0,388,0,1,4000.00,0,25,3,46,0,2910,133860,0,0,0,0.00,0,0.00,-47702.0000,-477.0200,'1283873378','1283873378','','',0,0),(97,0,71,0,391,0,1,8000.00,0,40,3,45,2,9126,410659,0,0,0,0.00,0,0.00,-51302.0000,-513.0200,'1283873848','1283873848','','',0,0),(98,0,71,0,389,0,1,9000.00,0,12,2,45,1,7684,345779,0,0,0,0.00,0,0.00,-44602.0000,-446.0200,'1283873848','1283873848','','',0,0),(99,0,72,0,386,0,1,5000.00,0,0,0,45,0,10000,450000,0,0,0,0.00,0,0.00,-51302.0000,-513.0200,'1283875146','1283875146','','',0,0),(100,0,72,0,393,0,1,8000.00,0,0,0,45,0,8000,360000,0,0,0,0.00,0,0.00,-49102.0000,-491.0200,'1283875146','1283875146','','',0,0),(101,0,79,0,411,0,1,3900.00,0,0,0,46,0,6630,304980,0,0,0,0.00,0,0.00,-47365.0400,-473.6504,'1285668597','1285668597','','',0,0),(102,0,79,0,409,0,1,3840.43,0,0,0,47,0,7297,342950,0,0,0,0.00,0,0.00,-47442.4300,-474.4243,'1285668597','1285668597','','',0,0),(103,0,80,0,411,0,1,3900.00,0,0,0,46,0,6630,304980,0,0,0,0.00,0,0.00,-47365.0400,-473.6504,'1285668708','1285668708','','',0,0),(104,0,80,0,409,0,1,3840.43,0,0,0,47,0,7297,342950,0,0,0,0.00,0,0.00,-47442.4300,-474.4243,'1285668708','1285668708','','',0,0),(105,0,81,0,364,0,2,1250.00,0,0,0,46,0,1500,69000,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'1285668868','1285668868','','',0,0),(106,0,81,0,381,0,1,1200.00,0,0,0,46,0,1560,71760,0,0,0,0.00,0,0.00,-45070.4500,-450.7045,'1285668868','1285668868','','',0,0),(107,0,84,0,406,0,1,5000.00,0,0,0,45,0,11500,517500,0,0,0,0.00,0,0.00,-48653.2400,-486.5324,'1285676716','1285676716','','',0,0),(108,0,85,0,408,0,1,3200.00,0,0,0,46,0,6400,294400,0,0,0,0.00,0,0.00,-46918.8800,-469.1888,'1285678016','1285678016','','',0,0),(109,0,86,0,403,0,1,5000.00,0,0,0,47,0,9500,441750,0,0,0,0.00,0,0.00,-47771.8700,-477.7187,'1285678155','1285678155','','',0,0),(110,0,87,0,403,0,1,5000.00,0,0,0,47,0,9500,441750,0,0,0,0.00,0,0.00,-47771.8700,-477.7187,'1285678201','1285678201','','',0,0),(111,0,88,0,404,0,1,900.00,0,0,0,47,0,630,29484,0,0,0,0.00,0,0.00,-44883.2000,-448.8320,'1285678485','1285678485','','',0,0),(112,0,89,0,402,0,1,9000.00,0,0,0,45,0,13590,611550,0,0,0,0.00,0,0.00,-52119.3000,-521.1930,'1285680273','1285680273','','',0,0),(113,0,90,0,384,0,1,4000.00,0,0,0,45,0,4000,180000,0,0,0,0.00,0,0.00,-47702.0000,-477.0200,'1285680330','1285680330','','',0,0),(136,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290427543','','',0,0),(135,0,58,0,0,0,1,599.40,222,10,1,384,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290427210','','',0,0),(134,0,58,0,0,0,1,400.00,400,10,1,369,440,450,0,0,0,0,445.72,0,0.00,-44102.0000,-441.0200,'','1290426263','','',0,0),(133,0,58,0,0,0,1,599.40,222,10,1,392,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290425333','','',0,0),(137,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290427936','','',0,0),(138,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290428043','','',0,0),(139,0,58,0,0,0,1,400.00,400,10,1,369,440,450,0,0,0,0,445.72,0,0.00,-44102.0000,-441.0200,'','1290428110','','',0,0),(140,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290428480','','',0,0),(141,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290429021','','',0,0),(142,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290448077','','',0,0),(143,0,58,0,0,0,1,599.40,222,10,1,386,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290448077','','',0,0),(144,0,59,0,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1290488678','','',0,0),(145,0,59,0,0,0,1,599.40,222,10,1,384,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290488678','','',0,0),(146,0,59,0,0,0,1,2199.78,2222,10,1,374,2420,0,0,0,0,0,2451.21,0,0.00,-44102.0000,-441.0200,'','1290488678','','',0,0),(147,0,59,0,0,0,1,599.40,222,10,1,392,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290489224','','',0,0),(148,0,59,0,0,0,1,400.00,400,10,1,369,440,450,0,0,0,0,445.72,0,0.00,-44102.0000,-441.0200,'','1290489380','','',0,0),(149,0,59,0,0,0,1,599.40,222,10,1,392,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290489636','','',0,0),(150,0,59,0,0,0,1,2199.78,2222,10,1,374,2420,0,0,0,0,0,2451.21,0,0.00,-44102.0000,-441.0200,'','1290493804','','',0,0),(151,0,59,0,0,0,0,0.00,0,2500,0,2750,0,36,25000,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295424019','','',0,0),(152,0,60,0,0,0,0,0.00,0,2000,0,3600,0,33,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295430281','','',0,0),(153,0,60,0,0,0,0,0.00,0,2600,0,1326,0,19,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295430604','','',0,0),(154,0,60,0,0,0,0,0.00,0,3900,0,1950,0,17,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295430954','','',0,0),(155,0,62,0,0,0,0,0.00,0,1900,0,3420,0,35,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295518137','','',0,0),(156,0,88,0,0,0,0,0.00,0,2100,0,1071,0,0,28,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1296725896','','',0,0),(157,0,90,0,0,0,0,0.00,0,2200,0,1122,0,0,28,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1296728113','','',0,0),(158,0,2,0,0,0,0,0.00,0,1304,0,0,0,0,25,0,0,0,3000.00,0,0.00,-44102.0000,-441.0200,'','1299090554','','',0,0);

--
-- Table structure for table `bstock_jwl_dia_info_unused`
--

CREATE TABLE `bstock_jwl_dia_info_unused` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `polish_diamond_id` int(10) NOT NULL,
  `product_jwl_id` int(10) NOT NULL,
  `number_of_pieces` int(10) NOT NULL,
  `location` varchar(255) NOT NULL,
  `price` varchar(10) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_jwl_dia_info_unused`
--

INSERT INTO `bstock_jwl_dia_info_unused` VALUES (1,673,1,1,'Center','100','',''),(2,674,2,5,'Side','200','',''),(3,675,2,2,'Center','300','',''),(4,673,3,4,'Side','400','',''),(5,674,3,3,'Center','500','',''),(6,675,6,5,'Side','600','',''),(7,673,6,1,'Center','100','',''),(8,673,7,2,'Center','200','',''),(9,673,8,3,'Center','300','',''),(10,673,9,4,'Center','400','',''),(11,673,10,5,'Center','500','',''),(12,673,11,6,'Center','600','',''),(13,673,12,7,'Center','700','',''),(14,673,13,8,'Center','800','',''),(15,673,14,9,'Center','900','',''),(16,673,15,10,'Center','1000','','');

--
-- Table structure for table `bstock_jwl_diamond_items`
--

CREATE TABLE `bstock_jwl_diamond_items` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `po_order_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of orders table.',
  `so_order_id` int(11) NOT NULL,
  `diamond_product_id` int(11) NOT NULL,
  `product_jwl_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `quantity` int(10) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `price` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `vendor_id` int(11) NOT NULL,
  `customer_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,
  `profit_amount` decimal(10,4) NOT NULL,
  `profit_percent` decimal(10,4) NOT NULL,
  `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.',
  `quantity_shipped` int(10) NOT NULL COMMENT 'This will be the quantity of the item that has been shipped so far.',
  `exporter_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_jwl_diamond_items`
--

INSERT INTO `bstock_jwl_diamond_items` VALUES (5,20,0,0,2,1,3366.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270147','1276270147','','',0,1),(6,21,0,0,3,1,2470.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270381','1276270381','','',0,1),(7,22,0,0,7,1,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270732','1276270732','','',0,1),(8,23,0,0,7,1,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270812','1276270812','','',0,1),(9,24,0,0,7,1,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271031','1276271031','','',0,1),(10,25,0,0,7,2,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271039','1276271039','','',0,1),(11,25,0,0,7,2,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(12,26,0,0,77,1,5112.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276522281','1276522281','','',0,1),(15,26,0,0,0,0,0.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(16,29,0,0,13,1,2750.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523268','1276523268','','',0,1),(18,31,0,0,0,0,0.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523825','1276523825','','',0,1),(19,33,0,0,0,0,0.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524038','1276524038','','',0,1),(20,34,0,0,3,1,2470.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524132','1276524132','','',0,1),(21,35,0,0,4,1,3266.00,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524168','1276524168','','',0,1),(22,35,0,0,0,0,0.00,3,12,0,0.00,0,0.00,5678.0000,1.0200,'1276524168','1276524168','','',0,1),(23,36,0,6,5,1,1188.00,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524306','1276524306','','',0,1),(52,44,0,0,3,1,2470.00,2,12,1,2.00,2,3.00,-890.0000,-8.9000,'1277233812','1277233812','','',0,1),(51,37,0,0,2,4,3366.00,1,41,1,2.00,2,2.00,-50.0000,-0.5000,'1277230461','1277230461','','',0,1),(28,38,0,0,9,1,4070.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276582157','1276582157','','',0,1),(43,38,0,0,4,2,4444.00,1,12,0,0.00,0,0.00,-2238.0000,-22.3800,'1276952739','1276952739','','',0,1),(47,43,0,0,2,1,5555.00,1,0,0,0.00,0,0.00,-30193.0000,-301.9300,'1276955065','1276955065','','',0,1),(45,42,0,0,2,4,3366.00,1,0,0,0.00,0,0.00,-42480.0000,-424.8000,'1276953033','1276953033','','',0,1),(46,41,0,0,4,2,4444.00,1,0,0,0.00,0,0.00,-2238.0000,-22.3800,'1276953062','1276953062','','',0,1),(38,1,0,0,2,5,5555.00,2,12,0,0.00,0,0.00,2189.0000,21.8900,'1276949635','1276949635','','',0,1),(39,0,55,2,55,1,4444.00,2,12,0,0.00,0,0.00,2024.0000,20.2400,'1276951188','1276951188','','',0,1),(40,38,0,0,3,0,2470.00,1,12,1,2.00,2,1.00,0.0000,0.0000,'1276951261','1276951261','','',0,1),(41,38,0,0,3,1,2470.00,1,12,1,1.00,4,2.00,500.0000,2.3000,'1276951512','1276951512','','',0,1),(49,39,0,7,5,1,3333.00,1,12,4,1.00,0,0.00,1395.0000,13.9500,'1277202736','1277202736','','',0,1),(53,37,0,0,3,3,2.47,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972821','1277972821','','',0,1),(54,37,0,0,3,4,2.47,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972835','1277972835','','',0,1),(55,46,0,0,6,2,5.56,1,0,0,0.00,0,0.00,-4834.4445,-48.3444,'1277982373','1277982373','','',0,1),(56,46,0,0,15,2,2.53,1,0,0,0.00,0,0.00,-2527.4700,-25.2747,'1277982373','1277982373','','',0,1),(57,47,0,0,8,2,1.44,1,12,2,2.00,2,3.00,-2878.5600,-28.7856,'1277986272','1277986272','','',0,1),(58,48,0,0,14,1,2.86,1,0,1,2.00,0,0.00,-2857.1400,-28.5714,'1277986481','1277986481','','',0,1),(59,49,0,0,14,1,2.86,2,12,0,0.00,0,0.00,-2857.1400,-28.5714,'1277986542','1277986542','','',0,1),(60,37,0,0,15,3,2530.00,1,41,1,2.00,2,2.00,-5110.0000,-51.1000,'1277986781','1277986781','','',0,1),(61,49,0,0,15,1,4444.00,2,12,0,0.00,0,0.00,1914.0000,19.1400,'1277986828','1277986828','','',0,1),(62,50,0,0,14,1,2860.00,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(63,50,0,0,10,1,2604.00,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(64,1,0,0,17,1,4620.00,0,12,0,0.00,0,0.00,0.0000,0.0000,'1280410056','1280410056','','',0,0),(65,51,0,0,17,1,4620.00,2,12,1,1.00,2,2.00,-2.0000,-0.0200,'1282119125','1282119125','','',0,0),(66,52,0,0,6,4,2420.00,1,12,1,1.00,2,1.00,-7260.0000,-72.6000,'1283334337','1283334337','','',0,0),(67,52,0,0,8,1,1440.00,1,12,1,1.00,2,1.00,0.0000,0.0000,'1283334337','1283334337','','',0,0),(68,53,0,0,15,1,2530.00,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0),(69,53,0,0,18,1,3150.00,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0);

--
-- Table structure for table `bstock_jwl_labour_info`
--

CREATE TABLE `bstock_jwl_labour_info` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `product_jwl_id` int(10) NOT NULL,
  `karagir_id` int(11) NOT NULL,
  `no_of_hours` decimal(10,0) NOT NULL,
  `metal_id` int(10) NOT NULL,
  `metal_weight` varchar(10) NOT NULL,
  `metal_karat` varchar(10) NOT NULL,
  `color` varchar(255) NOT NULL,
  `price` varchar(10) NOT NULL,
  `balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order.',
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  `status` enum('Paid','Unpaid','Partially Paid') NOT NULL COMMENT 'Will store whether the karigar has been paid for this particular job.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_jwl_labour_info`
--

INSERT INTO `bstock_jwl_labour_info` VALUES (1,0,0,1,1,0,1,'10','24','White Gold','0.00',0.00,'','','Paid'),(2,0,0,2,1,0,2,'20','12','Yellow Gold','0.00',0.00,'','','Paid'),(3,0,0,3,1,0,3,'30','18','White Gold','0.00',0.00,'','','Paid'),(4,0,0,3,1,0,4,'40','20','Silver','0.00',0.00,'','','Paid'),(5,0,0,5,1,0,5,'50','22','Platinum','0.00',0.00,'','','Paid'),(6,0,0,6,1,0,6,'60','16','Silver','0.00',0.00,'','','Paid'),(7,0,0,6,1,0,1,'.1','.1','White Gold','0.00',0.00,'','','Paid'),(8,0,0,7,1,0,1,'.2','.2','Yellow Gold','0.00',0.00,'','','Paid'),(9,0,0,8,1,0,2,'.3','.3','Platinum','0.00',0.00,'','','Paid'),(10,0,0,9,1,0,2,'.4','.4','Platinum','0.00',0.00,'','','Paid'),(11,0,0,10,1,0,3,'.5','.5','Silver','0.00',0.00,'','','Paid'),(12,0,0,11,1,0,3,'.6','.6','Silver','0.00',0.00,'','','Paid'),(13,0,0,12,1,0,4,'.7','.7','Silver','0.00',0.00,'','','Paid'),(14,0,0,13,1,0,4,'.8','.8','Silver','0.00',0.00,'','','Paid'),(15,0,0,14,1,0,5,'.9','.9','Yellow gold','0.00',0.00,'','','Paid'),(16,0,55,15,1,8,5,'1.0','1.0','Yellow gold','0.00',0.00,'','','Paid'),(17,0,30,15,1,0,0,'','','','0.00',0.00,'1283728290','1283728290','Paid'),(18,0,30,15,1,0,0,'','','','222',0.00,'1283728343','1283728343','Paid'),(19,0,30,15,1,0,0,'','','','48',0.00,'1283728343','1283728343','Paid'),(20,0,58,0,1,0,0,'','','','987',0.00,'1283757521','1283757521','Paid'),(21,0,59,0,1,0,0,'','','','600',0.00,'1283759338','1283759338','Paid'),(22,0,59,0,1,0,0,'','','','333',0.00,'1283759921','1283759921','Paid'),(23,0,59,0,1,0,0,'','','','800',0.00,'1283776417','1283776417','Paid'),(24,0,59,0,1,0,0,'','','','500',0.00,'1283776792','1283776792','Paid'),(25,0,59,0,1,0,0,'','','','1000',0.00,'1283776915','1283776915','Paid'),(26,0,60,0,1,0,0,'','','','500',500.00,'1283777612','1283777612','Unpaid'),(29,0,62,0,1,0,0,'','','','500',0.00,'1283852927','1283852927','Paid'),(28,0,37,0,1,0,0,'','','','3000',3000.00,'1283780127','1283780127','Unpaid'),(31,0,63,0,1,0,0,'','','','1000',0.00,'1283854941','1283854941','Paid'),(32,0,68,0,1,0,0,'','','','500',0.00,'1283872805','1283872805','Paid'),(33,0,70,0,1,0,0,'','','','5000',0.00,'1283873378','1283873378','Paid'),(34,0,71,0,1,0,0,'','','','500',0.00,'1283873848','1283873848','Paid'),(35,0,72,0,1,0,0,'','','','5000',5000.00,'1283875146','1283875146','Unpaid'),(36,0,79,0,1,0,0,'','','','200',200.00,'1285668597','1285668597','Unpaid'),(37,0,80,0,1,0,0,'','','','200',200.00,'1285668708','1285668708','Unpaid'),(38,0,81,0,1,0,0,'','','','122',122.00,'1285668868','1285668868','Unpaid'),(39,0,84,0,1,0,0,'','','','122',122.00,'1285676716','1285676716','Unpaid'),(40,0,85,0,1,0,0,'','','','222',222.00,'1285678016','1285678016','Unpaid'),(41,0,86,0,1,0,0,'','','','44',44.00,'1285678155','1285678155','Unpaid'),(42,0,87,0,1,0,0,'','','','44',44.00,'1285678201','1285678201','Unpaid'),(43,0,88,0,2,0,0,'','','','222',222.00,'1285678485','1285678485','Unpaid'),(44,0,89,0,3,0,0,'','','','55',55.00,'1285680273','1285680273','Unpaid'),(45,0,90,0,3,0,0,'','','','122',122.00,'1285680330','1285680330','Unpaid'),(46,0,2,0,1,0,0,'','','','22',22.00,'1286604952','1286604952','Unpaid');

--
-- Table structure for table `bstock_jwl_metal_info`
--

CREATE TABLE `bstock_jwl_metal_info` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `product_jwl_id` int(10) NOT NULL,
  `metal_id` int(10) NOT NULL,
  `karagir_id` int(11) NOT NULL,
  `metal_weight` varchar(10) NOT NULL,
  `metal_karat` varchar(10) NOT NULL,
  `color` varchar(255) NOT NULL,
  `price` varchar(10) NOT NULL,
  `subtotal_inr` decimal(10,2) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_jwl_metal_info`
--

INSERT INTO `bstock_jwl_metal_info` VALUES (1,0,0,1,1,0,'10','24','White Gold','10',0.00,'',''),(2,0,0,2,2,0,'20','12','Yellow Gold','20',0.00,'',''),(3,0,0,3,3,0,'30','18','White Gold','30',0.00,'',''),(4,0,0,3,4,0,'40','20','Silver','40',0.00,'',''),(5,0,0,5,5,0,'50','22','Platinum','50',0.00,'',''),(6,0,0,6,6,0,'60','16','Silver','60',0.00,'',''),(7,0,0,6,1,0,'.1','.1','White Gold','100',0.00,'',''),(8,0,0,7,1,0,'.2','.2','Yellow Gold','200',0.00,'',''),(9,0,0,8,2,0,'.3','.3','Platinum','300',0.00,'',''),(10,0,0,9,2,0,'.4','.4','Platinum','400',0.00,'',''),(11,0,0,10,3,0,'.5','.5','Silver','500',0.00,'',''),(12,0,0,11,3,0,'.6','.6','Silver','600',0.00,'',''),(13,0,0,12,4,0,'.7','.7','Silver','700',0.00,'',''),(14,0,0,13,4,0,'.8','.8','Silver','800',0.00,'',''),(15,0,0,14,5,0,'.9','.9','Yellow gold','900',0.00,'',''),(16,0,30,15,5,0,'1.0','1.0','Yellow gold','1000',0.00,'',''),(17,0,55,55,1,0,'3','18','','4990',0.00,'1263281971','1263281971'),(18,0,30,15,2,0,'4','','','4444',0.00,'','1283728290'),(19,0,30,15,2,0,'2','','','3333',0.00,'','1283728343'),(20,0,58,0,2,0,'3','','','18000',0.00,'','1283757521'),(21,0,58,0,2,0,'1','','','18000',0.00,'','1283757521'),(22,0,59,0,2,0,'3','','','18000',0.00,'','1283759338'),(23,0,59,0,2,0,'2','','','18000',0.00,'','1283759921'),(24,0,59,0,2,0,'2','','','1000',0.00,'','1283776417'),(25,0,59,0,2,0,'2','','','1500',0.00,'','1283776792'),(26,0,59,0,2,0,'5','','','1500',0.00,'','1283776915'),(27,0,60,0,2,0,'1','','','100',0.00,'','1283777612'),(28,0,37,0,2,0,'2','','','2500',0.00,'','1283780127'),(30,0,62,0,2,0,'500','','','1800',0.00,'','1283852927'),(31,0,62,0,2,0,'100','','','1800',0.00,'','1283852927'),(32,0,63,0,2,0,'2','','','2000',0.00,'','1283854941'),(33,0,68,0,2,0,'2','','','1000',0.00,'','1283872805'),(34,0,70,0,2,0,'5','','','1500',0.00,'','1283873378'),(35,0,71,0,2,0,'3','','','150',0.00,'','1283873848'),(36,0,72,0,2,0,'3','','','222',0.00,'','1283875146'),(37,0,79,0,2,0,'4','','','19850',0.00,'','1285668597'),(38,0,80,0,2,0,'4','','','19850',0.00,'','1285668708'),(39,0,81,0,2,0,'4','','','19850',0.00,'','1285668868'),(40,0,82,0,2,0,'3','','','19850',0.00,'','1285668956'),(41,0,83,0,2,0,'3','18','','19850',0.00,'','1285669106'),(42,0,84,0,2,0,'5','18','','18000',0.00,'','1285676716'),(43,0,86,0,2,0,'5','18','','19850',0.00,'','1285678155'),(44,0,87,0,2,1,'5','18','','19850',0.00,'','1285678201'),(45,0,88,0,2,2,'10','18','','20000',0.00,'','1285678485'),(46,0,89,0,2,3,'4','12','','14000',0.00,'','1285680273'),(47,0,90,0,2,3,'4','18','','19850',0.00,'','1285680330'),(48,0,2,0,2,0,'','8','','',0.00,'','1286604952');

--
-- Table structure for table `bstock_karigar`
--

CREATE TABLE `bstock_karigar` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `karigar_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=5 DEFAULT CHARSET=latin1 COMMENT='Stores vendor related information like Name, Address, etc.';

--
-- Dumping data for table `bstock_karigar`
--

INSERT INTO `bstock_karigar` VALUES (1,'Vishal & Co.','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Harshad & Co.','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Narvekars','','','harshad.narvekar@gmail.com','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','UK','Website','on','1265801481','1265801481','EIC234111'),(4,'Bigg Stock','','','harshad.narvekar@gmail.com','Bigg Stock,\r\nPradeep Niwas,\r\nAndheri East,\r\n400093','9819322550','9833488539','','','','on','1272312515','1272312515','55555');

--
-- Table structure for table `bstock_karigar_metal_info`
--

CREATE TABLE `bstock_karigar_metal_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `karigar_id` int(11) NOT NULL,
  `metal_weight` int(11) NOT NULL,
  `date_given` varchar(15) NOT NULL,
  `date_given_timestamp` int(11) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='Stores metal given to karigar.';

--
-- Dumping data for table `bstock_karigar_metal_info`
--

INSERT INTO `bstock_karigar_metal_info` VALUES (1,1,200,'09/27/2010',1285587771,'',1285674171,1285674171),(2,2,300,'09/28/2010',1285679303,'',1285679303,1285679303),(3,3,2,'09/28/2010',1285680202,'',1285680202,1285680202),(4,3,10,'09/24/2010',1285334774,'',1285680374,1285680374);

--
-- Table structure for table `bstock_lastviewedstats`
--

CREATE TABLE `bstock_lastviewedstats` (
  `stat_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `product_id` int(10) NOT NULL COMMENT 'This is the foreign key for the products & is mapped to primary key of products table.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for customers & is mapped to primary key of customers table.',
  `viewed_date` varchar(50) NOT NULL COMMENT 'This is the timestamp when the product was viewed by the customer.',
  `customer_ip` varchar(50) NOT NULL COMMENT 'This will be the IP Address of the customer.',
  PRIMARY KEY (`stat_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table is used to store the stats of viewed products.';

--
-- Dumping data for table `bstock_lastviewedstats`
--


--
-- Table structure for table `bstock_manuprocess_labour`
--

CREATE TABLE `bstock_manuprocess_labour` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `process_id` int(10) NOT NULL,
  `labour` varchar(50) NOT NULL,
  `hours` varchar(50) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_manuprocess_labour`
--


--
-- Table structure for table `bstock_manuprocesses_jewel`
--

CREATE TABLE `bstock_manuprocesses_jewel` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `process_name` varchar(255) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_manuprocesses_jewel`
--


--
-- Table structure for table `bstock_metal_carat_multiplier`
--

CREATE TABLE `bstock_metal_carat_multiplier` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `karat` varchar(10) NOT NULL,
  `24_karat_value` varchar(50) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_metal_carat_multiplier`
--

INSERT INTO `bstock_metal_carat_multiplier` VALUES (1,'16','66.66','1263281971','1263281971'),(2,'18','75','1263281971','1263281971'),(3,'18','83.33','1263281971','1263281971'),(4,'24','99.99','1263281971','1263281971');

--
-- Table structure for table `bstock_moduleoperationtypes`
--

CREATE TABLE `bstock_moduleoperationtypes` (
  `operation_id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(100) NOT NULL COMMENT 'This will be the name of the operation i.e. Add / Modify, etc.',
  `description` text NOT NULL COMMENT 'This field will contain the description of the operation.',
  `is_active` enum('0','1') NOT NULL COMMENT 'This field will check whether this operation is currently active or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this record.',
  PRIMARY KEY (`operation_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COMMENT='Store the different type of operations that are possible in ';

--
-- Dumping data for table `bstock_moduleoperationtypes`
--

INSERT INTO `bstock_moduleoperationtypes` VALUES (1,'No rights','No rights of view, create/edit or delete\r\n\r\n(000)0','1','',''),(2,'Only view','Only viewing rights\r\n\r\n(001)1','1','',''),(3,'View/Create/Edit','Rights of view, create/edit\r\n(110) 6','','',''),(4,'View/Delete','Rights of viewing and deleting\r\n\r\n(011) 3','1','',''),(5,'View/Create/Edit/Delete','Full rights\r\n\r\n(111) 7','1','','');

--
-- Table structure for table `bstock_modules`
--

CREATE TABLE `bstock_modules` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(100) NOT NULL COMMENT 'This will be the name of the module.',
  `table_name` varchar(100) NOT NULL,
  `sequence` int(10) NOT NULL COMMENT 'This field will contain the order of the modules.',
  `presence` enum('0','1') NOT NULL COMMENT 'Whether this module is to be made visible to the customer or not.',
  `readonly` enum('0','1') NOT NULL COMMENT 'This will contain whether this module can be deleted / disabled.',
  `is_active` enum('on','off') NOT NULL DEFAULT 'on',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this module.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this module.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1 COMMENT='Store the modifiable as well as non-modifiable(prod) modules';

--
-- Dumping data for table `bstock_modules`
--

INSERT INTO `bstock_modules` VALUES (1,'Products','bstock_products',1,'1','1','on','',''),(2,'Customers','bstock_customers',0,'1','0','on','',''),(3,'Profiles','bstock_userprofiles',0,'1','0','on','',''),(4,'Orders','bstock_orders',1,'1','0','off','',''),(5,'Fields','bstock_fields',1,'1','0','on','',''),(6,'Plugins','bstock_plugins',1,'1','0','on','',''),(7,'Invoices','bstock_invoices',0,'1','','on','',''),(8,'Companies','bstock_exporters',0,'1','0','off','',''),(9,'Angadia','bstock_angadia',0,'','','on','',''),(10,'Vendors','bstock_vendors',0,'1','','on','',''),(11,'Brokers','bstock_brokers',0,'1','0','on','',''),(12,'SystemUsers','bstock_systemusers',0,'1','','on','',''),(13,'HomePage','bstock_homepage',11,'1','','on','',''),(14,'Bank','bstock_bank',0,'','','on','','');

--
-- Table structure for table `bstock_notifications`
--

CREATE TABLE `bstock_notifications` (
  `notification_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'This will be the name for the notification, like, ''Order Email'', ''Register Email'', etc.',
  `subject` text NOT NULL COMMENT 'This will contain the subject which is to be sent in the email notification.',
  `body` text NOT NULL COMMENT 'This will be the body of the email that will be sent out.',
  `status` enum('0','1') NOT NULL COMMENT 'This will contain the status for the notification.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this notification.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this notification.',
  PRIMARY KEY (`notification_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store notifications that are sent out from the system.';

--
-- Dumping data for table `bstock_notifications`
--


--
-- Table structure for table `bstock_options`
--

CREATE TABLE `bstock_options` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `blog_id` int(11) NOT NULL DEFAULT '0',
  `option_name` varchar(64) NOT NULL DEFAULT '',
  `option_value` longtext NOT NULL,
  `autoload` varchar(20) NOT NULL DEFAULT 'yes',
  PRIMARY KEY (`id`,`blog_id`,`option_name`),
  KEY `option_name` (`option_name`)
) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_options`
--

INSERT INTO `bstock_options` VALUES (1,0,'stylesheet','MM','yes'),(2,0,'template','MM','yes'),(3,0,'home_title','This is my home page title','yes'),(4,0,'logo','logo.jpg','yes'),(5,0,'homepage','home.php','yes'),(6,0,'after_login','searchresult.php','yes'),(7,0,'default_from','admin@biggventures.com','yes'),(8,0,'default_admin','admin@biggventures.com','yes'),(9,0,'after_signup','thank-you.php','yes'),(10,0,'company_name','ARYA JEWEL','yes'),(11,0,'company_address','124, Amrit Diamond House, 1st Floor, Opera House, Mumbai-400004\r\nTEL: +91 22 23662101 </br> E-mail - aryajewel@yahoo.co.in ','yes'),(12,0,'ABN','VAT TIN NO. 27380629851 V w.e.f.8/10/07</br> \r\nCST TIN NO. 27380629851 C w.e.f.8/10/07','yes'),(13,0,'gst','1','yes'),(14,0,'usd_aud_rate','45','yes'),(15,0,'margin','0','yes'),(16,0,'default_so_id','1','yes'),(17,0,'default_po_id','1','yes'),(18,0,'default_jhangad_id','1','yes'),(19,0,'default_stone_id','008','yes'),(20,0,'product_interest_rate','1','yes');

--
-- Table structure for table `bstock_orderbilling`
--

CREATE TABLE `bstock_orderbilling` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `billing_address_id` int(10) NOT NULL COMMENT 'This is the foriegn key of the billing address(customerbilling) & is mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This is the date when this record was created. Most of the times it will be same as date when order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the last modified date.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the billing address of the customer for an order.';

--
-- Dumping data for table `bstock_orderbilling`
--


--
-- Table structure for table `bstock_orderdeliverystatus`
--

CREATE TABLE `bstock_orderdeliverystatus` (
  `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('on','off') 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 AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different order status types';

--
-- Dumping data for table `bstock_orderdeliverystatus`
--

INSERT INTO `bstock_orderdeliverystatus` VALUES (1,'Order Placed','Invoice Created','on','',''),(2,'Order Issued','Order Issued','on','',''),(3,'Order Issued Partial','Order Issued Partial','on','',''),(4,'Order Couriered Full','Order Couriered Full','on','',''),(5,'Order Couriered Partial','Order Couriered Partial','on','',''),(6,'Order Partially Returned','Order Partially Returned','on','',''),(7,'Order Returned Full','Order Returned Full','on','','');

--
-- Table structure for table `bstock_orderitems`
--

CREATE TABLE `bstock_orderitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `order_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` int(10) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `price` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `price_inr` decimal(10,2) NOT NULL,
  `product_status_in_this_order` enum('Order Placed','Order Partially Returned','Order Returned Full') NOT NULL DEFAULT 'Order Placed' COMMENT 'This field will store the product item status belonging to particular order',
  `quantity_returned` float(10,3) NOT NULL COMMENT 'The quanity returned from the order',
  `percent_back` decimal(10,2) NOT NULL,
  `aadat` decimal(10,2) NOT NULL,
  `dollar_rate` decimal(10,2) NOT NULL,
  `cash_back` decimal(10,2) NOT NULL,
  `total_in_dollar` decimal(10,2) NOT NULL,
  `total_in_inr` decimal(10,2) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `interest_rate` decimal(10,2) NOT NULL COMMENT 'Interest rate to be applied if payment is overdue for this order.',
  `vendor_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `broker_id_1` int(10) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `brokerage_1_amt_inr` decimal(10,2) NOT NULL,
  `broker_id_2` int(10) NOT NULL,
  `brokerage_2` decimal(10,2) NOT NULL,
  `profit_amount` decimal(10,4) NOT NULL,
  `profit_percent` decimal(10,4) NOT NULL,
  `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.',
  `quantity_shipped` int(10) NOT NULL COMMENT 'This will be the quantity of the item that has been shipped so far.',
  `exporter_id` int(11) NOT NULL,
  `piece_price_inr` decimal(10,0) NOT NULL,
  `piece_price_dollar` decimal(10,0) NOT NULL,
  `carat_selling_price_usd` decimal(10,2) NOT NULL COMMENT 'Carat selling price in USD',
  `carat_selling_price` decimal(10,2) NOT NULL COMMENT 'Selling price in carats in AUD',
  `size` decimal(10,3) NOT NULL COMMENT 'Size sold (incase of loose parcels)',
  `invoice_note` varchar(500) NOT NULL COMMENT 'Note that appears besides each product on the invoice.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_orderitems`
--

INSERT INTO `bstock_orderitems` VALUES (1,00000001,4,0,0.00,0.00,'Order Placed',0.000,0.00,0.00,1.00,0.00,436240.00,436240.00,0.00,0.00,0,3,0,0.00,0.00,2,0.00,-44102.0000,-441.0200,'1313822790','1313822790','','',0,0,0,0,133000.00,133000.00,3.280,'ROUND 3.28 ANY/ANY Uncertified--'),(2,00000002,6,0,0.00,0.00,'Order Placed',0.000,38.80,0.00,44.60,0.00,7911.94,352872.35,0.00,0.00,0,35,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313822968','1313822968','','',0,0,0,0,6400.00,285440.00,2.020,'ROUND 2.02 K/SI2 IGI--'),(3,00000003,8,0,0.00,0.00,'Order Placed',0.000,0.00,0.00,1.00,0.00,173650.00,173650.00,0.00,0.00,0,41,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313823464','1313823464','','',0,0,0,0,115000.00,115000.00,1.510,'ROUND 1.51 ANY/ANY Uncertified--'),(4,00000003,7,0,0.00,0.00,'Order Placed',0.000,0.00,0.00,1.00,0.00,172500.00,172500.00,0.00,0.00,0,41,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313823464','1313823464','','',0,0,0,0,115000.00,115000.00,1.500,'ROUND 1.50 ANY/ANY Uncertified--'),(5,00000004,2,0,0.00,0.00,'Order Placed',0.000,34.00,0.00,44.74,3.00,10995.44,491935.99,0.00,0.00,0,42,0,0.00,0.00,1,0.00,-44102.0000,-441.0200,'1313824324','1313824324','','',0,0,0,0,7500.00,335550.00,2.290,'ROUND 2.29 K/SI1 IGI--'),(6,00000004,3,0,0.00,0.00,'Order Placed',0.000,34.00,0.00,44.74,3.00,11706.70,523757.76,0.00,0.00,0,42,0,0.00,0.00,1,0.00,-44102.0000,-441.0200,'1313824324','1313824324','','',0,0,0,0,8200.00,366868.00,2.230,'ROUND 2.23 K/VS2 Other--'),(7,00000005,5,0,0.00,0.00,'Order Placed',0.000,0.00,0.00,1.00,0.00,354200.00,354200.00,0.00,0.00,0,46,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313826053','1313826053','','',0,0,0,0,140000.00,140000.00,2.530,'PRINCESS 2.53 ANY/ANY Uncertified--'),(8,00000006,10,0,0.00,0.00,'Order Placed',0.000,40.00,0.00,44.40,0.00,9406.80,417661.92,0.00,0.00,0,6,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313826466','1313826466','','',0,0,0,0,7800.00,346320.00,2.010,'ROUND 2.01 K/VS2 Single-IGI/'),(9,00000006,9,0,0.00,0.00,'Order Placed',0.000,40.00,0.00,44.40,0.00,9360.00,415584.00,0.00,0.00,0,6,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313826466','1313826466','','',0,0,0,0,7800.00,346320.00,2.000,'ROUND 2.00 K/VS2 Single-IGI/'),(10,00000007,14,0,0.00,0.00,'Order Placed',0.000,30.00,0.00,44.91,0.00,13890.80,623835.83,0.00,0.00,0,8,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313826844','1313826844','','',0,0,0,0,8200.00,368262.00,2.420,'ROUND 2.42 K/VS2 Single-IGI/'),(11,00000008,36,0,0.00,0.00,'Order Returned Full',36.590,0.00,0.00,1.00,0.00,1941508.00,1941508.00,0.00,0.00,0,47,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313827579','1313827579','','',0,0,0,0,53061.16,53061.16,36.590,''),(12,00000009,22,0,0.00,0.00,'Order Placed',0.000,39.00,0.00,45.20,0.00,10842.75,490092.30,0.00,0.00,0,48,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313828415','1313828415','','',0,0,0,0,7900.00,357080.00,2.250,'PRINCESS 2.25 I/VS1 Single-IGI/'),(13,00000009,23,0,0.00,0.00,'Order Placed',0.000,39.00,0.00,45.20,0.00,5554.66,251070.63,0.00,0.00,0,48,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313828415','1313828415','','',0,0,0,0,5800.00,262160.00,1.570,'PRINCESS 1.57 I/VS2 Single-IGI/'),(14,00000010,27,0,0.00,0.00,'Order Placed',0.000,32.00,0.00,44.72,1.00,36308.37,1623710.31,0.00,0.00,0,26,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313829101','1313829101','','',0,0,0,0,17800.00,796016.00,3.030,'ROUND 3.03 I/VS1 Single-IGI/'),(15,00000010,28,0,0.00,0.00,'Order Placed',0.000,32.00,0.00,44.72,1.00,36188.54,1618351.47,0.00,0.00,0,26,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313829101','1313829101','','',0,0,0,0,17800.00,796016.00,3.020,'ROUND 3.02 I/VS1 Single-IGI/'),(16,00000011,26,0,0.00,0.00,'Order Placed',0.000,22.50,1.00,44.98,2.00,41099.42,1848651.73,0.00,0.00,0,34,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313829244','1313829244','','',0,0,0,0,17800.00,800644.00,3.010,'ROUND 3.01 I/VS1 Single-IGI/'),(17,00000012,30,0,0.00,0.00,'Order Placed',0.000,32.00,0.00,44.73,0.00,28845.60,1290263.69,0.00,0.00,0,49,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1313829546','1313829546','','',0,0,0,0,14000.00,626220.00,3.030,'ROUND 3.03 H/SI1 Single-IGI/'),(18,00000013,37,0,0.00,0.00,'Order Placed',0.000,3.50,0.00,44.95,0.00,43096.90,1937205.65,0.00,0.00,0,50,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1314088606','1314088606','','',0,0,0,0,22000.00,988900.00,2.030,'ROUND 2.03 G/VVS1 GIA--'),(19,00000014,49,0,0.00,0.00,'Order Placed',0.000,3.50,0.00,44.90,0.00,42672.30,1915986.27,0.00,0.00,0,50,0,0.00,0.00,0,0.00,-44102.0000,-441.0200,'1314088693','1314088693','','',0,0,0,0,22000.00,987800.00,2.010,'ROUND 2.01 G/VVS1 GIA--');

--
-- Table structure for table `bstock_ordernotificationhistory`
--

CREATE TABLE `bstock_ordernotificationhistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_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=16 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

--
-- Dumping data for table `bstock_ordernotificationhistory`
--

INSERT INTO `bstock_ordernotificationhistory` VALUES (1,1,'','','1313748523',1),(2,1,'','','1313822790',1),(3,2,'','','1313822969',1),(4,3,'','','1313823468',1),(5,4,'','','1313824325',1),(6,5,'','','1313826053',1),(7,6,'','','1313826466',1),(8,7,'','-2+2','1313826844',1),(9,8,'','','1313827579',1),(10,9,'','','1313828415',1),(11,10,'','','1313829102',1),(12,11,'','','1313829244',1),(13,12,'','','1313829553',1),(14,13,'','','1314088606',1),(15,14,'','','1314088693',1);

--
-- Table structure for table `bstock_orderpayments`
--

CREATE TABLE `bstock_orderpayments` (
  `payment_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `shipping_amount` varchar(20) NOT NULL COMMENT 'Here we will have the total shipping amount for this order.',
  `discount_amount` varchar(20) NOT NULL COMMENT 'This will contain the total discount that has been offered on the order.',
  `discount_type` enum('individual','group') NOT NULL COMMENT 'Type of discount for this order, individual or group. Individual would mean on individual products.',
  `subtotal` varchar(20) NOT NULL COMMENT 'Subtotal i.e. total of the items purchased, excluding tax, shipping.',
  `grand_total` varchar(20) NOT NULL COMMENT 'Product Price plus shipping plus taxes.',
  `total_paid` varchar(20) NOT NULL COMMENT 'Amount paid so far. Useful incase user makes a part payment.',
  `total_refunded` varchar(20) NOT NULL COMMENT 'The amount of money refunded for this order. Used incase order needs to be cancelled or returned back.',
  `total_qty_ordered` int(10) NOT NULL COMMENT 'Total number of items ordered in the whole order.',
  `total_cancelled` int(10) NOT NULL COMMENT 'Total number of items cancelled from the order.',
  `total_invoiced` varchar(20) NOT NULL COMMENT 'Amount invoiced so far for the entire order.',
  `total_online_refunded` varchar(20) NOT NULL COMMENT 'Total money refunded online i.e. through online deposit, etc.',
  `total_offline_refunded` varchar(20) NOT NULL COMMENT 'Total money refunded through offline means i.e. cheque, wire transfer, etc.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this record was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this record was last modified.',
  `payment_type_id` int(10) NOT NULL COMMENT 'This will be the payment type from  the payment_types table.',
  `payment_transaction_id` int(10) NOT NULL COMMENT 'This will be the Primary Key of  the table of the corresponding  payment type i.e. PK of googlecheckout_api or  PK of paypal_api, etc.',
  PRIMARY KEY (`payment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store all the payment related details for the order.';

--
-- Dumping data for table `bstock_orderpayments`
--


--
-- Table structure for table `bstock_orderpaymentsdetails`
--

CREATE TABLE `bstock_orderpaymentsdetails` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `pm_token` varchar(255) NOT NULL,
  `pm_timestamp` varchar(255) NOT NULL,
  `pm_correlationid` varchar(255) NOT NULL,
  `pm_feeamt` decimal(10,2) NOT NULL,
  `pm_taxamt` decimal(10,2) NOT NULL,
  `pm_currencycode` varchar(200) NOT NULL,
  `order_id` int(10) NOT NULL,
  `payment_mode` int(2) NOT NULL COMMENT 'It will be a foriegn key from table- bstock_paymenttypes.',
  `pm_transactionid` varchar(255) NOT NULL,
  `pm_transactiontype` varchar(255) NOT NULL,
  `pm_accountholdername` varchar(500) NOT NULL,
  `pm_card_expiry` int(10) NOT NULL,
  `pm_transactionamt` decimal(10,2) NOT NULL,
  `pm_paymentstatus` varchar(255) 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_orderpaymentsdetails`
--


--
-- Table structure for table `bstock_orderpaymentstaxes`
--

CREATE TABLE `bstock_orderpaymentstaxes` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `tax_amount` varchar(20) NOT NULL COMMENT 'Tax amount.',
  `tax_id` int(10) NOT NULL COMMENT 'This is the foreign key of the tax table & mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this record was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this record was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the tax related information for every order.';

--
-- Dumping data for table `bstock_orderpaymentstaxes`
--


--
-- Table structure for table `bstock_orders`
--

CREATE TABLE `bstock_orders` (
  `id` int(8) unsigned zerofill NOT NULL AUTO_INCREMENT,
  `so_number` varchar(255) NOT NULL,
  `contact_person` varchar(500) NOT NULL,
  `reference_person` varchar(500) NOT NULL,
  `customer_first_name` varchar(100) NOT NULL COMMENT 'This will contain the first name of the customer who placed this order.',
  `customer_last_name` varchar(100) NOT NULL COMMENT 'This will contain the last name of the customer who placed this order.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `carrier_id` int(10) NOT NULL,
  `assigned_to_id` int(10) NOT NULL,
  `vendor_id` int(10) NOT NULL,
  `broker_id` int(10) NOT NULL,
  `brokerage_total` decimal(10,2) NOT NULL COMMENT 'Total brokerage amount to be paid.',
  `brokerage_balance` decimal(10,2) NOT NULL COMMENT 'Balance remaining to be paid to broker.',
  `broker_id_1` int(11) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `tracking_no` int(10) NOT NULL,
  `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.',
  `type_of_tax` enum('individual','group') NOT NULL,
  `brokerage` decimal(10,2) NOT NULL,
  `packaging` decimal(10,0) NOT NULL,
  `octroi` decimal(10,0) NOT NULL,
  `exciseduty` decimal(10,0) NOT NULL,
  `gst` decimal(10,3) NOT NULL,
  `subtotal` decimal(10,2) NOT NULL COMMENT 'Total amount of the order.',
  `net_total` decimal(10,2) NOT NULL,
  `subtotal_usd` decimal(10,2) NOT NULL COMMENT 'Order subtotal in USD',
  `net_total_usd` decimal(10,2) NOT NULL COMMENT 'Order Net total in USD (including taxes)',
  `adjustment` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order.',
  `status_id` int(10) NOT NULL COMMENT 'This field will be the foreign key from the order status table & mapped to it''s primary key.',
  `delivery_status_id` int(10) NOT NULL,
  `dollar_rate` decimal(10,2) NOT NULL,
  `so_comments` text,
  `transaction_type_id` int(10) NOT NULL DEFAULT '1',
  `terms_condition` varchar(1000) NOT NULL,
  `due_date` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `transaction_date` int(11) NOT NULL COMMENT 'Date when the transaction took place.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the created date for this order.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this order.',
  `affiliate_id` int(10) NOT NULL,
  `type` enum('so') NOT NULL,
  `exporter_id` int(11) NOT NULL,
  `angadia_id` int(11) NOT NULL COMMENT 'ID of the Angadia company.',
  `source` enum('Web','Admin') 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',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1 COMMENT='Store order related information. Order items are stored in s';

--
-- Dumping data for table `bstock_orders`
--

INSERT INTO `bstock_orders` VALUES (00000001,'1','','','','',3,6,0,0,2,4362.40,4362.40,0,0.00,1,4,'Cash','individual',0.00,0,0,0,0.000,436240.00,436240.00,436240.00,436240.00,0.00,436240.00,10,1,1.00,'',3,'terms and conditions comments',1303454790,'on',1302158790,'1313822790','1313822790',0,'so',0,0,'Admin','off'),(00000002,'00000002','','','','',35,5,0,0,0,0.00,0.00,0,0.00,1,2,'Cash','individual',0.00,0,0,0,0.000,352872.35,352872.00,7911.94,7911.94,0.00,352872.00,10,1,44.60,'',3,'terms and conditions comments',1313390968,'on',1312786168,'1313822968','1313822968',0,'so',0,0,'Admin','off'),(00000003,'00000003','','','','',41,5,0,0,0,0.00,0.00,0,0.00,1,4,'Cash','individual',0.00,0,0,0,0.000,346150.00,346150.00,346150.00,346150.00,0.00,346150.00,10,1,1.00,'',3,'terms and conditions comments',1304233064,'on',1302937064,'1313823464','1313823464',0,'so',0,0,'Admin','off'),(00000004,'00000004','','','','',42,6,0,0,1,10079.60,10079.60,0,0.00,1,1,'Cash','individual',0.00,0,0,0,0.000,1015920.42,1015920.00,22702.14,22702.14,0.00,1015920.00,10,1,44.74,'',3,'terms and conditions comments',1307603524,'on',1307603524,'1313824324','1313824324',0,'so',0,0,'Admin','off'),(00000005,'00000005','','','','',46,5,0,0,0,0.00,0.00,0,0.00,1,2,'Cash','individual',0.00,0,0,0,0.000,354200.00,354200.00,354200.00,354200.00,0.00,354200.00,10,1,1.00,'',3,'terms and conditions comments',1308555653,'on',1307950853,'1313826053','1313826053',0,'so',0,0,'Admin','off'),(00000006,'00000006','','','','',6,6,0,0,0,0.00,0.00,0,0.00,1,5,'Cash','individual',0.00,0,0,0,0.000,833245.92,833246.00,18766.80,18766.80,0.00,833246.00,10,1,44.40,'',3,'terms and conditions comments',1307087266,'on',1304495266,'1313826466','1313826466',0,'so',0,0,'Admin','off'),(00000007,'00000007','','','','',8,6,0,0,0,0.00,0.00,0,0.00,1,5,'Cash','individual',0.00,0,0,0,0.000,623835.83,623836.00,13890.80,13890.80,0.00,623836.00,10,1,44.91,'-2+2',3,'terms and conditions comments',1309593244,'on',1307001244,'1313826844','1313826844',0,'so',0,0,'Admin','off'),(00000008,'00000008','','','','',47,5,0,0,0,0.00,0.00,0,0.00,1,5,'Cash','individual',0.00,0,0,0,-19415.000,0.00,-19415.00,1941508.00,1941508.00,0.00,-19415.00,10,7,1.00,'',3,'terms and conditions comments',1310198779,'on',1307606779,'1313827579','1313827579',0,'so',0,0,'Admin','off'),(00000009,'00000009','','','','',48,5,0,0,0,0.00,0.00,0,0.00,1,3,'Cash','individual',0.00,0,0,0,0.000,741162.93,741163.00,16397.41,16397.41,0.00,741163.00,10,1,45.20,'',3,'terms and conditions comments',1307607615,'on',1306743615,'1313828415','1313828415',0,'so',0,0,'Admin','off'),(00000010,'00000010','','','','',26,6,0,0,0,0.00,0.00,0,0.00,1,7,'Cash','individual',0.00,0,0,0,0.000,3242061.78,3242062.00,72496.91,72496.91,0.00,3242062.00,10,1,44.72,'',3,'terms and conditions comments',1310373101,'on',1305189101,'1313829101','1313829101',0,'so',0,0,'Admin','off'),(00000011,'00000011','','','','',34,5,0,0,0,0.00,0.00,0,0.00,1,5,'Cash','individual',0.00,0,0,0,0.000,1848651.73,1848652.00,41099.42,41099.42,0.00,1848652.00,10,1,44.98,'',3,'terms and conditions comments',1307781244,'on',1305189244,'1313829244','1313829244',0,'so',0,0,'Admin','off'),(00000012,'00000012','','','','',49,6,0,0,0,0.00,0.00,0,0.00,1,5,'Cash','individual',0.00,0,0,0,0.000,1298052.00,1298052.00,28845.60,28845.60,0.00,1298052.00,10,1,44.73,'',3,'terms and conditions comments',1310200746,'on',1307608746,'1313829546','1313829546',0,'so',0,0,'Admin','off'),(00000013,'00000013','','','','',50,5,0,0,0,0.00,0.00,0,0.00,1,3,'Cash','individual',0.00,0,0,0,0.000,1937205.65,1937206.00,43096.90,43096.90,0.00,1937206.00,10,1,44.95,'',3,'terms and conditions comments',1308904606,'on',1308040606,'1314088606','1314088606',0,'so',0,0,'Admin','off'),(00000014,'00000014','','','','',50,5,0,0,0,0.00,0.00,0,0.00,1,3,'Cash','individual',0.00,0,0,0,0.000,1915986.27,1915986.00,42672.30,42672.30,0.00,1915986.00,10,1,44.90,'',3,'terms and conditions comments',1309077493,'on',1308213493,'1314088693','1314088693',0,'so',0,0,'Admin','off');

--
-- Table structure for table `bstock_orderscf`
--

CREATE TABLE `bstock_orderscf` (
  `order_id` int(10) NOT NULL COMMENT 'This field will be the foreign key of the orders table & mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will store the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will store the last modified date for this record.'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Custom fields of orders will be inserted in this table.';

--
-- Dumping data for table `bstock_orderscf`
--


--
-- Table structure for table `bstock_ordershipping`
--

CREATE TABLE `bstock_ordershipping` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `shipping_address_id` int(10) NOT NULL COMMENT 'This is the foriegn key of the shipping address(customershipping) & is mapped to it''s primary key.',
  `remarks` varchar(1000) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This is the date when this record was created. Most of the times it will be same as date when order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the last modified date.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the shipping address of the customer for an order.';

--
-- Dumping data for table `bstock_ordershipping`
--


--
-- Table structure for table `bstock_ordershippinginfo`
--

CREATE TABLE `bstock_ordershippinginfo` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `order_id` int(8) unsigned zerofill NOT NULL COMMENT 'This is the foreign key, it''s the Primary key of orders table & will contain the order id.',
  `tracking_number` varchar(50) NOT NULL COMMENT 'This will be the tracking number of the shipment.',
  `sent_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when the shipment has been delivered.',
  `carrier_id` enum('NA','Drop off','Platinium Express Post','Express Post','Courier') NOT NULL,
  `flight_no` varchar(50) NOT NULL,
  `port_of_discharge` enum('NA','India','Belgium','Hong Kong') NOT NULL,
  `place_of_receipt` enum('NA','Mumbai','Antwerp') NOT NULL,
  `port_of_loading` enum('NA','Mumbai','Antwerp') NOT NULL,
  `city_of_destination` enum('Mumbai','Antwerp','New York','Hong Kong') NOT NULL,
  `user_id` int(10) NOT NULL COMMENT 'This will be the foreign key. It corresponds to Primary key of users table. It will store the id of the user who created this shipment record.',
  `remarks` varchar(1000) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when this entry is created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when this entry is modified.',
  `country_of_origin` enum('NA','India','Belgium') NOT NULL,
  `country_of_destination` enum('NA','India','Belgium') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the shipping details of every or';

--
-- Dumping data for table `bstock_ordershippinginfo`
--

INSERT INTO `bstock_ordershippinginfo` VALUES (1,00000001,'','','','','','','','',1,'','1307004102','1307004102','',''),(2,00000001,'','','Courier','','','','','',1,'','1307689391','1307689391','',''),(3,00000001,'','','','','','','','',1,'','1311336197','1311336197','',''),(4,00000003,'','','Courier','','','','','',1,'','1311404465','1311404465','','');

--
-- Table structure for table `bstock_orderstatushistory`
--

CREATE TABLE `bstock_orderstatushistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_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=16 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

--
-- Dumping data for table `bstock_orderstatushistory`
--

INSERT INTO `bstock_orderstatushistory` VALUES (1,1,0,'1313748523','1313748523',1),(2,1,0,'1313822790','1313822790',1),(3,2,0,'1313822969','1313822969',1),(4,3,0,'1313823468','1313823468',1),(5,4,0,'1313824325','1313824325',1),(6,5,0,'1313826053','1313826053',1),(7,6,0,'1313826466','1313826466',1),(8,7,0,'1313826844','1313826844',1),(9,8,0,'1313827579','1313827579',1),(10,9,0,'1313828415','1313828415',1),(11,10,0,'1313829102','1313829102',1),(12,11,0,'1313829244','1313829244',1),(13,12,0,'1313829553','1313829553',1),(14,13,0,'1314088606','1314088606',1),(15,14,0,'1314088693','1314088693',1);

--
-- Table structure for table `bstock_orderstatustypes`
--

CREATE TABLE `bstock_orderstatustypes` (
  `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('on','off') 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 AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different order status types';

--
-- Dumping data for table `bstock_orderstatustypes`
--

INSERT INTO `bstock_orderstatustypes` VALUES (1,'Order Placed','Order Placed','','',''),(10,'Unpaid','Order Unpaid','on','',''),(9,'Paid','Order Paid','on','',''),(4,'Order shipped','Order shipped','','',''),(5,'Order Completed','Order Completed','','',''),(6,'Order Cancelled','Order Cancelled','','',''),(7,'Order Pending','Order Pending','','',''),(8,'Partially Shipped','Partially Shipped','','',''),(11,'Partially Paid','Order Partially Paid','on','','');

--
-- Table structure for table `bstock_pages`
--

CREATE TABLE `bstock_pages` (
  `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `page_author` bigint(20) unsigned NOT NULL DEFAULT '0',
  `page_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_content` longtext NOT NULL,
  `page_title` text NOT NULL,
  `page_hyper_link` varchar(255) NOT NULL,
  `menu_display` enum('yes','no') NOT NULL DEFAULT 'no',
  `header_menu` enum('yes','no') NOT NULL DEFAULT 'no',
  `page_category` int(4) NOT NULL DEFAULT '0',
  `page_excerpt` text NOT NULL,
  `page_status` varchar(20) NOT NULL DEFAULT 'publish',
  `comment_status` varchar(20) NOT NULL DEFAULT 'open',
  `ping_status` varchar(20) NOT NULL DEFAULT 'open',
  `page_password` varchar(20) NOT NULL DEFAULT '',
  `page_name` varchar(200) NOT NULL DEFAULT '',
  `to_ping` text NOT NULL,
  `pinged` text NOT NULL,
  `page_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_content_filtered` text NOT NULL,
  `page_parent` bigint(20) unsigned NOT NULL DEFAULT '0',
  `guid` varchar(255) NOT NULL DEFAULT '',
  `menu_order` int(11) NOT NULL DEFAULT '0',
  `page_type` varchar(20) NOT NULL DEFAULT 'post',
  `page_mime_type` varchar(100) NOT NULL DEFAULT '',
  `comment_count` bigint(20) NOT NULL DEFAULT '0',
  `user-voice_username` varchar(128) NOT NULL DEFAULT '',
  `user-voice_slug` varchar(128) NOT NULL DEFAULT 'general',
  `user-voice_active` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `user-voice_alignment` enum('left','right') NOT NULL DEFAULT 'right',
  `user-voice_color` char(6) NOT NULL DEFAULT '00BCBA',
  PRIMARY KEY (`ID`),
  KEY `page_name` (`page_name`),
  KEY `type_status_date` (`page_type`,`page_status`,`page_date`,`ID`),
  KEY `page_parent` (`page_parent`)
) ENGINE=MyISAM AUTO_INCREMENT=525 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pages`
--

INSERT INTO `bstock_pages` VALUES (1,1,'2008-06-17 11:35:57','2008-06-17 11:35:57','<h1>Demo Company</h1>\r\n\r\n<h3>Diamond Importers, Manufacturers and Exporters</h3>\r\n\r\nThe business consists of both rough and polished diamonds. It manufactures diamonds of all sizes.<br/>\r\n\r\nBesides being manufacturers, the company ranks among the top-most dealers (traders) in the market in both polished and rough diamonds.<br/>\r\n\r\n<h2>We believe in quality, consistency and relationship.</h2>','FineStar Diamonds','Home','yes','yes',0,'','publish','open','open','','home','','','2009-10-14 19:16:00','2009-10-14 19:16:00','',0,'http://narvekar.co.in/?p=1',1,'page','',0,'','general',0,'right','00BCBA'),(2,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','<div class=\"education\">\r\n<h1 style=\"text-align:justify;\">FineStar Diamonds:Diamond Wholesalers and Exporters</h1>\r\n\r\n<p style=\"text-align:justify;\">Ever since the incorporation of the company, all its partners have had diversified operations. Each partner handles his own department to his utmost potential and strives for the overall advancement of the firm.</p>\r\n\r\n<p style=\"text-align:justify;\">The company prides itself on the loyalty of its customers. This loyalty arises from the service provided and also the preparation of the goods. That is the core reason why most of the customers that work with it, work solely with it.</p>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n</div>','About Demo Company','Company','yes','yes',0,'','publish','open','open','','about-us','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',3,'page','',0,'','general',0,'right','00BCBA'),(3,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Buy Online or can be called search page','Demo Company - Search Stock','Buy Online','yes','yes',0,'','publish','open','open','','searchresult','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',2,'page','',0,'','general',0,'right','00BCBA'),(4,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is contact us. ','Demo Company - Contact Us','Contact Us','yes','yes',0,'','publish','open','open','','contact-us','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',8,'page','',0,'','general',0,'right','00BCBA'),(5,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is career page','Demo Company - Career Opportunities','Career','yes','no',0,'','publish','open','open','','career','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',5,'page','',0,'','general',0,'right','00BCBA'),(6,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the login page','Demo Company - Login','Login','no','no',0,'','publish','open','open','','login','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',6,'page','',0,'','general',0,'right','00BCBA'),(7,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the password page','Demo Company - Forgot Password','Forgot Password','no','no',0,'','publish','open','open','','forgot-password','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',7,'page','',0,'','general',0,'right','00BCBA'),(8,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the new user sign up page','Demo Company - Create Account','Sign Up','no','no',0,'','publish','open','open','','sign-up','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',8,'page','',0,'','general',0,'right','00BCBA'),(9,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is orders page.','View Orders','Orders','no','yes',0,'','publish','open','open','','orders','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',9,'page','',0,'','general',0,'right','00BCBA'),(10,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Wishlist page','View Wishlist','Wishlist','no','no',0,'','publish','open','open','','wishlist','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',10,'page','',0,'','general',0,'right','00BCBA'),(11,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Offers page.','View Offers','Offers','no','no',0,'','publish','open','open','','offers','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',11,'page','',0,'','general',0,'right','00BCBA'),(12,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is demands page.','View Demands','Demands','no','no',0,'','publish','open','open','','demands','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',12,'page','',0,'','general',0,'right','00BCBA'),(13,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is my account page.','Demo Company - View & Edit your Account Information','My Account','yes','no',0,'','publish','open','open','','my-account','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',13,'page','',0,'','general',0,'right','00BCBA'),(522,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the search result page.','Search Results','Search Result','no','no',0,'','publish','open','open','','searchresult','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',14,'page','',0,'','general',0,'right','00BCBA'),(523,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the checkout page.','Demo Company - Checkout','Check out','no','no',0,'','publish','open','open','','check-out','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',15,'page','',0,'','general',0,'right','00BCBA'),(524,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Thank you page.','Demo Company - Thank you for placing your order.','Thank you page','no','no',0,'','publish','open','open','','thank-you','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',16,'page','',0,'','general',0,'right','00BCBA'),(17,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the order detail page.','View Order Details','Order Detail Page','no','no',0,'','publish','open','open','','order-details','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',17,'page','',0,'','general',0,'right','00BCBA');

--
-- 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 AUTO_INCREMENT=40 DEFAULT CHARSET=latin1 COMMENT='parcel life cycle in table structure';

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

INSERT INTO `bstock_parcel_history` VALUES (1,7,1,0,'In Stock','1289472642'),(2,6,1,0,'Deleted','1289476317'),(3,7,1,0,'Deleted','1289476654'),(4,2,1,0,'Deleted','1289476749'),(5,1,4,1,'In Stock','1289555784'),(6,1,4,1,'In Stock','1289556853'),(7,1,4,1,'In Stock','1289557266'),(8,1,4,1,'In Stock','1289557329'),(9,1,4,1,'In Stock','1289560262'),(10,1,4,1,'In Stock','1289560439'),(11,1,4,1,'In Stock','1289560465'),(12,1,4,1,'In Stock','1289560648'),(13,1,4,1,'In Stock','1289560757'),(14,1,4,1,'In Stock','1289560811'),(15,1,4,1,'In Stock','1289560824'),(16,1,4,1,'In Stock','1289560936'),(17,1,4,1,'In Stock','1289560944'),(18,1,4,1,'In Stock','1289561712'),(19,5,4,1,'In Stock','1289562937'),(20,5,4,1,'In Stock','1289562989'),(21,5,4,1,'In Stock','1289563953'),(22,1,4,1,'In Stock','1289564388'),(23,5,4,1,'In Stock','1289564399'),(24,5,4,1,'In Stock','1289564475'),(25,5,4,1,'In Stock','1289565111'),(26,5,4,1,'In Stock','1289565112'),(27,8,1,0,'In Stock','1289642988'),(28,9,1,0,'In Stock','1290580299'),(29,10,1,0,'In Stock','1290580992'),(30,11,1,0,'In Stock','1290581102'),(31,12,1,0,'In Stock','1290581196'),(32,9,1,0,'Deleted','1291045602'),(33,10,1,0,'Deleted','1291045609'),(34,13,1,0,'In Stock','1291182383'),(35,1,1,0,'In Stock','1294149791'),(36,1,4,1,'In Stock','1294149912'),(37,2,1,0,'In Stock','1296213526'),(38,2,1,0,'Deleted','1296213688'),(39,1,1,0,'Deleted','1297090163');

--
-- 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,'Arun','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Samkit','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Arun-Samkit','','','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_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.',
  `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_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 DEFAULT CHARSET=latin1 COMMENT='Stores daily cashbook entries.';

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Stores orders affected by each cashbook entry.';

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


--
-- 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` 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,
  `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=2 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_demands` VALUES (1,12,'1270013022','1269667422','Permanently Deactive','\'ROUND\'','2','1','F','D','VVS2','IF','FAIR','EXCELLENT','FAIR','EXCELLENT','FAIR','EXCELLENT','STRONG','NONE','GIA','All',0,0,'40','45','1269667422','1269667422');

--
-- 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=2 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');

--
-- 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,
  `dce_id` int(10) NOT NULL COMMENT 'ID of record in bstock_pl_dailycashentries table.',
  `expense_type_id` int(10) NOT NULL COMMENT 'Category to which the expense belongs.',
  `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 AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Stores daily expenses.';

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

INSERT INTO `bstock_pl_expenses` VALUES (1,7,11,'Cash',500.00,'vattav','1312259408','1312259408','1312259408');

--
-- 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',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_jhangad` VALUES (00000001,'1',23,0,1,1313143723,5,'',7,'on',1313748523,1314007723,1313748523,0.000,0.00,0.00,0.00,'off');

--
-- 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 AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

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

INSERT INTO `bstock_pl_jhgitems` VALUES (1,00000001,79,0.000,4.010,0.00,0.00,'Approval Returned Full','1313748523','1313748523','','',0.00,4.010,'ROUND 4.01 K/VS2 IGI--',0.00);

--
-- 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 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the login stats of customers.';

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


--
-- 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,
  `status` enum('pending','rejected','accepted') NOT NULL DEFAULT 'pending',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_offers` VALUES (1,4,12,3000,'','Offer accepted.','accepted','1269634301','1274699151'),(2,36,12,1000,'','sorry, rejecting this one.','rejected','1269634301','1274699320'),(3,50,12,3999,'','Your Comments here','pending','1269634301','1269634301');

--
-- 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,
  `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,
  `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 AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Stores parcel information';

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

INSERT INTO `bstock_pl_parcel` VALUES (1,'',1.21,400,2223,'ANY','ANY','ANY','ROUND','3423433','2100PMMKK','','1294149791','1294149791','off','0','In Stock',0),(2,'',0.00,0,0,'D','VVS1','NONE','PRINCESS','ff','','1296213684','1296213526','1296213684','off','0','In Stock',0);

--
-- 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 AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Stores products contained in parcel.';

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

INSERT INTO `bstock_pl_parcelitems` VALUES (1,1,25),(2,1,20);

--
-- 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=132 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_poitems` VALUES (1,1,1,2,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(2,2,2,3,0,0.00,0,0.00,0.00,0,34.50,34.50,'comments',1,'on',1267005563,1267005563,0,2),(3,2,3,3,0,0.00,0,0.00,0.00,0,34.50,34.50,'comments',1,'on',1267005563,1267005563,0,2),(4,3,4,4,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(5,4,5,5,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(6,5,6,6,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(7,6,7,8,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(8,6,8,8,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(9,7,9,9,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(10,7,10,9,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(11,7,11,9,0,0.00,0,0.00,0.00,0,39.00,39.00,'comments',1,'on',1267005563,1267005563,0,2),(12,8,12,8,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(13,9,13,5,0,0.00,0,0.00,0.00,0,37.50,37.50,'comments',1,'on',1267005563,1267005563,0,2),(14,10,14,5,0,0.00,0,0.00,0.00,0,30.00,30.00,'comments',1,'on',1267005563,1267005563,0,2),(15,10,15,5,0,0.00,0,0.00,0.00,0,30.00,30.00,'comments',1,'on',1267005563,1267005563,0,2),(16,11,16,10,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(17,12,17,12,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(18,12,18,12,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(19,12,19,12,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(20,12,20,12,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(21,13,21,5,0,0.00,0,0.00,0.00,0,33.75,33.75,'comments',1,'on',1267005563,1267005563,0,2),(22,14,22,10,0,0.00,0,0.00,0.00,0,42.58,42.58,'comments',1,'on',1267005563,1267005563,0,2),(23,14,23,10,0,0.00,0,0.00,0.00,0,42.89,42.89,'comments',1,'on',1267005563,1267005563,0,2),(24,15,24,14,0,0.00,0,0.00,0.00,0,48.00,48.00,'comments',1,'on',1267005563,1267005563,0,2),(25,16,25,15,0,0.00,0,0.00,0.00,0,22.50,22.50,'comments',1,'on',1267005563,1267005563,0,2),(26,17,26,16,0,0.00,0,0.00,0.00,0,22.50,22.50,'comments',1,'on',1267005563,1267005563,0,2),(27,18,27,17,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(28,18,28,17,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(29,19,29,13,0,0.00,0,0.00,0.00,0,39.00,39.00,'comments',1,'on',1267005563,1267005563,0,2),(30,20,30,18,0,0.00,0,0.00,0.00,0,34.50,34.50,'comments',1,'on',1267005563,1267005563,0,2),(31,21,31,5,0,0.00,0,0.00,0.00,0,35.00,35.00,'comments',1,'on',1267005563,1267005563,0,2),(32,22,32,19,0,0.00,0,0.00,0.00,0,36.00,36.00,'comments',1,'on',1267005563,1267005563,0,2),(33,23,33,14,0,0.00,0,0.00,0.00,0,45.00,45.00,'comments',1,'on',1267005563,1267005563,0,2),(34,24,34,20,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(35,24,35,20,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(36,25,36,22,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(37,26,37,24,0,0.00,0,0.00,0.00,0,7.00,7.00,'comments',1,'on',1267005563,1267005563,0,2),(38,27,38,19,0,0.00,0,0.00,0.00,0,42.30,42.30,'comments',1,'on',1267005563,1267005563,0,2),(39,27,39,19,0,0.00,0,0.00,0.00,0,27.00,27.00,'comments',1,'on',1267005563,1267005563,0,2),(40,28,40,19,0,0.00,0,0.00,0.00,0,45.00,45.00,'comments',1,'on',1267005563,1267005563,0,2),(41,28,41,19,0,0.00,0,0.00,0.00,0,32.00,32.00,'comments',1,'on',1267005563,1267005563,0,2),(42,28,42,19,0,0.00,0,0.00,0.00,0,27.00,27.00,'comments',1,'on',1267005563,1267005563,0,2),(43,29,43,19,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(44,30,44,19,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(45,31,45,19,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(46,31,46,19,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(47,32,47,6,0,0.00,0,0.00,0.00,0,37.00,37.00,'comments',1,'on',1267005563,1267005563,0,2),(48,32,48,6,0,0.00,0,0.00,0.00,0,37.00,37.00,'comments',1,'on',1267005563,1267005563,0,2),(49,33,49,25,0,0.00,0,0.00,0.00,0,4.40,4.40,'comments',1,'on',1267005563,1267005563,0,2),(50,34,50,22,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,1),(51,35,51,5,0,0.00,0,0.00,0.00,0,18.00,18.00,'comments',1,'on',1267005563,1267005563,0,2),(52,35,52,5,0,0.00,0,0.00,0.00,0,18.00,18.00,'comments',1,'on',1267005563,1267005563,0,2),(53,36,53,8,0,0.00,0,0.00,0.00,0,34.00,34.00,'comments',1,'on',1267005563,1267005563,0,2),(54,36,54,8,0,0.00,0,0.00,0.00,0,37.00,37.00,'comments',1,'on',1267005563,1267005563,0,2),(55,37,55,8,0,0.00,0,0.00,0.00,0,49.00,49.00,'comments',1,'on',1267005563,1267005563,0,2),(56,38,56,27,0,0.00,0,0.00,2.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(57,39,57,28,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(58,40,58,19,0,0.00,0,0.00,0.00,0,44.00,44.00,'comments',1,'on',1267005563,1267005563,0,2),(59,41,59,29,0,0.00,0,0.00,0.00,0,26.25,26.25,'comments',1,'on',1267005563,1267005563,0,2),(60,41,60,29,0,0.00,0,0.00,0.00,0,26.25,26.25,'comments',1,'on',1267005563,1267005563,0,2),(61,42,61,28,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(62,43,62,13,0,0.00,0,0.00,0.00,0,20.00,20.00,'comments',1,'off',1267005563,1267005563,0,2),(63,43,63,13,0,0.00,0,0.00,0.00,0,20.00,20.00,'comments',1,'off',1267005563,1267005563,0,2),(64,44,64,30,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(65,45,65,31,0,0.00,0,0.00,0.00,0,39.00,39.00,'comments',1,'on',1267005563,1267005563,0,2),(66,46,66,5,0,0.00,0,0.00,0.00,0,36.00,36.00,'comments',1,'on',1267005563,1267005563,0,2),(67,47,67,5,0,0.00,0,0.00,0.00,0,39.00,39.00,'comments',1,'on',1267005563,1267005563,0,2),(68,48,68,32,0,0.00,0,0.00,0.00,0,32.00,32.00,'comments',1,'on',1267005563,1267005563,0,2),(69,49,69,26,0,0.00,0,0.00,0.00,0,33.00,33.00,'comments',1,'on',1267005563,1267005563,0,2),(70,50,70,33,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(71,51,71,34,0,0.00,0,0.00,0.00,0,29.00,29.00,'comments',1,'on',1267005563,1267005563,0,2),(72,52,72,27,0,0.00,0,0.00,24.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,1),(73,53,73,35,0,0.00,0,0.00,0.00,0,38.00,38.00,'comments',1,'on',1267005563,1267005563,0,2),(74,54,74,36,0,0.00,0,0.00,0.00,0,37.00,37.00,'comments',1,'on',1267005563,1267005563,0,2),(75,55,75,37,0,0.00,0,0.00,0.00,0,31.00,31.00,'comments',1,'on',1267005563,1267005563,0,2),(76,56,76,38,0,0.00,0,0.00,0.00,0,25.00,25.00,'comments',1,'on',1267005563,1267005563,0,2),(77,57,77,5,0,0.00,0,0.00,0.00,0,50.00,50.00,'comments',1,'on',1267005563,1267005563,0,2),(78,58,78,5,0,0.00,0,0.00,0.00,0,34.00,34.00,'comments',1,'on',1267005563,1267005563,0,2),(79,59,79,39,0,0.00,0,0.00,0.00,0,50.00,50.00,'comments',1,'on',1267005563,1267005563,0,2),(80,60,80,40,0,0.00,0,0.00,0.00,0,18.00,18.00,'comments',1,'on',1267005563,1267005563,0,2),(81,60,81,40,0,0.00,0,0.00,0.00,0,17.00,17.00,'comments',1,'on',1267005563,1267005563,0,2),(82,61,82,8,0,0.00,0,0.00,0.00,0,38.00,38.00,'comments',1,'on',1267005563,1267005563,0,2),(83,61,83,8,0,0.00,0,0.00,0.00,0,38.00,38.00,'comments',1,'on',1267005563,1267005563,0,2),(84,62,84,40,0,0.00,0,0.00,0.00,0,23.00,23.00,'comments',1,'on',1267005563,1267005563,0,2),(85,63,85,1,0,0.00,0,0.00,0.00,0,35.00,35.00,'comments',1,'off',1267005563,1267005563,0,2),(86,64,86,51,0,0.00,0,0.00,0.00,0,30.00,30.00,'comments',1,'on',1267005563,1267005563,0,2),(87,65,87,52,0,0.00,0,0.00,0.00,0,44.00,44.00,'comments',1,'on',1267005563,1267005563,0,2),(88,66,88,53,0,0.00,0,0.00,0.00,0,22.50,22.50,'comments',1,'on',1267005563,1267005563,0,2),(89,67,89,1,0,0.00,0,0.00,0.00,0,33.00,33.00,'comments',1,'off',1267005563,1267005563,0,2),(90,67,90,1,0,0.00,0,0.00,0.00,0,33.00,33.00,'comments',1,'off',1267005563,1267005563,0,2),(91,67,91,1,0,0.00,0,0.00,0.00,0,45.00,45.00,'comments',1,'off',1267005563,1267005563,0,2),(92,67,92,1,0,0.00,0,0.00,0.00,0,45.00,45.00,'comments',1,'off',1267005563,1267005563,0,2),(93,67,93,1,0,0.00,0,0.00,0.00,0,31.50,31.50,'comments',1,'off',1267005563,1267005563,0,2),(94,67,94,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(95,67,95,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(96,67,96,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(97,67,97,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(98,67,98,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(99,67,99,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(100,67,100,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(101,67,101,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(102,67,102,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(103,67,103,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'off',1267005563,1267005563,0,2),(104,68,104,1,0,0.00,0,0.00,0.00,0,31.50,31.50,'comments',1,'on',1267005563,1267005563,0,2),(105,68,105,1,0,0.00,0,0.00,0.00,0,31.50,31.50,'comments',1,'on',1267005563,1267005563,0,2),(106,68,106,1,0,0.00,0,0.00,0.00,0,45.00,45.00,'comments',1,'on',1267005563,1267005563,0,2),(107,68,107,1,0,0.00,0,0.00,0.00,0,44.00,44.00,'comments',1,'on',1267005563,1267005563,0,2),(108,68,108,1,0,0.00,0,0.00,0.00,0,31.50,31.50,'comments',1,'on',1267005563,1267005563,0,2),(109,68,109,1,0,0.00,0,0.00,0.00,0,39.00,39.00,'comments',1,'on',1267005563,1267005563,0,2),(110,68,110,1,0,0.00,0,0.00,0.00,0,41.00,41.00,'comments',1,'on',1267005563,1267005563,0,2),(111,68,111,1,0,0.00,0,0.00,0.00,0,36.00,36.00,'comments',1,'on',1267005563,1267005563,0,2),(112,68,112,1,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(113,68,113,1,0,0.00,0,0.00,0.00,0,42.00,42.00,'comments',1,'on',1267005563,1267005563,0,2),(114,68,114,1,0,0.00,0,0.00,0.00,0,37.00,37.00,'comments',1,'on',1267005563,1267005563,0,2),(115,68,115,1,0,0.00,0,0.00,0.00,0,36.00,36.00,'comments',1,'on',1267005563,1267005563,0,2),(116,68,116,1,0,0.00,0,0.00,0.00,0,34.00,34.00,'comments',1,'on',1267005563,1267005563,0,2),(117,68,117,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1267005563,1267005563,0,2),(118,68,118,1,0,0.00,0,0.00,0.00,0,56.00,56.00,'comments',1,'on',1267005563,1267005563,0,2),(119,69,119,7,0,0.00,0,0.00,0.00,0,32.40,32.40,'comments',1,'on',1267005563,1267005563,0,2),(120,70,120,11,0,0.00,0,0.00,0.00,0,49.00,49.00,'comments',1,'on',1267005563,1267005563,0,2),(121,70,121,11,0,0.00,0,0.00,0.00,0,31.00,31.00,'comments',1,'on',1267005563,1267005563,0,2),(122,70,122,11,0,0.00,0,0.00,0.00,0,49.00,49.00,'comments',1,'on',1267005563,1267005563,0,2),(123,70,123,11,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(124,70,124,11,0,0.00,0,0.00,0.00,0,33.00,33.00,'comments',1,'on',1267005563,1267005563,0,2),(125,70,125,11,0,0.00,0,0.00,0.00,0,42.50,42.50,'comments',1,'on',1267005563,1267005563,0,2),(126,71,126,21,0,0.00,0,0.00,0.00,0,40.00,40.00,'comments',1,'on',1267005563,1267005563,0,2),(127,72,127,21,0,0.00,0,0.00,0.00,0,28.30,28.30,'comments',1,'on',1267005563,1267005563,0,2),(128,72,128,21,0,0.00,0,0.00,0.00,0,6.45,6.45,'comments',1,'on',1267005563,1267005563,0,2),(129,73,129,21,0,0.00,0,0.00,0.00,0,7.00,7.00,'comments',1,'on',1267005563,1267005563,0,2),(130,74,130,7,0,0.00,0,0.00,0.00,0,25.00,25.00,'comments',1,'on',1267005563,1267005563,0,2),(131,75,131,8,0,0.00,0,0.00,0.00,0,49.00,49.00,'comments',1,'on',1267005563,1267005563,0,2);

--
-- 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=86 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,'','','1312958666',1),(2,2,'','2.23 it is a HRD','1312961172',1),(3,3,'','','1312961313',1),(4,3,'','','1312961683',1),(5,4,'','','1312961901',1),(6,5,'','','1312962227',1),(7,6,'','','1312962598',1),(8,7,'','','1313661859',1),(9,7,'','','1313661922',1),(10,8,'','','1313662048',1),(11,9,'','','1313662157',1),(12,10,'','','1313662387',1),(13,11,'','','1313662673',1),(14,12,'','','1313663149',1),(15,13,'','230102 total value ','1313663491',1),(16,14,'','','1313664062',1),(17,15,'','','1313664146',1),(18,16,'','','1313664293',1),(19,17,'','','1313664369',1),(20,16,'','IGI','1313664406',1),(21,15,'','IGI','1313664423',1),(22,18,'','32 % back\r\n44.92 rate','1313665072',1),(23,19,'','','1313667958',1),(24,20,'','','1313668041',1),(25,21,'','','1313668194',1),(26,20,'','IGI','1313668217',1),(27,22,'','','1313668323',1),(28,23,'','','1313668414',1),(29,24,'','I SI2 10500 45.16 32\r\nI SI1 12000 45.16 32','1313668660',1),(30,25,'','','1313670368',1),(31,26,'','','1313736164',1),(32,27,'','','1313736326',1),(33,28,'','','1313736505',1),(34,29,'','','1313736606',1),(35,30,'','','1313736826',1),(36,29,'','','1313737051',1),(37,31,'','','1313737223',1),(38,32,'','','1313739832',1),(39,33,'','','1313739962',1),(40,34,'','','1313740037',1),(41,35,'','','1313740223',1),(42,36,'','','1313740380',1),(43,37,'','','1313740612',1),(44,38,'','','1313740810',1),(45,39,'','','1313740913',1),(46,40,'','HRD','1313741480',1),(47,41,'','','1313741974',1),(48,42,'','','1313742043',1),(49,43,'','','1313742267',1),(50,44,'','','1313742431',1),(51,45,'','','1313742505',1),(52,46,'','','1313742668',1),(53,47,'','','1313742791',1),(54,48,'','','1313742931',1),(55,49,'','','1313743022',1),(56,50,'','','1313743164',1),(57,51,'','','1313743292',1),(58,52,'','','1313743365',1),(59,53,'','','1313743493',1),(60,54,'','','1313743622',1),(61,55,'','','1313743789',1),(62,56,'','','1313743866',1),(63,57,'','','1313743969',1),(64,58,'','','1313744038',1),(65,59,'','','1313744217',1),(66,60,'','2.72 HRD','1313744373',1),(67,61,'','','1313744584',1),(68,62,'','','1313744667',1),(69,63,'','','1313747713',1),(70,64,'','Vipulbhai','1314178666',1),(71,64,'','Vipulbhai 60 to 75 days','1314179564',1),(72,65,'','Viral NEW 30 to 45','1314179776',1),(73,65,'','Viral NEW 30 to 45','1314179833',1),(74,66,'','Himanshu','1314179997',1),(75,67,'','','1316595973',1),(76,63,'','','1316852255',1),(77,68,'','','1316854912',1),(78,69,'','','1316855481',1),(79,70,'','','1316857036',1),(80,71,'','','1316857980',1),(81,72,'','','1316858429',1),(82,73,'','','1316859980',1),(83,73,'','','1316860041',1),(84,74,'','','1316860398',1),(85,75,'','','1317110463',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=139 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,'1306987922','1306987922',1),(2,2,0,'1306988076','1306988076',1),(3,2,0,'1306988731','1306988731',1),(4,1,0,'1306988772','1306988772',1),(5,3,0,'1306989052','1306989052',1),(6,1,0,'1306989140','1306989140',1),(7,4,0,'1306989276','1306989276',1),(8,5,0,'1306989458','1306989458',1),(9,6,0,'1306990326','1306990326',1),(10,7,0,'1306990563','1306990563',1),(11,6,0,'1307090089','1307090089',1),(12,8,0,'1307533732','1307533732',1),(13,1,0,'1307688482','1307688482',1),(14,1,0,'1307698799','1307698799',1),(15,2,0,'1307698960','1307698960',1),(16,3,0,'1307699086','1307699086',1),(17,4,0,'1307699198','1307699198',1),(18,5,0,'1307699375','1307699375',1),(19,6,0,'1307703147','1307703147',1),(20,7,0,'1307703401','1307703401',1),(21,8,0,'1307703604','1307703604',1),(22,1,0,'1308824965','1308824965',1),(23,2,0,'1308825432','1308825432',1),(24,3,0,'1308825868','1308825868',1),(25,4,0,'1308826132','1308826132',1),(26,5,0,'1308828110','1308828110',1),(27,1,0,'1308892084','1308892084',1),(28,6,0,'1308918083','1308918083',1),(29,7,0,'1308918249','1308918249',1),(30,8,0,'1308923141','1308923141',1),(31,6,0,'1309929910','1309929910',1),(32,9,0,'1310014666','1310014666',1),(33,10,0,'1310196695','1310196695',1),(34,11,0,'1310196911','1310196911',1),(35,12,0,'1310197101','1310197101',1),(36,13,0,'1310197184','1310197184',1),(37,14,0,'1310197351','1310197351',1),(38,14,0,'1310201980','1310201980',1),(39,15,0,'1310813960','1310813960',1),(40,16,0,'1310814007','1310814007',1),(41,1,0,'1311311443','1311311443',1),(42,2,0,'1311311728','1311311728',1),(43,2,0,'1311311772','1311311772',1),(44,3,0,'1311312723','1311312723',1),(45,4,0,'1311324072','1311324072',1),(46,4,0,'1311334921','1311334921',1),(47,5,0,'1311406296','1311406296',1),(48,4,0,'1311411796','1311411796',1),(49,6,0,'1312261334','1312261334',1),(50,5,0,'1312876526','1312876526',1),(51,6,0,'1312877105','1312877105',1),(52,5,0,'1312877140','1312877140',1),(53,5,0,'1312877429','1312877429',1),(54,1,0,'1312958666','1312958666',1),(55,2,0,'1312961172','1312961172',1),(56,3,0,'1312961313','1312961313',1),(57,3,0,'1312961683','1312961683',1),(58,4,0,'1312961901','1312961901',1),(59,5,0,'1312962227','1312962227',1),(60,6,0,'1312962598','1312962598',1),(61,7,0,'1313661859','1313661859',1),(62,7,0,'1313661922','1313661922',1),(63,8,0,'1313662048','1313662048',1),(64,9,0,'1313662157','1313662157',1),(65,10,0,'1313662387','1313662387',1),(66,11,0,'1313662673','1313662673',1),(67,12,0,'1313663149','1313663149',1),(68,13,0,'1313663491','1313663491',1),(69,14,0,'1313664062','1313664062',1),(70,15,0,'1313664146','1313664146',1),(71,16,0,'1313664293','1313664293',1),(72,17,0,'1313664369','1313664369',1),(73,16,0,'1313664406','1313664406',1),(74,15,0,'1313664423','1313664423',1),(75,18,0,'1313665072','1313665072',1),(76,19,0,'1313667958','1313667958',1),(77,20,0,'1313668041','1313668041',1),(78,21,0,'1313668194','1313668194',1),(79,20,0,'1313668217','1313668217',1),(80,22,0,'1313668323','1313668323',1),(81,23,0,'1313668414','1313668414',1),(82,24,0,'1313668660','1313668660',1),(83,25,0,'1313670368','1313670368',1),(84,26,0,'1313736164','1313736164',1),(85,27,0,'1313736326','1313736326',1),(86,28,0,'1313736505','1313736505',1),(87,29,0,'1313736606','1313736606',1),(88,30,0,'1313736826','1313736826',1),(89,29,0,'1313737051','1313737051',1),(90,31,0,'1313737223','1313737223',1),(91,32,0,'1313739832','1313739832',1),(92,33,0,'1313739962','1313739962',1),(93,34,0,'1313740037','1313740037',1),(94,35,0,'1313740223','1313740223',1),(95,36,0,'1313740380','1313740380',1),(96,37,0,'1313740612','1313740612',1),(97,38,0,'1313740810','1313740810',1),(98,39,0,'1313740913','1313740913',1),(99,40,0,'1313741479','1313741479',1),(100,41,0,'1313741974','1313741974',1),(101,42,0,'1313742043','1313742043',1),(102,43,0,'1313742267','1313742267',1),(103,44,0,'1313742431','1313742431',1),(104,45,0,'1313742505','1313742505',1),(105,46,0,'1313742668','1313742668',1),(106,47,0,'1313742791','1313742791',1),(107,48,0,'1313742931','1313742931',1),(108,49,0,'1313743022','1313743022',1),(109,50,0,'1313743164','1313743164',1),(110,51,0,'1313743292','1313743292',1),(111,52,0,'1313743365','1313743365',1),(112,53,0,'1313743493','1313743493',1),(113,54,0,'1313743622','1313743622',1),(114,55,0,'1313743789','1313743789',1),(115,56,0,'1313743866','1313743866',1),(116,57,0,'1313743969','1313743969',1),(117,58,0,'1313744038','1313744038',1),(118,59,0,'1313744217','1313744217',1),(119,60,0,'1313744373','1313744373',1),(120,61,0,'1313744584','1313744584',1),(121,62,0,'1313744667','1313744667',1),(122,63,0,'1313747713','1313747713',1),(123,64,0,'1314178666','1314178666',1),(124,64,0,'1314179564','1314179564',1),(125,65,0,'1314179776','1314179776',1),(126,65,0,'1314179833','1314179833',1),(127,66,0,'1314179997','1314179997',1),(128,67,0,'1316595973','1316595973',1),(129,63,0,'1316852255','1316852255',1),(130,68,0,'1316854912','1316854912',1),(131,69,0,'1316855481','1316855481',1),(132,70,0,'1316857036','1316857036',1),(133,71,0,'1316857980','1316857980',1),(134,72,0,'1316858429','1316858429',1),(135,73,0,'1316859980','1316859980',1),(136,73,0,'1316860041','1316860041',1),(137,74,0,'1316860398','1316860398',1),(138,75,0,'1317110462','1317110462',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=76 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_purchaseorder` VALUES (1,'1','',0,0,2,0,0,0.00,'',4,1,'Cash',1.00,'individual',726570.00,0,0,0,0.00,726570.00,726570.00,726570.00,0.00,726570.00,'terms and conditions comments','',3,'on',1301985866,1312958666,1312958666,1301985866,'po',1),(2,'2','',0,0,3,0,0,0.00,'',4,6,'Cash',44.07,'individual',951994.00,0,0,0,0.00,951994.00,21601.86,21601.86,0.00,951994.00,'terms and conditions comments','2.23 it is a HRD',3,'on',1302247572,1312961172,1312961172,1306135572,'po',1),(3,'3','',0,0,4,0,0,0.00,'',4,1,'Cash',1.00,'individual',384974.00,0,0,0,0.00,384974.00,384973.60,384973.60,0.00,384974.00,'test test ','',3,'on',1302248083,1312961313,1312961683,1302248083,'po',1),(4,'4','',0,0,5,0,0,0.00,'',4,6,'Cash',1.00,'individual',346610.00,0,0,0,0.00,346610.00,346610.00,346610.00,0.00,346610.00,'terms and conditions comments','',3,'on',1302248301,1312961901,1312961901,1306136301,'po',1),(5,'5','',0,0,6,0,0,0.00,'',4,1,'Cash',44.60,'individual',345953.28,0,0,0,0.00,345953.00,7756.80,7756.80,0.00,345953.00,'terms and conditions comments','',3,'on',1302248627,1312962227,1312962227,1302248627,'po',1),(6,'6','',0,0,8,0,0,0.00,'',4,6,'Cash',1.00,'individual',289080.40,0,0,0,0.00,289080.00,289080.40,289080.40,0.00,289080.00,'terms and conditions comments','',3,'on',1302680998,1312962598,1312962598,1306568998,'po',1),(7,'7','',0,0,9,0,0,0.00,'',4,5,'Cash',44.20,'individual',1007110.00,0,0,0,0.00,1007110.00,22785.29,22785.29,0.00,1007110.00,'test test ','',3,'on',1302775522,1313661859,1313661922,1305367522,'po',1),(8,'8','',0,0,8,0,0,0.00,'',4,5,'Cash',1.00,'individual',129360.00,0,0,0,0.00,129360.00,129360.00,129360.00,0.00,129360.00,'terms and conditions comments','',3,'on',1302862048,1313662048,1313662048,1305454048,'po',1),(9,'9','',0,0,5,0,0,0.00,'',4,5,'Cash',44.90,'individual',774861.75,0,0,0,0.00,774862.00,17257.50,17257.50,0.00,774862.00,'terms and conditions comments','',3,'on',1303121357,1313662157,1313662157,1305713357,'po',1),(10,'10','',0,0,5,0,0,0.00,'',4,5,'Cash',44.68,'individual',1081256.98,0,0,0,0.00,1081257.00,24200.02,24200.02,0.00,1081257.00,'terms and conditions comments','',3,'on',1303121587,1313662387,1313662387,1305713587,'po',1),(11,'11','',0,0,10,0,0,0.00,'',4,3,'Cash',1.00,'individual',184896.00,0,0,0,0.00,184896.00,184896.00,184896.00,0.00,184896.00,'terms and conditions comments','',3,'on',1303208273,1313662673,1313662673,1304072273,'po',1),(12,'12','',0,0,12,0,0,0.00,'',4,7,'Cash',1.00,'individual',903520.80,0,0,0,0.00,903521.00,903520.80,903520.80,0.00,903521.00,'terms and conditions comments','',3,'on',1303295149,1313663149,1313663149,1308479149,'po',1),(13,'13','',0,0,5,0,0,0.00,'',4,5,'Cash',44.68,'individual',230188.29,0,0,0,0.00,230188.00,5151.93,5151.93,0.00,230188.00,'terms and conditions comments','230102 total value ',3,'on',1304505091,1313663491,1313663491,1307097091,'po',1),(14,'14','',0,0,10,0,0,0.00,'',4,5,'Cash',45.00,'individual',686374.79,0,0,0,0.00,686375.00,15252.77,15252.77,0.00,686375.00,'terms and conditions comments','',3,'on',1304937662,1313664062,1313664062,1307529662,'po',1),(15,'15','',0,0,14,0,0,0.00,'',4,5,'Cash',44.68,'individual',323628.00,0,0,0,0.00,323628.00,7243.24,7243.24,0.00,323628.00,'test test ','IGI',3,'on',1304938023,1313664146,1313664423,1307530023,'po',1),(16,'16','',0,0,15,0,0,0.00,'',4,3,'Cash',44.70,'individual',379335.00,0,0,0,0.00,379335.00,8486.25,8486.25,0.00,379335.00,'test test ','IGI',3,'on',1304938006,1313664293,1313664406,1305802006,'po',1),(17,'17','',0,0,16,0,0,0.00,'',4,1,'Cash',44.98,'individual',1849025.27,0,0,0,0.00,1849025.00,41107.72,41107.72,0.00,1849025.00,'terms and conditions comments','',3,'on',1305197169,1313664369,1313664369,1305197169,'po',1),(18,'18','',0,0,17,0,0,0.00,'',4,5,'Cash',0.00,'individual',3209640.00,0,0,0,0.00,3209640.00,0.00,0.00,0.00,3209640.00,'terms and conditions comments','32 % back\r\n44.92 rate',3,'on',1305197872,1313665072,1313665072,1307789872,'po',1),(19,'19','',0,0,13,0,0,0.00,'',4,5,'Cash',45.33,'individual',506548.04,0,0,0,0.00,506548.00,11174.68,11174.68,0.00,506548.00,'terms and conditions comments','',3,'on',1306323958,1313667958,1313667958,1308915958,'po',1),(20,'20','',0,0,18,0,0,0.00,'',4,5,'Cash',44.94,'individual',1223689.00,0,0,0,0.00,1223689.00,27229.40,27229.40,0.00,1223689.00,'test test ','IGI',3,'on',1313668217,1313668041,1313668217,1316260217,'po',1),(21,'21','',0,0,5,0,0,0.00,'',4,6,'Cash',45.06,'individual',314300.26,0,0,0,0.00,314300.00,6975.15,6975.15,0.00,314300.00,'terms and conditions comments','',3,'on',1306410594,1313668194,1313668194,1310298594,'po',1),(22,'22','',0,0,19,0,0,0.00,'',4,1,'Cash',45.07,'individual',297528.63,0,0,0,0.00,297529.00,6601.48,6601.48,0.00,297529.00,'terms and conditions comments','',3,'on',1306497123,1313668323,1313668323,1306497123,'po',1),(23,'23','',0,0,14,0,0,0.00,'',4,5,'Cash',45.07,'individual',345286.45,0,0,0,0.00,345286.00,7661.12,7661.12,0.00,345286.00,'terms and conditions comments','',3,'on',1306583614,1313668414,1313668414,1309175614,'po',1),(24,'24','',0,0,20,0,0,0.00,'',4,2,'Cash',0.00,'individual',2083439.00,0,0,0,0.00,2083439.00,0.00,0.00,0.00,2083439.00,'terms and conditions comments','I SI2 10500 45.16 32\r\nI SI1 12000 45.16 32',3,'on',1306583860,1313668660,1313668660,1307188660,'po',1),(25,'25','',0,0,22,0,0,0.00,'',4,1,'Cash',1.00,'individual',1866090.00,0,0,0,0.00,1866090.00,1866090.00,1866090.00,0.00,1866090.00,'terms and conditions comments','',3,'on',1307622368,1313670368,1313670368,1307622368,'po',1),(26,'26','',0,0,24,0,0,0.00,'',4,1,'Cash',44.72,'individual',1857391.54,0,0,0,0.00,1857392.00,41533.80,41533.80,0.00,1857392.00,'terms and conditions comments','',3,'on',1307688164,1313736164,1313736164,1307688164,'po',1),(27,'27','',0,0,19,0,0,0.00,'',4,5,'Cash',44.74,'individual',1355818.76,0,0,0,0.00,1355819.00,30304.40,30304.40,0.00,1355819.00,'terms and conditions comments','',3,'on',1307688326,1313736326,1313736326,1310280326,'po',1),(28,'28','',0,0,19,0,0,0.00,'',4,5,'Cash',44.72,'individual',1212210.84,0,0,0,0.00,1212211.00,27106.68,27106.68,0.00,1212211.00,'terms and conditions comments','',3,'on',1307774905,1313736505,1313736505,1310366905,'po',1),(29,'29','',0,0,19,0,0,0.00,'',4,5,'Cash',1.00,'individual',0.00,0,0,0,0.00,0.00,143374.00,143374.00,0.00,0.00,'test test ','',3,'off',1307775451,1313736606,1313737051,1310367451,'po',1),(30,'30','',0,0,19,0,0,0.00,'',4,5,'Cash',1.00,'individual',159818.40,0,0,0,0.00,159818.00,159818.40,159818.40,0.00,159818.00,'terms and conditions comments','',3,'off',1307775226,1313736826,1313736826,1310367226,'po',1),(31,'31','',0,0,19,0,0,0.00,'',4,2,'Cash',1.00,'individual',303192.40,0,0,0,0.00,303192.00,303192.40,303192.40,0.00,303192.00,'terms and conditions comments','',3,'on',1307775623,1313737223,1313737223,1308380423,'po',1),(32,'32','',0,0,6,0,0,0.00,'',4,1,'Cash',44.75,'individual',902019.04,0,0,0,0.00,902019.00,20156.85,20156.85,0.00,902019.00,'terms and conditions comments','',3,'on',1308037432,1313739832,1313739832,1308037432,'po',1),(33,'33','',0,0,25,0,0,0.00,'',4,1,'Cash',45.15,'individual',1908685.55,0,0,0,0.00,1908686.00,42274.32,42274.32,0.00,1908686.00,'terms and conditions comments','',3,'on',1308210362,1313739962,1313739962,1308210362,'po',1),(34,'34','',0,0,22,0,0,0.00,'',4,1,'Cash',1.00,'individual',138690.00,0,0,0,0.00,138690.00,138690.00,138690.00,0.00,138690.00,'terms and conditions comments','',3,'on',1309333637,1313740037,1313740037,1309333637,'po',1),(35,'35','',0,0,5,0,0,0.00,'',4,5,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,106517.18,106517.18,0.00,0.00,'terms and conditions comments','',3,'on',1309333823,1313740223,1313740223,1311925823,'po',1),(36,'36','',0,0,8,0,0,0.00,'',4,5,'Cash',44.71,'individual',533379.37,0,0,0,0.00,533379.00,11929.76,11929.76,0.00,533379.00,'terms and conditions comments','',3,'on',1309420380,1313740380,1313740380,1312012380,'po',1),(37,'37','',0,0,8,0,0,0.00,'',4,1,'Cash',44.57,'individual',314983.86,0,0,0,0.00,314984.00,7067.17,7067.17,0.00,314984.00,'terms and conditions comments','',3,'on',1309507012,1313740612,1313740612,1309507012,'po',1),(38,'38','',0,0,27,0,0,0.00,'',4,3,'Cash',1.00,'individual',100650.00,0,0,0,0.00,100650.00,100650.00,100650.00,0.00,100650.00,'terms and conditions comments','',3,'on',1309593610,1313740810,1313740810,1310457610,'po',1),(39,'39','',0,0,28,0,0,0.00,'',4,7,'Cash',1.00,'individual',252520.00,0,0,0,0.00,252520.00,252520.00,252520.00,0.00,252520.00,'terms and conditions comments','',3,'on',1309852913,1313740913,1313740913,1315036913,'po',1),(40,'40','',0,0,19,0,0,0.00,'',4,1,'Cash',44.45,'individual',1467308.72,0,0,0,0.00,1467309.00,33010.32,33010.32,0.00,1467309.00,'terms and conditions comments','HRD',3,'on',1313741479,1313741479,1313741479,1313741479,'po',1),(41,'41','',0,0,29,0,0,0.00,'',4,7,'Cash',44.90,'individual',3060207.21,0,0,0,0.00,3060207.00,68156.06,68156.06,0.00,3060207.00,'terms and conditions comments','',3,'on',1309940374,1313741974,1313741974,1315124374,'po',1),(42,'42','',0,0,28,0,0,0.00,'',4,7,'Cash',1.00,'individual',218400.00,0,0,0,0.00,218400.00,218400.00,218400.00,0.00,218400.00,'terms and conditions comments','',3,'on',1310113243,1313742043,1313742043,1315297243,'po',1),(43,'43','',0,0,13,0,0,0.00,'',4,3,'Cash',44.37,'individual',1913234.40,0,0,0,0.00,1913234.00,43120.00,43120.00,0.00,1913234.00,'terms and conditions comments','',3,'off',1313742267,1313742267,1313742267,1314606267,'po',1),(44,'44','',0,0,30,0,0,0.00,'',4,7,'Cash',44.70,'individual',489330.90,0,0,0,0.00,489331.00,10947.00,10947.00,0.00,489331.00,'terms and conditions comments','',3,'on',1310459231,1313742431,1313742431,1315643231,'po',1),(45,'45','',0,0,31,0,0,0.00,'',4,5,'Cash',44.65,'individual',429203.66,0,0,0,0.00,429204.00,9612.62,9612.62,0.00,429204.00,'terms and conditions comments','',3,'on',1310459305,1313742505,1313742505,1313051305,'po',1),(46,'46','',0,0,5,0,0,0.00,'',4,5,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,12171.52,12171.52,0.00,0.00,'terms and conditions comments','',3,'on',1310459468,1313742668,1313742668,1313051468,'po',1),(47,'47','',0,0,5,0,0,0.00,'',4,5,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,5380.20,5380.20,0.00,0.00,'terms and conditions comments','',3,'on',1310545991,1313742791,1313742791,1313137991,'po',1),(48,'48','',0,0,32,0,0,0.00,'',4,3,'Cash',44.50,'individual',300889.40,0,0,0,0.00,300889.00,6761.56,6761.56,0.00,300889.00,'terms and conditions comments','',3,'on',1311150931,1313742931,1313742931,1312014931,'po',1),(49,'49','',0,0,26,0,0,0.00,'',4,5,'Cash',44.52,'individual',1231829.40,0,0,0,0.00,1231829.00,27669.12,27669.12,0.00,1231829.00,'terms and conditions comments','',3,'on',1311237422,1313743022,1313743022,1313829422,'po',1),(50,'50','',0,0,33,0,0,0.00,'',4,5,'Cash',45.00,'individual',12109500.00,0,0,0,0.00,12109500.00,269100.00,269100.00,0.00,12109500.00,'terms and conditions comments','',3,'on',1311237564,1313743164,1313743164,1313829564,'po',1),(51,'51','',0,0,34,0,0,0.00,'',4,1,'Cash',44.34,'individual',1625117.09,0,0,0,0.00,1625117.00,36651.27,36651.27,0.00,1625117.00,'terms and conditions comments','',3,'on',1311324092,1313743292,1313743292,1311324092,'po',1),(52,'52','',0,0,27,0,0,0.00,'',4,5,'Cash',1.00,'individual',2374515.00,0,0,0,0.00,2374515.00,2374515.00,2374515.00,0.00,2374515.00,'terms and conditions comments','',3,'on',1311669765,1313743365,1313743365,1314261765,'po',1),(53,'53','',0,0,35,0,0,0.00,'',4,3,'Cash',44.35,'individual',322539.81,0,0,0,0.00,322540.00,7272.60,7272.60,0.00,322540.00,'terms and conditions comments','',3,'on',1311669893,1313743493,1313743493,1312533893,'po',1),(54,'54','',0,0,36,0,0,0.00,'',4,1,'Cash',44.75,'individual',771854.27,0,0,0,0.00,771854.00,17248.14,17248.14,0.00,771854.00,'terms and conditions comments','',3,'on',1311842822,1313743622,1313743622,1311842822,'po',1),(55,'55','',0,0,37,0,0,0.00,'',4,3,'Cash',44.05,'individual',722173.32,0,0,0,0.00,722173.00,16394.40,16394.40,0.00,722173.00,'terms and conditions comments','',3,'on',1312534189,1313743789,1313743789,1313398189,'po',1),(56,'56','',0,0,38,0,0,0.00,'',4,5,'Cash',44.80,'individual',639744.00,0,0,0,0.00,639744.00,14280.00,14280.00,0.00,639744.00,'terms and conditions comments','',3,'on',1312534266,1313743866,1313743866,1315126266,'po',1),(57,'57','',0,0,5,0,0,0.00,'',4,7,'Cash',44.98,'individual',1539328.05,0,0,0,0.00,1539328.00,34222.50,34222.50,0.00,1539328.00,'terms and conditions comments','',3,'on',1312534369,1313743969,1313743969,1317718369,'po',1),(58,'58','',0,0,5,0,0,0.00,'',4,7,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,22938.30,22938.30,0.00,0.00,'terms and conditions comments','',3,'on',1313744038,1313744038,1313744038,1318928038,'po',1),(59,'59','',0,0,39,0,0,0.00,'',4,7,'Cash',45.35,'individual',1318437.88,0,0,0,0.00,1318438.00,29072.50,29072.50,0.00,1318438.00,'terms and conditions comments','',3,'on',1313053017,1313744217,1313744217,1318237017,'po',1),(60,'60','',0,0,40,0,0,0.00,'',4,7,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,41291.20,41291.20,0.00,0.00,'terms and conditions comments','2.72 HRD',3,'on',1313225973,1313744373,1313744373,1318409973,'po',1),(61,'61','',0,0,8,0,0,0.00,'',4,7,'Cash',45.60,'individual',625835.78,0,0,0,0.00,625836.00,13724.47,13724.47,0.00,625836.00,'terms and conditions comments','',3,'on',1313658184,1313744584,1313744584,1318842184,'po',1),(62,'62','',0,0,40,0,0,0.00,'',4,5,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,6248.09,6248.09,0.00,0.00,'terms and conditions comments','',3,'on',1313658267,1313744667,1313744667,1316250267,'po',1),(63,'63','',0,0,1,0,0,0.00,'',4,8,'Cash',44.95,'individual',0.00,0,0,0,0.00,0.00,4118.40,4118.40,0.00,0.00,'test test ','',3,'off',1301905055,1313747713,1316852255,1309681055,'po',1),(64,'64','',0,0,51,0,0,0.00,'',4,7,'Cash',0.00,'individual',0.00,0,0,0,0.00,0.00,14907.20,14907.20,0.00,0.00,'test test ','Vipulbhai 60 to 75 days',3,'on',1314093164,1314178666,1314179564,1319277164,'po',1),(65,'65','',0,0,52,0,0,0.00,'',4,5,'Cash',45.63,'individual',141636.00,0,0,0,0.00,141636.00,3104.01,3104.01,0.00,141636.00,'test test ','Viral NEW 30 to 45',3,'on',1314093433,1314179776,1314179833,1316685433,'po',1),(66,'66','',0,0,53,0,0,0.00,'',4,5,'Cash',45.63,'individual',497313.39,0,0,0,0.00,497313.00,10898.83,10898.83,0.00,497313.00,'terms and conditions comments','Himanshu',3,'on',1314093597,1314179997,1314179997,1316685597,'po',1),(67,'67','',0,0,1,0,0,0.00,'',4,1,'Cash',45.00,'individual',1114396.20,0,0,0,0.00,1114396.00,24764.36,24764.36,0.00,1114396.00,'terms and conditions comments','',3,'off',1316595973,1316595973,1316595973,1316595973,'po',1),(68,'68','',0,0,1,0,0,0.00,'',4,8,'Cash',44.75,'individual',5047651.81,0,0,0,0.00,5047652.00,112796.69,112796.69,0.00,5047652.00,'terms and conditions comments','',3,'on',1301907712,1316854912,1316854912,1309683712,'po',1),(69,'69','',0,0,7,0,0,0.00,'',4,4,'Cheque',44.60,'individual',2885316.72,0,0,0,0.00,2885317.00,64693.20,64693.20,0.00,2885317.00,'terms and conditions comments','',2,'on',1302772281,1316855481,1316855481,1304068281,'po',1),(70,'70','',0,0,11,0,0,0.00,'',4,6,'Cash',44.94,'individual',4173536.68,0,0,0,0.00,4173537.00,92869.09,92869.09,0.00,4173537.00,'terms and conditions comments','',3,'on',1303205836,1316857036,1316857036,1307093836,'po',1),(71,'71','',0,0,21,0,0,0.00,'',4,6,'Cheque',44.55,'individual',527917.50,0,0,0,0.00,527918.00,11850.00,11850.00,0.00,527918.00,'terms and conditions comments','',2,'on',1307181180,1316857980,1316857980,1311069180,'po',1),(72,'72','',0,0,21,0,0,0.00,'',4,6,'Cheque',44.70,'individual',1637011.76,0,0,0,0.00,1637012.00,36622.19,36622.19,0.00,1637012.00,'terms and conditions comments','',2,'on',1307527229,1316858429,1316858429,1311415229,'po',1),(73,'73','',0,0,21,0,0,0.00,'',4,6,'Cash',45.25,'individual',607335.00,0,0,0,0.00,607335.00,13421.76,13421.76,0.00,607335.00,'test test ','',2,'on',1308220041,1316859980,1316860041,1312108041,'po',1),(74,'74','',0,0,7,0,0,0.00,'',4,3,'Cheque',44.75,'individual',553781.25,0,0,0,0.00,553781.00,12375.00,12375.00,0.00,553781.00,'terms and conditions comments','',2,'on',1308220398,1316860398,1316860398,1309084398,'po',1),(75,'75','',0,0,8,0,0,0.00,'',4,7,'Cash',44.57,'individual',314983.86,0,0,0,0.00,314984.00,7067.17,7067.17,0.00,314984.00,'terms and conditions comments','',3,'on',1309507262,1317110462,1317110462,1314691262,'po',1);

--
