--
-- Host: localhost    Database: reenakak_nikhil
-- ------------------------------------------------------


--
-- Current Database: `reenakak_nikhil`
--

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

USE `reenakak_nikhil`;

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

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

INSERT INTO `bstock_angadia` VALUES (1,'Amba Hargovind','Mumbai - 400 004','on',0,'','1281952084','Nikhil - AH'),(4,'Jayanti Amba','Marol Maroshi\r\nAdheri East\r\nMumbai 400093','on',0,'','1283462205','Nikhil - JA'),(8,'MM','Opera house','on',0,'','1306846822','Nikhil - 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=3 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_bank` VALUES (1,'ICICI Bank','Opera house, Mumbai 400004','on',0,'','1306847046','001800180018'),(2,'HDFC Bank','Opera House, Opp. Sukh Sagar, Mumbai','on',0,'1307088364','1307088364','29180018');

--
-- 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` int(10) NOT NULL,
  `phone2` int(10) NOT NULL,
  `fax` int(10) 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 DEFAULT CHARSET=latin1;

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


--
-- 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=7 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,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(4,4,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(5,5,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(6,6,'','','','',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_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=7 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','','','');

--
-- 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_designers`
--

CREATE TABLE `bstock_designers` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `designer_name` varchar(250) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` 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.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store designer personal information like Name, Address, etc.';

--
-- Dumping data for table `bstock_designers`
--


--
-- 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=275 DEFAULT CHARSET=latin1 COMMENT='This table will store all the custom fields for the modules.';

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



--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Stores the invoices for every order.';

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the invoices status';

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


--
-- 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 AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the shipping details of every or';

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

INSERT INTO `bstock_jhangadshippinginfo` VALUES (1,61,'324324234','1302266642','Courier','','','','','',1,'tstest','1302266642','1302266642','',''),(2,61,'67676767676','1302268470','Express Post','','','','','',1,'2nd time','1302268470','1302268470','',''),(3,69,'3423432343','1302269024','NA','','','','','',1,'2725BSCK','1302269024','1302269024','',''),(4,70,'4588','1302287860','Platinium Express Post','','','','','',1,'couriering 4287RTSTM.','1302287860','1302287860','',''),(5,70,'4589','1302288061','Platinium Express Post','','','','','',1,'couriereing 3231PTKK...','1302288061','1302288061','','');

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

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


--
-- 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,
  `email` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `opening_balance` float(10,2) NOT NULL DEFAULT '0.00',
  `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.',
  `opening_balance_metal` varchar(25) NOT NULL,
  `total_metal_balance` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'this field will store the total metal balance with karigar uptill now',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COMMENT='Stores vendor related information like Name, Address, etc.';

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

INSERT INTO `bstock_karigar` VALUES (1,'barun','','','98920022516','',0.00,'on','1327916302','1327916302','',0.00),(2,'DLP','','','','',0.00,'on','1327916335','1327916335','',208.69),(3,'ASK','','SURAT','','',0.00,'on','1327916355','1327916355','',0.00),(4,'NRML','','','','',0.00,'on','1327916375','1327916375','',0.00),(5,'PROBIN','','','','',0.00,'on','1327916399','1327916399','',0.00),(6,'BHOLA','','','','',0.00,'on','1327916429','1327916429','',0.00),(7,'BHVN','','','','',0.00,'on','1327916440','1327916440','',0.00);

--
-- 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` decimal(10,2) NOT NULL COMMENT 'Pure 24 karat gold weight.',
  `metal_weight_impure` decimal(10,2) NOT NULL COMMENT 'Store the impure metal weight as per the specifications given by client, in this case, 100 gm = 130 gm',
  `purity` decimal(10,2) NOT NULL DEFAULT '24.00' COMMENT 'Purity of gold i.e. 24 karat, 18 karat, etc.',
  `date_given` varchar(15) NOT NULL,
  `date_given_timestamp` int(11) NOT NULL,
  `remarks` varchar(500) 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=2 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,2,200.00,260.00,24.00,'30-01-2012',1327925986,'','on',1327925986,1327925986);

--
-- 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_metal_usage_details`
--

CREATE TABLE `bstock_metal_usage_details` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `metal_assign_id` int(10) NOT NULL COMMENT 'Primary key of bstock_karigar_metal_info table',
  `metal_mapping_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_jobsheet_metal_mapping table.',
  `jobsheet_id` int(10) NOT NULL COMMENT 'Jobsheet id',
  `design_id` int(10) NOT NULL COMMENT 'Design id.',
  `metal_used` decimal(10,2) NOT NULL COMMENT 'Actual metal used in grams.',
  `previous_balance` decimal(10,2) NOT NULL COMMENT 'Balance metal for this lot (metal_assign_id) before this design.',
  `new_balance` decimal(10,2) NOT NULL COMMENT 'Balance metal for this lot after use in design.',
  `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 COMMENT='Stores metal used from a particular lot assigned.';

--
-- Dumping data for table `bstock_metal_usage_details`
--


--
-- 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=18 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','',''),(16,'Karigar','bstock_karigar',0,'1','','on','',''),(17,'Designers','bstock_designers',0,'1','','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=24 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','009','yes'),(20,0,'product_interest_rate','1','yes'),(21,0,'default_jhangad_inward_id','1','yes'),(22,0,'current_gold_rate','1697','yes'),(23,0,'latest_jobsheet_number','5','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 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

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


--
-- 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_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 DEFAULT CHARSET=latin1 COMMENT='Store order related information. Order items are stored in s';

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


--
-- 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=113 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,00000002,'','','NA','','','','','',1,'','1299090554','1299090554','',''),(2,00000001,'','','NA','','','','','',1,'','1299091186','1299091186','',''),(3,00000001,'','','NA','','','','','',1,'','1299091295','1299091295','',''),(4,00000001,'','','NA','','','','','',1,'','1299092437','1299092437','',''),(5,00000001,'','','NA','','','','','',1,'','1299094412','1299094412','',''),(6,00000001,'','','NA','','','','','',1,'','1299094493','1299094493','',''),(7,00010128,'','','NA','','','','','',1,'','1299330918','1299330918','',''),(8,00010128,'','','NA','','','','','',1,'','1299331088','1299331088','',''),(9,00010128,'','','NA','','','','','',1,'','1299331262','1299331262','',''),(10,00010128,'','','NA','','','','','',1,'','1299331499','1299331499','',''),(11,00010128,'','','NA','','','','','',1,'','1299331982','1299331982','',''),(12,00010128,'','','NA','','','','','',1,'','1299332616','1299332616','',''),(13,00010128,'','','NA','','','','','',1,'','1299332978','1299332978','',''),(14,00010141,'','','NA','','','','','',1,'','1299757500','1299757500','',''),(15,00010141,'','','NA','','','','','',1,'','1299757887','1299757887','',''),(16,00010142,'','','Courier','','','','','',1,'','1300350963','1300350963','',''),(17,00010142,'','','Courier','','','','','',1,'','1300357815','1300357815','',''),(18,00010143,'','','Express Post','','','','','',1,'','1300358743','1300358743','',''),(19,00010142,'','','Courier','','','','','',1,'','1300359432','1300359432','',''),(20,00010146,'','','NA','','','','','',1,'','1300445109','1300445109','',''),(21,00010148,'','','NA','','','','','',1,'','1300450756','1300450756','',''),(22,00010149,'','','NA','','','','','',1,'','1300451405','1300451405','',''),(23,00010151,'','','NA','','','','','',1,'','1300452002','1300452002','',''),(24,00010152,'','','NA','','','','','',1,'','1300452393','1300452393','',''),(25,00010153,'','','NA','','','','','',1,'','1300452763','1300452763','',''),(26,00010153,'','','NA','','','','','',1,'','1300516742','1300516742','',''),(27,00010153,'','','NA','','','','','',1,'','1300516988','1300516988','',''),(28,00010153,'','','NA','','','','','',1,'','1300517148','1300517148','',''),(29,00010153,'','','NA','','','','','',1,'','1300519162','1300519162','',''),(30,00010154,'','','NA','','','','','',1,'','1300690477','1300690477','',''),(31,00010156,'','','NA','','','','','',1,'','1300729631','1300729631','',''),(32,00004206,'547F12','1300773638','Platinium Express Post','','','','','',1,'test','1300773638','1300773638','',''),(33,00004206,'547F12','1300773958','Platinium Express Post','','','','','',1,'test','1300773958','1300773958','',''),(34,00010156,'547F12','1300774654','Platinium Express Post','','','','','',1,'tesat','1300774654','1300774654','',''),(35,00010157,'adsf','1300776609','','','','','','',1,'test','1300776609','1300776609','',''),(36,00010159,'','','Courier','','','','','',1,'','1301380005','1301380005','',''),(37,00010172,'','','Courier','','','','','',1,'','1302210306','1302210306','',''),(38,00010172,'','','Courier','','','','','',1,'','1302210399','1302210399','',''),(39,00010172,'','','Courier','','','','','',1,'','1302210561','1302210561','',''),(40,00010172,'','','Courier','','','','','',1,'','1302210633','1302210633','',''),(41,00010172,'','','Courier','','','','','',1,'','1302240673','1302240673','',''),(42,00010172,'','','Courier','','','','','',1,'','1302241022','1302241022','',''),(43,00010171,'','','NA','','','','','',1,'','1302241257','1302241257','',''),(44,00010173,'','','NA','','','','','',1,'','1302257283','1302257283','',''),(45,00010173,'','','NA','','','','','',1,'','1302257405','1302257405','',''),(46,00010159,'','','Courier','','','','','',1,'','1302269244','1302269244','',''),(47,00010165,'','','NA','','','','','',1,'','1302269348','1302269348','',''),(48,00010159,'','','Courier','','','','','',1,'','1302269850','1302269850','',''),(49,00010170,'5345435','1302270015','','','','','','',1,'4335RAMKK','1302270015','1302270015','',''),(50,00010159,'','','Courier','','','','','',1,'','1302270176','1302270176','',''),(51,00010176,'2344','1302292089','','','','','','',1,'3156RMOBE couriered.','1302292089','1302292089','',''),(52,00010176,'3455','1302292162','','','','','','',1,'1778RJOK','1302292162','1302292162','',''),(53,00010178,'','','NA','','','','','',1,'','1302675261','1302675261','',''),(54,00010178,'','','NA','','','','','',1,'','1302675468','1302675468','',''),(55,00010178,'','','NA','','','','','',1,'','1302675923','1302675923','',''),(56,00010181,'','','NA','','','','','',1,'','1303542363','1303542363','',''),(57,00010181,'','','NA','','','','','',1,'','1303550501','1303550501','',''),(58,00010181,'','','NA','','','','','',1,'','1303550878','1303550878','',''),(59,00010181,'','','NA','','','','','',1,'','1303550943','1303550943','',''),(60,00010181,'','','NA','','','','','',1,'','1303551111','1303551111','',''),(61,00010181,'','','NA','','','','','',1,'','1303552191','1303552191','',''),(62,00010181,'','','NA','','','','','',1,'','1303552457','1303552457','',''),(63,00010181,'','','NA','','','','','',1,'','1303552630','1303552630','',''),(64,00010181,'','','NA','','','','','',1,'','1303552653','1303552653','',''),(65,00010181,'','','NA','','','','','',1,'','1303552909','1303552909','',''),(66,00010181,'','','NA','','','','','',1,'','1303553272','1303553272','',''),(67,00010181,'','','NA','','','','','',1,'','1303558581','1303558581','',''),(68,00010185,'','','Drop off','','','','','',1,'','1304412423','1304412423','',''),(69,00010185,'','','Drop off','','','','','',1,'','1304413549','1304413549','',''),(70,00010185,'','','Courier','','','','','',1,'','1304970675','1304970675','',''),(71,00010187,'','','Courier','','','','','',1,'','1305233004','1305233004','',''),(72,00010189,'','','Courier','','','','','',1,'','1305284645','1305284645','',''),(73,00010190,'','','Courier','','','','','',1,'','1305634197','1305634197','',''),(74,00010190,'','','Courier','','','','','',1,'','1305726721','1305726721','',''),(75,00010191,'','','Courier','','','','','',1,'','1305786976','1305786976','',''),(76,00010189,'','','Courier','','','','','',1,'','1305806117','1305806117','',''),(77,00010199,'','','Courier','','','','','',1,'','1305833617','1305833617','',''),(78,00000002,'','','Courier','','','','','',1,'','1305874014','1305874014','',''),(79,00000002,'','','Courier','','','','','',1,'','1305874059','1305874059','',''),(80,00000002,'','','Courier','','','','','',1,'','1305874117','1305874117','',''),(81,00000007,'','','Courier','','','','','',1,'','1305900991','1305900991','',''),(82,00000007,'','','Courier','','','','','',1,'','1305901030','1305901030','',''),(83,00000007,'','','Courier','','','','','',1,'','1305901630','1305901630','',''),(84,00000007,'','','Courier','','','','','',1,'','1305919425','1305919425','',''),(85,00000010,'','','Courier','','','','','',1,'','1305962861','1305962861','',''),(86,00000011,'','','Courier','','','','','',1,'','1305964810','1305964810','',''),(87,00000011,'','','Courier','','','','','',1,'','1305964958','1305964958','',''),(88,00000011,'','','Courier','','','','','',1,'','1305964992','1305964992','',''),(89,00000012,'','','Courier','','','','','',1,'','1305965240','1305965240','',''),(90,00000018,'','','Courier','','','','','',1,'','1306235241','1306235241','',''),(91,00000018,'','','Courier','','','','','',1,'','1306235441','1306235441','',''),(92,00000018,'','','Courier','','','','','',1,'','1306236679','1306236679','',''),(93,00000018,'','','Courier','','','','','',1,'','1306245239','1306245239','',''),(94,00000018,'','','Courier','','','','','',1,'','1306245896','1306245896','',''),(95,00000018,'','','Courier','','','','','',1,'','1306245938','1306245938','',''),(96,00000018,'','','Courier','','','','','',1,'','1306246014','1306246014','',''),(97,00000018,'','','Courier','','','','','',1,'','1306246038','1306246038','',''),(98,00000018,'','','Courier','','','','','',1,'','1306246098','1306246098','',''),(99,00000018,'','','Courier','','','','','',1,'','1306246166','1306246166','',''),(100,00000018,'','','Courier','','','','','',1,'','1306246424','1306246424','',''),(101,00000018,'','','Courier','','','','','',1,'','1306246459','1306246459','',''),(102,00000018,'','','Courier','','','','','',1,'','1306246555','1306246555','',''),(103,00000018,'','','Courier','','','','','',1,'','1306246609','1306246609','',''),(104,00000014,'','','Courier','','','','','',1,'','1306317050','1306317050','',''),(105,00000022,'','','Courier','','','','','',1,'','1306391109','1306391109','',''),(106,00000023,'','','Courier','','','','','',1,'','1306391441','1306391441','',''),(107,00000023,'','','Courier','','','','','',1,'','1306391524','1306391524','',''),(108,00000022,'','','Courier','','','','','',1,'','1306394251','1306394251','',''),(109,00000026,'','','Courier','','','','','',1,'','1306407287','1306407287','',''),(110,00000016,'','','Courier','','','','','',1,'','1306841779','1306841779','',''),(111,00000011,'','','Courier','','','','','',1,'','1307367355','1307367355','',''),(112,00000001,'','','Courier','','','','','',1,'','1319464087','1319464087','','');

--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

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


--
-- 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_parcel_history`
--

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

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


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

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

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

INSERT INTO `bstock_partners` VALUES (1,'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_years` int(10) NOT NULL COMMENT 'Loan tenure in years.',
  `no_of_months` int(10) NOT NULL COMMENT 'Loan tenure in months.',
  `no_of_days` int(10) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `entry_type` enum('Debit','Credit') NOT NULL COMMENT 'Debit means loan given & credit means loan taken.',
  `dce_id` int(10) NOT NULL COMMENT 'ID of record in bstock_pl_dailycashentries table.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores loans taken or given for the business.';

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


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

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

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


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

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

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

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

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

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

CREATE TABLE `bstock_pl_designs` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `design_number` varchar(50) NOT NULL,
  `design_name` varchar(500) NOT NULL,
  `designer_id` int(10) NOT NULL COMMENT 'Designer who made this design.',
  `design_image_file` varchar(250) NOT NULL COMMENT 'Name of the design image.',
  `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=2 DEFAULT CHARSET=latin1 COMMENT='Stores designs of jewelry created in the system.';

--
-- Dumping data for table `bstock_pl_designs`
--

INSERT INTO `bstock_pl_designs` VALUES (1,'DCN-1806','',0,'DCN-1806.jpg','on',1327917605,1327917605);

--
-- Table structure for table `bstock_pl_designs_images_mapping`
--

CREATE TABLE `bstock_pl_designs_images_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `jewelry_category_id` int(10) NOT NULL COMMENT 'This image is for which jewelry i.e. ring, necklace, earring, etc.',
  `image_name` varchar(250) NOT NULL COMMENT 'Image name.',
  `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 COMMENT='Stores images of designs given by designer to be sent to Kar';

--
-- Dumping data for table `bstock_pl_designs_images_mapping`
--


--
-- Table structure for table `bstock_pl_designs_jewelry_mapping`
--

CREATE TABLE `bstock_pl_designs_jewelry_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `jewelry_category_id` int(10) NOT NULL COMMENT 'This image is for which jewelry i.e. ring, necklace, earring, etc.',
  `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 COMMENT='Stores which jewelry is there in this design.';

--
-- Dumping data for table `bstock_pl_designs_jewelry_mapping`
--


--
-- Table structure for table `bstock_pl_designs_jobsheet_mapping`
--

CREATE TABLE `bstock_pl_designs_jobsheet_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `total_quantity` int(10) NOT NULL COMMENT 'How many sets are to be designed for this design.',
  `jobsheet_id` int(10) NOT NULL COMMENT 'This design is to be designed for which jobsheet.',
  `approval_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Will store approval id if it is added from an inward jhangad. if added from jobsheet will be blank.',
  `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 COMMENT='Store total quantity of sets to be designed in each jobsheet';

--
-- Dumping data for table `bstock_pl_designs_jobsheet_mapping`
--

INSERT INTO `bstock_pl_designs_jobsheet_mapping` VALUES (1,1,0,1,0,'on',1327922002,1337240174),(2,1,1,2,1,'off',1327925610,1327927152),(3,1,1,3,2,'on',1337239573,1337239573);

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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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

INSERT INTO `bstock_pl_expenses` VALUES (1,2,0,'Cash',277.00,'train, rick fare of surat trip','1303302313','no','1303388713','1303388713'),(2,1,0,'Cash',3000.00,'sal to office staff','1303446393','no','1303446393','1303446393'),(3,2,0,'Credit Card',3400.00,'','1303446534','no','1303446534','1303446534'),(4,3,0,'Cash',60000.00,'6 months, april 2011 to sep 2011','1303450903','no','1303450903','1303450903'),(5,10,0,'Cash',1200.00,'','1306675691','no','1306675691','1306675691'),(6,2,29,'Cash',1400.00,'travl','1306925656','no','1306925656','1306925656'),(7,3,30,'Cash',48000.00,'rent for 3 months','1306928367','no','1306928367','1306928367'),(8,5,31,'Bank',3000.00,'fees to ca','1306929359','no','1306929359','1306929359'),(9,11,38,'Cheque',826.00,'mtnl bill','1307087914','no','1307087914','1307087914'),(10,7,39,'Cash',450.00,'3 files, calculator','1307088440','no','1307088440','1307088440'),(11,17,40,'Bank',18000.00,'online transfer to their account','1307088512','no','1307088512','1307088512');

--
-- 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_inwardjhgstatustypes`
--

CREATE TABLE `bstock_pl_inwardjhgstatustypes` (
  `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=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_inwardjhgstatustypes`
--

INSERT INTO `bstock_pl_inwardjhgstatustypes` VALUES (1,'InwardJhangad Created','Jhangad Created','on',0,0),(2,'InwardJhangad Assigned','Jhangad Assigned','on',0,0),(3,'InwardJhangad Assigned Partial','Jhangad Assigned Partial','on',1267005563,1267005563),(4,'InwardJhangad Partially Returned','Jhangad Partially Returned','on',0,0),(5,'InwardJhangad Returned Full','Jhangad Returned Full','on',0,0);

--
-- Table structure for table `bstock_pl_jewelry_exports`
--

CREATE TABLE `bstock_pl_jewelry_exports` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `export_number` int(8) NOT NULL,
  `transaction_date` int(10) NOT NULL COMMENT 'Date of parcel export.',
  `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 COMMENT='Stores jewelry export (parcel) details.';

--
-- Dumping data for table `bstock_pl_jewelry_exports`
--


--
-- Table structure for table `bstock_pl_jewelry_exports_extraitems`
--

CREATE TABLE `bstock_pl_jewelry_exports_extraitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `export_id` int(10) NOT NULL COMMENT 'PRimary key of bstock_pl_jewelry_exports table',
  `item_details` text NOT NULL COMMENT 'Details of item sent along with the export.',
  `item_cost` decimal(10,2) NOT NULL COMMENT 'Cost of item.',
  `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 COMMENT='Stores extra items sent along with every export.';

--
-- Dumping data for table `bstock_pl_jewelry_exports_extraitems`
--


--
-- Table structure for table `bstock_pl_jewelry_exports_items`
--

CREATE TABLE `bstock_pl_jewelry_exports_items` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `export_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_jewelry_exports table.',
  `jobsheet_id` int(10) NOT NULL COMMENT 'PRimary key of bstock_pl_jobsheet table.',
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `total_round_carats` decimal(10,2) NOT NULL,
  `total_tappers_carats` decimal(10,2) NOT NULL,
  `total_other_shapes_carats` decimal(10,2) NOT NULL COMMENT 'Carats used from other shapes except Round, Tappers, Pearls & color stones.',
  `total_d2_carats` decimal(10,2) NOT NULL,
  `total_lc_carats` decimal(10,2) NOT NULL,
  `total_ttlc_carats` decimal(10,2) NOT NULL,
  `sps_charges` decimal(10,2) NOT NULL,
  `top_round` decimal(10,2) NOT NULL,
  `gross_weight` decimal(10,2) NOT NULL COMMENT 'Gross weight of the set.',
  `net_weight` decimal(10,2) NOT NULL,
  `total_labour` decimal(10,2) 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 COMMENT='Stores designs put in every export / parcel.';

--
-- Dumping data for table `bstock_pl_jewelry_exports_items`
--


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

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

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


--
-- Table structure for table `bstock_pl_jhangad_inward`
--

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

--
-- Dumping data for table `bstock_pl_jhangad_inward`
--

INSERT INTO `bstock_pl_jhangad_inward` VALUES (00000001,'1',4,0,0,0,1327925609,0,'',2,'on',1327925609,1328184809,1327925609,0.000,21506.40,21506.00,0.00,'off',''),(00000002,'00000002',4,0,0,0,1337239572,0,'',2,'on',1337239572,1337498772,1337239572,0.000,128945.00,128945.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 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

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


--
-- Table structure for table `bstock_pl_jhgitems_inward`
--

CREATE TABLE `bstock_pl_jhgitems_inward` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `jhangad_inward_id` int(8) unsigned zerofill NOT NULL COMMENT 'Foreign key that is mapped to primary key of inward jhangad table.',
  `product_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `size` decimal(10,3) NOT NULL,
  `no_of_pieces` decimal(10,3) NOT NULL COMMENT 'No. of pieces ordered for this particular item.',
  `rate` decimal(10,2) NOT NULL COMMENT 'Price Per Carat.',
  `total_in_inr` decimal(10,2) NOT NULL,
  `karigar_id` int(10) NOT NULL,
  `design_id` int(10) NOT NULL,
  `jobsheet_id` int(10) NOT NULL,
  `jewelry_id` int(10) NOT NULL,
  `discount_percent` decimal(10,2) NOT NULL COMMENT 'Discount in percent given while taking through Jhangad',
  `discount_amount` decimal(10,2) NOT NULL COMMENT 'Discount in value given while taking through Jhangad',
  `quantity_returned` float(10,3) NOT NULL COMMENT 'This field will store the quantity of stone returned from this jhangad to the customer',
  `product_status_in_this_jhangad` enum('In Stock','InwardJhangad Created','InwardJhangad Assigned','InwardJhangad Assigned Partial','InwardJhangad Partially Returned','InwardJhangad Returned Full','Onhold') NOT NULL DEFAULT 'InwardJhangad Created' COMMENT 'this field will show the status of the product in this jhangad',
  `jhangad_note` varchar(500) NOT NULL,
  `is_active` enum('on','off') 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.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an Inward Jhangad.';

--
-- Dumping data for table `bstock_pl_jhgitems_inward`
--

INSERT INTO `bstock_pl_jhgitems_inward` VALUES (1,00000001,5,0.910,127.000,9270.00,8435.70,2,1,2,3,0.00,0.00,0.000,'InwardJhangad Created','','on','1327925610','1327925610'),(2,00000001,6,0.470,77.000,9270.00,4356.90,2,1,2,5,0.00,0.00,0.000,'InwardJhangad Created','','on','1327925610','1327925610'),(3,00000001,7,0.690,112.000,9270.00,6396.30,2,1,2,4,0.00,0.00,0.000,'InwardJhangad Created','','on','1327925610','1327925610'),(4,00000001,8,0.250,40.000,9270.00,2317.50,2,1,2,1,0.00,0.00,0.000,'InwardJhangad Created','','on','1327925610','1327925610'),(5,00000002,10,13.940,200.000,9250.00,128945.00,3,1,3,3,0.00,0.00,0.000,'InwardJhangad Created','','on','1337239573','1337239573');

--
-- 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_jobsheet`
--

CREATE TABLE `bstock_pl_jobsheet` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `jobsheet_number` varchar(200) NOT NULL,
  `approx_metal` decimal(10,2) NOT NULL COMMENT 'Approximate metal weight to be used in this jobsheet.',
  `approx_diamonds` decimal(10,2) NOT NULL COMMENT 'Approximate diamond carat to be used in this jobsheet.',
  `gold_rate` decimal(10,2) NOT NULL COMMENT 'Gold rate for this jobsheet in INR (per gram)',
  `commission` decimal(10,2) NOT NULL COMMENT 'Commission amount on set.',
  `type_of_job` enum('New','Repair','Dissolve') NOT NULL,
  `status` enum('Assigned','Completed') NOT NULL COMMENT 'When created, it will be Assigned. When everything is returned, Admin will mark it as Completed.',
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `issue_date` int(50) NOT NULL,
  `received_date` int(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Stores all jobsheets.';

--
-- Dumping data for table `bstock_pl_jobsheet`
--

INSERT INTO `bstock_pl_jobsheet` VALUES (1,'J5-DCN-1806',0.00,0.00,2300.00,4.00,'New','Assigned','on',1327922002,1337240174,1327908974,0),(2,'J3-DCN-1806',0.00,0.00,0.00,0.00,'New','Assigned','off',1327925610,1327927152,1327927152,0),(3,'J4-DCN-1806',0.00,0.00,0.00,0.00,'New','Assigned','on',1337239573,1337239573,1337239572,0);

--
-- Table structure for table `bstock_pl_jobsheet_diamond_mapping`
--

CREATE TABLE `bstock_pl_jobsheet_diamond_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `jobsheet_id` int(10) NOT NULL,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `jewelry_category_id` int(10) NOT NULL COMMENT 'Jewelry id from jwl_category table. Indicates that the metal was used for this Jewelry.',
  `karigar_id` int(10) NOT NULL COMMENT 'Stores the karigar id who returned this jewelry & who used this metal.',
  `product_id` int(10) NOT NULL COMMENT 'Product id of the diamond. COrresponds to bstock_products table.',
  `carats` decimal(10,3) NOT NULL COMMENT 'Carats issued to or returned by karigar.',
  `no_of_pieces` int(10) NOT NULL COMMENT 'No. of pieces issued to or returned by karigar.',
  `carats_returned` decimal(10,3) NOT NULL COMMENT 'Carats returned by Karigar after using diamonds in jewelry.',
  `no_of_pieces_returned` int(10) NOT NULL COMMENT 'Pieces returned by Karigar after using diamonds in jewelry.',
  `broken` decimal(10,3) NOT NULL COMMENT 'Broken from this lot.',
  `carat_price_inr` decimal(10,2) NOT NULL COMMENT 'Carat price in INR as it may be different from the price it was purchased.',
  `status` enum('Issued to Karigar','Returned from Karigar') NOT NULL COMMENT 'Indicates if diamonds were issued to karigar or returned from karigar.',
  `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=15 DEFAULT CHARSET=latin1 COMMENT='Details of diamonds used & returned by Karigar(jewelry wise)';

--
-- Dumping data for table `bstock_pl_jobsheet_diamond_mapping`
--

INSERT INTO `bstock_pl_jobsheet_diamond_mapping` VALUES (1,1,1,3,2,4,0.000,0,0.000,0,0.000,6500.00,'Issued to Karigar','off',1327923104,1327923104),(2,1,1,4,2,4,0.000,0,0.000,0,0.000,6500.00,'Issued to Karigar','off',1327923104,1327923104),(3,1,1,1,2,4,0.000,0,0.000,0,0.000,6500.00,'Issued to Karigar','off',1327923104,1327923104),(4,1,1,3,2,4,1.330,315,0.100,25,0.001,6500.00,'Returned from Karigar','on',1327923313,1327923313),(5,1,1,5,2,4,0.480,140,0.180,43,0.002,6500.00,'Returned from Karigar','on',1327923313,1327923313),(6,1,1,4,2,4,0.000,0,0.000,0,0.000,6500.00,'Issued to Karigar','off',1327923313,1327923313),(7,1,1,1,2,4,0.000,0,0.000,0,0.000,6500.00,'Issued to Karigar','off',1327923313,1327923313),(8,1,1,4,2,4,0.560,116,0.000,0,0.000,6500.00,'Issued to Karigar','on',1327923432,1327923432),(9,1,1,1,2,4,0.280,65,0.040,9,0.000,6500.00,'Returned from Karigar','on',1327923432,1327923432),(10,2,1,3,2,5,0.910,127,0.650,94,0.078,0.00,'Returned from Karigar','off',1327925610,1327925610),(11,2,1,5,2,6,0.470,77,0.270,44,0.032,0.00,'Returned from Karigar','off',1327925610,1327925610),(12,2,1,4,2,7,0.690,112,0.400,59,0.048,0.00,'Returned from Karigar','off',1327925610,1327925610),(13,2,1,1,2,8,0.250,40,0.140,24,0.017,0.00,'Returned from Karigar','off',1327925610,1327925610),(14,3,1,3,3,10,13.940,200,0.000,0,0.000,0.00,'Issued to Karigar','on',1337239573,1337239573);

--
-- Table structure for table `bstock_pl_jobsheet_jewelry_mapping`
--

CREATE TABLE `bstock_pl_jobsheet_jewelry_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `jobsheet_id` int(10) NOT NULL,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `jewelry_category_id` int(10) NOT NULL COMMENT 'Jewelry id from jwl_category table. Indicates that the metal was used for this Jewelry.',
  `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=10 DEFAULT CHARSET=latin1 COMMENT='Stores jewelry ids to be designed in this jobsheet.';

--
-- Dumping data for table `bstock_pl_jobsheet_jewelry_mapping`
--

INSERT INTO `bstock_pl_jobsheet_jewelry_mapping` VALUES (8,2,1,3,'off',1327927152,1327927152),(7,2,1,4,'off',1327927152,1327927152),(6,2,1,5,'off',1327927152,1327927152),(5,2,1,1,'off',1327927152,1327927152),(9,3,1,3,'on',1337239573,1337239573);

--
-- Table structure for table `bstock_pl_jobsheet_karigar_mapping`
--

CREATE TABLE `bstock_pl_jobsheet_karigar_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `jobsheet_id` int(10) NOT NULL,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table. How much quantity of this design is assigned to karigar.',
  `karigar_id` int(10) NOT NULL COMMENT 'Stores the karigar id who returned this jewelry & who used this metal.',
  `quantity_assigned` int(10) NOT NULL COMMENT 'Stores the no. of sets to be designed by a karigar.',
  `labour_rate` decimal(10,2) NOT NULL COMMENT 'Labour rate is stored here for each design in the jobsheet.',
  `labour_rate_actual` decimal(10,2) NOT NULL COMMENT 'Labour rate to be given to Karigar is stored here.',
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `labour_total` decimal(10,2) NOT NULL COMMENT 'Total labour for this Jobsheet & Design.',
  `labour_balance` decimal(10,2) NOT NULL COMMENT 'Labour amount remaining to be paid.',
  `payment_status` int(8) NOT NULL COMMENT 'Unpaid, paid or partially paid.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1 COMMENT='Karigar Id, Quantity, Labour, Balance labour, are stored';

--
-- Dumping data for table `bstock_pl_jobsheet_karigar_mapping`
--

INSERT INTO `bstock_pl_jobsheet_karigar_mapping` VALUES (1,1,1,2,0,0.00,400.00,'on',1327922002,1337240174,0.00,0.00,2),(2,2,1,2,1,0.00,0.00,'off',1327925610,1327927152,0.00,0.00,2),(3,2,1,2,1,0.00,0.00,'off',1327925610,1327927152,0.00,0.00,2),(4,2,1,2,1,0.00,0.00,'off',1327925610,1327927152,0.00,0.00,2),(5,2,1,2,1,0.00,0.00,'off',1327925610,1327927152,0.00,0.00,2),(6,3,1,3,1,0.00,0.00,'on',1337239573,1337239573,0.00,0.00,2);

--
-- Table structure for table `bstock_pl_jobsheet_metal_mapping`
--

CREATE TABLE `bstock_pl_jobsheet_metal_mapping` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `jobsheet_id` int(10) NOT NULL,
  `design_id` int(10) NOT NULL COMMENT 'Primary key of bstock_pl_designs table.',
  `jewelry_category_id` int(10) NOT NULL COMMENT 'Jewelry id from jwl_category table. Indicates that the metal was used for this Jewelry.',
  `karigar_id` int(10) NOT NULL COMMENT 'Stores the karigar id who returned this jewelry & who used this metal.',
  `metal_id` int(10) NOT NULL COMMENT 'Primary key of metals table.',
  `weight` decimal(10,2) NOT NULL COMMENT 'Gold weight used in grams.',
  `quantity_returned` int(10) NOT NULL COMMENT 'Number of sets returned by Karigar.',
  `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=5 DEFAULT CHARSET=latin1 COMMENT='Stores details of metal used by Karigar (jewelry wise)';

--
-- Dumping data for table `bstock_pl_jobsheet_metal_mapping`
--

INSERT INTO `bstock_pl_jobsheet_metal_mapping` VALUES (1,1,1,3,2,2,23.39,0,'on',1327927409,1327927409),(2,1,1,5,2,2,9.51,0,'on',1327927409,1327927409),(3,1,1,4,2,2,12.09,0,'on',1327927409,1327927409),(4,1,1,1,2,2,6.32,0,'on',1327927409,1327927409);

--
-- Table structure for table `bstock_pl_jobsheetstatustypes`
--

CREATE TABLE `bstock_pl_jobsheetstatustypes` (
  `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=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_jobsheetstatustypes`
--

INSERT INTO `bstock_pl_jobsheetstatustypes` VALUES (1,'Paid','Paid','on',1267005563,1267005563),(2,'Unpaid','Labour Unpaid','on',0,0),(3,'Partially Paid','Labour Partially Paid','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_metals`
--

CREATE TABLE `bstock_pl_metals` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `metal` enum('ANY','Gold','Silver','Copper','Platinum','Zinc','Iron','Palladium','Nickel','Cadmium') NOT NULL,
  `grams` decimal(10,2) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `total` decimal(10,2) 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=4 DEFAULT CHARSET=latin1 COMMENT='Store metals, alloy that are purchased through PO.';

--
-- Dumping data for table `bstock_pl_metals`
--

INSERT INTO `bstock_pl_metals` VALUES (1,'Gold',1000.00,2850.00,2850000.00,'on',1327918127,1327918127),(2,'Gold',500.00,2750.00,1375000.00,'on',1337239396,1337239396),(3,'Gold',250.00,2500.00,625000.00,'on',1339345772,1339345772);

--
-- Table structure for table `bstock_pl_metals_poitems`
--

CREATE TABLE `bstock_pl_metals_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 metal product ',
  `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=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_metals_poitems`
--

INSERT INTO `bstock_pl_metals_poitems` VALUES (1,2,1,'on',1327918127,1327918127),(2,5,2,'on',1337239396,1337239396);

--
-- 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_packet_master`
--

CREATE TABLE `bstock_pl_packet_master` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `name` varchar(500) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PEAR','EMERALD','MARQUISE','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI','TAPPERS','BAGUETTES','PEARLS','COLOR STONES') NOT NULL,
  `shade` enum('ANY','White','TTLC','LC','PLC') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','SI3','I1','I2','I3') NOT NULL,
  `charni_from` enum('ANY','+2','+4','+6','+8','+10','+11','+14','-2','-4','-6','-8','-10','-11','-14') NOT NULL,
  `charni_to` enum('ANY','+2','+4','+6','+8','+10','+11','+14','-2','-4','-6','-8','-10','-11','-14') NOT NULL,
  `comments` 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 AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_packet_master`
--

INSERT INTO `bstock_pl_packet_master` VALUES (1,'Delux34','PEAR','White','IF','+2','+4','','on',1263279097,1263279096),(17,'Latest30','PRINCESS','ANY','ANY','ANY','ANY','','on',1320910831,1320910831),(18,'Super Delux3','ROUND','ANY','ANY','ANY','ANY','','on',1321602641,1321602641),(19,'SuperSuper Delux','ROUND','White','IF','+2','+2','','on',1321767735,1321767735);

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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

INSERT INTO `bstock_pl_poitems` VALUES (1,1,1,0,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1327917980,1327917980,0,0),(2,1,2,0,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1327917980,1327917980,0,0),(3,1,3,0,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1327917980,1327917980,0,0),(4,3,4,1,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1327922291,1327922291,0,0),(5,4,9,4,0,0.00,0,0.00,0.00,0,0.00,0.00,'comments',1,'on',1337239347,1337239347,0,0);

--
-- 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=9 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,'','','1327917823',1),(2,1,'','','1327917980',1),(3,1,'','','1327918020',1),(4,2,'','','1327918127',1),(5,3,'','','1327922291',1),(6,4,'','','1337239347',1),(7,5,'','','1337239396',1),(8,6,'','','1339345771',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=280 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

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

INSERT INTO `bstock_pl_postatushistory` VALUES (1,1,0,'1298972823','1298972823',1),(2,2,0,'1300533123','1300533123',1),(3,3,0,'1300954800','1300954800',1),(4,4,0,'1300965143','1300965143',1),(5,4,0,'1300965420','1300965420',1),(6,5,0,'1302848561','1302848561',1),(7,6,0,'1303279524','1303279524',1),(8,6,0,'1303557303','1303557303',1),(9,6,0,'1303557350','1303557350',1),(10,6,0,'1303557571','1303557571',1),(11,6,0,'1303558282','1303558282',1),(12,6,0,'1303799226','1303799226',1),(13,7,0,'1303995044','1303995044',1),(14,7,0,'1303995089','1303995089',1),(15,8,0,'1303995883','1303995883',1),(16,8,0,'1303995919','1303995919',1),(17,8,0,'1304420846','1304420846',1),(18,9,0,'1304421065','1304421065',1),(19,10,0,'1304423964','1304423964',1),(20,11,0,'1304424002','1304424002',1),(21,12,0,'1304424145','1304424145',1),(22,13,0,'1304424225','1304424225',1),(23,14,0,'1304424374','1304424374',1),(24,15,0,'1304944491','1304944491',1),(25,16,0,'1304944656','1304944656',1),(26,17,0,'1304944764','1304944764',1),(27,18,0,'1304945022','1304945022',1),(28,19,0,'1304945573','1304945573',1),(29,20,0,'1304945662','1304945662',1),(30,21,0,'1304948171','1304948171',1),(31,22,0,'1304948203','1304948203',1),(32,22,0,'1304948225','1304948225',1),(33,23,0,'1304948313','1304948313',1),(34,24,0,'1304948564','1304948564',1),(35,25,0,'1304948597','1304948597',1),(36,25,0,'1304950387','1304950387',1),(37,25,0,'1304950486','1304950486',1),(38,26,0,'1305094257','1305094257',1),(39,27,0,'1305145939','1305145939',1),(40,27,0,'1305146120','1305146120',1),(41,28,0,'1305183504','1305183504',1),(42,29,0,'1305183796','1305183796',1),(43,30,0,'1305184181','1305184181',1),(44,31,0,'1305226325','1305226325',1),(45,32,0,'1305226372','1305226372',1),(46,33,0,'1305230214','1305230214',1),(47,34,0,'1305230609','1305230609',1),(48,35,0,'1305231940','1305231940',1),(49,36,0,'1305232067','1305232067',1),(50,37,0,'1305232236','1305232236',1),(51,38,0,'1305233898','1305233898',1),(52,38,0,'1305233922','1305233922',1),(53,39,0,'1305270511','1305270511',1),(54,40,0,'1305271640','1305271640',1),(55,41,0,'1305271723','1305271723',1),(56,42,0,'1305272523','1305272523',1),(57,43,0,'1305281970','1305281970',1),(58,44,0,'1305282034','1305282034',1),(59,45,0,'1305714079','1305714079',1),(60,46,0,'1305717882','1305717882',1),(61,47,0,'1305718405','1305718405',1),(62,46,0,'1305723419','1305723419',1),(63,47,0,'1305723613','1305723613',1),(64,47,0,'1305723840','1305723840',1),(65,47,0,'1305723858','1305723858',1),(66,48,0,'1305829922','1305829922',1),(67,48,0,'1305830372','1305830372',1),(68,49,0,'1305834343','1305834343',1),(69,49,0,'1305835938','1305835938',1),(70,50,0,'1305837618','1305837618',1),(71,51,0,'1305872010','1305872010',1),(72,52,0,'1305876030','1305876030',1),(73,1,0,'1305891564','1305891564',1),(74,2,0,'1305891669','1305891669',1),(75,2,0,'1305891752','1305891752',1),(76,3,0,'1305895857','1305895857',1),(77,4,0,'1305956280','1305956280',1),(78,4,0,'1305956311','1305956311',1),(79,4,0,'1305956321','1305956321',1),(80,4,0,'1305956339','1305956339',1),(81,5,0,'1305960834','1305960834',1),(82,5,0,'1305961079','1305961079',1),(83,6,0,'1306138261','1306138261',1),(84,7,0,'1306216037','1306216037',1),(85,6,0,'1306228959','1306228959',1),(86,6,0,'1306230339','1306230339',1),(87,6,0,'1306231058','1306231058',1),(88,6,0,'1306231148','1306231148',1),(89,6,0,'1306231550','1306231550',1),(90,8,0,'1306232111','1306232111',1),(91,8,0,'1306232135','1306232135',1),(92,8,0,'1306232184','1306232184',1),(93,8,0,'1306232385','1306232385',1),(94,8,0,'1306232545','1306232545',1),(95,8,0,'1306232602','1306232602',1),(96,9,0,'1306262855','1306262855',1),(97,9,0,'1306263907','1306263907',1),(98,9,0,'1306264862','1306264862',1),(99,9,0,'1306265304','1306265304',1),(100,9,0,'1306265918','1306265918',1),(101,9,0,'1306265975','1306265975',1),(102,9,0,'1306266464','1306266464',1),(103,9,0,'1306266648','1306266648',1),(104,9,0,'1306267413','1306267413',1),(105,9,0,'1306267520','1306267520',1),(106,9,0,'1306268397','1306268397',1),(107,9,0,'1306268515','1306268515',1),(108,9,0,'1306268539','1306268539',1),(109,9,0,'1306268857','1306268857',1),(110,10,0,'1306303093','1306303093',1),(111,11,0,'1306304943','1306304943',1),(112,11,0,'1306305270','1306305270',1),(113,11,0,'1306306714','1306306714',1),(114,12,0,'1306307117','1306307117',1),(115,12,0,'1306307686','1306307686',1),(116,12,0,'1306307777','1306307777',1),(117,13,0,'1306314095','1306314095',1),(118,14,0,'1306314654','1306314654',1),(119,15,0,'1306316665','1306316665',1),(120,16,0,'1306317930','1306317930',1),(121,17,0,'1306318118','1306318118',1),(122,17,0,'1306318163','1306318163',1),(123,18,0,'1306350923','1306350923',1),(124,18,0,'1306351406','1306351406',1),(125,18,0,'1306351441','1306351441',1),(126,19,0,'1306351512','1306351512',1),(127,19,0,'1306392640','1306392640',1),(128,19,0,'1306392914','1306392914',1),(129,20,0,'1306397152','1306397152',1),(130,18,0,'1306403548','1306403548',1),(131,18,0,'1306405640','1306405640',1),(132,21,0,'1306405877','1306405877',1),(133,21,0,'1306407857','1306407857',1),(134,22,0,'1306413125','1306413125',1),(135,23,0,'1306414429','1306414429',1),(136,1,0,'1306416707','1306416707',1),(137,2,0,'1306418496','1306418496',1),(138,3,0,'1306419980','1306419980',1),(139,1,0,'1306433832','1306433832',1),(140,2,0,'1306469219','1306469219',1),(141,3,0,'1306472289','1306472289',1),(142,4,0,'1306484271','1306484271',1),(143,5,0,'1306486508','1306486508',1),(144,4,0,'1306486709','1306486709',1),(145,6,0,'1306495588','1306495588',1),(146,7,0,'1306575431','1306575431',1),(147,8,0,'1306659951','1306659951',1),(148,9,0,'1306670458','1306670458',1),(149,10,0,'1306671269','1306671269',1),(150,11,0,'1306672790','1306672790',1),(151,12,0,'1306673011','1306673011',1),(152,13,0,'1306673385','1306673385',1),(153,14,0,'1306675372','1306675372',1),(154,14,0,'1306675420','1306675420',1),(155,15,0,'1306675763','1306675763',1),(156,16,0,'1306676213','1306676213',1),(157,17,0,'1306689342','1306689342',1),(158,6,0,'1306690052','1306690052',1),(159,17,0,'1306691286','1306691286',1),(160,18,0,'1306695023','1306695023',1),(161,19,0,'1306733838','1306733838',1),(162,20,0,'1306903800','1306903800',1),(163,20,0,'1307366400','1307366400',1),(164,20,0,'1307366432','1307366432',1),(165,17,0,'1307367044','1307367044',1),(166,17,0,'1307367078','1307367078',1),(167,21,0,'1307383721','1307383721',1),(168,1,0,'1307539697','1307539697',1),(169,1,0,'1307540670','1307540670',1),(170,1,0,'1307615802','1307615802',1),(171,1,0,'1307616764','1307616764',1),(172,1,0,'1307618483','1307618483',1),(173,1,0,'1307618531','1307618531',1),(174,1,0,'1307618676','1307618676',1),(175,2,0,'1308824523','1308824523',1),(176,3,0,'1308828954','1308828954',1),(177,13,0,'1309424374','1309424374',1),(178,14,0,'1309766414','1309766414',1),(179,15,0,'1309767036','1309767036',1),(180,15,0,'1309767051','1309767051',1),(181,15,0,'1309768138','1309768138',1),(182,14,0,'1309769325','1309769325',1),(183,14,0,'1309769339','1309769339',1),(184,16,0,'1309769913','1309769913',1),(185,16,0,'1309770005','1309770005',1),(186,17,0,'1310022545','1310022545',1),(187,17,0,'1310023567','1310023567',1),(188,17,0,'1310023847','1310023847',1),(189,17,0,'1310024578','1310024578',1),(190,17,0,'1310024829','1310024829',1),(191,17,0,'1310024914','1310024914',1),(192,17,0,'1310025059','1310025059',1),(193,17,0,'1310030391','1310030391',1),(194,17,0,'1310030438','1310030438',1),(195,17,0,'1310030513','1310030513',1),(196,17,0,'1310030561','1310030561',1),(197,17,0,'1310030587','1310030587',1),(198,17,0,'1310030824','1310030824',1),(199,18,0,'1310031327','1310031327',1),(200,17,0,'1310031965','1310031965',1),(201,17,0,'1310032057','1310032057',1),(202,18,0,'1310032674','1310032674',1),(203,18,0,'1310715320','1310715320',1),(204,1,0,'1310724196','1310724196',1),(205,2,0,'1310725369','1310725369',1),(206,3,0,'1310725487','1310725487',1),(207,14,0,'1310725527','1310725527',1),(208,22,0,'1310727017','1310727017',1),(209,22,0,'1310727044','1310727044',1),(210,22,0,'1310727063','1310727063',1),(211,26,0,'1311403958','1311403958',1),(212,26,0,'1311404629','1311404629',1),(213,26,0,'1311404659','1311404659',1),(214,1,0,'1316769250','1316769250',1),(215,1,0,'1316769431','1316769431',1),(216,1,0,'1316769468','1316769468',1),(217,1,0,'1316769550','1316769550',1),(218,1,0,'1316770502','1316770502',1),(219,3,0,'1316779370','1316779370',1),(220,4,0,'1316779531','1316779531',1),(221,3,0,'1316781283','1316781283',1),(222,5,0,'1317219617','1317219617',1),(223,6,0,'1317287705','1317287705',1),(224,7,0,'1317290555','1317290555',1),(225,8,0,'1317351356','1317351356',1),(226,9,0,'1317351396','1317351396',1),(227,9,0,'1317351425','1317351425',1),(228,10,0,'1318331072','1318331072',1),(229,11,0,'1318333794','1318333794',1),(230,12,0,'1318334079','1318334079',1),(231,13,0,'1318334855','1318334855',1),(232,1,0,'1319460512','1319460512',1),(233,2,0,'1319462376','1319462376',1),(234,2,0,'1319523232','1319523232',1),(235,3,0,'1319526583','1319526583',1),(236,4,0,'1319529005','1319529005',1),(237,1,0,'1319537179','1319537179',1),(238,2,0,'1320471946','1320471946',1),(239,1,0,'1321253777','1321253777',1),(240,2,0,'1321254139','1321254139',1),(241,3,0,'1321255621','1321255621',1),(242,1,0,'1321601207','1321601207',1),(243,2,0,'1321681086','1321681086',1),(244,2,0,'1321681614','1321681614',1),(245,2,0,'1321687057','1321687057',1),(246,3,0,'1321691462','1321691462',1),(247,3,0,'1321691506','1321691506',1),(248,3,0,'1321694481','1321694481',1),(249,3,0,'1321697826','1321697826',1),(250,4,0,'1321701863','1321701863',1),(251,1,0,'1321884114','1321884114',1),(252,1,0,'1321897619','1321897619',1),(253,2,0,'1321949460','1321949460',1),(254,3,0,'1321949677','1321949677',1),(255,4,0,'1321952237','1321952237',1),(256,4,0,'1321954646','1321954646',1),(257,1,0,'1321957855','1321957855',1),(258,1,0,'1321986545','1321986545',1),(259,1,0,'1322034561','1322034561',1),(260,1,0,'1324363642','1324363642',1),(261,1,0,'1324376195','1324376195',1),(262,2,0,'1324376308','1324376308',1),(263,3,0,'1324376459','1324376459',1),(264,4,0,'1324376680','1324376680',1),(265,5,0,'1324978249','1324978249',1),(266,6,0,'1325141854','1325141854',1),(267,1,0,'1325154089','1325154089',1),(268,2,0,'1325160827','1325160827',1),(269,2,0,'1325160923','1325160923',1),(270,1,0,'1325223315','1325223315',1),(271,2,0,'1325225132','1325225132',1),(272,1,0,'1327917823','1327917823',1),(273,1,0,'1327917980','1327917980',1),(274,1,0,'1327918020','1327918020',1),(275,2,0,'1327918127','1327918127',1),(276,3,0,'1327922291','1327922291',1),(277,4,0,'1337239347','1337239347',1),(278,5,0,'1337239396','1337239396',1),(279,6,0,'1339345771','1339345771',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=7 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_purchaseorder` VALUES (1,'1','',0,0,1,0,0,0.00,'',4,1,'',0.00,'individual',820000.00,0,0,0,0.00,820000.00,0.00,0.00,0.00,820000.00,'test test ','',3,'on',1327918020,1327917823,1327918020,1327918020,'po',0),(2,'00000002','',0,0,3,0,0,0.00,'',4,1,'',0.00,'individual',2850000.00,0,0,0,0.00,2850000.00,0.00,0.00,0.00,2850000.00,'terms and conditions comments','',3,'on',1327918127,1327918127,1327918127,1327918127,'po',1),(3,'00000003','',0,0,1,0,0,0.00,'',4,1,'',0.00,'individual',130000.00,0,0,0,0.00,130000.00,0.00,0.00,0.00,130000.00,'terms and conditions comments','',3,'on',1327922291,1327922291,1327922291,1327922291,'po',1),(4,'00000004','',0,0,4,0,0,0.00,'',4,1,'',0.00,'individual',481000.00,0,0,0,0.00,481000.00,0.00,0.00,0.00,481000.00,'terms and conditions comments','',3,'on',1337239347,1337239347,1337239347,1337239347,'po',1),(5,'00000005','',0,0,3,0,0,0.00,'',4,1,'',0.00,'individual',1375000.00,0,0,0,0.00,1375000.00,0.00,0.00,0.00,1375000.00,'terms and conditions comments','',3,'on',1337239396,1337239396,1337239396,1337239396,'po',1);

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

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

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

INSERT INTO `bstock_pl_reportadvfilters` VALUES (1,1,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_Contact_Name:contact_person:V','c','a',0,0),(2,1,0,1,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_Subtotal:subtotal:V','g','200',0,0),(3,1,0,2,'bstock_pl_purchaseorder:type_of_tax:PurchaseOrder_Type_Of_Tax:type_of_tax:V','e','individual',0,0),(4,1,0,3,'bstock_pl_purchaseorder:packaging:PurchaseOrder_Packaging:packaging:V','e','',0,0),(16,7,0,1,'','','',1276586668,1276586668),(17,7,0,2,'','','',1276586668,1276586668),(18,7,0,3,'','','',1276586668,1276586668),(15,7,0,0,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','g','800',1276586668,1276586668),(19,7,0,4,'','','',1276586668,1276586668),(31,10,0,1,'','','',1276591968,1276591968),(32,10,0,2,'','','',1276591968,1276591968),(28,9,0,3,'','','',1276590740,1276590740),(29,9,0,4,'','','',1276590740,1276590740),(26,9,0,1,'','','',1276590740,1276590740),(27,9,0,2,'','','',1276590740,1276590740),(30,10,0,0,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I','e','1',1276591968,1276591968),(25,9,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V','c','a',1276590740,1276590740),(33,10,0,3,'','','',1276591968,1276591968),(34,10,0,4,'','','',1276591968,1276591968),(35,11,0,0,'','','',1276593750,1276593750),(36,11,0,1,'','','',1276593751,1276593751),(37,11,0,2,'','','',1276593752,1276593752),(38,11,0,3,'','','',1276593752,1276593752),(39,11,0,4,'','','',1276593752,1276593752),(40,12,0,0,'','','',1276598766,1276598766),(41,12,0,1,'','','',1276598767,1276598767),(42,12,0,2,'','','',1276598768,1276598768),(43,12,0,3,'','','',1276598768,1276598768),(44,12,0,4,'','','',1276598768,1276598768),(45,13,0,0,'','','',1276608024,1276608024),(46,13,0,1,'','','',1276608025,1276608025),(47,13,0,2,'','','',1276608025,1276608025),(48,13,0,3,'','','',1276608025,1276608025),(49,13,0,4,'','','',1276608025,1276608025),(50,14,0,0,'','','',1276608490,1276608490),(51,14,0,1,'','','',1276608490,1276608490),(52,14,0,2,'','','',1276608490,1276608490),(53,14,0,3,'','','',1276608490,1276608490),(54,14,0,4,'','','',1276608490,1276608490),(55,15,0,0,'','','',1276684109,1276684109),(56,15,0,1,'','','',1276684109,1276684109),(57,15,0,2,'','','',1276684109,1276684109),(58,15,0,3,'','','',1276684109,1276684109),(59,15,0,4,'','','',1276684109,1276684109),(60,16,0,0,'','','',1276687488,1276687488),(61,16,0,1,'','','',1276687488,1276687488),(62,16,0,2,'','','',1276687488,1276687488),(63,16,0,3,'','','',1276687488,1276687488),(64,16,0,4,'','','',1276687488,1276687488),(65,17,0,0,'','','',1276691935,1276691935),(66,17,0,1,'','','',1276691935,1276691935),(67,17,0,2,'','','',1276691935,1276691935),(68,17,0,3,'','','',1276691935,1276691935),(69,17,0,4,'','','',1276691935,1276691935),(70,18,0,0,'','','',1276692775,1276692775),(71,18,0,1,'','','',1276692775,1276692775),(72,18,0,2,'','','',1276692776,1276692776),(73,18,0,3,'','','',1276692776,1276692776),(74,18,0,4,'','','',1276692776,1276692776),(75,19,0,0,'','','',1276693256,1276693256),(76,19,0,1,'','','',1276693256,1276693256),(77,19,0,2,'','','',1276693256,1276693256),(78,19,0,3,'','','',1276693256,1276693256),(79,19,0,4,'','','',1276693256,1276693256),(80,20,0,0,'','','',1276693459,1276693459),(81,20,0,1,'','','',1276693459,1276693459),(82,20,0,2,'','','',1276693459,1276693459),(83,20,0,3,'','','',1276693459,1276693459),(84,20,0,4,'','','',1276693459,1276693459),(85,21,0,0,'','','',1276693750,1276693750),(86,21,0,1,'','','',1276693750,1276693750),(87,21,0,2,'','','',1276693750,1276693750),(88,21,0,3,'','','',1276693750,1276693750),(89,21,0,4,'','','',1276693750,1276693750),(302,24,0,2,'','','',1278674856,1278674856),(303,24,0,3,'','','',1278674856,1278674856),(105,25,0,0,'','','',1276767496,1276767496),(106,25,0,1,'','','',1276767496,1276767496),(107,25,0,2,'','','',1276767496,1276767496),(108,25,0,3,'','','',1276767496,1276767496),(109,25,0,4,'','','',1276767496,1276767496),(110,26,0,0,'','','',1276773451,1276773451),(111,26,0,1,'','','',1276773452,1276773452),(112,26,0,2,'','','',1276773454,1276773454),(113,26,0,3,'','','',1276773454,1276773454),(114,26,0,4,'','','',1276773454,1276773454),(115,27,0,0,'','','',1276775242,1276775242),(116,27,0,1,'','','',1276775242,1276775242),(117,27,0,2,'','','',1276775242,1276775242),(118,27,0,3,'','','',1276775242,1276775242),(119,27,0,4,'','','',1276775242,1276775242),(120,28,0,0,'','','',1276780009,1276780009),(121,28,0,1,'','','',1276780009,1276780009),(122,28,0,2,'','','',1276780009,1276780009),(123,28,0,3,'','','',1276780009,1276780009),(124,28,0,4,'','','',1276780009,1276780009),(239,29,0,4,'','','',1277299809,1277299809),(238,29,0,3,'','','',1277299809,1277299809),(237,29,0,2,'','','',1277299809,1277299809),(236,29,0,1,'','','',1277299809,1277299809),(235,29,0,0,'','','',1277299809,1277299809),(155,30,0,0,'','','',1277189889,1277189889),(156,30,0,1,'','','',1277189889,1277189889),(157,30,0,2,'','','',1277189889,1277189889),(158,30,0,3,'','','',1277189889,1277189889),(159,30,0,4,'','','',1277189889,1277189889),(160,31,0,0,'','','',1277199613,1277199613),(161,31,0,1,'','','',1277199614,1277199614),(162,31,0,2,'','','',1277199614,1277199614),(163,31,0,3,'','','',1277199614,1277199614),(164,31,0,4,'','','',1277199614,1277199614),(174,32,0,4,'','','',1277202389,1277202389),(173,32,0,3,'','','',1277202389,1277202389),(172,32,0,2,'','','',1277202389,1277202389),(171,32,0,1,'','','',1277202389,1277202389),(170,32,0,0,'','','',1277202389,1277202389),(209,33,0,4,'','','',1277292445,1277292445),(208,33,0,3,'','','',1277292445,1277292445),(207,33,0,2,'','','',1277292445,1277292445),(206,33,0,1,'','','',1277292445,1277292445),(205,33,0,0,'','','',1277292445,1277292445),(210,34,0,0,'','','',1277294934,1277294934),(211,34,0,1,'','','',1277294934,1277294934),(212,34,0,2,'','','',1277294934,1277294934),(213,34,0,3,'','','',1277294934,1277294934),(214,34,0,4,'','','',1277294934,1277294934),(215,35,0,0,'','','',1277295055,1277295055),(216,35,0,1,'','','',1277295055,1277295055),(217,35,0,2,'','','',1277295055,1277295055),(218,35,0,3,'','','',1277295055,1277295055),(219,35,0,4,'','','',1277295055,1277295055),(229,36,0,4,'','','',1277297631,1277297631),(228,36,0,3,'','','',1277297631,1277297631),(227,36,0,2,'','','',1277297631,1277297631),(226,36,0,1,'','','',1277297631,1277297631),(225,36,0,0,'','','',1277297631,1277297631),(230,37,0,0,'','','',1277297943,1277297943),(231,37,0,1,'','','',1277297943,1277297943),(232,37,0,2,'','','',1277297943,1277297943),(233,37,0,3,'','','',1277297943,1277297943),(234,37,0,4,'','','',1277297943,1277297943),(254,38,0,4,'','','',1277302290,1277302290),(253,38,0,3,'','','',1277302290,1277302290),(252,38,0,2,'','','',1277302290,1277302290),(251,38,0,1,'','','',1277302290,1277302290),(250,38,0,0,'','','',1277302290,1277302290),(255,39,0,0,'','','',1277373932,1277373932),(256,39,0,1,'','','',1277373932,1277373932),(257,39,0,2,'','','',1277373932,1277373932),(258,39,0,3,'','','',1277373932,1277373932),(259,39,0,4,'','','',1277373932,1277373932),(260,40,0,0,'','','',1277803475,1277803475),(261,40,0,1,'','','',1277803475,1277803475),(262,40,0,2,'','','',1277803475,1277803475),(263,40,0,3,'','','',1277803475,1277803475),(264,40,0,4,'','','',1277803475,1277803475),(304,24,0,4,'','','',1278674856,1278674856),(301,24,0,1,'','','',1278674856,1278674856),(300,24,0,0,'','','',1278674856,1278674856),(653,22,0,3,'','','',1285053610,1285053610),(652,22,0,2,'','','',1285053610,1285053610),(385,42,0,0,'','','',1280208747,1280208747),(386,42,0,1,'','','',1280208747,1280208747),(387,42,0,2,'','','',1280208747,1280208747),(388,42,0,3,'','','',1280208747,1280208747),(389,42,0,4,'','','',1280208747,1280208747),(399,43,0,4,'','','',1280210777,1280210777),(398,43,0,3,'','','',1280210777,1280210777),(397,43,0,2,'','','',1280210777,1280210777),(396,43,0,1,'','','',1280210777,1280210777),(395,43,0,0,'','','',1280210777,1280210777),(406,44,0,1,'','','',1280212568,1280212568),(405,44,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V','e','Vishal & Co.',1280212568,1280212568),(407,44,0,2,'','','',1280212568,1280212568),(408,44,0,3,'','','',1280212568,1280212568),(409,44,0,4,'','','',1280212568,1280212568),(410,45,0,0,'bstock_products:sellqty:PurchaseOrder_sellqty:sellqty:I','e','0',1280213104,1280213104),(411,45,0,1,'','','',1280213104,1280213104),(412,45,0,2,'','','',1280213104,1280213104),(413,45,0,3,'','','',1280213104,1280213104),(414,45,0,4,'','','',1280213104,1280213104),(634,46,0,4,'','','',1285048636,1285048636),(633,46,0,3,'','','',1285048636,1285048636),(632,46,0,2,'','','',1285048636,1285048636),(631,46,0,1,'','','',1285048636,1285048636),(630,46,0,0,'','','',1285048636,1285048636),(791,23,0,1,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306316963,1306316963),(790,23,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','e','Unpaid',1306316963,1306316963),(1156,41,0,1,'','','',1319527257,1319527257),(484,47,0,4,'','','',1280293802,1280293802),(483,47,0,3,'','','',1280293802,1280293802),(482,47,0,2,'','','',1280293802,1280293802),(481,47,0,1,'','','',1280293802,1280293802),(480,47,0,0,'','','',1280293802,1280293802),(499,48,0,4,'','','',1281116408,1281116408),(498,48,0,3,'','','',1281116408,1281116408),(497,48,0,2,'','','',1281116408,1281116408),(496,48,0,1,'','','',1281116408,1281116408),(495,48,0,0,'','','',1281116408,1281116408),(651,22,0,1,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Delivered',1285053610,1285053610),(580,49,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','n','Paid',1283874192,1283874192),(603,50,0,3,'','','',1283892330,1283892330),(584,49,0,4,'','','',1283874192,1283874192),(582,49,0,2,'','','',1283874192,1283874192),(583,49,0,3,'','','',1283874192,1283874192),(581,49,0,1,'','','',1283874192,1283874192),(601,50,0,1,'','','',1283892330,1283892330),(602,50,0,2,'','','',1283892330,1283892330),(590,51,0,0,'','','',1283892221,1283892221),(591,51,0,1,'','','',1283892221,1283892221),(592,51,0,2,'','','',1283892221,1283892221),(593,51,0,3,'','','',1283892221,1283892221),(594,51,0,4,'','','',1283892221,1283892221),(600,50,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1283892330,1283892330),(604,50,0,4,'','','',1283892330,1283892330),(605,52,0,0,'','','',1283895447,1283895447),(606,52,0,1,'','','',1283895447,1283895447),(607,52,0,2,'','','',1283895447,1283895447),(608,52,0,3,'','','',1283895447,1283895447),(609,52,0,4,'','','',1283895447,1283895447),(1174,56,0,4,'','','',1324992837,1324992837),(1184,53,0,4,'','','',1325053180,1325053180),(1183,53,0,3,'','','',1325053180,1325053180),(1182,53,0,2,'','','',1325053180,1325053180),(1181,53,0,1,'','','',1325053180,1325053180),(1180,53,0,0,'','','',1325053180,1325053180),(724,54,0,4,'','','',1294057547,1294057547),(723,54,0,3,'','','',1294057547,1294057547),(722,54,0,2,'','','',1294057547,1294057547),(721,54,0,1,'','','',1294057547,1294057547),(720,54,0,0,'','','',1294057547,1294057547),(650,22,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1285053610,1285053610),(654,22,0,4,'','','',1285053610,1285053610),(719,55,0,4,'','','',1294044165,1294044165),(718,55,0,3,'','','',1294044165,1294044165),(717,55,0,2,'','','',1294044165,1294044165),(716,55,0,1,'','','',1294044165,1294044165),(715,55,0,0,'','','',1294044165,1294044165),(1173,56,0,3,'','','',1324992837,1324992837),(1172,56,0,2,'','','',1324992837,1324992837),(1171,56,0,1,'','','',1324992837,1324992837),(1170,56,0,0,'','','',1324992837,1324992837),(1109,61,0,4,'','','',1309869722,1309869722),(969,57,0,4,'','','',1306404640,1306404640),(968,57,0,3,'','','',1306404640,1306404640),(1039,58,0,4,'','','',1306470982,1306470982),(1038,58,0,3,'','','',1306470982,1306470982),(1037,58,0,2,'','','',1306470982,1306470982),(1061,59,0,1,'','','',1306746624,1306746624),(1062,59,0,2,'','','',1306746624,1306746624),(1157,41,0,2,'','','',1319527257,1319527257),(1104,63,0,4,'','','',1309776381,1309776381),(1094,60,0,4,'','','',1309611592,1309611592),(1093,60,0,3,'','','',1309611592,1309611592),(1108,61,0,3,'','','',1309869722,1309869722),(1107,61,0,2,'','','',1309869722,1309869722),(1036,58,0,1,'','','',1306470982,1306470982),(1054,62,0,4,'','','',1306473428,1306473428),(1053,62,0,3,'','','',1306473428,1306473428),(1052,62,0,2,'','','',1306473428,1306473428),(1051,62,0,1,'','','',1306473428,1306473428),(1050,62,0,0,'','','',1306473428,1306473428),(1035,58,0,0,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306470982,1306470982),(1106,61,0,1,'','','',1309869722,1309869722),(967,57,0,2,'','','',1306404640,1306404640),(1063,59,0,3,'','','',1306746624,1306746624),(1064,59,0,4,'','','',1306746624,1306746624),(792,23,0,2,'','','',1306316963,1306316963),(793,23,0,3,'','','',1306316963,1306316963),(794,23,0,4,'','','',1306316963,1306316963),(1103,63,0,3,'','','',1309776381,1309776381),(1102,63,0,2,'','','',1309776381,1309776381),(1099,64,0,4,'','','',1309775658,1309775658),(966,57,0,1,'bstock_pl_purchaseorder:is_active:PurchaseOrder_is_active:is_active:V','e','on',1306404640,1306404640),(965,57,0,0,'','','',1306404640,1306404640),(1098,64,0,3,'','','',1309775658,1309775658),(1097,64,0,2,'','','',1309775658,1309775658),(1096,64,0,1,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1309775658,1309775658),(1055,65,0,0,'bstock_pl_jhgstatustypes:status:Approval_status:status:V','n','Approval Returned Full',1306746599,1306746599),(1056,65,0,1,'bstock_pl_jhangad:is_active:Approval_is_active:is_active:V','e','on',1306746599,1306746599),(1057,65,0,2,'','','',1306746599,1306746599),(1058,65,0,3,'','','',1306746599,1306746599),(1059,65,0,4,'','','',1306746599,1306746599),(1060,59,0,0,'bstock_pl_jhangad:is_active:Approval_is_active:is_active:V','e','on',1306746624,1306746624),(1095,64,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','n','Paid',1309775658,1309775658),(1105,61,0,0,'bstock_orders:broker_id:SalesOrder_broker_id:broker_id:I','n','0',1309869722,1309869722),(1101,63,0,1,'bstock_pl_purchaseorder:is_active:PurchaseOrder_is_active:is_active:V','e','on',1309776381,1309776381),(1100,63,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1309776381,1309776381),(1092,60,0,2,'','','',1309611592,1309611592),(1091,60,0,1,'','','',1309611592,1309611592),(1090,60,0,0,'','','',1309611592,1309611592),(1158,41,0,3,'','','',1319527257,1319527257),(1124,66,0,4,'','','',1310371732,1310371732),(1123,66,0,3,'','','',1310371732,1310371732),(1122,66,0,2,'','','',1310371732,1310371732),(1121,66,0,1,'','','',1310371732,1310371732),(1120,66,0,0,'','','',1310371732,1310371732),(1134,67,0,4,'','','',1310383471,1310383471),(1133,67,0,3,'','','',1310383471,1310383471),(1132,67,0,2,'','','',1310383471,1310383471),(1131,67,0,1,'','','',1310383471,1310383471),(1130,67,0,0,'','','',1310383471,1310383471),(1179,68,0,4,'','','',1324993290,1324993290),(1178,68,0,3,'','','',1324993290,1324993290),(1177,68,0,2,'','','',1324993290,1324993290),(1176,68,0,1,'','','',1324993290,1324993290),(1175,68,0,0,'','','',1324993290,1324993290),(1155,41,0,0,'bstock_products:is_active:Products_is_active:is_active:V','e','on',1319527257,1319527257),(1159,41,0,4,'','','',1319527257,1319527257),(1199,69,0,4,'','','',1325139684,1325139684),(1198,69,0,3,'','','',1325139684,1325139684),(1197,69,0,2,'','','',1325139684,1325139684),(1196,69,0,1,'','','',1325139684,1325139684),(1195,69,0,0,'','','',1325139684,1325139684);

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

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

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

INSERT INTO `bstock_pl_reportcolumns` VALUES (1,1,0,0,'bstock_pl_purchaseorder:tracking_no:PurchaseOrder_Tracking_No:tracking_no:V',0,0),(2,1,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_Contact_Person:contact_person:V',0,0),(3,1,0,3,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_Subtotal:subtotal:V',0,0),(8,1,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_Net_Total:net_total:V',0,0),(9,1,0,2,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_Brokerage:brokerage:V',0,0),(28,7,0,6,'bstock_vendors:vendor_name:PurchaseOrder_Vendor_Name:vendor_name:V',0,0),(26,7,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276586667,1276586667),(27,7,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276586667,1276586667),(25,7,0,3,'bstock_pl_purchaseorder:exciseduty:PurchaseOrder_exciseduty:exciseduty:I',1276586667,1276586667),(24,7,0,2,'bstock_pl_purchaseorder:octroi:PurchaseOrder_octroi:octroi:I',1276586667,1276586667),(23,7,0,1,'bstock_pl_purchaseorder:packaging:PurchaseOrder_packaging:packaging:I',1276586667,1276586667),(22,7,0,0,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276586667,1276586667),(35,9,0,2,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276590739,1276590739),(34,9,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276590739,1276590739),(33,9,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276590739,1276590739),(36,9,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276590739,1276590739),(37,9,0,4,'bstock_pl_purchaseorder:broker_id:PurchaseOrder_broker_id:broker_id:I',1276590739,1276590739),(38,10,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276591966,1276591966),(39,10,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276591967,1276591967),(40,10,0,2,'bstock_pl_purchaseorder:carrier_id:PurchaseOrder_carrier_id:carrier_id:I',1276591967,1276591967),(41,10,0,3,'bstock_pl_purchaseorder:assigned_to_id:PurchaseOrder_assigned_to_id:assigned_to_id:I',1276591967,1276591967),(42,10,0,4,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1276591967,1276591967),(43,10,0,5,'bstock_pl_purchaseorder:broker_id:PurchaseOrder_broker_id:broker_id:I',1276591967,1276591967),(44,10,0,6,'bstock_pl_purchaseorder:tracking_no:PurchaseOrder_tracking_no:tracking_no:V',1276591967,1276591967),(45,10,0,7,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I',1276591967,1276591967),(46,10,0,8,'bstock_pl_purchaseorder:payment_terms_id:PurchaseOrder_payment_terms_id:payment_terms_id:I',1276591967,1276591967),(47,10,0,9,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1276591967,1276591967),(48,10,0,10,'bstock_pl_purchaseorder:type_of_tax:PurchaseOrder_type_of_tax:type_of_tax:V',1276591967,1276591967),(49,10,0,11,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276591967,1276591967),(50,10,0,12,'bstock_pl_purchaseorder:packaging:PurchaseOrder_packaging:packaging:I',1276591967,1276591967),(51,10,0,13,'bstock_pl_purchaseorder:octroi:PurchaseOrder_octroi:octroi:I',1276591967,1276591967),(52,10,0,14,'bstock_pl_purchaseorder:exciseduty:PurchaseOrder_exciseduty:exciseduty:I',1276591967,1276591967),(53,10,0,15,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276591967,1276591967),(54,10,0,16,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276591967,1276591967),(55,11,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1276593721,1276593721),(56,11,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276593724,1276593724),(57,11,0,2,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276593726,1276593726),(58,11,0,3,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276593726,1276593726),(59,11,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276593726,1276593726),(60,11,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276593726,1276593726),(61,12,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276598759,1276598759),(62,12,0,1,'bstock_pl_postatustypes:name:PurchaseOrder_name:name:V',1276598761,1276598761),(63,12,0,2,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276598761,1276598761),(64,12,0,3,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276598761,1276598761),(65,12,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276598761,1276598761),(66,13,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276608007,1276608007),(67,13,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276608009,1276608009),(68,13,0,2,'bstock_vendors:vendor_name:Vendors_vendor_name:vendor_name:V',1276608011,1276608011),(69,13,0,3,'bstock_pl_postatustypes:name:PurchaseOrder_name:name:V',1276608011,1276608011),(70,13,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276608014,1276608014),(71,13,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276608014,1276608014),(72,14,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276608489,1276608489),(73,14,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276608489,1276608489),(74,14,0,2,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1276608489,1276608489),(75,14,0,3,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276608489,1276608489),(76,14,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276608489,1276608489),(77,14,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276608489,1276608489),(78,15,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276684106,1276684106),(79,15,0,1,'bstock_pl_pobilladd:po_bill_firstname:PurchaseOrder_po_bill_firstname:po_bill_firstname:V',1276684108,1276684108),(80,15,0,2,'bstock_pl_pobilladd:po_bill_lastname:PurchaseOrder_po_bill_lastname:po_bill_lastname:V',1276684108,1276684108),(81,15,0,3,'bstock_pl_pobilladd:po_bill_city:PurchaseOrder_po_bill_city:po_bill_city:V',1276684108,1276684108),(82,15,0,4,'bstock_pl_pobilladd:po_bill_state:PurchaseOrder_po_bill_state:po_bill_state:I',1276684108,1276684108),(83,15,0,5,'bstock_pl_pobilladd:po_bill_contry:PurchaseOrder_po_bill_contry:po_bill_contry:I',1276684108,1276684108),(84,15,0,6,'bstock_pl_pobilladd:po_bill_address:PurchaseOrder_po_bill_address:po_bill_address:V',1276684108,1276684108),(85,15,0,7,'bstock_pl_pobilladd:po_bill_postcode:PurchaseOrder_po_bill_postcode:po_bill_postcode:I',1276684108,1276684108),(86,15,0,8,'bstock_pl_pobilladd:phone_number:PurchaseOrder_phone_number:phone_number:V',1276684108,1276684108),(87,15,0,9,'bstock_pl_poshipadd:po_ship_firstname:PurchaseOrder_po_ship_firstname:po_ship_firstname:V',1276684108,1276684108),(88,15,0,10,'bstock_pl_poshipadd:po_ship_lastname:PurchaseOrder_po_ship_lastname:po_ship_lastname:V',1276684108,1276684108),(89,15,0,11,'bstock_pl_poshipadd:po_ship_city:PurchaseOrder_po_ship_city:po_ship_city:V',1276684108,1276684108),(90,15,0,12,'bstock_pl_poshipadd:po_ship_state:PurchaseOrder_po_ship_state:po_ship_state:I',1276684108,1276684108),(91,15,0,13,'bstock_pl_poshipadd:po_ship_contry:PurchaseOrder_po_ship_contry:po_ship_contry:I',1276684108,1276684108),(92,15,0,14,'bstock_pl_poshipadd:po_ship_address:PurchaseOrder_po_ship_address:po_ship_address:V',1276684108,1276684108),(93,15,0,15,'bstock_pl_poshipadd:po_ship_postcode:PurchaseOrder_po_ship_postcode:po_ship_postcode:I',1276684108,1276684108),(94,15,0,16,'bstock_pl_poshipadd:phone_number:PurchaseOrder_phone_number:phone_number:V',1276684108,1276684108),(95,16,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276687488,1276687488),(96,16,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276687488,1276687488),(97,16,0,2,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1276687488,1276687488),(98,16,0,3,'bstock_orders:brokerage:SalesOrder_brokerage:brokerage:I',1276687488,1276687488),(99,16,0,4,'bstock_orders:subtotal:SalesOrder_subtotal:subtotal:V',1276687488,1276687488),(100,16,0,5,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276687488,1276687488),(101,16,0,6,'bstock_orderstatustypes:name:SalesOrder_Status:name:V',0,0),(102,17,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276691933,1276691933),(103,17,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276691933,1276691933),(104,17,0,2,'bstock_orders:subtotal:SalesOrder_subtotal:subtotal:V',1276691933,1276691933),(105,17,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276691933,1276691933),(106,17,0,4,'bstock_orderstatustypes:name:SalesOrder_name:name:V',1276691933,1276691933),(115,18,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276692763,1276692763),(116,18,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276692763,1276692763),(117,18,0,2,'bstock_customers:username:Customers_username:username:V',1276692763,1276692763),(118,18,0,3,'bstock_customers:customer_password:Customers_customer_password:customer_password:V',1276692768,1276692768),(119,18,0,4,'bstock_customers:email:Customers_email:email:V',1276692768,1276692768),(120,18,0,5,'bstock_customers:first_name:Customers_first_name:first_name:V',1276692768,1276692768),(121,18,0,6,'bstock_customers:last_name:Customers_last_name:last_name:V',1276692768,1276692768),(122,18,0,7,'bstock_customers:company_name:Customers_company_name:company_name:V',1276692768,1276692768),(123,18,0,8,'bstock_customers:mobile_number:Customers_mobile_number:mobile_number:V',1276692768,1276692768),(124,19,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693256,1276693256),(125,19,0,1,'bstock_orderpaymentstaxes:tax_amount:SalesOrder_tax_amount:tax_amount:V',1276693256,1276693256),(126,19,0,2,'bstock_orderpaymentstaxes:tax_id:SalesOrder_tax_id:tax_id:I',1276693256,1276693256),(127,20,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693459,1276693459),(128,20,0,1,'bstock_taxtypes:name:SalesOrder_name:name:V',1276693459,1276693459),(129,20,0,2,'bstock_orderpaymentstaxes:tax_amount:SalesOrder_tax_amount:tax_amount:V',1276693459,1276693459),(130,21,0,0,'bstock_orders:id:SalesOrder_id:id:I',1276693749,1276693749),(131,21,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693749,1276693749),(132,21,0,2,'bstock_orderitems:product_id:SalesOrder_product_id:product_id:I',1276693749,1276693749),(133,21,0,3,'bstock_orderitems:quantity:SalesOrder_quantity:quantity:I',1276693749,1276693749),(134,21,0,4,'bstock_orderitems:price:SalesOrder_price:price:V',1276693749,1276693749),(1012,22,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1285053610,1285053610),(662,47,0,6,'bstock_pl_poitems:listprice:DetailedSalesReports_listprice:listprice:I',1280293802,1280293802),(1229,23,0,6,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306316963,1306316963),(1228,23,0,5,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306316963,1306316963),(1227,23,0,4,'bstock_customers:office_phone_number:Customers_office_phone_number:office_phone_number:V',1306316963,1306316963),(1226,23,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306316963,1306316963),(318,24,0,7,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1278674856,1278674856),(317,24,0,6,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1278674856,1278674856),(316,24,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1278674856,1278674856),(315,24,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1278674856,1278674856),(314,24,0,3,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1278674856,1278674856),(313,24,0,2,'bstock_vendors:last_name:Vendors_last_name:last_name:V',1278674856,1278674856),(311,24,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1278674856,1278674856),(158,25,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276767496,1276767496),(159,25,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276767496,1276767496),(160,25,0,2,'bstock_orders:customer_first_name:SalesOrder_customer_first_name:customer_first_name:V',1276767496,1276767496),(161,25,0,3,'bstock_orders:customer_last_name:SalesOrder_customer_last_name:customer_last_name:V',1276767496,1276767496),(162,25,0,4,'bstock_orders:brokerage:SalesOrder_brokerage:brokerage:I',1276767496,1276767496),(163,25,0,5,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276767496,1276767496),(164,25,0,6,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1276767496,1276767496),(165,25,0,7,'bstock_orderstatustypes:status:SalesOrder_name:status:V',1276767496,1276767496),(166,25,0,8,'bstock_customers:company_name:Customers_company_name:company_name:V',1276767496,1276767496),(167,26,0,0,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276773443,1276773443),(168,26,0,1,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276773443,1276773443),(169,26,0,2,'bstock_customers:company_name:CustomersOrderItems_company_name:company_name:V',1276773444,1276773444),(170,26,0,3,'bstock_customers:mobile_number:CustomersOrderItems_mobile_number:mobile_number:V',1276773445,1276773445),(171,26,0,4,'bstock_orderitems:price:CustomersOrderItems_price:price:V',1276773445,1276773445),(172,26,0,5,'bstock_orderitems:profit_amount:CustomersOrderItems_profit_amount:profit_amount:I',1276773445,1276773445),(173,26,0,6,'bstock_orderitems:profit_percent:CustomersOrderItems_profit_percent:profit_percent:I',1276773445,1276773445),(174,27,0,0,'bstock_orderitems:price:CustomersOrderItems_price:price:V',1276775241,1276775241),(175,27,0,1,'bstock_orderitems:profit_amount:CustomersOrderItems_profit_amount:profit_amount:I',1276775241,1276775241),(176,27,0,2,'bstock_orderitems:profit_percent:CustomersOrderItems_profit_percent:profit_percent:I',1276775241,1276775241),(177,27,0,3,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276775241,1276775241),(178,27,0,4,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276775241,1276775241),(179,27,0,5,'bstock_customers:mobile_number:CustomersOrderItems_mobile_number:mobile_number:V',1276775241,1276775241),(180,28,0,0,'bstock_customers:username:CustomersOrderItems_username:username:V',1276780008,1276780008),(181,28,0,1,'bstock_customers:customer_password:CustomersOrderItems_customer_password:customer_password:V',1276780008,1276780008),(182,28,0,2,'bstock_customers:email:CustomersOrderItems_email:email:V',1276780008,1276780008),(183,28,0,3,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276780008,1276780008),(184,28,0,4,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276780008,1276780008),(185,28,0,5,'bstock_customers:company_name:CustomersOrderItems_company_name:company_name:V',1276780008,1276780008),(186,28,0,6,'bstock_customers:office_phone_number:CustomersOrderItems_office_phone_number:office_phone_number:V',1276780008,1276780008),(204,30,0,0,'bstock_customers:email:BestCustomer_email:email:V',1277189888,1277189888),(205,30,0,1,'bstock_customers:first_name:BestCustomer_first_name:first_name:V',1277189888,1277189888),(246,29,0,2,'bstock_customers:last_name:BestCustomer_last_name:last_name:V',1277299808,1277299808),(245,29,0,1,'bstock_customers:first_name:BestCustomer_first_name:first_name:V',1277299808,1277299808),(244,29,0,0,'bstock_customers:email:BestCustomer_email:email:V',1277299808,1277299808),(206,30,0,2,'bstock_customers:last_name:BestCustomer_last_name:last_name:V',1277189888,1277189888),(207,30,0,3,'bstock_customers:company_name:BestCustomer_company_name:company_name:V',1277189888,1277189888),(208,31,0,0,'bstock_vendors:vendor_name:BestVendor_vendor_name:vendor_name:V',1277199611,1277199611),(209,31,0,1,'bstock_vendors:email:BestVendor_email:email:V',1277199612,1277199612),(213,32,0,1,'bstock_vendors:email:BestVendor_email:email:V',1277202389,1277202389),(212,32,0,0,'bstock_vendors:vendor_name:BestVendor_vendor_name:vendor_name:V',1277202388,1277202388),(235,34,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277294934,1277294934),(234,34,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277294934,1277294934),(233,33,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277292443,1277292443),(232,33,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277292443,1277292443),(236,35,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277295055,1277295055),(237,35,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277295055,1277295055),(241,36,0,1,'bstock_pl_poitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277297631,1277297631),(240,36,0,0,'bstock_pl_poitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277297630,1277297630),(242,37,0,0,'bstock_pl_poitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277297943,1277297943),(243,37,0,1,'bstock_pl_poitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277297943,1277297943),(247,29,0,3,'bstock_customers:company_name:BestCustomer_company_name:company_name:V',1277299808,1277299808),(254,39,0,0,'bstock_countries:name:SalesOrder_name:name:V',1277373930,1277373930),(255,40,0,0,'bstock_pl_purchaseorder:id:Ledger_id:id:I',1277803475,1277803475),(1225,23,0,2,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306316963,1306316963),(312,24,0,1,'bstock_vendors:first_name:Vendors_first_name:first_name:V',1278674856,1278674856),(1011,22,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1285053610,1285053610),(1010,22,0,3,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1285053610,1285053610),(1008,22,0,1,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1285053610,1285053610),(509,42,0,0,'trial_balance_entries:particulars:Accounting_particulars:particulars:V',1280208747,1280208747),(1934,41,0,15,'bstock_products:purchase_price_inr:Products_purchase_price_inr:purchase_price_inr:I',1319527257,1319527257),(1933,41,0,14,'bstock_products:piece_price_dollar:Products_piece_price_dollar:piece_price_dollar:I',1319527257,1319527257),(1932,41,0,13,'bstock_products:piece_price_inr:Products_piece_price_inr:piece_price_inr:I',1319527257,1319527257),(510,42,0,1,'trial_balance_entries:debit:Accounting_debit:debit:I',1280208747,1280208747),(511,42,0,2,'trial_balance_entries:credit:Accounting_credit:credit:I',1280208747,1280208747),(512,42,0,3,'trial_balance_entries:created_date:Accounting_created_date:created_date:I',1280208747,1280208747),(529,43,0,7,'bstock_orderitems:profit_percent:DetailedSalesReports_profit_percent:profit_percent:I',1280210777,1280210777),(528,43,0,6,'bstock_orderitems:profit_amount:DetailedSalesReports_profit_amount:profit_amount:I',1280210777,1280210777),(527,43,0,5,'bstock_orderitems:price:DetailedSalesReports_price:price:V',1280210777,1280210777),(526,43,0,4,'bstock_pl_poitems:listprice:DetailedSalesReports_listprice:listprice:I',1280210777,1280210777),(525,43,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280210777,1280210777),(524,43,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280210777,1280210777),(523,43,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280210777,1280210777),(522,43,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280210777,1280210777),(530,43,0,8,'bstock_customers:company_name:DetailedSalesReports_company_name:company_name:V',1280210777,1280210777),(531,43,0,9,'bstock_customers:email:DetailedSalesReports_email:email:V',1280210777,1280210777),(540,44,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280212568,1280212568),(539,44,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280212568,1280212568),(538,44,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280212568,1280212568),(537,44,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280212568,1280212568),(541,44,0,4,'bstock_orderitems:price:DetailedSalesReports_price:price:I',1280212568,1280212568),(542,45,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1280213104,1280213104),(543,45,0,1,'bstock_vendors:vendor_name:Vendors_vendor_name:vendor_name:V',1280213104,1280213104),(544,45,0,2,'bstock_products:shape:PurchaseOrder_shape:shape:V',1280213104,1280213104),(545,45,0,3,'bstock_products:size:PurchaseOrder_size:size:I',1280213104,1280213104),(546,45,0,4,'bstock_products:color:PurchaseOrder_color:color:V',1280213104,1280213104),(547,45,0,5,'bstock_pl_poitems:listprice:PurchaseOrder_listprice:listprice:I',1280213104,1280213104),(548,45,0,6,'bstock_pl_poitems:qty:PurchaseOrder_qty:qty:I',1280213104,1280213104),(971,46,0,5,'bstock_products:qty:StockReports_qty:qty:I',1285048636,1285048636),(970,46,0,4,'bstock_products:color:StockReports_color:color:V',1285048636,1285048636),(969,46,0,3,'bstock_products:size:StockReports_size:size:I',1285048636,1285048636),(968,46,0,2,'bstock_products:shape:StockReports_shape:shape:V',1285048636,1285048636),(967,46,0,1,'bstock_pl_purchaseorder:po_number:StockReports_po_number:po_number:V',1285048636,1285048636),(966,46,0,0,'bstock_customers:company_name:StockReports_company_name:company_name:V',1285048636,1285048636),(1009,22,0,2,'bstock_customers:company_name:Customers_company_name:company_name:V',1285053610,1285053610),(1224,23,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1306316963,1306316963),(1931,41,0,12,'bstock_products:price:Products_price:price:V',1319527257,1319527257),(1930,41,0,11,'bstock_products:symmetry:Products_symmetry:symmetry:V',1319527257,1319527257),(1929,41,0,10,'bstock_products:polish:Products_polish:polish:V',1319527257,1319527257),(1223,23,0,0,'bstock_customers:company_name:Customers_company_name:company_name:V',1306316963,1306316963),(661,47,0,5,'bstock_pl_poitems:qty:DetailedSalesReports_qty:qty:I',1280293802,1280293802),(660,47,0,4,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280293802,1280293802),(659,47,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280293802,1280293802),(658,47,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280293802,1280293802),(657,47,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280293802,1280293802),(656,47,0,0,'bstock_vendors:vendor_name:DetailedSalesReports_vendor_name:vendor_name:V',1280293802,1280293802),(663,47,0,7,'bstock_pl_poitems:created_date:DetailedSalesReports_created_date:created_date:I',1280293802,1280293802),(688,48,0,7,'bstock_pl_poitems:listprice:StockReports_listprice:listprice:I',1281116408,1281116408),(689,48,0,8,'bstock_pl_poitems:created_date:StockReports_created_date:created_date:I',1281116408,1281116408),(687,48,0,6,'bstock_pl_poitems:qty:StockReports_qty:qty:I',1281116408,1281116408),(686,48,0,5,'bstock_products:color:StockReports_color:color:V',1281116408,1281116408),(684,48,0,3,'bstock_products:size:StockReports_size:size:I',1281116408,1281116408),(685,48,0,4,'bstock_products:flourescence:StockReports_flourescence:flourescence:I',1281116408,1281116408),(683,48,0,2,'bstock_products:shape:StockReports_shape:shape:V',1281116408,1281116408),(682,48,0,1,'bstock_products:stoneid:StockReports_stoneid:stoneid:V',1281116408,1281116408),(681,48,0,0,'bstock_pl_poitems:po_number_id:StockReports_po_number_id:po_number_id:I',1281116408,1281116408),(1007,22,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1285053610,1285053610),(1928,41,0,9,'bstock_products:cut:Products_cut:cut:V',1319527257,1319527257),(1927,41,0,8,'bstock_products:lab:Products_lab:lab:V',1319527257,1319527257),(885,49,0,13,'bstock_products:cash_back:Products_cash_back:cash_back:I',1283874192,1283874192),(886,49,0,14,'bstock_products:conversion_rate:Products_conversion_rate:conversion_rate:I',1283874192,1283874192),(887,49,0,15,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1283874192,1283874192),(884,49,0,12,'bstock_products:discount:Products_discount:discount:V',1283874192,1283874192),(881,49,0,9,'bstock_products:flourescence:Products_flourescence:flourescence:I',1283874192,1283874192),(883,49,0,11,'bstock_products:inr_price:Products_inr_price:inr_price:I',1283874192,1283874192),(882,49,0,10,'bstock_products:rap_price:Products_rap_price:rap_price:I',1283874192,1283874192),(880,49,0,8,'bstock_products:clarity:Products_clarity:clarity:V',1283874192,1283874192),(879,49,0,7,'bstock_products:color:Products_color:color:V',1283874192,1283874192),(878,49,0,6,'bstock_products:size:Products_size:size:I',1283874192,1283874192),(877,49,0,5,'bstock_products:shape:Products_shape:shape:V',1283874192,1283874192),(875,49,0,3,'bstock_orderitems:total_in_inr:SalesOrder_total_in_inr:total_in_inr:I',1283874192,1283874192),(876,49,0,4,'bstock_products:purchase_price_inr:Products_purchase_price_inr:purchase_price_inr:I',1283874192,1283874192),(874,49,0,2,'bstock_orders:balance:SalesOrder_balance:balance:I',1283874192,1283874192),(873,49,0,1,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1283874192,1283874192),(872,49,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1283874192,1283874192),(941,50,0,15,'bstock_products:conversion_rate:PurchaseOrder_conversion_rate:conversion_rate:I',1283892330,1283892330),(940,50,0,14,'bstock_products:cash_back:PurchaseOrder_cash_back:cash_back:I',1283892330,1283892330),(939,50,0,13,'bstock_products:discount:PurchaseOrder_discount:discount:V',1283892330,1283892330),(938,50,0,12,'bstock_products:inr_price:PurchaseOrder_inr_price:inr_price:I',1283892330,1283892330),(937,50,0,11,'bstock_products:price:PurchaseOrder_price:price:I',1283892330,1283892330),(935,50,0,9,'bstock_products:clarity:PurchaseOrder_clarity:clarity:V',1283892330,1283892330),(936,50,0,10,'bstock_products:flourescence:PurchaseOrder_flourescence:flourescence:I',1283892330,1283892330),(934,50,0,8,'bstock_products:color:PurchaseOrder_color:color:V',1283892330,1283892330),(932,50,0,6,'bstock_products:shape:PurchaseOrder_shape:shape:V',1283892330,1283892330),(933,50,0,7,'bstock_products:size:PurchaseOrder_size:size:I',1283892330,1283892330),(931,50,0,5,'bstock_products:purchase_price_dollar:Products_purchase_price_dollar:purchase_price_dollar:I',1283892330,1283892330),(930,50,0,4,'bstock_products:purchase_price_inr:PurchaseOrder_purchase_price_inr:purchase_price_inr:I',1283892330,1283892330),(904,51,0,0,'bstock_brokers:broker_name:BestBroker_broker_name:broker_name:V',1283892221,1283892221),(905,51,0,1,'bstock_orderitems:order_id:BestBroker_order_id:order_id:I',1283892221,1283892221),(906,51,0,2,'bstock_orderitems:product_id:BestBroker_product_id:product_id:I',1283892221,1283892221),(907,51,0,3,'bstock_orderitems:brokerage_1:BestBroker_brokerage_1:brokerage_1:I',1283892221,1283892221),(908,51,0,4,'bstock_orderitems:brokerage_1_amt_inr:BestBroker_brokerage_1_amt_inr:brokerage_1_amt_inr:I',1283892221,1283892221),(929,50,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1283892330,1283892330),(928,50,0,2,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1283892330,1283892330),(927,50,0,1,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1283892330,1283892330),(926,50,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1283892330,1283892330),(942,50,0,16,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1283892330,1283892330),(943,52,0,0,'bstock_pl_purchaseorder:id:Ledger_id:id:I',1283895447,1283895447),(1982,69,0,13,'bstock_products:clarity:StockReports_clarity:clarity:V',1325139684,1325139684),(1979,69,0,10,'bstock_products:symmetry:StockReports_symmetry:symmetry:V',1325139684,1325139684),(1980,69,0,11,'bstock_products:polish:StockReports_polish:polish:V',1325139684,1325139684),(1978,69,0,9,'bstock_products:flourescence:StockReports_flourescence:flourescence:I',1325139684,1325139684),(1106,54,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1294057547,1294057547),(1105,54,0,3,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1294057547,1294057547),(1104,54,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1294057547,1294057547),(972,46,0,6,'bstock_pl_poitems:listprice:StockReports_listprice:listprice:I',1285048636,1285048636),(1103,54,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1294057547,1294057547),(1102,54,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1294057547,1294057547),(1100,55,0,4,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1294044165,1294044165),(1099,55,0,3,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1294044165,1294044165),(1098,55,0,2,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1294044165,1294044165),(1097,55,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1294044165,1294044165),(1096,55,0,0,'bstock_orders:id:SalesOrder_id:id:I',1294044165,1294044165),(1975,69,0,6,'bstock_products:no_of_pieces:StockReports_no_of_pieces:no_of_pieces:I',1325139684,1325139684),(1976,69,0,7,'bstock_products:shape:StockReports_shape:shape:V',1325139684,1325139684),(1946,56,0,0,'bstock_karigar:id:KarigarReports_id:id:I',1324992837,1324992837),(1947,56,0,1,'bstock_karigar:karigar_name:KarigarReports_karigar_name:karigar_name:V',1324992837,1324992837),(1926,41,0,7,'bstock_products:flourescence:Products_flourescence:flourescence:I',1319527257,1319527257),(1925,41,0,6,'bstock_products:clarity:Products_clarity:clarity:V',1319527257,1319527257),(1924,41,0,5,'bstock_products:size:Products_size:size:I',1319527257,1319527257),(1923,41,0,4,'bstock_products:shape:Products_shape:shape:V',1319527257,1319527257),(1922,41,0,3,'bstock_products:color:Products_color:color:V',1319527257,1319527257),(1506,57,0,7,'bstock_pl_purchaseorder:net_total_usd:PurchaseOrder_net_total_usd:net_total_usd:I',1306404640,1306404640),(1507,57,0,8,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1306404640,1306404640),(1503,57,0,4,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1306404640,1306404640),(1504,57,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1306404640,1306404640),(1505,57,0,6,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1306404640,1306404640),(1679,58,0,3,'bstock_orders:balance:SalesOrder_balance:balance:I',1306470982,1306470982),(1680,58,0,4,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306470982,1306470982),(1681,58,0,5,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1306470982,1306470982),(1682,58,0,6,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1306470982,1306470982),(1101,55,0,5,'bstock_orders:balance:SalesOrder_balance:balance:I',1294044165,1294044165),(1107,54,0,5,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1294057547,1294057547),(1686,58,0,10,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1306470982,1306470982),(1685,58,0,9,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306470982,1306470982),(1744,59,0,4,'bstock_pl_jhangad:due_date:Approval_due_date:due_date:I',1306746624,1306746624),(1745,59,0,5,'bstock_pl_jhangad:transaction_date:Approval_transaction_date:transaction_date:I',1306746624,1306746624),(1741,59,0,1,'bstock_pl_jhangad:jhangad_number:Approval_jhangad_number:jhangad_number:V',1306746624,1306746624),(1742,59,0,2,'bstock_pl_jhangad:customer_id:Approval_customer_id:customer_id:I',1306746624,1306746624),(1810,60,0,11,'bstock_pl_dailycashentries:payment_mode:CashBookReports_payment_mode:payment_mode:V',1309611592,1309611592),(1806,60,0,7,'bstock_pl_dailycashentries:remarks:CashBookReports_remarks:remarks:V',1309611592,1309611592),(1807,60,0,8,'bstock_pl_dailycashentries:entry_type:CashBookReports_entry_type:entry_type:V',1309611592,1309611592),(1808,60,0,9,'bstock_pl_dailycashentries:amount:CashBookReports_amount:amount:I',1309611592,1309611592),(1809,60,0,10,'bstock_pl_dailycashentries:closing_balance:CashBookReports_closing_balance:closing_balance:I',1309611592,1309611592),(1805,60,0,6,'bstock_bank:account_number:CashBookReports_account_number:account_number:V',1309611592,1309611592),(1843,61,0,7,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1309869722,1309869722),(1842,61,0,6,'bstock_orders:broker_id:SalesOrder_broker_id:broker_id:I',1309869722,1309869722),(1841,61,0,5,'bstock_orders:brokerage_total:SalesOrder_brokerage_total:brokerage_total:I',1309869722,1309869722),(1840,61,0,4,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1309869722,1309869722),(1839,61,0,3,'bstock_orders:brokerage_balance:SalesOrder_brokerage_balance:brokerage_balance:I',1309869722,1309869722),(1838,61,0,2,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1309869722,1309869722),(1725,62,0,14,'bstock_pl_purchaseorder:vendor_id:ProfitLossReports_vendor_id:vendor_id:I',1306473428,1306473428),(1724,62,0,13,'bstock_pl_poitems:po_number_id:ProfitLossReports_po_number_id:po_number_id:I',1306473428,1306473428),(1723,62,0,12,'bstock_orders:dollar_rate:ProfitLossReports_dollar_rate:dollar_rate:I',1306473428,1306473428),(1720,62,0,9,'bstock_orderitems:size:ProfitLossReports_size:size:I',1306473428,1306473428),(1721,62,0,10,'bstock_products:purchase_price_dollar:ProfitLossReports_purchase_price_dollar:purchase_price_dollar:I',1306473428,1306473428),(1722,62,0,11,'bstock_products:purchase_price_inr:ProfitLossReports_purchase_price_inr:purchase_price_inr:I',1306473428,1306473428),(1719,62,0,8,'bstock_orders:brokerage_total:ProfitLossReports_brokerage_total:brokerage_total:I',1306473428,1306473428),(1718,62,0,7,'bstock_orders:customer_id:ProfitLossReports_customer_id:customer_id:I',1306473428,1306473428),(1717,62,0,6,'bstock_orders:broker_id:ProfitLossReports_broker_id:broker_id:I',1306473428,1306473428),(1716,62,0,5,'bstock_orders:transaction_date:ProfitLossReports_transaction_date:transaction_date:I',1306473428,1306473428),(1715,62,0,4,'bstock_orderitems:total_in_inr:ProfitLossReports_total_in_inr:total_in_inr:I',1306473428,1306473428),(1714,62,0,3,'bstock_orderitems:total_in_dollar:ProfitLossReports_total_in_dollar:total_in_dollar:I',1306473428,1306473428),(1683,58,0,7,'bstock_orders:delivery_status_id:SalesOrder_delivery_status_id:delivery_status_id:I',1306470982,1306470982),(1684,58,0,8,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1306470982,1306470982),(1501,57,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1306404640,1306404640),(1743,59,0,3,'bstock_pl_jhangad:net_total:Approval_net_total:net_total:I',1306746624,1306746624),(1832,63,0,8,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1309776381,1309776381),(1831,63,0,7,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1309776381,1309776381),(1830,63,0,6,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1309776381,1309776381),(1829,63,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1309776381,1309776381),(1828,63,0,4,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1309776381,1309776381),(1820,64,0,9,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1309775658,1309775658),(1819,64,0,8,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1309775658,1309775658),(1818,64,0,7,'bstock_orders:delivery_status_id:SalesOrder_delivery_status_id:delivery_status_id:I',1309775658,1309775658),(1732,65,0,0,'bstock_pl_jhangad:id:Approval_id:id:I',1306746599,1306746599),(1733,65,0,1,'bstock_pl_jhangad:jhangad_number:Approval_jhangad_number:jhangad_number:V',1306746599,1306746599),(1734,65,0,2,'bstock_pl_jhangad:customer_id:Approval_customer_id:customer_id:I',1306746599,1306746599),(1735,65,0,3,'bstock_pl_jhangad:net_total:Approval_net_total:net_total:I',1306746599,1306746599),(1736,65,0,4,'bstock_pl_jhangad:due_date:Approval_due_date:due_date:I',1306746599,1306746599),(1737,65,0,5,'bstock_pl_jhangad:transaction_date:Approval_transaction_date:transaction_date:I',1306746599,1306746599),(1738,65,0,6,'bstock_pl_jhangad:status_id:Approval_status_id:status_id:I',1306746599,1306746599),(1746,59,0,6,'bstock_pl_jhangad:status_id:Approval_status_id:status_id:I',1306746624,1306746624),(1740,59,0,0,'bstock_pl_jhangad:id:Approval_id:id:I',1306746624,1306746624),(1739,65,0,7,'bstock_pl_jhangad:broker_id:Approval_broker_id:broker_id:I',1306746599,1306746599),(1817,64,0,6,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1309775658,1309775658),(1816,64,0,5,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1309775658,1309775658),(1827,63,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1309776381,1309776381),(1826,63,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1309776381,1309776381),(1502,57,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1306404640,1306404640),(1499,57,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1306404640,1306404640),(1500,57,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1306404640,1306404640),(1815,64,0,4,'bstock_orders:balance:SalesOrder_balance:balance:I',1309775658,1309775658),(1837,61,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1309869722,1309869722),(1836,61,0,0,'bstock_orders:id:SalesOrder_id:id:I',1309869722,1309869722),(1726,62,0,15,'bstock_pl_poitems:partner_id:ProfitLossReports_partner_id:partner_id:I',1306473428,1306473428),(1825,63,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1309776381,1309776381),(1824,63,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1309776381,1309776381),(1508,57,0,9,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1306404640,1306404640),(1713,62,0,2,'bstock_orderitems:invoice_note:ProfitLossReports_invoice_note:invoice_note:V',1306473428,1306473428),(1711,62,0,0,'bstock_orderitems:id:ProfitLossReports_id:id:I',1306473428,1306473428),(1712,62,0,1,'bstock_orderitems:product_id:ProfitLossReports_product_id:product_id:I',1306473428,1306473428),(1814,64,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1309775658,1309775658),(1813,64,0,2,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1309775658,1309775658),(1678,58,0,2,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306470982,1306470982),(1676,58,0,0,'bstock_orders:id:SalesOrder_id:id:I',1306470982,1306470982),(1677,58,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306470982,1306470982),(1687,58,0,11,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1306470982,1306470982),(1812,64,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1309775658,1309775658),(1811,64,0,0,'bstock_orders:id:SalesOrder_id:id:I',1309775658,1309775658),(1727,62,0,16,'bstock_orderitems:percent_back:ProfitLossReports_percent_back:percent_back:I',1306473428,1306473428),(1728,62,0,17,'bstock_orderitems:aadat:ProfitLossReports_aadat:aadat:I',1306473428,1306473428),(1729,62,0,18,'bstock_orderitems:cash_back:ProfitLossReports_cash_back:cash_back:I',1306473428,1306473428),(1730,62,0,19,'bstock_orderitems:carat_selling_price_usd:ProfitLossReports_carat_selling_price_usd:carat_selling_price_usd:I',1306473428,1306473428),(1731,62,0,20,'bstock_orderitems:carat_selling_price:ProfitLossReports_carat_selling_price:carat_selling_price:I',1306473428,1306473428),(1747,59,0,7,'bstock_pl_jhangad:broker_id:Approval_broker_id:broker_id:I',1306746624,1306746624),(1800,60,0,1,'bstock_customers:company_name:CashBookReports_company_name:company_name:V',1309611592,1309611592),(1801,60,0,2,'bstock_customers:first_name:CashBookReports_first_name:first_name:V',1309611592,1309611592),(1802,60,0,3,'bstock_customers:last_name:CashBookReports_last_name:last_name:V',1309611592,1309611592),(1803,60,0,4,'bstock_angadia:account_name:CashBookReports_account_name:account_name:V',1309611592,1309611592),(1804,60,0,5,'bstock_bank:bank_name:CashBookReports_bank_name:bank_name:V',1309611592,1309611592),(1799,60,0,0,'bstock_pl_dailycashentries:date_timestamp:CashBookReports_date_timestamp:date_timestamp:I',1309611592,1309611592),(1821,64,0,10,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1309775658,1309775658),(1822,64,0,11,'bstock_brokers:broker_name:SalesOrder_broker_name:broker_name:V',1309775658,1309775658),(1823,64,0,12,'bstock_orders:transaction_type_id:SalesOrder_transaction_type_id:transaction_type_id:I',1309775658,1309775658),(1833,63,0,9,'bstock_pl_purchaseorder:net_total_usd:PurchaseOrder_net_total_usd:net_total_usd:I',1309776381,1309776381),(1834,63,0,10,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I',1309776381,1309776381),(1835,63,0,11,'bstock_pl_purchaseorder:transaction_type_id:PurchaseOrder_transaction_type_id:transaction_type_id:I',1309776381,1309776381),(1844,61,0,8,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1309869722,1309869722),(1921,41,0,2,'bstock_products:status:Products_status:status:V',1319527257,1319527257),(1886,67,0,5,'bstock_pl_jhangad_inward:due_date:InwardJhangad_due_date:due_date:I',1310383471,1310383471),(1885,67,0,4,'bstock_pl_jhangad_inward:transaction_date:InwardJhangad_transaction_date:transaction_date:I',1310383471,1310383471),(1873,66,0,4,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1310371732,1310371732),(1872,66,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1310371732,1310371732),(1871,66,0,2,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1310371732,1310371732),(1870,66,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1310371732,1310371732),(1869,66,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1310371732,1310371732),(1884,67,0,3,'bstock_pl_jhangad_inward:karigar_id:InwardJhangad_karigar_id:karigar_id:I',1310383471,1310383471),(1883,67,0,2,'bstock_pl_jhangad_inward:customer_id:InwardJhangad_customer_id:customer_id:I',1310383471,1310383471),(1882,67,0,1,'bstock_pl_jhangad_inward:jhangad_number:InwardJhangad_jhangad_number:jhangad_number:V',1310383471,1310383471),(1881,67,0,0,'bstock_pl_jhangad_inward:id:InwardJhangad_id:id:I',1310383471,1310383471),(1887,67,0,6,'bstock_pl_jhangad_inward:net_total:InwardJhangad_net_total:net_total:I',1310383471,1310383471),(1888,67,0,7,'bstock_pl_jhangad_inward:status_id:InwardJhangad_status_id:status_id:I',1310383471,1310383471),(1977,69,0,8,'bstock_products:size:StockReports_size:size:I',1325139684,1325139684),(1974,69,0,5,'bstock_products:shade:StockReports_shade:shade:V',1325139684,1325139684),(1949,68,0,1,'bstock_karigar:karigar_name:KarigarReports_karigar_name:karigar_name:V',1324993290,1324993290),(1981,69,0,12,'bstock_products:cut:StockReports_cut:cut:V',1325139684,1325139684),(1973,69,0,4,'bstock_products:measurement_in_mm:StockReports_measurement_in_mm:measurement_in_mm:V',1325139684,1325139684),(1948,68,0,0,'bstock_karigar:id:KarigarReports_id:id:I',1324993290,1324993290),(1919,41,0,0,'bstock_products:stoneid:Products_stoneid:stoneid:V',1319527257,1319527257),(1920,41,0,1,'bstock_products:location:Products_location:location:V',1319527257,1319527257),(1935,41,0,16,'bstock_products:purchase_price_dollar:Products_purchase_price_dollar:purchase_price_dollar:I',1319527257,1319527257),(1951,53,0,1,'bstock_karigar:karigar_name:KarigarReports_karigar_name:karigar_name:V',1325053180,1325053180),(1972,69,0,3,'bstock_products:charni_to:StockReports_charni_to:charni_to:V',1325139684,1325139684),(1950,53,0,0,'bstock_karigar:id:KarigarReports_id:id:I',1325053180,1325053180),(1971,69,0,2,'bstock_products:charni_from:StockReports_charni_from:charni_from:V',1325139684,1325139684),(1970,69,0,1,'bstock_products:stoneid:StockReports_stoneid:stoneid:V',1325139684,1325139684),(1969,69,0,0,'bstock_products:id:StockReports_id:id:I',1325139684,1325139684),(1983,69,0,14,'bstock_products:color:StockReports_color:color:V',1325139684,1325139684),(1984,69,0,15,'bstock_products:orignal_qty:StockReports_orignal_qty:orignal_qty:I',1325139684,1325139684);

--
