CREATE TABLE IF NOT EXISTS `trnintpolicydtlitembondsignatories` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `signatory_type` tinyint(1) NOT NULL COMMENT '1 - Principal ; 2 - Co-Signor',
  `cosignor_user_mst_code` bigint(20) NOT NULL,
  `signor_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `tin_no` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `residence_certificate` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `designation` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `issue_date` date NOT NULL,
  `issue_place` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `curr_policy_item_bond_signatories_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitembondsignatoriesindex` (`int_policy_trn_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemdeductibles`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemdeductibles` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_location_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `deductible_mst_code` bigint(20) NOT NULL,
  `deductible_amount` double NOT NULL,
  `deductible_type` tinyint(1) NOT NULL COMMENT '1 - Rated ; 2 - Fixed Amout',
  `deductible_rate` double NOT NULL,
  `curr_policy_item_deductibles_code` bigint(20) NOT NULL,
  `motorcar_towing_amount` double NOT NULL COMMENT 'for motor car only',
  `motorcar_repair_limit` double NOT NULL COMMENT 'for motor car only',
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemdeductiblesindex` (`int_policy_trn_code`,`int_policy_location_dtl_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemfields`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemfields` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `short_name` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `info_code_name` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `description` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `info_codes_mst_code` bigint(20) NOT NULL COMMENT 'for reference only',
  `data_type` int(2) NOT NULL,
  `max_length` int(4) NOT NULL,
  `data_source` tinyint(1) NOT NULL COMMENT '1 - Static ; 2 - Database',
  `data_source_database_name` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `data_source_table_name` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `data_source_value_pair` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `special_conditions` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `special_conditions2` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `info_codes_dtl_code` bigint(20) NOT NULL,
  `parent_info_codes_mst_code` bigint(20) NOT NULL,
  `is_required` tinyint(1) NOT NULL,
  `is_unique` tinyint(1) NOT NULL,
  `display_order` int(3) NOT NULL,
  `memo_field` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `dtl_special_condition1` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `dtl_special_condition2` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `info_codes_arrangement_dtl_code` bigint(20) NOT NULL,
  `row_order` int(4) NOT NULL COMMENT 'row order per line',
  `row_span` int(4) NOT NULL COMMENT 'via span',
  `col_order` int(4) NOT NULL COMMENT 'col order per row',
  `col_span` int(4) NOT NULL,
  `curr_policy_item_field_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemfieldsindex` (`int_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='kasama lahat para future-proof' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemfirecoinsurances`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemfirecoinsurances` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_location_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `coinsurance_reinsurer_mst_code` bigint(20) NOT NULL,
  `coinsurance_amount` double NOT NULL,
  `curr_policy_item_coinsurance_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemfirecoinsurances` (`int_policy_trn_code`,`int_policy_location_dtl_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemmortgagees`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemmortgagees` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_location_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `mortgagee_mst_code` bigint(20) NOT NULL,
  `mortgagee_amount` double NOT NULL,
  `curr_policy_item_mortgagee_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemmortgageesindex` (`int_policy_trn_code`,`int_policy_location_dtl_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemmotorcaraccessories`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemmotorcaraccessories` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `accessories_mst_code` bigint(20) NOT NULL,
  `accessories_amount` double NOT NULL,
  `accessory_amount_type` tinyint(1) NOT NULL COMMENT '1 - NIL 2 - Built-in 3 - Has Amount',
  `curr_policy_item_accessories_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `int_policy_trn_code` (`int_policy_trn_code`),
  KEY `int_policy_item_dtl_code` (`int_policy_item_dtl_code`),
  KEY `dtlitemmotorcaraccessoriesindex` (`int_policy_trn_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitempabeneficiaries`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitempabeneficiaries` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_group_code` bigint(20) NOT NULL,
  `beneficiary_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `gender` varchar(1) COLLATE latin1_general_cs NOT NULL COMMENT 'M/F',
  `civil_status` tinyint(1) NOT NULL,
  `birthday` date NOT NULL,
  `age` int(3) NOT NULL,
  `relationship` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `position_mst_code` bigint(20) NOT NULL,
  `curr_policy_beneficiary_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `position` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitempabeneficiaries` (`int_policy_trn_code`,`int_policy_item_dtl_code`),
  KEY `dtlpaitembeneficiaries2index` (`int_policy_trn_code`,`int_policy_item_group_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitempagroupmembers`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitempagroupmembers` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `group_member_no` int(3) NOT NULL,
  `group_member_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `gender` varchar(1) COLLATE latin1_general_cs NOT NULL COMMENT 'M/F',
  `civil_status` tinyint(1) NOT NULL COMMENT '1 - Single ; 2 - Married ; 3 - Widow/Widower ; 4 - Legally Separated ; 5 - Divorced',
  `birthday` date NOT NULL,
  `age` int(3) NOT NULL,
  `position_mst_code` bigint(20) NOT NULL,
  `amount_covered` double NOT NULL,
  `curr_policy_group_member_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `position` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitempagroupmembersindex` (`int_policy_trn_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemperils`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_location_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `peril_no` int(3) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `peril_type` varchar(1) COLLATE latin1_general_cs NOT NULL COMMENT 'B - Basic ; A - Allied',
  `base_rate` double NOT NULL,
  `fire_tariffs_mst_code` bigint(20) NOT NULL COMMENT 'for Fire',
  `is_prescribed_rate_applied` tinyint(1) NOT NULL,
  `prescribed_rate` double NOT NULL,
  `plan_type_mst_code` bigint(20) NOT NULL,
  `foreign_amount` double NOT NULL COMMENT 'for marine cargo',
  `markup_rate` double NOT NULL COMMENT 'for marine cargo',
  `total_foreign_amount` double NOT NULL COMMENT 'for marine cargo',
  `tsi_amount` double NOT NULL,
  `prem_amount` double NOT NULL,
  `pres_prem_amount` double NOT NULL,
  `net_tsi_amount` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `prev_curr_tsi_amount` double NOT NULL,
  `prev_curr_prem_amount` double NOT NULL,
  `pres_net_prem_amount` double NOT NULL,
  `curr_policy_item_peril_code` bigint(20) NOT NULL COMMENT 'for endorsement',
  `is_surcharge_applicable` tinyint(1) NOT NULL,
  `surcharge_rate` double NOT NULL,
  `surcharge_amount` double NOT NULL,
  `additional_amount` double NOT NULL,
  `ctpl_premium_type_mst_code` bigint(20) NOT NULL,
  `is_each_person` tinyint(1) NOT NULL COMMENT 'FOR PA',
  `no_of_passengers` int(3) NOT NULL COMMENT 'FOR PA',
  `tsi_per_passenger` double NOT NULL COMMENT 'FOR PA',
  `prem_per_passenger` double NOT NULL COMMENT 'FOR PA',
  `net_prem_per_passenger` double NOT NULL COMMENT 'FOR PA',
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `int_policy_trn_code` (`int_policy_trn_code`),
  KEY `int_policy_item_dtl_code` (`int_policy_item_dtl_code`),
  KEY `dtlitemperilsindex` (`int_policy_trn_code`,`int_policy_location_dtl_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemtax`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemtax` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_location_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `taxes_mst_code` bigint(20) NOT NULL,
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `tax_amount` double NOT NULL,
  `tax_rate` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Rated ; 2 - Fixed ; 3 - Tabled',
  `pres_tax_amount` double NOT NULL,
  `curr_policy_item_tax_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemtaxindex` (`int_policy_trn_code`,`int_policy_location_dtl_code`,`int_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Charges per ITEM ' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlitemvalues`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlitemvalues` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `int_policy_item_dtl_code` bigint(20) NOT NULL,
  `int_policy_item_fields_dtl_code` bigint(20) NOT NULL,
  `actual_value` mediumtext COLLATE latin1_general_cs NOT NULL,
  `curr_policy_item_values_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemvaluesindex` (`int_policy_trn_code`,`int_policy_item_dtl_code`,`int_policy_item_fields_dtl_code`),
  KEY `dtlitemvaluesindex2` (`int_policy_item_fields_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='actual value of policy item per field' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtllocationofrisk`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtllocationofrisk` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `location_no` int(3) NOT NULL,
  `country_mst_code` bigint(20) NOT NULL,
  `region_mst_code` bigint(20) NOT NULL,
  `province_mst_code` bigint(20) NOT NULL,
  `city_mst_code` bigint(20) NOT NULL,
  `barangay_mst_code` bigint(20) NOT NULL,
  `district_mst_code` bigint(20) NOT NULL,
  `street_address` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `complete_address` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `district_no` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `block_number` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `block_mst_code` bigint(20) NOT NULL,
  `industry_mst_code` bigint(20) NOT NULL,
  `latitude` double NOT NULL,
  `longitude` double NOT NULL,
  `distance_from_fault_line` double NOT NULL,
  `curr_policy_location_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtllocationofriskindex` (`int_policy_trn_code`),
  KEY `blockcardindex02` (`location_no`,`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`,`barangay_mst_code`),
  KEY `blockcardindex03` (`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`,`barangay_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Location of Risk - For FIRE line only' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlperiltax`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlperiltax` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `taxes_mst_code` bigint(20) NOT NULL,
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `tax_amount` double NOT NULL,
  `tax_rate` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Rated; 2 - Fixed ; 3 - Tabled',
  `pres_tax_amount` double NOT NULL,
  `curr_policy_peril_tax_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlperiltaxindex` (`int_policy_trn_code`,`line_mst_code`,`peril_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='taxes per PERIL' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlremarks`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlremarks` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `sender_user_mst_code` bigint(20) NOT NULL,
  `message_text` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `send_datetime` datetime NOT NULL,
  `notification_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlremarksindex` (`int_policy_trn_code`,`sender_user_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnintpolicydtlwarranties`
--

CREATE TABLE IF NOT EXISTS `trnintpolicydtlwarranties` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `warrant_clause_mst_code` bigint(20) NOT NULL,
  `print_order` int(3) NOT NULL,
  `curr_policy_warranties_code` bigint(20) NOT NULL,
  `warrant_title` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `warrant_text` longtext COLLATE latin1_general_cs NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlwarrantiesindex` (`int_policy_trn_code`,`warrant_clause_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnjournalvoucher`
--

CREATE TABLE IF NOT EXISTS `trnjournalvoucher` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `journal_voucher_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `journal_voucher_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `jv_date` date NOT NULL,
  `currency_mst_code` bigint(20) NOT NULL,
  `exchange_rate` double NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `jv_source` tinyint(1) NOT NULL COMMENT '1 - JV ; 2 - Purchase Journal ; 3 - Sales Journal',
  `is_sysgen` tinyint(1) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `debit_amount` double NOT NULL,
  `credit_amount` double NOT NULL,
  `particulars` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `jv_status` tinyint(1) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `void_booking_year` int(4) NOT NULL,
  `void_booking_period` int(2) NOT NULL,
  `recommended_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approved_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `recommended_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approving_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `transaction_type` tinyint(1) NOT NULL COMMENT '1 - Premium ; 2 - Non-Premium',
  `template_transaction_code` bigint(20) NOT NULL,
  `entry_type` tinyint(1) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `source_type` int(3) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `gl_transaction_type` int(3) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `distribution_share_mst_code` bigint(20) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `general_ledger_trn_code` bigint(20) NOT NULL,
  `production_register_trn_code` bigint(20) NOT NULL,
  `is_inward_treaty` tinyint(1) NOT NULL,
  `is_write_off` tinyint(1) NOT NULL,
  `is_write_off_applied` tinyint(1) NOT NULL,
  `write_off_user_mst_code` bigint(20) NOT NULL,
  `write_off_at` datetime NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `jvindex` (`company_mst_code`,`branch_mst_code`,`booking_year`,`booking_period`,`jv_date`,`jv_status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnjournalvoucherdtlitems`
--

CREATE TABLE IF NOT EXISTS `trnjournalvoucherdtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `journal_voucher_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `normal_balance` tinyint(1) NOT NULL COMMENT '1 - Debit ; 2 - Credit',
  `debit_amount` double NOT NULL,
  `credit_amount` double NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_reference_no` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `item_reference_date` date NOT NULL,
  `breakdown_level` int(1) NOT NULL,
  `is_required_sl` tinyint(1) NOT NULL,
  `is_required_costcenter` tinyint(1) NOT NULL,
  `adjusting_source_impact` tinyint(1) NOT NULL COMMENT '1 - Increase ; 2 - Decrease',
  `adjusting_source_type` tinyint(1) NOT NULL,
  `adjusting_source_transaction_code` bigint(20) NOT NULL,
  `inward_treaty_type` tinyint(1) NOT NULL COMMENT '1 - Premium ; 2 - Commission Income ; 3 - Commission Expense',
  `peril_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `journal_voucher_trn_code` (`journal_voucher_trn_code`),
  KEY `jvdtlitems` (`journal_voucher_trn_code`,`company_mst_code`,`branch_mst_code`,`item_chart_of_accounts_mst_code`,`normal_balance`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnjournalvoucherdtlpolicywriteoff`
--

CREATE TABLE IF NOT EXISTS `trnjournalvoucherdtlpolicywriteoff` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `journal_voucher_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnjournalvoucherdtlsl`
--

CREATE TABLE IF NOT EXISTS `trnjournalvoucherdtlsl` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `journal_voucher_trn_code` bigint(20) NOT NULL,
  `journal_voucher_trn_items_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `subsidiary_ledger_mst_code` bigint(20) NOT NULL,
  `sl_branch_mst_code` bigint(20) NOT NULL,
  `division_mst_code` bigint(20) NOT NULL,
  `department_mst_code` bigint(20) NOT NULL,
  `employee_mst_code` bigint(20) NOT NULL,
  `debit_amount` double NOT NULL,
  `credit_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `journal_voucher_trn_code` (`journal_voucher_trn_code`),
  KEY `journal_voucher_trn_items_code` (`journal_voucher_trn_items_code`),
  KEY `jvdtlslindex` (`journal_voucher_trn_code`,`journal_voucher_trn_items_code`,`company_mst_code`,`branch_mst_code`,`item_chart_of_accounts_mst_code`,`subsidiary_ledger_mst_code`,`sl_branch_mst_code`,`division_mst_code`,`department_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnnewsletter`
--

CREATE TABLE IF NOT EXISTS `trnnewsletter` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `newsletter_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `program_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `email_subject` varchar(100) COLLATE latin1_general_ci NOT NULL,
  `email_user_mst_codes` varchar(5000) COLLATE latin1_general_ci NOT NULL COMMENT 'users to send email',
  `script_send_datetime` datetime NOT NULL,
  `cc_email_user_mst_codes` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `frequency_type` tinyint(4) NOT NULL COMMENT '1 - Daily ; 2 - Weekly ; 3 - Monthly ; 4 - Quarterly',
  `script_timetable` tinyint(1) NOT NULL COMMENT '1 - 8:15am ; 2 - 12:50pm ; 3 - 5:45pm ; 4 - 11:30pm',
  `email_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL COMMENT 'additional remarks in email',
  `weekly_send_day` tinyint(1) NOT NULL,
  `monthly_send_day_ordinal` int(2) NOT NULL,
  `is_active` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=36 ;

--
-- Dumping data for table `trnnewsletter`
--

INSERT INTO `trnnewsletter` (`code`, `newsletter_name`, `program_name`, `email_subject`, `email_user_mst_codes`, `script_send_datetime`, `cc_email_user_mst_codes`, `frequency_type`, `script_timetable`, `email_remarks`, `weekly_send_day`, `monthly_send_day_ordinal`, `is_active`, `remarks`, `created_at`, `updated_at`, `created_user_mst_code`, `updated_user_mst_code`) VALUES
(1, 'Monthly Premium Report', 'newsletter_monthly_premium_report', 'Monthly Premium Report Summary', '70,71,148,185,193,194,195,258,266', '2018-07-01 08:15:00', '', 3, 1, 'Trial Implementation of ABICS Newsletter module. Data and format subject for checking and verification. Data retrieved from actual Production Server.', 0, 2, 2, '', '2018-07-22 12:08:13', '2018-07-26 11:26:45', 69, 69),
(3, 'CRM Reminder Per User', 'newsletter_crm_reminder_per_user', 'CRM Tickets with Deadline', '135,330,309,242,341,339,293,461,374,388,380,483,499,472,430,439,467,530,410,181,378,402,334,187,542,350,511,484,510,533,69,522,486,403,548,480,344,546,323,553,367,528,228,182,396,295,297,289,241,277,434,481,189,460,180,537,348,414,292,151,392,438,301,456,457,357,455,209,451,424,531,490,494,393,433,356,313,408,536,518,157,164,359,420,152,331,558,398,194,545,449,372,538,276,169,441,534,418,462,549,178,502,503,529,471,561,514,516,544,547,384,488,493,473,332,560,394,477,340,143,515,159,524,509,519,500,400,397,482,349,213,369,376,508,557,399,474,405,177,338,282,425,432,245,328,479,470,435,413,377,294,411,453,444,419,268,261,496,501,447,469,539,371,311,555,463,505,280,437,415,406,303,310,478,176,191,385,468,382,450,417,431,162,325,351,409,288,202,512,243,383,466,421,552,317,543,312,491,442,179,459,446,287,296,498,390,386,196,212,495,200,375,314,404,556,391,316,476,532,551,387,507,165,526,347,167,285,454,284,72,487,452,550,427,440,475,497,443,436,70,423,185,379,407,492,358,465,305,458,327,337,286,395,319,195,541,149,540,525,521,401,445,299,559,426,429,190,2,333,353,389,489,329,527,448,504', '2022-07-01 08:17:51', '', 1, 1, 'Data retrieved from actual Production Server.', 0, 0, 1, '', '2018-07-22 12:13:28', '2022-07-01 08:17:51', 69, 2),
(5, 'Weekly Data Entry Summary Per User', 'newsletter_data_entry_summary_per_user', 'Your Weekly Data Entry Summary', '69,228,289,241,189,157,276,178,143,213,177,176,288,243', '2022-03-27 17:45:09', '', 2, 3, 'Data retrieved from actual Production Server.', 7, 0, 2, '', '2018-07-22 12:42:34', '2022-03-30 10:24:49', 69, 69),
(7, 'Weekly Posting Summary Per User', 'newsletter_posting_summary_per_user', 'Your Weekly Posting Summary', '187,157,194,178,213,177,176,185', '2022-03-27 17:45:11', '', 2, 3, 'Data retrieved from actual Production Server.', 7, 0, 2, '', '2018-07-22 15:25:04', '2022-03-30 10:24:42', 69, 69),
(8, 'Weekly Data Entry Overall Summary', 'newsletter_data_entry_overall_summary', 'Weekly Data Entry Summary - All Users', '292,194,70,185,358,286,195', '2022-03-25 17:45:20', '', 2, 3, 'Data retrieved from actual Production Server.', 5, 0, 2, '', '2018-07-25 04:13:56', '2022-03-30 10:24:35', 69, 69),
(9, 'Weekly Posting Overall Summary', 'newsletter_posting_overall_summary', 'Weekly Posting Summary - All Users', '292,194,70,185,358,286,195', '2022-03-25 17:45:35', '', 2, 3, 'Data retrieved from actual Production Server.', 5, 0, 2, '', '2018-07-25 04:16:08', '2022-03-30 10:24:28', 69, 69),
(10, 'CFG Module Pending Complete Detail Listing', 'newsletter_pending_complete_detail_listing', 'CFG Module Pending for Completion of Details', '69,241', '0000-00-00 00:00:00', '', 1, 1, 'Data retrieved from actual Production Server.', 0, 0, 2, '', '2019-10-22 16:00:16', '2019-10-22 16:00:16', 69, 69),
(11, 'CFG Module Pending For Review Listing', 'newsletter_pending_for_review_listing', 'CFG Module Pending for Review', '69,157,176,185', '0000-00-00 00:00:00', '', 1, 1, 'Data retrieved from actual Production Server.', 0, 0, 2, '', '2019-10-22 16:01:56', '2019-10-22 16:01:56', 69, 69),
(12, 'CFG Module Auto Posting of Confirmed', 'newsletter_cfg_module_auto_posting_confirmed', 'CFG Module Auto Posting of Confirmed', '69,157,176,185,194,241,242', '0000-00-00 00:00:00', '', 1, 1, 'Data retrieved from Actual Production Server.', 0, 0, 2, '', '2019-12-12 11:31:59', '2019-12-12 11:41:21', 69, 69),
(13, 'Mancom Direct Production (SEPARATE CRONJOB)', 'newsletter_mancom_direct_production', 'Mancom Direct Production', '69,310,72,70', '0000-00-00 00:00:00', '', 1, 3, 'Mancom Direct Production', 2, 0, 2, '', '2019-12-17 14:41:13', '2020-08-18 10:43:44', 72, 69),
(14, 'Weekly Underwriters Overall Summary', 'newsletter_weekly_underwriters_overall_summary', 'Weekly Underwriters Overall Summary', '69,292,72,195', '2022-03-06 12:50:17', '', 2, 2, 'Data retrieved from actual Production Server. Check Weekly Underwriters Overall Detailed email for details', 7, 0, 2, '', '2020-03-24 10:45:00', '2022-03-30 10:24:13', 69, 69),
(15, 'Weekly Underwriters Report Detailed', 'newsletter_weekly_underwriters_report_detailed', 'Weekly Underwriters Report Detailed', '69,292,72,195', '2022-03-06 12:50:30', '', 2, 2, 'Data retrieved from actual Production Server. Check Weekly Underwriters Overall Summary email for summary', 7, 0, 2, '', '2020-03-24 10:45:40', '2022-03-30 10:23:46', 69, 69),
(16, 'Posted Fully Paid Official Receipt Listing', 'newsletter_posted_fully_paid_officialreceipts', 'Posted Official Receipts (Fully Paid) Listing', '353', '2022-03-30 08:15:28', '69,356,359,159,72', 1, 1, 'Data retrieved from actual Production Server.', 0, 0, 2, '', '2020-09-29 17:39:58', '2022-03-30 10:23:36', 69, 69),
(17, 'Weekly Pending Policies Listing', 'newsletter_weekly_pending_policies_listing', 'Weekly Pending Policies Listing', '292', '2022-03-25 17:45:52', '69,284,72,70,358,286,195', 2, 3, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2020-11-21 13:15:11', '2022-03-30 10:23:17', 69, 69),
(18, 'Weekly DNM Policies Listing', 'newsletter_weekly_dnm_policies_listing', 'Weekly DNM Policies Listing', '292', '2022-03-25 17:45:56', '69,284,72,70,358,286,195', 2, 3, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2020-11-21 13:15:11', '2022-03-30 10:23:11', 69, 69),
(19, 'Weekly Posted Policies Listing', 'newsletter_weekly_posted_policies_listing', 'Weekly Posted Policies Listing', '292', '2022-03-25 17:45:59', '69,284,72,70,358,286,195', 2, 3, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2020-11-21 13:15:11', '2022-03-30 10:23:05', 69, 69),
(20, 'Weekly Disbursement Monitoring', 'newsletter_weekly_disbursement_monitoring', 'Weekly Disbursement Monitoring', '353', '2022-03-27 17:45:15', '69,356,359,159,351,72', 2, 3, 'Data Retrieved from actual Production Server', 7, 0, 2, 'Data Retrieved from actual Production Server', '2020-11-21 13:15:11', '2022-03-30 10:22:59', 69, 69),
(21, 'Weekly Policies with Pending Distribution Listing', 'newsletter_weekly_policies_with_pending_distribution_listing', 'Weekly Policies with Pending Distribution Listing', '292', '2022-03-25 08:15:40', '69,72,70', 2, 1, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2021-01-08 11:23:59', '2022-03-30 10:22:26', 69, 69),
(22, 'Weekly Policies Posted Distribution Listing', 'newsletter_weekly_policies_posted_distribution_listing', 'Weekly Policies Posted Distribution Listing', '70', '2022-03-25 17:46:13', '69,72', 2, 3, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2021-01-08 11:25:36', '2022-03-30 10:22:19', 69, 69),
(23, 'Weekly Policies Cancelled/Spoiled Listing', 'newsletter_weekly_policies_cancelled_spoiled_listing', 'Weekly Policies Cancelled/Spoiled Listing', '70', '2022-03-25 17:46:17', '69,72', 2, 3, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2021-01-08 11:26:49', '2022-03-30 10:22:12', 69, 69),
(24, 'Weekly Quotations Forwarded to Insurance Listing', 'newsletter_weekly_quotations_forwarded_to_issuance_listing', 'Weekly Quotations Forwarded to Insurance Listing', '70', '2022-03-25 17:46:19', '69,72', 2, 3, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2021-01-15 11:15:50', '2022-03-30 10:24:58', 2, 69),
(25, 'Daily Collection and Payment for AMLA', 'newsletter_daily_collection_payment_for_amla', 'Daily Collection and Voucher 500K and Above(AMLA)', '151', '2022-03-30 08:15:31', '69,261,70', 1, 1, 'Data retrieved from actual Production Server.', 0, 0, 2, '', '2021-01-27 17:40:34', '2022-03-30 10:21:55', 202, 69),
(26, 'Weekly All Interims Listing', 'newsletter_weekly_all_interims_listing', 'Weekly All Interims Listing', '70', '2022-03-25 23:44:51', '69', 2, 4, 'Data Retrieved from actual Production Server', 5, 0, 2, 'Data Retrieved from actual Production Server', '2021-02-05 18:28:46', '2022-03-30 10:26:39', 69, 69),
(27, 'Monthly Active Users Report', 'newsletter_monthly_active_users_report', 'Monthly Active Users Report', '277,292,356,261,191,351,196,314,285,284,70,149,299', '2022-07-01 23:31:09', '', 3, 4, 'Data Retrieved from Production Server', 0, 1, 1, 'Data Retrieved from Production Server', '2021-03-23 11:09:41', '2022-07-01 23:31:09', 69, 2),
(28, 'Daily Delivery Receipt On-Delivery Listing', 'newsletter_daily_delivery_receipt_ondelivery_listing', 'Daily Delivery Receipt [For Delivery] Listing', '309', '2022-07-02 08:15:14', '', 1, 1, 'Data retrieved from actual Production Server.', 0, 0, 1, '', '2021-09-23 22:52:59', '2022-07-02 08:15:14', 69, 2),
(29, 'Weekly Open CRM Tickets Listing', 'newsletter_weekly_open_crm_tickets_listing', 'Weekly Open CRM Tickets Listing', '292,356,313,505,351,196,314,285,284,149', '2022-06-26 08:16:43', '', 2, 1, 'Data Retrieved from Production Server', 7, 0, 1, '', '2021-10-15 20:16:56', '2022-06-26 08:16:43', 69, 2),
(30, 'Daily CRM Ticket Policy Auto Close', 'newsletter_daily_crm_ticket_policy_autoclose', 'Daily CRM Ticket Policy Auto Closing Process', '194', '2021-11-09 23:30:31', '69,292,157,72,195', 1, 4, 'Data Retrieved from Production Server', 0, 0, 2, '', '2021-10-15 20:23:38', '2021-11-10 08:34:03', 69, 69),
(31, 'Daily Sales Proposal 5 Day Reminder DNM', 'newsletter_daily_sales_proposal_5_day_reminder_dnm', 'Sales Proposal 5 Day Reminder', '143,152,157,176,177,178,180,181,182,185,187,189,191,194,195,209,213,228,241,242,243,245,277,280,285,286,288,289,292,293,294,295,296,299,301,311,323,325,328,329,330,332,333,337,338,339,341,344,347,348,357,358,367,374,375,376,378,380,385,387,392,393,394,395,396,397,398,399,400,401,402,404,405,406,407,408,409,410,413,415,417,418,419,420,423,424,427,431,432,433,434,435,436,439,440,441,442,444,447,448,449,450,451,453,454,455,456,457,459,460,461,462,463,466,468,469,473,474,475,476,477,478,479,480,481,482,483,486,487,488,489,493,496,499,501,502,507,508,511,524,526,527,528,529,530,531,532,534,536,537,538,541,542,543,545,546,547,548,550,551,552,553,558,559,562,564,566', '2022-07-02 08:15:53', '', 1, 1, 'Data Retrieved from Production Server', 0, 0, 1, '', '2022-04-27 15:40:03', '2022-07-02 08:15:53', 69, 2),
(32, 'Daily Sales Proposal Expired Auto DNM', 'newsletter_daily_sales_proposal_expired_auto_dnm', 'Sales Proposal Expired Auto DNM Processed', '143,152,157,176,177,178,180,181,182,185,187,189,191,194,195,209,213,228,241,242,243,245,277,280,285,286,288,289,292,293,294,295,296,299,301,311,323,325,328,329,330,332,333,337,338,339,341,344,347,348,357,358,367,374,375,376,378,380,385,387,392,393,394,395,396,397,398,399,400,401,402,404,405,406,407,408,409,410,413,415,417,418,419,420,423,424,427,431,432,433,434,435,436,439,440,441,442,444,447,448,449,450,451,453,454,455,456,457,459,460,461,462,463,466,468,469,473,474,475,476,477,478,479,480,481,482,483,486,487,488,489,493,496,499,501,502,507,508,511,524,526,527,528,529,530,531,532,534,536,537,538,541,542,543,545,546,547,548,550,551,552,553,558,559,562,564,566', '2022-07-02 08:16:14', '', 1, 1, 'Data Retrieved from Production Server', 0, 0, 1, '', '2022-04-27 15:45:05', '2022-07-02 08:16:14', 69, 2),
(33, 'Daily Sales Proposal CRM Updating Transactions (Afternoon)', 'newsletter_daily_sales_proposal_update_transactions', 'Daily Sales Proposal Updating Transactions (Afternoon)', '143,152,157,176,177,178,180,181,182,185,187,189,191,194,195,209,213,228,241,242,243,245,277,280,285,286,288,289,292,293,294,295,296,299,301,311,323,325,328,329,330,332,333,337,338,339,341,344,347,348,357,358,367,374,375,376,378,380,385,387,392,393,394,395,396,397,398,399,400,401,402,404,405,406,407,408,409,410,413,415,417,418,419,420,423,424,427,431,432,433,434,435,436,439,440,441,442,444,447,448,449,450,451,453,454,455,456,457,459,460,461,462,463,466,468,469,473,474,475,476,477,478,479,480,481,482,483,486,487,488,489,493,496,499,501,502,507,508,511,524,526,527,528,529,530,531,532,534,536,537,538,541,542,543,545,546,547,548,550,551,552,553,558,559,562,564,566', '2022-07-02 17:50:16', '', 1, 3, 'Data retrieved from Production Server', 0, 0, 1, '', '2022-05-05 22:54:48', '2022-07-02 17:50:16', 69, 2),
(34, 'Daily Sales Proposal CRM Updating Transactions (Noontime)', 'newsletter_daily_sales_proposal_update_transactions', 'Daily Sales Proposal Updating Transactions (Noon)', '143,152,157,176,177,178,180,181,182,185,187,189,191,194,195,209,213,228,241,242,243,245,277,280,285,286,288,289,292,293,294,295,296,299,301,311,323,325,328,329,330,332,333,337,338,339,341,344,347,348,357,358,367,374,375,376,378,380,385,387,392,393,394,395,396,397,398,399,400,401,402,404,405,406,407,408,409,410,413,415,417,418,419,420,423,424,427,431,432,433,434,435,436,439,440,441,442,444,447,448,449,450,451,453,454,455,456,457,459,460,461,462,463,466,468,469,473,474,475,476,477,478,479,480,481,482,483,486,487,488,489,493,496,499,501,502,507,508,511,524,526,527,528,529,530,531,532,534,536,537,538,541,542,543,545,546,547,548,550,551,552,553,558,559,562,564,566', '2022-07-02 13:17:36', '', 1, 2, 'Data retrieved from Production Server', 0, 0, 1, '', '2022-05-07 00:22:06', '2022-07-02 13:17:36', 69, 2),
(35, 'Daily Sales Proposal Acceptance Reminder', 'newsletter_daily_sales_proposal_acceptance_reminder', 'Sales Proposal Acceptance Reminder', '330,339,461,439,530,410,181,486,548,480,344,228,182,396,481,460,180,537,292,392,301,457,357,455,209,424,393,433,408,536,420,152,398,538,418,529,394,477,143,400,397,399,474,294,469,311,463,415,478,325,409,466,459,476,551,507,526,347,285,454,284,487,427,475,436,423,185,407,358,337,401,489,329', '2022-07-02 08:18:16', '', 1, 1, 'Data Retrieved from Production Server', 0, 0, 1, '', '2022-06-08 23:08:07', '2022-07-02 08:18:16', 69, 2);

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

--
-- Table structure for table `trnnotification`
--

CREATE TABLE IF NOT EXISTS `trnnotification` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_mst_code` bigint(20) NOT NULL,
  `notification_datetime` datetime NOT NULL,
  `notification_count` int(3) NOT NULL,
  `notification_link` varchar(350) COLLATE latin1_general_cs NOT NULL,
  `description` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `last_movement_datetime` datetime NOT NULL,
  `notification_type` int(11) NOT NULL,
  `is_active` tinyint(1) NOT NULL,
  `notification_status` tinyint(1) NOT NULL COMMENT '0 - New ; 1- Read',
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `notifindex` (`user_mst_code`,`notification_datetime`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceipts`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceipts` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `bill_to` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `complete_address` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `or_date` date NOT NULL,
  `or_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual OR No',
  `receipt_type` tinyint(1) NOT NULL COMMENT '1 - OFFICIAL RECEIPT ; 2 - ACKNOWLEDGEMENT RECEIPT',
  `or_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `transaction_number` varchar(500) COLLATE latin1_general_cs NOT NULL COMMENT 'TEMPORARY O/R TRANSACTION NUMBER',
  `transaction_sequence` bigint(20) NOT NULL COMMENT 'TEMPORARY O/R TRANSACTION NUMBER SEQUENCE',
  `currency_mst_code` bigint(20) NOT NULL,
  `or_mode` tinyint(1) NOT NULL COMMENT '1 - From A/R Payments ; 2 - Direct O/R',
  `transaction_type` tinyint(1) NOT NULL COMMENT '1 - Trade ; 2 - Non-Trade ; 3 - Premium',
  `transaction_doc_type_mst_code` bigint(20) NOT NULL,
  `deposit_date` date NOT NULL,
  `depository_bank_mst_code` bigint(20) NOT NULL,
  `depository_bank_account_mst_code` bigint(20) NOT NULL,
  `exchange_rate` double NOT NULL,
  `or_status` tinyint(1) NOT NULL,
  `depository_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `is_posted` tinyint(1) NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `is_void` tinyint(1) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `printed_user_mst_code` bigint(20) NOT NULL,
  `print_datetime` datetime NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `void_booking_year` int(4) NOT NULL,
  `void_booking_period` int(2) NOT NULL,
  `is_sysgen` tinyint(1) NOT NULL,
  `overpayment_type` tinyint(1) NOT NULL COMMENT '1 - Credit/Carryover ; 2 - Accounts Payable ; 3 - Miscellaneous Income ; 4 - Miscellaneous Expense',
  `overpayment_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `particulars` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `overpayment_ap_transaction_trn_code` bigint(20) NOT NULL,
  `gross_amount` double NOT NULL,
  `net_of_vat_amount` double NOT NULL,
  `applied_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `wtax_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `creditable_withholding_tax_amount` double NOT NULL,
  `overpayment_amount` double NOT NULL,
  `advanced_commission_amount` double NOT NULL,
  `marketing_expense_amount` double NOT NULL COMMENT 'FOR MARKETING EXPENSE',
  `collection_amount` double NOT NULL,
  `return_applied_amount` double NOT NULL,
  `return_net_amount` double NOT NULL,
  `return_creditable_withholding_tax_amount` double NOT NULL,
  `return_advanced_commission_amount` double NOT NULL,
  `agent_mst_code` bigint(20) NOT NULL,
  `is_issued_commchit` tinyint(1) NOT NULL,
  `commission_chit_trn_code` varchar(5000) COLLATE latin1_general_cs NOT NULL COMMENT 'DEPRECATED PLEASE DONT BASE ON THIS FIELD comma-separated (for multiple agents)',
  `vat_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_type` tinyint(1) NOT NULL COMMENT '1 - Vat Inclusive ; 2 - Vat Exclusive',
  `wtax_rate` double NOT NULL,
  `vat_rate` double NOT NULL,
  `advanced_commission_amount_printout` tinyint(1) NOT NULL COMMENT '0 - dont include | 1 - add | 2 - minus',
  `marketing_expense_amount_printout` tinyint(1) NOT NULL COMMENT '0 - dont include | 1 - add | 2 - minus',
  `is_vat_or` tinyint(1) NOT NULL COMMENT 'Checkbox if VAT O/R only',
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  `cash_receipt_trn_code` bigint(20) NOT NULL COMMENT 'GENERATED CRR CODE FOR LINK UP PURPOSES',
  PRIMARY KEY (`code`),
  KEY `trnorindex1` (`company_mst_code`,`branch_mst_code`,`booking_year`,`booking_period`,`reference_type`,`reference_mst_code`),
  KEY `trnorindex2` (`or_date`,`transaction_number`,`or_no`,`or_status`),
  KEY `or_no` (`or_no`),
  KEY `bill_to` (`bill_to`(767)),
  KEY `particulars` (`particulars`(767))
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlartrans`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlartrans` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `ar_transaction_trn_code` bigint(20) NOT NULL COMMENT 'can be 0 - direct o/r',
  `ar_mode` tinyint(1) NOT NULL COMMENT '1 - A/R ; 2 - Direct',
  `print_order` int(3) NOT NULL,
  `is_net_of_comm` tinyint(1) NOT NULL,
  `collection_mode` tinyint(1) NOT NULL COMMENT '1 - premium ; 2 - others',
  `exchange_rate` double NOT NULL,
  `creditable_withholding_tax_rate` double NOT NULL,
  `creditable_withholding_tax_amount` double NOT NULL,
  `payment_type` tinyint(1) NOT NULL COMMENT '1 - Partial Payment ; 2 - Gross Full Payment',
  `gross_amount` double NOT NULL,
  `net_of_vat_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `wtax_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `balance_amount_due` double NOT NULL,
  `premium_balance_amount_due` double NOT NULL,
  `charges_balance_amount_due` double NOT NULL,
  `applied_amount` double NOT NULL,
  `applied_vat_amount` double NOT NULL,
  `applied_wtax_amount` double NOT NULL,
  `advanced_commission_amount` double NOT NULL,
  `marketing_expense_amount` double NOT NULL COMMENT 'FOR MARKETING EXPENSE',
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_rate` double NOT NULL,
  `wtax_rate` double NOT NULL,
  `is_comm_replenishment_applied` tinyint(1) NOT NULL,
  `commission_replenishment_trn_code` bigint(20) NOT NULL,
  `commission_take_up_type` tinyint(1) NOT NULL COMMENT '0 - n/a (old data) ; 1 - Full Premium ; 2 - Partial Premium',
  `commission_chit_trn_code` bigint(20) NOT NULL COMMENT 'when from auto comm chit',
  `commission_chit_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `official_receipts_trn_code` (`official_receipts_trn_code`),
  KEY `trnordtlartransindex` (`official_receipts_trn_code`,`ar_transaction_trn_code`),
  KEY `arcodeindex` (`ar_transaction_trn_code`),
  KEY `AR_SOA` (`code`,`ar_transaction_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlartransitems`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlartransitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `official_receipts_trn_ar_trans_code` bigint(20) NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `transaction_reference_type` tinyint(1) NOT NULL COMMENT '0 - Manual A/R ; 1 - Peril ; 2 - Charge',
  `transaction_reference_mst_code` bigint(20) NOT NULL,
  `amount_balance` double NOT NULL,
  `vat_amount` double NOT NULL,
  `tax_amount` double NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_reference_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `item_reference_date` date NOT NULL,
  `atc_mst_code` bigint(20) NOT NULL,
  `wht_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `breakdown_level` int(1) NOT NULL,
  `is_required_sl` tinyint(1) NOT NULL,
  `is_required_costcenter` tinyint(1) NOT NULL,
  `item_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `amount_applied` double NOT NULL,
  `applied_vat_amount` double NOT NULL,
  `applied_wht_amount` double NOT NULL,
  `apply_commission` tinyint(1) NOT NULL,
  `commission_rate` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `advanced_commission_amount` double NOT NULL COMMENT 'NET ADVANCED COMMISSION AMOUNT',
  `gross_advanced_commission_amount` double NOT NULL,
  `advanced_commission_vat_amount` double NOT NULL,
  `advanced_commission_wtax_amount` double NOT NULL,
  `parent_commission_rate` double NOT NULL,
  `parent_commission_amount` double NOT NULL,
  `parent_commission_vat_amount` double NOT NULL,
  `parent_commission_wtax_amount` double NOT NULL,
  `parent_net_commission_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `official_receipts_trn_code` (`official_receipts_trn_code`),
  KEY `official_receipts_trn_ar_trans_code` (`official_receipts_trn_ar_trans_code`),
  KEY `trnordtlartransitemsindex` (`official_receipts_trn_code`,`official_receipts_trn_ar_trans_code`,`transaction_reference_type`,`transaction_reference_mst_code`,`item_chart_of_accounts_mst_code`),
  KEY `AR_SOA` (`transaction_reference_mst_code`,`transaction_reference_type`),
  KEY `AS_SOA2` (`official_receipts_trn_ar_trans_code`,`transaction_reference_type`,`transaction_reference_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Per GL code Per AR Tran Per OR' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlartranssl`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlartranssl` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `official_receipts_trn_ar_trans_code` bigint(20) NOT NULL,
  `official_receipts_trn_ar_trans_item_code` bigint(20) NOT NULL,
  `subsidiary_ledger_mst_code` bigint(20) NOT NULL,
  `sl_branch_mst_code` bigint(20) NOT NULL,
  `division_mst_code` bigint(20) NOT NULL,
  `department_mst_code` bigint(20) NOT NULL,
  `employee_mst_code` bigint(20) NOT NULL,
  `sl_amount` double NOT NULL,
  `sl_amount_balance` double NOT NULL,
  `sl_amount_paid` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `official_receipts_trn_code` (`official_receipts_trn_code`),
  KEY `official_receipts_trn_ar_trans_code` (`official_receipts_trn_ar_trans_code`),
  KEY `official_receipts_trn_ar_trans_item_code` (`official_receipts_trn_ar_trans_item_code`),
  KEY `trnordtlartransslindex` (`official_receipts_trn_code`,`official_receipts_trn_ar_trans_code`,`official_receipts_trn_ar_trans_item_code`,`subsidiary_ledger_mst_code`,`sl_branch_mst_code`,`division_mst_code`,`department_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlcollections`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlcollections` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `payment_type` tinyint(1) NOT NULL COMMENT '1 - CASH ; 2 - Check ; 3 - Advanced Payment/Credits',
  `print_order` int(3) NOT NULL,
  `check_name` varchar(250) COLLATE latin1_general_cs NOT NULL,
  `check_bank_mst_code` bigint(50) NOT NULL,
  `check_no` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `check_date` date NOT NULL,
  `check_type_mst_code` bigint(20) NOT NULL,
  `check_bank_branch` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `collection_amount` double NOT NULL,
  `provisionary_receipts_trn_code` bigint(20) NOT NULL,
  `provisionary_receipts_trn_checks_code` bigint(20) NOT NULL,
  `credit_whole_amount` double NOT NULL,
  `credit_memo_trn_code` bigint(20) NOT NULL,
  `is_deposited` tinyint(1) NOT NULL,
  `depository_bank_mst_code` bigint(20) NOT NULL,
  `depository_bank_account_mst_code` bigint(20) NOT NULL,
  `depository_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `deposit_date` date NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `official_receipts_trn_code` (`official_receipts_trn_code`),
  KEY `trnordtlcolindex` (`official_receipts_trn_code`,`payment_type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlfileattachments`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlfileattachments` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `uploaded_file_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `encrypted_uploaded_file_name` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `filetype` varchar(100) COLLATE latin1_general_ci NOT NULL,
  `uploaded_at` datetime NOT NULL,
  `uploaded_user_mst_code` bigint(20) NOT NULL,
  `attachment_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `description` mediumtext COLLATE latin1_general_ci NOT NULL,
  `remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `orattachment` (`official_receipts_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='FOR UPLOADING OF OFFICIAL RECEIPTS ATTACHMENTS' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlreturnaptrans`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlreturnaptrans` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `ap_transaction_trn_code` bigint(20) NOT NULL COMMENT 'can be 0 - direct o/r',
  `ap_mode` tinyint(1) NOT NULL COMMENT '1 - A/P ; 2 - Direct',
  `print_order` int(3) NOT NULL,
  `is_net_of_comm` tinyint(1) NOT NULL,
  `collection_mode` tinyint(1) NOT NULL COMMENT '1 - premium ; 2 - others',
  `exchange_rate` double NOT NULL,
  `creditable_withholding_tax_rate` double NOT NULL,
  `creditable_withholding_tax_amount` double NOT NULL,
  `payment_type` tinyint(1) NOT NULL COMMENT '1 - Partial Payment ; 2 - Gross Full Payment',
  `gross_amount` double NOT NULL,
  `net_of_vat_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `wtax_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `balance_amount_due` double NOT NULL,
  `applied_amount` double NOT NULL,
  `applied_vat_amount` double NOT NULL,
  `applied_wtax_amount` double NOT NULL,
  `advanced_commission_amount` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_rate` double NOT NULL,
  `wtax_rate` double NOT NULL,
  `is_comm_replenishment_applied` tinyint(1) NOT NULL,
  `commission_replenishment_trn_code` bigint(20) NOT NULL,
  `commission_take_up_type` tinyint(1) NOT NULL COMMENT '0 - n/a (old data) ; 1 - Full Premium ; 2 - Partial Premium',
  `commission_chit_trn_code` bigint(20) NOT NULL COMMENT 'when from auto comm chit',
  `commission_chit_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `official_receipts_trn_code` (`official_receipts_trn_code`),
  KEY `trnordtlreturnaptransindex` (`official_receipts_trn_code`,`ap_transaction_trn_code`),
  KEY `apcodeindex` (`ap_transaction_trn_code`),
  KEY `AP_SOA` (`code`,`ap_transaction_trn_code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=13 ;

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

--
-- Table structure for table `trnofficialreceiptsdtlreturnaptransitems`
--

CREATE TABLE IF NOT EXISTS `trnofficialreceiptsdtlreturnaptransitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `official_receipts_trn_return_ap_trans_code` bigint(20) NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `transaction_reference_type` tinyint(1) NOT NULL COMMENT '0 - Manual A/P ; 1 - Peril ; 2 - Charge',
  `transaction_reference_mst_code` bigint(20) NOT NULL,
  `amount_balance` double NOT NULL,
  `vat_amount` double NOT NULL,
  `tax_amount` double NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_reference_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `item_reference_date` date NOT NULL,
  `atc_mst_code` bigint(20) NOT NULL,
  `wht_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `breakdown_level` int(1) NOT NULL,
  `is_required_sl` tinyint(1) NOT NULL,
  `is_required_costcenter` tinyint(1) NOT NULL,
  `item_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `amount_applied` double NOT NULL,
  `applied_vat_amount` double NOT NULL,
  `applied_wht_amount` double NOT NULL,
  `apply_commission` tinyint(1) NOT NULL,
  `commission_rate` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `advanced_commission_amount` double NOT NULL COMMENT 'NET ADVANCED COMMISSION AMOUNT',
  `gross_advanced_commission_amount` double NOT NULL,
  `advanced_commission_vat_amount` double NOT NULL,
  `advanced_commission_wtax_amount` double NOT NULL,
  `parent_commission_rate` double NOT NULL,
  `parent_commission_amount` double NOT NULL,
  `parent_commission_vat_amount` double NOT NULL,
  `parent_commission_wtax_amount` double NOT NULL,
  `parent_net_commission_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `official_receipts_trn_code` (`official_receipts_trn_code`),
  KEY `official_receipts_trn_return_ap_trans_code` (`official_receipts_trn_return_ap_trans_code`),
  KEY `trnordtlreturnaptransitemsindex` (`official_receipts_trn_code`,`official_receipts_trn_return_ap_trans_code`,`transaction_reference_type`,`transaction_reference_mst_code`,`item_chart_of_accounts_mst_code`),
  KEY `AR_SOA` (`transaction_reference_mst_code`,`transaction_reference_type`),
  KEY `AS_SOA2` (`official_receipts_trn_return_ap_trans_code`,`transaction_reference_type`,`transaction_reference_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Per GL code Per AP Tran Per OR' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnordeposits`
--

CREATE TABLE IF NOT EXISTS `trnordeposits` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `payment_type` tinyint(1) NOT NULL COMMENT '1 - Cash ; 2 - Check',
  `or_deposit_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `or_deposit_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `particulars` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `deposit_datetime` date NOT NULL,
  `bank_mst_code` bigint(20) NOT NULL,
  `bank_account_mst_code` bigint(20) NOT NULL,
  `deposit_amount` double NOT NULL,
  `is_posted` tinyint(1) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `is_cleared` tinyint(1) NOT NULL,
  `cleared_amount` double NOT NULL,
  `cleared_user_mst_code` bigint(20) NOT NULL,
  `cleared_datetime` datetime NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `ordeptindex` (`company_mst_code`,`branch_mst_code`,`bank_mst_code`,`bank_account_mst_code`,`or_deposit_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnordepositsdtlchecks`
--

CREATE TABLE IF NOT EXISTS `trnordepositsdtlchecks` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `or_deposits_trn_code` bigint(20) NOT NULL,
  `or_deposits_trn_or_code` bigint(20) NOT NULL,
  `replacing_check_date` date NOT NULL,
  `replacing_payee_name` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `replacing_payment_type` tinyint(1) NOT NULL,
  `replacing_check_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `replacing_check_bank_mst_code` bigint(20) NOT NULL,
  `replacing_check_type_mst_code` bigint(20) NOT NULL,
  `replacing_check_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `or_deposits_trn_code` (`or_deposits_trn_code`),
  KEY `or_deposits_trn_or_code` (`or_deposits_trn_or_code`),
  KEY `trnordeptdtlcheckindex` (`or_deposits_trn_code`,`or_deposits_trn_or_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnordepositsdtlor`
--

CREATE TABLE IF NOT EXISTS `trnordepositsdtlor` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `or_deposits_trn_code` bigint(20) NOT NULL,
  `official_receipts_trn_code` bigint(20) NOT NULL,
  `official_receipts_trn_collection_code` bigint(20) NOT NULL,
  `or_date` date NOT NULL,
  `check_date` date NOT NULL,
  `check_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `check_bank_mst_code` bigint(20) NOT NULL,
  `check_type_mst_code` bigint(20) NOT NULL,
  `collection_amount` double NOT NULL,
  `deposited_amount` double NOT NULL,
  `check_status` tinyint(1) NOT NULL COMMENT '0 - Pending ; 1 - Cleared ; 2 - Redeposit ; 3 - Bounced ; 4 - Replaced',
  `replacing_check_date` date NOT NULL,
  `replacing_payment_type` tinyint(1) NOT NULL COMMENT '1 - Cash ; 2 - Check',
  `replacing_check_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `replacing_check_bank_mst_code` bigint(20) NOT NULL,
  `replacing_check_type_mst_code` bigint(20) NOT NULL,
  `replacing_payee_name` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `payee_name` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `particulars` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `depository_bank_mst_code` bigint(20) NOT NULL,
  `depository_bank_account_mst_code` bigint(20) NOT NULL,
  `depository_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `redeposit_ar_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `is_replaced_already` tinyint(1) NOT NULL,
  `is_redeposit_processed` tinyint(1) NOT NULL,
  `redeposit_orig_or_deposit_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `or_deposits_trn_code` (`or_deposits_trn_code`),
  KEY `trnordeptdtlorindex` (`or_deposits_trn_code`,`official_receipts_trn_code`,`official_receipts_trn_collection_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorderofpayments`
--

CREATE TABLE IF NOT EXISTS `trnorderofpayments` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `op_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `op_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `op_date` date NOT NULL,
  `particulars` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `recommended_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approved_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `is_sysgen` tinyint(1) NOT NULL,
  `request_status` tinyint(1) NOT NULL,
  `printed_user_mst_code` bigint(20) NOT NULL,
  `print_datetime` datetime NOT NULL,
  `recommended_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approving_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `ap_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `trnopindex` (`company_mst_code`,`branch_mst_code`,`request_status`,`op_no`),
  KEY `trnopindex2` (`printed_user_mst_code`),
  KEY `ord1` (`printed_user_mst_code`,`reference_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorderofpaymentsdtlitems`
--

CREATE TABLE IF NOT EXISTS `trnorderofpaymentsdtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `order_of_payments_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `ap_transaction_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `order_of_payments_trn_code` (`order_of_payments_trn_code`),
  KEY `orderofpaymentsitems` (`ap_transaction_mst_code`,`order_of_payments_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicy`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicy` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `endorsement_effectivity_date` date NOT NULL,
  `endorsement_no_of_days` int(3) NOT NULL,
  `reference_policy_booking_year` int(4) NOT NULL,
  `reference_policy_booking_period` int(2) NOT NULL,
  `facultative_placements_trn_codes` varchar(1000) COLLATE latin1_general_cs NOT NULL COMMENT 'MARAMI PAG PER ITEM',
  `facul_types` varchar(1000) COLLATE latin1_general_cs NOT NULL COMMENT 'MARAMI PAG PER ITEM',
  `prev_curr_tsi_amount` double NOT NULL,
  `prev_curr_prem_amount` double NOT NULL,
  `prev_curr_charges_amount` double NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `assured_mst_code` bigint(20) NOT NULL,
  `assured_name` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `assured_address_dtl_code` bigint(20) NOT NULL,
  `country_mst_code` bigint(20) NOT NULL,
  `region_mst_code` bigint(20) NOT NULL,
  `province_mst_code` bigint(20) NOT NULL,
  `city_mst_code` bigint(20) NOT NULL,
  `barangay_mst_code` bigint(20) NOT NULL,
  `street_address` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `complete_address` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `assigned_or_leased_to` varchar(500) COLLATE latin1_general_cs NOT NULL COMMENT 'for fire and motorcar',
  `orig_sequence` bigint(20) NOT NULL,
  `policy_number` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `policy_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `policy_source` tinyint(1) NOT NULL COMMENT '1 - DB ; 2 - RII ; 3 - RIO',
  `policy_type` tinyint(1) NOT NULL COMMENT '1 - Policy/Binder/Quotation/HoldCover ; 2 - Endorsement/Alteration ; 3 - Renewal',
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `interim_status` int(2) NOT NULL,
  `interim_no` varchar(500) COLLATE latin1_general_cs NOT NULL COMMENT 'always sysgen',
  `int_policy_trn_code` bigint(20) NOT NULL,
  `generated_policy_trn_code` bigint(20) NOT NULL,
  `generated_curr_policy_trn_code` bigint(20) NOT NULL,
  `endorsing_curr_policy_trn_code` bigint(20) NOT NULL COMMENT 'endorsing policy no',
  `quotation_orig_policy_trn_code` bigint(20) NOT NULL COMMENT 'if converted from quotation',
  `renewing_curr_policy_trn_code` bigint(20) NOT NULL COMMENT 'if processed from renewals',
  `renewed_curr_policy_trn_code` bigint(20) NOT NULL COMMENT 'TO MAP THE SAID POLICY TO ITS RENEWAL',
  `spoiling_policy_trn_code` bigint(20) NOT NULL COMMENT 'SPOIL RE-ISSUE POLICY DETAILS FROM (FOR S/P)',
  `new_int_policy_trn_code` bigint(20) NOT NULL COMMENT 'TO MAP THIS POLICY TO ITS NEW INTERIM POLICY IF SPOIL RE-ISSUE',
  `revision_counter` int(3) NOT NULL,
  `quotation_days_valid` int(3) NOT NULL,
  `quotation_printing_datetime` datetime NOT NULL,
  `reinstatement_type` tinyint(1) NOT NULL COMMENT '1 - From Current State ; 2 - From Original Policy',
  `document_series_no` int(9) NOT NULL,
  `renewal_no` int(3) NOT NULL COMMENT 'renewal counter',
  `issue_date` date NOT NULL,
  `inception_date` date NOT NULL,
  `expiry_date` date NOT NULL,
  `effectivity_date` date NOT NULL,
  `is_inception_date_tba` tinyint(1) NOT NULL,
  `is_expiry_date_tba` tinyint(1) NOT NULL,
  `industry_mst_code` bigint(20) NOT NULL,
  `spoiling_datetime` datetime NOT NULL,
  `spoiling_user_mst_code` bigint(20) NOT NULL,
  `spoil_remarks` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `spoil_option` tinyint(1) NOT NULL,
  `cancelled_date` datetime NOT NULL,
  `cancelled_user_mst_code` bigint(20) NOT NULL,
  `distribution_status` tinyint(1) NOT NULL COMMENT '1 - Undistributed ; 2 - Distributed and Unposted ; 3 - Distributed and Posted',
  `endorsement_no` int(3) NOT NULL COMMENT 'endorsement counter',
  `endorsement_number` varchar(500) COLLATE latin1_general_cs NOT NULL COMMENT 'THE ACTUAL ENDORSEMENT NUMBER',
  `region_mst_code_2` bigint(20) NOT NULL,
  `policy_status` int(2) NOT NULL,
  `agent_mst_code` bigint(20) NOT NULL,
  `agent_commission_type_flag` tinyint(1) NOT NULL COMMENT '0 - N/A ; 1 - Single Rate ; 2 - All In Rate',
  `parent_agent_mst_code` bigint(20) NOT NULL,
  `source_of_business_mst_code` bigint(20) NOT NULL,
  `agent_tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `agent_vat_rate` double NOT NULL,
  `agent_wtax_rate` double NOT NULL,
  `parent_agent_tax_type` tinyint(1) NOT NULL,
  `parent_agent_vat_rate` double NOT NULL,
  `parent_agent_wtax_rate` double NOT NULL,
  `assured_tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `policy_no_of_days` int(3) NOT NULL,
  `is_one_year` tinyint(4) NOT NULL,
  `solicitor_mst_code` bigint(20) NOT NULL,
  `currency_mst_code` bigint(20) NOT NULL,
  `exchange_rate` double NOT NULL,
  `endorsement_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL COMMENT 'comma-separated',
  `endorsement_text` mediumtext COLLATE latin1_general_cs NOT NULL,
  `recommended_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approved_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `recommended_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approving_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `print_counter` int(3) NOT NULL,
  `print_datetime` datetime NOT NULL COMMENT 'latest',
  `printed_user_mst_code` bigint(20) NOT NULL,
  `tsi_amount` double NOT NULL,
  `prem_amount` double NOT NULL,
  `pres_prem_amount` double NOT NULL,
  `net_tsi_amount` double NOT NULL COMMENT 'for running totals after endorsements/alteration',
  `net_prem_amount` double NOT NULL COMMENT 'for running totals after endorsements/alteration',
  `pres_net_prem_amount` double NOT NULL COMMENT 'for running totals after endorsements/alteration',
  `charges_amount` double NOT NULL,
  `amount_due` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `commission_broker_fee_amount` double NOT NULL,
  `commission_broker_fee_vat_amount` double NOT NULL,
  `commission_net_amount` double NOT NULL,
  `surcharge_amount` double NOT NULL,
  `coc_number` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `coc_number_type` tinyint(1) NOT NULL,
  `authentication_code` varchar(1000) COLLATE latin1_general_cs NOT NULL,
  `terms_of_coverage` mediumtext COLLATE latin1_general_cs NOT NULL,
  `policy_remarks` mediumtext COLLATE latin1_general_cs NOT NULL,
  `searchable_field_1` mediumtext CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT 'DEPENDS PER LINE, COMMA SEPARATED PER ITEM',
  `searchable_field_2` mediumtext CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT 'DEPENDS PER LINE, COMMA SEPARATED PER ITEM',
  `searchable_field_3` mediumtext CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT 'DEPENDS PER LINE, COMMA SEPARATED PER ITEM',
  `is_from_quotation` tinyint(1) NOT NULL,
  `quotation_user_mst_code` bigint(20) NOT NULL,
  `quotation_created_at` datetime NOT NULL,
  `depreciation_rate` double NOT NULL COMMENT 'WHOLE PERCENTAGE NOT YET DIVIDED BY 100',
  `no_claim_bonus_amt` double NOT NULL,
  `depreciation_amt` double NOT NULL,
  `no_claim_bonus_rate` double NOT NULL COMMENT 'WHOLE PERCENTAGE NOT YET DIVIDED BY 100',
  `email_address` varchar(150) COLLATE latin1_general_cs NOT NULL COMMENT 'assured email address',
  `secondary_email_address` mediumtext COLLATE latin1_general_cs NOT NULL COMMENT 'agent/referror/account officer/representative email address',
  `other_email_address` mediumtext COLLATE latin1_general_cs NOT NULL COMMENT 'other email address for cc',
  `cellphone_number` varchar(250) COLLATE latin1_general_cs NOT NULL,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL COMMENT 'FOR CRM TICKET CONNECTION',
  `renewal_type` int(2) NOT NULL,
  `renewal_remarks` mediumtext COLLATE latin1_general_cs NOT NULL,
  `renewal_auto_no_of_days` int(3) NOT NULL,
  `is_different_month_distributed` tinyint(1) NOT NULL,
  `distributed_booking_year` int(4) NOT NULL,
  `distributed_booking_period` int(2) NOT NULL,
  `is_thank_you_letter_sent` tinyint(1) NOT NULL,
  `thank_you_letter_user_mst_code` bigint(20) NOT NULL COMMENT 'user who sent the thank you letter',
  `thank_you_letter_sent_datetime` datetime NOT NULL,
  `is_mortgage_account` tinyint(4) NOT NULL COMMENT '0-no|1-yes - cfg mortgage account',
  `is_mortgage_generate_or` tinyint(4) NOT NULL COMMENT '0-no|1-yes - automatically generate or',
  `referring_branch` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `referring_person` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `referring_branch_code` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `is_open_market_rate` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `origsearchindex` (`assured_name`(767),`policy_number`),
  KEY `origfilterindex` (`policy_source`,`policy_type`,`line_mst_code`,`subline_mst_code`,`updated_user_mst_code`,`assured_mst_code`,`branch_mst_code`,`agent_mst_code`),
  KEY `origcombinedindex` (`policy_source`,`policy_type`,`line_mst_code`,`subline_mst_code`,`updated_user_mst_code`,`assured_mst_code`,`branch_mst_code`,`agent_mst_code`,`assured_name`(767),`policy_number`),
  KEY `roadallyindex` (`inception_date`,`policy_source`,`line_mst_code`,`spoiling_datetime`,`spoiling_user_mst_code`,`remarks`),
  KEY `productionIndex` (`booking_year`,`booking_period`,`policy_source`,`branch_mst_code`,`line_mst_code`,`source_of_business_mst_code`,`spoiling_datetime`),
  KEY `statisticsquery1` (`generated_curr_policy_trn_code`),
  KEY `statisticsquery2` (`endorsing_curr_policy_trn_code`),
  KEY `policynoindex` (`policy_number`),
  KEY `policyindex02` (`branch_mst_code`,`line_mst_code`,`subline_mst_code`,`source_of_business_mst_code`,`parent_agent_mst_code`,`agent_mst_code`,`policy_source`,`booking_year`) USING BTREE,
  KEY `analyticsindex01` (`created_user_mst_code`,`created_at`),
  KEY `blockcardindex01` (`inception_date`,`expiry_date`,`policy_source`,`policy_type`,`spoiling_user_mst_code`) USING BTREE,
  KEY `genweb` (`policy_number`,`coc_number`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlacceptanceinfo`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlacceptanceinfo` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `mother_policy_orig_policy_trn_code` bigint(20) NOT NULL COMMENT 'MOTHER POLICY OF THIS OUTGOING BINDER/ALTERATION (NOT APPLICABLE IN INWARD)',
  `mother_endorsement_orig_policy_trn_code` bigint(20) NOT NULL COMMENT 'MOTHER ENDORSEMENT OF THIS OUTGOING BINDER/ALTERATION (NOT APPLICABLE IN INWARD)',
  `mother_binder_orig_policy_trn_code` bigint(20) NOT NULL COMMENT 'MOTHER BINDER OF THIS REINSURANCE BINDER/ALTERATION (APPLICABLE TO BOTH INWARD OUTGOING)',
  `acceptance_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `acceptance_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `acceptance_date` date NOT NULL,
  `accepted_by` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `reinsurer_mst_code` bigint(20) NOT NULL,
  `reinsurer_tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `reinsurer_vat_rate` double NOT NULL,
  `reinsurer_wtax_rate` double NOT NULL,
  `ceding_policy_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `ceding_endorse_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `ceding_binder_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `date_offered` date NOT NULL,
  `reassured_mst_code` bigint(20) NOT NULL,
  `reassured_name` varchar(1000) COLLATE latin1_general_cs NOT NULL,
  `alteration_advice_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `broker_reinsurer_mst_code` bigint(20) NOT NULL COMMENT 'same masterfile',
  `broker_tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `broker_vat_rate` double NOT NULL,
  `broker_fee_rate` double NOT NULL,
  `reinsurance_tsi_amount` double NOT NULL,
  `reinsurance_prem_amount` double NOT NULL,
  `original_tsi_amount` double NOT NULL,
  `original_prem_amount` double NOT NULL,
  `curr_policy_trn_acceptance_code` bigint(20) NOT NULL,
  `gross_facul_amount` double NOT NULL,
  `facul_share_percentages` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `binder_warranty_payment_term_mst_code` bigint(20) NOT NULL,
  `binder_warranty_no_days` int(3) NOT NULL,
  `payment_premium_warranty_payment_term_mst_code` bigint(20) NOT NULL,
  `payment_premium_warranty_no_days` int(3) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `origacceptanceindex` (`orig_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlbondcollaterals`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlbondcollaterals` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `collateral_no` int(3) NOT NULL,
  `bond_collaterals_mst_code` bigint(20) NOT NULL,
  `collateral_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `collateral_amount` double NOT NULL,
  `issue_date` date NOT NULL,
  `received_date` date NOT NULL,
  `received_by` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `maturity_date` date NOT NULL,
  `release_date` date NOT NULL,
  `renewal` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `curr_policy_bond_collaterals_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlcomm`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlcomm` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `group_no` int(3) NOT NULL,
  `prem_amount` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `broker_fee_amount` double NOT NULL,
  `broker_fee_vat_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `parent_commission_amount` double NOT NULL,
  `parent_commission_vat_amount` double NOT NULL,
  `parent_commission_wtax_amount` double NOT NULL,
  `parent_net_commission_amount` double NOT NULL,
  `is_no_commission` tinyint(1) NOT NULL,
  `no_comm_change_datetime` datetime NOT NULL,
  `no_comm_change_user_mst_code` bigint(20) NOT NULL,
  `curr_policy_comm_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlcommindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`),
  KEY `trnorigpolicydtlcomm_index001` (`orig_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlcommbreakdowns`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlcommbreakdowns` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `orig_policy_trn_comm_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_breakdown_code` bigint(20) NOT NULL,
  `breakdown_ordinal` int(3) NOT NULL,
  `prem_amount` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `broker_fee_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `parent_commission_amount` double NOT NULL,
  `parent_commission_vat_amount` double NOT NULL,
  `parent_commission_wtax_amount` double NOT NULL,
  `parent_net_commission_amount` double NOT NULL,
  `curr_policy_comm_breakdown_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlcommbreakdownsindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`,`orig_policy_trn_comm_code`,`orig_policy_trn_group_breakdown_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlcommbreakdownsperils`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlcommbreakdownsperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `orig_policy_trn_comm_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_breakdown_code` bigint(20) NOT NULL,
  `orig_policy_trn_comm_breakdown_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_breakdown_item_code` bigint(20) NOT NULL,
  `print_order` int(3) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `orig_policy_trn_item_peril_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `commission_rate` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `broker_fee_amount` double NOT NULL,
  `broker_fee_vat_rate` double NOT NULL,
  `broker_fee_vat_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `parent_commission_rate` double NOT NULL,
  `parent_commission_amount` double NOT NULL,
  `parent_commission_vat_amount` double NOT NULL,
  `parent_commission_wtax_amount` double NOT NULL,
  `parent_net_commission_amount` double NOT NULL,
  `curr_policy_comm_breakdown_peril_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlcommbreakdownsperilsindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`,`orig_policy_trn_comm_code`,`orig_policy_trn_group_breakdown_code`,`orig_policy_trn_comm_breakdown_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlcommperils`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlcommperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `orig_policy_trn_comm_code` bigint(20) NOT NULL,
  `print_order` int(3) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `orig_policy_trn_item_peril_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `commission_rate` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `broker_fee_amount` double NOT NULL,
  `broker_fee_vat_rate` double NOT NULL,
  `broker_fee_vat_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `parent_commission_rate` double NOT NULL,
  `parent_commission_amount` double NOT NULL,
  `parent_commission_vat_amount` double NOT NULL,
  `parent_commission_wtax_amount` double NOT NULL,
  `parent_net_commission_amount` double NOT NULL,
  `is_override_commission` tinyint(1) NOT NULL,
  `override_comm_change_datetime` datetime NOT NULL,
  `parent_is_override_commission` tinyint(1) NOT NULL,
  `parent_override_comm_change_datetime` datetime NOT NULL,
  `parent_override_comm_change_user_mst_code` bigint(20) NOT NULL,
  `override_comm_change_user_mst_code` bigint(20) NOT NULL,
  `curr_policy_comm_item_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlcommperilsindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`,`orig_policy_trn_comm_code`,`peril_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlgroupings`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlgroupings` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `group_no` int(3) NOT NULL,
  `prem_amount` double NOT NULL,
  `charge_amount` double NOT NULL,
  `pres_prem_amount` double NOT NULL,
  `pres_charge_amount` double NOT NULL,
  `curr_policy_group_code` bigint(20) NOT NULL,
  `staggered_count` int(3) NOT NULL COMMENT 'no. of A/Rs',
  `particulars` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `payment_term_mst_code` bigint(20) NOT NULL,
  `term_no_days` int(3) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlgroupingsindex` (`orig_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Per group' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlgroupingsbreakdowns`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlgroupingsbreakdowns` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `payment_term_mst_code` bigint(20) NOT NULL,
  `term_no_days` int(3) NOT NULL,
  `due_date` date NOT NULL,
  `breakdown_ordinal` int(3) NOT NULL,
  `maturity_date` date NOT NULL COMMENT 'date of previous breakdown + 1 day',
  `prem_amount` double NOT NULL,
  `charge_amount` double NOT NULL,
  `pres_prem_amount` double NOT NULL,
  `pres_charge_amount` double NOT NULL,
  `breakdown_percentage` double NOT NULL,
  `curr_policy_group_breakdown_code` bigint(20) NOT NULL,
  `particulars` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `invoice_number` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `invoice_number_type` tinyint(1) NOT NULL,
  `invoice_sequence` bigint(20) NOT NULL,
  `document_type` tinyint(1) NOT NULL COMMENT '1 - A/R ; 2 - A/P',
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlgroupingsbreakdownsindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlgroupingsbreakdownsitems`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlgroupingsbreakdownsitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_breakdown_code` bigint(20) NOT NULL,
  `print_order` int(3) NOT NULL,
  `type` tinyint(1) NOT NULL,
  `type_code` bigint(20) NOT NULL COMMENT 'Peril MST or Charges MST',
  `item_amount` double NOT NULL,
  `item_rate` double NOT NULL,
  `item_type` tinyint(1) NOT NULL COMMENT '0 - Peril ; 1 - Rated ; 2 - Fixed ; 3 - Tabled',
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `pres_item_amount` double NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `tsi_amount` double NOT NULL,
  `breakdown_percentage` double NOT NULL,
  `curr_policy_breakdown_item_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlgroupingsbreakdownsitemsindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`,`orig_policy_trn_group_breakdown_code`,`type`,`type_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='breakdown items' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlgroupingsitems`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlgroupingsitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `print_order` int(3) NOT NULL,
  `type` tinyint(1) NOT NULL COMMENT '1 - Peril ; 2 - Charges',
  `type_code` bigint(20) NOT NULL COMMENT 'PerilMST or Charges MST',
  `item_amount` double NOT NULL,
  `item_rate` double NOT NULL,
  `item_type` tinyint(1) NOT NULL COMMENT '0 - Peril ; 1 - Rated ; 2 - Fixed ; 3 - Tabled',
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `pres_item_amount` double NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `tsi_amount` double NOT NULL,
  `curr_policy_group_item_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlgroupingsitemsindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`,`type`,`type_code`),
  KEY `roadallyindex` (`orig_policy_trn_code`,`orig_policy_trn_group_code`,`type`,`type_code`,`item_amount`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlinspection`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlinspection` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `inspection_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `purpose_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `business_type_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `operation_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `construction_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `occupancy_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `protection_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `exposure_external_fire_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `exposure_earthquake_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `assessment_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `block_exposure_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `overall_assessment_remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `remarks` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlinspectionindex` (`orig_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8 COMMENT='FOR FIRE INSPECTION REPORT' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitem`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitem` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_location_dtl_code` bigint(20) NOT NULL COMMENT 'IF FIRE ONLY MAGKAKALAMAN',
  `item_no` int(3) NOT NULL,
  `orig_policy_trn_group_code` bigint(20) NOT NULL,
  `item_name` mediumtext COLLATE latin1_general_cs NOT NULL,
  `item_description` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `group_risk_code` varchar(20) COLLATE latin1_general_cs NOT NULL COMMENT 'FOR BLOCK CARDS / LINE SHEET GROUPING (USER INPUT)',
  `is_each_person` tinyint(1) NOT NULL COMMENT 'For PA',
  `no_of_passengers` int(3) NOT NULL,
  `pa_type` tinyint(1) NOT NULL COMMENT 'For PA ; 1 - Individual ; 2 - Group ; 3 - Travel',
  `table_retention_limits_mst_code` bigint(20) NOT NULL,
  `tsi_amount` double NOT NULL,
  `prem_amount` double NOT NULL,
  `pres_prem_amount` double NOT NULL,
  `net_tsi_amount` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `prev_curr_tsi_amount` double NOT NULL,
  `prev_curr_prem_amount` double NOT NULL,
  `pres_net_prem_amount` double NOT NULL,
  `curr_policy_item_code` bigint(20) NOT NULL COMMENT 'for endorsement',
  `premium_basis` tinyint(1) NOT NULL COMMENT '1 - No of Days / 2 - Short Period Scale',
  `plan_type_mst_code` bigint(20) NOT NULL,
  `is_compre` tinyint(1) NOT NULL,
  `is_ctpl` tinyint(1) NOT NULL,
  `is_special_deductible` tinyint(1) NOT NULL COMMENT 'for deductible',
  `is_for_claims_purposes` tinyint(1) NOT NULL,
  `motorcar_towing_amount` double NOT NULL,
  `motorcar_vehicle_size` tinyint(1) NOT NULL,
  `surcharge_amount` double NOT NULL,
  `motorcar_repair_limit` double NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `facultative_placements_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemindex` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`),
  KEY `StatIndex` (`orig_policy_trn_code`,`item_no`),
  KEY `ABIC888Index` (`orig_policy_trn_code`),
  KEY `blockcardindex2` (`orig_policy_location_dtl_code`,`orig_policy_trn_code`),
  KEY `blockcardindex06` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`,`item_no`) USING BTREE,
  KEY `blockcardindex03` (`orig_policy_location_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitembondsignatories`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitembondsignatories` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `signatory_type` tinyint(1) NOT NULL COMMENT '1 - Principal ; 2 - Co-Signor',
  `cosignor_user_mst_code` bigint(20) NOT NULL,
  `signor_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `tin_no` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `residence_certificate` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `designation` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `issue_date` date NOT NULL,
  `issue_place` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `curr_policy_item_bond_signatories_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitembondsignatoriesindex` (`orig_policy_trn_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemdeductibles`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemdeductibles` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_location_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `deductible_mst_code` bigint(20) NOT NULL,
  `deductible_amount` double NOT NULL,
  `deductible_type` tinyint(1) NOT NULL COMMENT '1 - Rated ; 2 - Fixed Amout',
  `deductible_rate` double NOT NULL,
  `curr_policy_item_deductibles_code` bigint(20) NOT NULL,
  `motorcar_towing_amount` double NOT NULL COMMENT 'for motor car only',
  `motorcar_repair_limit` double NOT NULL COMMENT 'for motor car only',
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemdeductiblesindex` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemfields`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemfields` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `short_name` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `info_code_name` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `description` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `info_codes_mst_code` bigint(20) NOT NULL COMMENT 'for reference only',
  `data_type` int(2) NOT NULL,
  `max_length` int(4) NOT NULL,
  `data_source` tinyint(1) NOT NULL COMMENT '1 - Static ; 2 - Database',
  `data_source_database_name` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `data_source_table_name` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `data_source_value_pair` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `special_conditions` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `special_conditions2` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `info_codes_dtl_code` bigint(20) NOT NULL,
  `parent_info_codes_mst_code` bigint(20) NOT NULL,
  `is_required` tinyint(1) NOT NULL,
  `is_unique` tinyint(1) NOT NULL,
  `display_order` int(3) NOT NULL,
  `memo_field` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `dtl_special_condition1` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `dtl_special_condition2` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `info_codes_arrangement_dtl_code` bigint(20) NOT NULL,
  `row_order` int(4) NOT NULL COMMENT 'row order per line',
  `row_span` int(4) NOT NULL COMMENT 'via span',
  `col_order` int(4) NOT NULL COMMENT 'col order per row',
  `col_span` int(4) NOT NULL,
  `curr_policy_item_field_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemfieldsindex` (`orig_policy_trn_code`),
  KEY `dtlitemfieldsinfocodesindex` (`info_codes_mst_code`,`orig_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='kasama lahat para future-proof' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemfirecoinsurances`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemfirecoinsurances` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_location_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `coinsurance_reinsurer_mst_code` bigint(20) NOT NULL,
  `coinsurance_amount` double NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemfirecoinsurances` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemmortgagees`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemmortgagees` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_location_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `mortgagee_mst_code` bigint(20) NOT NULL,
  `mortgagee_amount` double NOT NULL,
  `curr_policy_item_mortgagee_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemmortgageesindex` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemmotorcaraccessories`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemmotorcaraccessories` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `accessories_mst_code` bigint(20) NOT NULL,
  `accessories_amount` double NOT NULL,
  `accessory_amount_type` tinyint(1) NOT NULL COMMENT '1 - NIL 2 - Built-in 3 - Has Amount',
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemmotorcaraccessoriesindex` (`orig_policy_trn_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitempabeneficiaries`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitempabeneficiaries` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_group_code` bigint(20) NOT NULL,
  `beneficiary_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `gender` varchar(1) COLLATE latin1_general_cs NOT NULL COMMENT 'M/F',
  `civil_status` tinyint(1) NOT NULL,
  `birthday` date NOT NULL,
  `age` int(3) NOT NULL,
  `relationship` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `position_mst_code` bigint(20) NOT NULL,
  `curr_policy_beneficiary_code` bigint(20) NOT NULL,
  `position` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitempabeneficiaries` (`orig_policy_trn_code`,`orig_policy_item_dtl_code`),
  KEY `dtlpaitembeneficiaries2index` (`orig_policy_trn_code`,`orig_policy_item_group_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitempagroupmembers`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitempagroupmembers` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `group_member_no` int(3) NOT NULL,
  `group_member_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `gender` varchar(1) COLLATE latin1_general_cs NOT NULL COMMENT 'M/F',
  `civil_status` tinyint(1) NOT NULL COMMENT '1 - Single ; 2 - Married ; 3 - Widow/Widower ; 4 - Legally Separated ; 5 - Divorced',
  `birthday` date NOT NULL,
  `age` int(3) NOT NULL,
  `position_mst_code` bigint(20) NOT NULL,
  `amount_covered` double NOT NULL,
  `curr_policy_group_member_code` bigint(20) NOT NULL,
  `position` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitempagroupmembersindex` (`orig_policy_trn_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemperils`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_location_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `peril_no` int(3) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `peril_type` varchar(1) COLLATE latin1_general_cs NOT NULL COMMENT 'B - Basic ; A - Allied',
  `base_rate` double NOT NULL,
  `fire_tariffs_mst_code` bigint(20) NOT NULL COMMENT 'for Fire',
  `is_prescribed_rate_applied` tinyint(1) NOT NULL,
  `prescribed_rate` double NOT NULL,
  `plan_type_mst_code` bigint(20) NOT NULL,
  `foreign_amount` double NOT NULL COMMENT 'for marine cargo',
  `markup_rate` double NOT NULL COMMENT 'for marine cargo',
  `total_foreign_amount` double NOT NULL COMMENT 'for marine cargo',
  `tsi_amount` double NOT NULL,
  `prem_amount` double NOT NULL,
  `pres_prem_amount` double NOT NULL,
  `net_tsi_amount` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `prev_curr_tsi_amount` double NOT NULL,
  `prev_curr_prem_amount` double NOT NULL,
  `pres_net_prem_amount` double NOT NULL,
  `curr_policy_item_peril_code` bigint(20) NOT NULL COMMENT 'for endorsement',
  `is_surcharge_applicable` tinyint(1) NOT NULL,
  `surcharge_rate` double NOT NULL,
  `surcharge_amount` double NOT NULL,
  `additional_amount` double NOT NULL,
  `ctpl_premium_type_mst_code` bigint(20) NOT NULL,
  `is_each_person` tinyint(1) NOT NULL COMMENT 'FOR PA',
  `no_of_passengers` int(3) NOT NULL COMMENT 'FOR PA',
  `tsi_per_passenger` double NOT NULL COMMENT 'FOR PA',
  `prem_per_passenger` double NOT NULL,
  `net_prem_per_passenger` double NOT NULL COMMENT 'FOR PA',
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemperilsindex` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemtax`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemtax` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_location_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `taxes_mst_code` bigint(20) NOT NULL,
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `tax_amount` double NOT NULL,
  `tax_rate` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Rated ; 2 - Fixed ; 3 - Tabled',
  `pres_tax_amount` double NOT NULL,
  `curr_policy_item_tax_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemtaxindex` (`orig_policy_trn_code`,`orig_policy_location_dtl_code`,`orig_policy_item_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Charges per ITEM ' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlitemvalues`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlitemvalues` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_item_dtl_code` bigint(20) NOT NULL,
  `orig_policy_item_fields_dtl_code` bigint(20) NOT NULL,
  `actual_value` mediumtext COLLATE latin1_general_cs NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlitemvaluesindex` (`orig_policy_trn_code`,`orig_policy_item_dtl_code`,`orig_policy_item_fields_dtl_code`),
  KEY `dtlitemvaluesfieldsindex` (`orig_policy_item_fields_dtl_code`),
  KEY `dtlitemvaluesfieldsindex02` (`orig_policy_trn_code`,`orig_policy_item_fields_dtl_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='actual value of policy item per field' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtllocationofrisk`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtllocationofrisk` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `location_no` int(3) NOT NULL,
  `country_mst_code` bigint(20) NOT NULL,
  `region_mst_code` bigint(20) NOT NULL,
  `province_mst_code` bigint(20) NOT NULL,
  `city_mst_code` bigint(20) NOT NULL,
  `district_mst_code` bigint(20) NOT NULL,
  `barangay_mst_code` bigint(20) NOT NULL,
  `street_address` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `complete_address` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `district_no` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `block_number` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `block_mst_code` bigint(20) NOT NULL,
  `industry_mst_code` bigint(20) NOT NULL,
  `latitude` double NOT NULL,
  `longitude` double NOT NULL,
  `distance_from_fault_line` double NOT NULL,
  `curr_policy_location_code` bigint(20) NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtllocationofriskindex` (`orig_policy_trn_code`),
  KEY `blockcardindex01` (`orig_policy_trn_code`,`location_no`),
  KEY `blockcardindex02` (`location_no`,`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`) USING BTREE,
  KEY `blockcard03` (`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`,`barangay_mst_code`,`block_mst_code`),
  KEY `blockcard04` (`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`,`block_number`),
  KEY `blockcard05` (`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`,`block_number`,`block_mst_code`),
  KEY `blockcard06` (`country_mst_code`,`region_mst_code`,`province_mst_code`,`city_mst_code`,`block_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Location of Risk - For FIRE line only' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlperiltax`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlperiltax` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `taxes_mst_code` bigint(20) NOT NULL,
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `tax_amount` double NOT NULL,
  `tax_rate` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Rated; 2 - Fixed ; 3 - Tabled',
  `pres_tax_amount` double NOT NULL,
  `curr_policy_peril_tax_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlperiltaxindex` (`orig_policy_trn_code`,`line_mst_code`,`peril_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='taxes per PERIL' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlremarks`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlremarks` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `sender_user_mst_code` bigint(20) NOT NULL,
  `message_text` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `send_datetime` datetime NOT NULL,
  `notification_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlremarksindex` (`orig_policy_trn_code`,`sender_user_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnorigpolicydtlwarranties`
--

CREATE TABLE IF NOT EXISTS `trnorigpolicydtlwarranties` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `warrant_clause_mst_code` bigint(20) NOT NULL,
  `print_order` int(3) NOT NULL,
  `curr_policy_warranties_code` bigint(20) NOT NULL,
  `warrant_title` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `warrant_text` longtext COLLATE latin1_general_cs NOT NULL,
  `is_for_deletion` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlwarrantiesindex` (`orig_policy_trn_code`,`warrant_clause_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnoutstandinglist`
--

CREATE TABLE IF NOT EXISTS `trnoutstandinglist` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `outstanding_list_no` varchar(100) COLLATE latin1_general_cs NOT NULL,
  `agent_mst_code` bigint(20) NOT NULL,
  `group_by` tinyint(1) NOT NULL COMMENT '1 - by agent ; 2 - by assured',
  `sort_by` tinyint(1) NOT NULL COMMENT '1 - Policy number ; 2 - AR Date ; 3 - Policy Inception Date',
  `no_of_ar_included` int(4) NOT NULL,
  `total_balance_amount_due` double NOT NULL,
  `total_amount_due` double NOT NULL,
  `extra_remarks` mediumtext COLLATE latin1_general_cs NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=2 ;

--
-- Dumping data for table `trnoutstandinglist`
--

INSERT INTO `trnoutstandinglist` (`code`, `outstanding_list_no`, `agent_mst_code`, `group_by`, `sort_by`, `no_of_ar_included`, `total_balance_amount_due`, `total_amount_due`, `extra_remarks`, `remarks`, `created_at`, `updated_at`, `created_user_mst_code`, `updated_user_mst_code`) VALUES
(1, 'HII-2017-09-000001', 102343, 1, 2, 5, 12573.84, 12573.84, '', '', '2017-09-27 16:17:54', '2017-09-27 16:18:06', 69, 69);

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

--
-- Table structure for table `trnoutstandinglistdtlitems`
--

CREATE TABLE IF NOT EXISTS `trnoutstandinglistdtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `outstanding_list_trn_code` bigint(20) NOT NULL,
  `ar_transaction_trn_code` bigint(20) NOT NULL,
  `amount_to_show` tinyint(1) NOT NULL COMMENT '1 - Balance ;  2 - Whole Amount',
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpolbinacttracker`
--

CREATE TABLE IF NOT EXISTS `trnpolbinacttracker` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `int_policy_trn_code` bigint(20) NOT NULL,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `assured_mst_code` bigint(20) NOT NULL,
  `assured_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `activity_tracker_number` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL,
  `parent_agent_mst_code` bigint(20) NOT NULL,
  `agent_mst_code` bigint(20) NOT NULL,
  `activity_tracker_status` tinyint(1) NOT NULL,
  `interim_no` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `policy_number` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `endorsement_number` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `policy_source` tinyint(1) NOT NULL,
  `reinsurer_mst_code` bigint(20) NOT NULL,
  `other_remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `tracker_current_state` tinyint(1) NOT NULL,
  `tracker_current_state_datetime` datetime NOT NULL,
  `tracker_current_state_user_mst_code` bigint(20) NOT NULL,
  `tracking_open_datetime` datetime NOT NULL,
  `tracking_open_user_mst_code` bigint(20) NOT NULL,
  `cancelled_datetime` datetime NOT NULL,
  `cancelled_user_mst_code` bigint(20) NOT NULL,
  `cancelled_remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `tracking_close_datetime` datetime NOT NULL,
  `tracking_close_remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `tracking_close_user_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpolbinacttrackerdtlcomm`
--

CREATE TABLE IF NOT EXISTS `trnpolbinacttrackerdtlcomm` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `polbin_act_tracker_trn_code` bigint(20) NOT NULL,
  `is_sysgen` tinyint(1) NOT NULL,
  `description` mediumtext COLLATE latin1_general_ci NOT NULL,
  `department_user_mst_code` bigint(20) NOT NULL,
  `comm_user_mst_code` bigint(20) NOT NULL,
  `reply_to_user_mst_code` bigint(20) NOT NULL,
  `polbin_act_tracker_activity_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpolbinacttrackerdtltrail`
--

CREATE TABLE IF NOT EXISTS `trnpolbinacttrackerdtltrail` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `polbin_act_tracker_trn_code` bigint(20) NOT NULL,
  `polbin_act_tracker_activity_mst_code` bigint(20) NOT NULL,
  `tracker_current_state` tinyint(1) NOT NULL,
  `department_mst_code` bigint(20) NOT NULL,
  `datetime_in` datetime NOT NULL,
  `documents_received` mediumtext COLLATE latin1_general_ci NOT NULL,
  `action_done` mediumtext COLLATE latin1_general_ci NOT NULL,
  `finish_processed_user_mst_code` bigint(20) NOT NULL,
  `datetime_out` datetime NOT NULL,
  `datetime_received` datetime NOT NULL,
  `turnover_processed_user_mst_code` bigint(20) NOT NULL,
  `turnover_polbin_act_tracker_trn_code` bigint(20) NOT NULL,
  `turnover_receiver_user_mst_code` bigint(20) NOT NULL,
  `receiver_user_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregister`
--

CREATE TABLE IF NOT EXISTS `trnproductionregister` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `production_register_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `production_register_number_type` tinyint(1) NOT NULL,
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `production_register_date` date NOT NULL,
  `currency_mst_code` bigint(20) NOT NULL,
  `exchange_rate` double NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `total_amount` double NOT NULL,
  `particulars` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `production_register_status` tinyint(1) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `void_booking_year` int(4) NOT NULL,
  `void_booking_period` int(2) NOT NULL,
  `transaction_type` tinyint(1) NOT NULL COMMENT '1 - Premium ; 2- Non-Premium (entry setup)',
  `entry_type` tinyint(1) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `source_type` tinyint(1) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `gl_transaction_type` tinyint(1) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `distribution_share_mst_code` tinyint(1) NOT NULL COMMENT 'G/L ENTRY SETUP BACKEND ONLY',
  `is_retention_data` tinyint(1) NOT NULL COMMENT 'if retention data detected do not post in jv',
  `journal_voucher_trn_code` bigint(20) NOT NULL COMMENT 'generated journal voucher',
  `general_ledger_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodreggenerationindex` (`entry_type`,`line_mst_code`,`subline_mst_code`,`source_type`,`gl_transaction_type`,`distribution_share_mst_code`,`branch_mst_code`,`company_mst_code`,`booking_year`,`booking_period`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlperils`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `type` tinyint(1) NOT NULL COMMENT '1 - peril ; 2 - charges',
  `type_mst_code` bigint(20) NOT NULL,
  `debit_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `credit_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `debit_amount` double NOT NULL,
  `credit_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlperilsindex` (`production_register_trn_code`,`type`,`type_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='BREAKDOWN OF WHOLE PER PERIL (TO BE USED WHEN POSTING TO J/V)' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlpolicy`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlpolicy` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `policy_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `assured_mst_code` bigint(20) NOT NULL,
  `policy_source` tinyint(1) NOT NULL,
  `policy_type` tinyint(1) NOT NULL,
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `issue_date` date NOT NULL,
  `inception_date` date NOT NULL,
  `expiry_date` date NOT NULL,
  `endorsement_effectivity_date` date NOT NULL,
  `is_inception_date_tba` tinyint(1) NOT NULL,
  `is_expiry_date_tba` tinyint(1) NOT NULL,
  `industry_mst_code` bigint(20) NOT NULL,
  `agent_mst_code` bigint(20) NOT NULL,
  `agent_commission_type_flag` tinyint(1) NOT NULL COMMENT '0 - N/A ; 1 - Single Rate ; 2 - All In Rate',
  `reinsurer_mst_code` bigint(20) NOT NULL COMMENT 'IF RI INWARD OR OUTWARD',
  `parent_agent_mst_code` bigint(20) NOT NULL,
  `policy_no_of_days` int(3) NOT NULL,
  `currency_mst_code` bigint(20) NOT NULL,
  `exchange_rate` double NOT NULL,
  `tsi_amount` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `charges_amount` double NOT NULL,
  `amount_due` double NOT NULL,
  `surcharge_amount` double NOT NULL,
  `document_types` varchar(5000) COLLATE latin1_general_ci NOT NULL COMMENT '1 - A/R ; 2 - A/P -- comma separated',
  `ar_transaction_trn_codes` varchar(5000) COLLATE latin1_general_ci NOT NULL COMMENT 'comma-separated; AR OR AP TRANSACTION CODE',
  `transferred_production_register_trn_code` bigint(20) NOT NULL COMMENT 'IF EXCLUDED FROM HERE upon posting, PUT THE NEW PROD REG INTERNAL CODE',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlpolicy` (`production_register_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='BREAKDOWN PER POLICY' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlpolicygroupings`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlpolicygroupings` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `production_register_policy_trn_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `charge_amount` double NOT NULL,
  `due_date` date NOT NULL,
  `document_type` tinyint(1) NOT NULL COMMENT '1 - A/R ; 2 - A/P',
  `ar_transaction_trn_code` bigint(20) NOT NULL COMMENT 'A/R or A/P internal code',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlpolicygroupingsindex` (`production_register_trn_code`,`production_register_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlpolicygroupingsitems`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlpolicygroupingsitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `production_register_policy_trn_code` bigint(20) NOT NULL,
  `production_register_policy_groupings_trn_code` bigint(20) NOT NULL,
  `type` tinyint(1) NOT NULL,
  `type_mst_code` bigint(20) NOT NULL,
  `item_amount` double NOT NULL,
  `item_rate` double NOT NULL,
  `item_type` tinyint(1) NOT NULL COMMENT '0 - Peril ; 1 - Rated ; 2 - Fixed ;  3 - Tabled',
  `tsi_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlpolicygroupingsitemsindex` (`production_register_trn_code`,`production_register_policy_trn_code`,`production_register_policy_groupings_trn_code`,`type`,`type_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='PER GROUPING ITEM BREAKDOWN' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlpolicyitems`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlpolicyitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `production_register_policy_trn_code` bigint(20) NOT NULL,
  `item_no` int(3) NOT NULL,
  `item_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `tsi_amount` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `charges_amount` double NOT NULL,
  `surcharge_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlpolicyitems` (`production_register_trn_code`,`production_register_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlpolicyitemscharges`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlpolicyitemscharges` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `production_register_policy_trn_code` bigint(20) NOT NULL,
  `production_register_policy_items_trn_code` bigint(20) NOT NULL,
  `taxes_mst_code` bigint(20) NOT NULL,
  `tax_charges_mst_code` bigint(20) NOT NULL,
  `tax_amount` double NOT NULL,
  `tax_rate` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - rated ; 2 - fixed ; 3 - tabled',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlpolicyitemscharges` (`production_register_trn_code`,`production_register_policy_trn_code`,`production_register_policy_items_trn_code`),
  KEY `prodregindex2` (`production_register_policy_trn_code`,`taxes_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='CHARGES BREAKDOWN PER ITEM' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnproductionregisterdtlpolicyitemsperils`
--

CREATE TABLE IF NOT EXISTS `trnproductionregisterdtlpolicyitemsperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `production_register_trn_code` bigint(20) NOT NULL,
  `production_register_policy_trn_code` bigint(20) NOT NULL,
  `production_register_policy_items_trn_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `peril_type` varchar(1) COLLATE latin1_general_ci NOT NULL COMMENT 'B - Basic ; A - Allied',
  `base_rate` double NOT NULL,
  `tsi_amount` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `surcharge_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `prodregdtlpolicyitemsperilsindex` (`production_register_trn_code`,`production_register_policy_trn_code`,`production_register_policy_items_trn_code`),
  KEY `prodregindex` (`production_register_policy_trn_code`,`peril_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='PER ITEM PERIL BREAKDOWN' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnprovisionaryreceipts`
--

CREATE TABLE IF NOT EXISTS `trnprovisionaryreceipts` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `prefix` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `suffix` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `current_series_no` varchar(30) COLLATE latin1_general_cs NOT NULL,
  `pr_no` varchar(130) COLLATE latin1_general_cs NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `check_no` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `check_type_mst_code` bigint(20) NOT NULL,
  `check_date` date NOT NULL,
  `check_bank_mst_code` bigint(20) NOT NULL,
  `check_bank_branch` varchar(150) COLLATE latin1_general_cs NOT NULL,
  `check_amount` double NOT NULL,
  `check_status` tinyint(1) NOT NULL COMMENT '0 - New ; 1 - Hold ; 2 - Cancelled ; 3 - Recalled ; 4 - Posted',
  `is_posted` tinyint(1) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `is_applied` tinyint(1) NOT NULL,
  `is_cancelled` tinyint(1) NOT NULL,
  `cancelled_user_mst_code` bigint(20) NOT NULL,
  `cancel_datetime` datetime NOT NULL,
  `pr_date` date NOT NULL,
  `payee_reference_mst_code` bigint(20) NOT NULL,
  `payee_reference_type` int(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `trnprindex` (`company_mst_code`,`branch_mst_code`,`current_series_no`,`pr_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnprovisionaryreceiptsdtlchecks`
--

CREATE TABLE IF NOT EXISTS `trnprovisionaryreceiptsdtlchecks` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `provisionary_receipts_trn_code` bigint(20) NOT NULL,
  `check_no` varchar(150) COLLATE latin1_general_ci NOT NULL,
  `check_date` date NOT NULL,
  `check_type_mst_code` bigint(20) NOT NULL,
  `check_bank_mst_code` bigint(20) NOT NULL,
  `check_bank_branch` varchar(150) COLLATE latin1_general_ci NOT NULL,
  `check_amount` double NOT NULL,
  `check_name` varchar(150) COLLATE latin1_general_ci NOT NULL,
  `selected_provisionary_receipts_dtlitem_codes` varchar(1500) COLLATE latin1_general_ci NOT NULL COMMENT 'comma-separated trnprovisionaryreceiptsdtlitems codes',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `trnprdtlchecksindex` (`provisionary_receipts_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnprovisionaryreceiptsdtlitems`
--

CREATE TABLE IF NOT EXISTS `trnprovisionaryreceiptsdtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `provisionary_receipts_trn_code` bigint(20) NOT NULL,
  `ar_transaction_trn_code` bigint(20) NOT NULL,
  `policy_trn_code` bigint(20) NOT NULL,
  `ar_transaction_amount` double NOT NULL,
  `applied_or_transaction_trn_codes` varchar(1000) COLLATE latin1_general_cs NOT NULL,
  `is_net_of_comm` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `provisionary_receipts_trn_code` (`provisionary_receipts_trn_code`),
  KEY `trnprdtlitemsindex` (`provisionary_receipts_trn_code`,`ar_transaction_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchasecounterreceiptsdtlitems`
--

CREATE TABLE IF NOT EXISTS `trnpurchasecounterreceiptsdtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `purchase_counter_receipt_trn_code` bigint(20) NOT NULL,
  `purchase_return_trn_code` bigint(20) NOT NULL,
  `purchase_drsi_trn_code` bigint(20) NOT NULL,
  `ctr_type` tinyint(1) NOT NULL COMMENT '1 - DR/SI ; 2 - Purchase Return',
  `net_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `purchase_counter_receipt_trn_code` (`purchase_counter_receipt_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchasecounterreceipttrn`
--

CREATE TABLE IF NOT EXISTS `trnpurchasecounterreceipttrn` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `counter_receipt_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `counter_receipt_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `counter_receipt_date` date NOT NULL,
  `gross_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `po_net_amount` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_type` tinyint(1) NOT NULL COMMENT '1 - VAT Inclusive ; 2 - VAT Exclusive',
  `processed_user_mst_code` bigint(20) NOT NULL,
  `is_posted` tinyint(1) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `is_void` tinyint(1) NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `printed_user_mst_code` bigint(20) NOT NULL,
  `print_datetime` datetime NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchasedrsi`
--

CREATE TABLE IF NOT EXISTS `trnpurchasedrsi` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `rr_no` varchar(500) COLLATE latin1_general_cs NOT NULL COMMENT 'receiving report number',
  `rr_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `drsi_no` varchar(500) COLLATE latin1_general_cs NOT NULL COMMENT 'from the supplier/vendor',
  `drsi_type` tinyint(1) NOT NULL COMMENT '1 - Delivery Receipt ; 2 - Sales Invoice',
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `rr_date` date NOT NULL,
  `purchase_order_trn_code` bigint(20) NOT NULL,
  `po_date` date NOT NULL,
  `gross_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_type` tinyint(1) NOT NULL COMMENT '1 - VAT Inclusive ; 2 - VAT Exclusive',
  `po_net_amount` double NOT NULL,
  `drsi_status` int(2) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `is_sysgen` tinyint(1) NOT NULL,
  `printed_user_mst_code` bigint(20) NOT NULL,
  `print_datetime` datetime NOT NULL,
  `purchase_counter_receipt_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchasedrsidtlitems`
--

CREATE TABLE IF NOT EXISTS `trnpurchasedrsidtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `purchase_drsi_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `item_mst_code` bigint(20) NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `po_quantity` int(3) NOT NULL,
  `po_unit_mst_code` int(3) NOT NULL,
  `po_gross_amount` double NOT NULL,
  `po_unit_cost` double NOT NULL,
  `po_discount_rate` double NOT NULL,
  `po_discount_rate_amount` double NOT NULL,
  `po_discount_amount` double NOT NULL,
  `po_vat_rate` double NOT NULL,
  `po_vat_amount` double NOT NULL,
  `po_net_amount` double NOT NULL,
  `unit_mst_code` bigint(20) NOT NULL,
  `gross_amount` double NOT NULL,
  `input_unit_cost` double NOT NULL,
  `discount_rate` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `vat_rate` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `input_quantity` int(3) NOT NULL,
  `converted_quantity` int(3) NOT NULL,
  `converted_unit_cost` double NOT NULL,
  `conversion_rate` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `purchase_drsi_trn_code` (`purchase_drsi_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchaseorder`
--

CREATE TABLE IF NOT EXISTS `trnpurchaseorder` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `po_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `po_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `mailing_country_mst_code` bigint(20) NOT NULL,
  `mailing_region_mst_code` bigint(20) NOT NULL,
  `mailing_province_mst_code` bigint(20) NOT NULL,
  `mailing_city_mst_code` bigint(20) NOT NULL,
  `mailing_barangay_mst_code` bigint(20) NOT NULL,
  `mailing_street_address` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `mailing_complete_address` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `payment_term_mst_code` bigint(20) NOT NULL,
  `payment_term_no_days` int(3) NOT NULL,
  `po_date` date NOT NULL,
  `expected_delivery_datetime` datetime NOT NULL,
  `gross_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_type` tinyint(1) NOT NULL COMMENT '1 - VAT Inclusive ; 2 - VAT Exclusive',
  `vat_rate` double NOT NULL,
  `recommended_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approved_user_mst_codes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `recommended_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `approving_datetimes` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `po_status` int(2) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `requested_user_mst_code` bigint(20) NOT NULL,
  `requested_datetime` datetime NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `is_sysgen` tinyint(1) NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `printed_user_mst_code` bigint(20) NOT NULL,
  `print_datetime` datetime NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchaseorderdtlitems`
--

CREATE TABLE IF NOT EXISTS `trnpurchaseorderdtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `purchase_order_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `item_mst_code` bigint(20) NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `quantity` int(3) NOT NULL,
  `unit_mst_code` bigint(20) NOT NULL,
  `gross_amount` double NOT NULL,
  `unit_cost` double NOT NULL,
  `discount_rate` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `vat_rate` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `purchase_order_trn_code` (`purchase_order_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchasereturn`
--

CREATE TABLE IF NOT EXISTS `trnpurchasereturn` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `purchase_return_number_type` tinyint(1) NOT NULL COMMENT '1 - Sysgen ; 2 - Manual',
  `po_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `return_date` date NOT NULL,
  `gross_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_type` tinyint(1) NOT NULL COMMENT '1 - VAT Inclusive ; 2 - VAT Exclusive',
  `vat_rate` double NOT NULL,
  `return_status` int(2) NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `posting_datetime` datetime NOT NULL,
  `void_user_mst_code` bigint(20) NOT NULL,
  `void_datetime` datetime NOT NULL,
  `is_printed` tinyint(1) NOT NULL,
  `is_sysgen` tinyint(1) NOT NULL,
  `printed_user_mst_code` bigint(20) NOT NULL,
  `print_datetime` datetime NOT NULL,
  `purchase_counter_receipt_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnpurchasereturndtlitems`
--

CREATE TABLE IF NOT EXISTS `trnpurchasereturndtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `purchase_return_trn_code` bigint(20) NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `purchase_order_trn_code` bigint(20) NOT NULL,
  `purchase_drsi_trn_code` bigint(20) NOT NULL,
  `item_mst_code` bigint(20) NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `quantity` int(3) NOT NULL,
  `unit_mst_code` bigint(20) NOT NULL,
  `gross_amount` double NOT NULL,
  `unit_cost` double NOT NULL,
  `discount_rate` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `vat_rate` double NOT NULL,
  `vat_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `purchase_return_trn_code` (`purchase_return_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnrecurringtemplate`
--

CREATE TABLE IF NOT EXISTS `trnrecurringtemplate` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `template_id` varchar(200) COLLATE latin1_general_cs NOT NULL COMMENT 'user input',
  `template_type` tinyint(1) NOT NULL COMMENT '1 - A/P ; 2 - A/R ; 3 - J/V',
  `is_active` tinyint(1) NOT NULL,
  `template_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `template_description` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `frequency` int(3) NOT NULL COMMENT 'recurrence frequency',
  `recurring_count` int(3) NOT NULL COMMENT 'no of transactions to be generated',
  `current_generated_count` int(3) NOT NULL,
  `first_generation_date` date NOT NULL,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `reference_mst_code` bigint(20) NOT NULL,
  `reference_type` tinyint(1) NOT NULL,
  `currency_mst_code` bigint(20) NOT NULL,
  `transaction_doc_type_mst_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `reference_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `reference_no_2` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `payment_term_mst_code` bigint(20) NOT NULL,
  `payment_term_no_days` int(3) NOT NULL,
  `transaction_type` tinyint(1) NOT NULL COMMENT '1 - Trade ; 2 - Non-Trade ; 3 - Premium ; 4 - Non-premium',
  `particulars_template` mediumtext CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  `amount_total` double NOT NULL,
  `most_recent_generation_date` date NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnrecurringtemplatedtlhistory`
--

CREATE TABLE IF NOT EXISTS `trnrecurringtemplatedtlhistory` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `recurring_template_trn_code` bigint(20) NOT NULL,
  `recurring_ordinal` int(3) NOT NULL,
  `template_type` tinyint(1) NOT NULL,
  `generated_transaction_no` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `generated_datetime` datetime NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `recurring_template_trn_code` (`recurring_template_trn_code`),
  KEY `trnrecurringtemplate` (`recurring_template_trn_code`,`recurring_ordinal`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnrecurringtemplatedtlinfo`
--

CREATE TABLE IF NOT EXISTS `trnrecurringtemplatedtlinfo` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `recurring_template_trn_code` bigint(20) NOT NULL,
  `ap_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `ap_payee_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `ap_po_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `ap_amount` double NOT NULL,
  `ar_bill_to` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `ar_billing_country_mst_code` bigint(20) NOT NULL,
  `ar_billing_region_mst_code` bigint(20) NOT NULL,
  `ar_billing_province_mst_code` bigint(20) NOT NULL,
  `ar_billing_city_mst_code` bigint(20) NOT NULL,
  `ar_billing_barangay_mst_code` bigint(20) NOT NULL,
  `ar_billing_street_address` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `ar_billing_complete_address` varchar(2000) COLLATE latin1_general_cs NOT NULL,
  `ar_amount` double NOT NULL,
  `ar_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `discount_amount` double NOT NULL,
  `discount_rate` double NOT NULL,
  `vat_amount` double NOT NULL,
  `wtax_amount` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `vat_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `discount_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `tax_type` tinyint(1) NOT NULL COMMENT '1 - Vatable ; 2 - Non-VAT ; 3 - Zero Rated ; 4 - Tax Exempt',
  `vat_type` tinyint(1) NOT NULL COMMENT '1 - VAT Inclusive ; 2 - VAT Exclusive',
  `wtax_rate` double NOT NULL,
  `vat_rate` double NOT NULL,
  `debit_amount` double NOT NULL,
  `credit_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `recurring_template_trn_code` (`recurring_template_trn_code`),
  KEY `trnrecurinfoindex` (`recurring_template_trn_code`,`ap_chart_of_accounts_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnrecurringtemplatedtlitems`
--

CREATE TABLE IF NOT EXISTS `trnrecurringtemplatedtlitems` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `recurring_template_trn_code` bigint(20) NOT NULL,
  `recurring_template_trn_info_code` bigint(20) NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `item_description` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `item_reference_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `item_reference_date` date NOT NULL,
  `debit_amount` double NOT NULL,
  `credt_amount` double NOT NULL,
  `normal_balance` tinyint(1) NOT NULL COMMENT 'for J/V ; 1 - Debit ; 2 - Credit',
  `atc_mst_code` bigint(20) NOT NULL,
  `wht_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `breakdown_level` int(1) NOT NULL,
  `is_required_sl` tinyint(1) NOT NULL,
  `is_required_costcenter` tinyint(1) NOT NULL,
  `item_amount` double NOT NULL,
  `discount_rate` double NOT NULL,
  `discount_rate_amount` double NOT NULL,
  `discount_amount` double NOT NULL,
  `vat_amount` double NOT NULL,
  `wtax_amount` double NOT NULL,
  `net_amount` double NOT NULL,
  `amount_balance` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `recurring_template_trn_code` (`recurring_template_trn_code`),
  KEY `recurring_template_trn_info_code` (`recurring_template_trn_info_code`),
  KEY `recurtemplatdtlitems` (`recurring_template_trn_code`,`recurring_template_trn_info_code`,`item_chart_of_accounts_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnrecurringtemplatedtlsl`
--

CREATE TABLE IF NOT EXISTS `trnrecurringtemplatedtlsl` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `recurring_template_trn_code` bigint(20) NOT NULL,
  `recurring_template_trn_item_code` bigint(20) NOT NULL,
  `item_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `subsidiary_ledger_mst_code` bigint(20) NOT NULL,
  `sl_branch_mst_code` bigint(20) NOT NULL,
  `division_mst_code` bigint(20) NOT NULL,
  `department_mst_code` bigint(20) NOT NULL,
  `employee_mst_code` bigint(20) NOT NULL,
  `sl_amount` double NOT NULL,
  `sl_amount_balance` double NOT NULL,
  `debit_amount` double NOT NULL,
  `credit_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `recurring_template_trn_code` (`recurring_template_trn_code`),
  KEY `recurring_template_trn_item_code` (`recurring_template_trn_item_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsalesproposal`
--

CREATE TABLE IF NOT EXISTS `trnsalesproposal` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `proposal_reference_no` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `proposal_series_no` bigint(20) NOT NULL,
  `date_offered` date NOT NULL,
  `quotation_days_valid` int(3) NOT NULL,
  `policy_source` tinyint(1) NOT NULL,
  `policy_type` tinyint(1) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `division_mst_code` bigint(20) NOT NULL,
  `channel` varchar(50) COLLATE latin1_general_ci NOT NULL,
  `crediting_branch_mst_code` bigint(20) NOT NULL,
  `genweb_assured_code` bigint(20) NOT NULL,
  `assured_type` tinyint(1) NOT NULL COMMENT '1 - individual ; 2 - corporate',
  `first_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `middle_name` varchar(100) COLLATE latin1_general_ci NOT NULL,
  `last_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `assured_name` varchar(2000) COLLATE latin1_general_ci NOT NULL,
  `assured_address` varchar(2000) COLLATE latin1_general_ci NOT NULL,
  `suffix` varchar(20) COLLATE latin1_general_ci NOT NULL,
  `prem_amount` double NOT NULL,
  `tsi_amount` double NOT NULL,
  `contact_number` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `email_address` varchar(150) COLLATE latin1_general_ci NOT NULL,
  `tin` varchar(250) COLLATE latin1_general_ci NOT NULL,
  `intermediary_name` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `proposal_status_mst_code` bigint(20) NOT NULL COMMENT 'mstproposalstatus',
  `proposal_description` mediumtext COLLATE latin1_general_ci NOT NULL,
  `extra_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL COMMENT 'linked CRM code',
  `approver_user_mst_code` bigint(20) NOT NULL,
  `approver_current_identifier` varchar(20) COLLATE latin1_general_ci NOT NULL,
  `for_approval_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `submitted_for_acceptance_at` datetime NOT NULL,
  `submitted_for_acceptance_user_mst_code` bigint(20) NOT NULL,
  `renegotiation_at` datetime NOT NULL,
  `renegotiation_user_mst_code` bigint(20) NOT NULL,
  `approver_action` tinyint(1) NOT NULL COMMENT '0 - n/a , 1 - Approve , 2 - Reject',
  `approver_action_at` datetime NOT NULL,
  `approver_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `interim_no` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `dnm_reason_mst_code` bigint(20) NOT NULL,
  `dnm_processed_user_mst_code` bigint(20) NOT NULL,
  `dnm_reason` mediumtext COLLATE latin1_general_ci NOT NULL,
  `dnm_processed_at` datetime NOT NULL,
  `submitted_for_confirmation_at` datetime NOT NULL,
  `submitted_for_confirmation_user_mst_code` bigint(20) NOT NULL,
  `tagged_incomplete_at` datetime NOT NULL,
  `tagged_incomplete_user_mst_code` bigint(20) NOT NULL,
  `tagged_incomplete_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `tagged_crm_created_at` datetime NOT NULL,
  `tagged_crm_created_user_mst_code` bigint(20) NOT NULL,
  `tagged_par_created_at` datetime NOT NULL,
  `tagged_par_created_user_mst_code` bigint(20) NOT NULL,
  `tagged_policy_posted_at` datetime NOT NULL,
  `tagged_policy_posted_user_mst_code` bigint(20) NOT NULL,
  `tagged_on_delivery_at` datetime NOT NULL,
  `tagged_on_delivery_user_mst_code` bigint(20) NOT NULL,
  `tagged_delivered_at` datetime NOT NULL,
  `tagged_delivered_user_mst_code` bigint(20) NOT NULL,
  `genweb_quotation_created_at` datetime NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_quotation_created_by` varchar(200) COLLATE latin1_general_ci NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_par_created_at` datetime NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_par_created_by` varchar(200) COLLATE latin1_general_ci NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_policy_posted_at` datetime NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_policy_posted_by` varchar(200) COLLATE latin1_general_ci NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_underwritten_at` datetime NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `genweb_underwritten_by` varchar(200) COLLATE latin1_general_ci NOT NULL COMMENT 'FROM GENWEB (VIA CRON)',
  `cron_job_processed_at` datetime NOT NULL,
  `cc_email_user_mst_codes` mediumtext COLLATE latin1_general_ci NOT NULL,
  `website_otp` varchar(6) COLLATE latin1_general_ci NOT NULL,
  `reinsurer_mst_code` bigint(20) NOT NULL,
  `broker_reinsurer_mst_code` bigint(20) NOT NULL,
  `reinsurer_vat_rate` double NOT NULL,
  `reinsurer_wtax_rate` double NOT NULL,
  `abic_share_percentage` double NOT NULL COMMENT 'whole number %',
  `inception_date` date NOT NULL,
  `acceptance_date` date NOT NULL,
  `payment_premium_warranty_days` int(3) NOT NULL COMMENT 'no. of days',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `proposal_status_mst_code` (`proposal_status_mst_code`),
  KEY `line_mst_code` (`line_mst_code`),
  KEY `branch_mst_code` (`branch_mst_code`),
  KEY `created_user_mst_code` (`created_user_mst_code`),
  KEY `approver_user_mst_code` (`approver_user_mst_code`),
  KEY `updated_user_mst_code` (`updated_user_mst_code`),
  KEY `salesproposalindex` (`proposal_status_mst_code`,`line_mst_code`,`branch_mst_code`,`created_user_mst_code`,`approver_user_mst_code`),
  KEY `division_mst_code` (`division_mst_code`),
  KEY `crediting_branch_mst_code` (`crediting_branch_mst_code`),
  KEY `policy_source` (`policy_source`),
  FULLTEXT KEY `proposal_reference_no` (`proposal_reference_no`),
  FULLTEXT KEY `proposal_reference_no_2` (`proposal_reference_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='Sales and Marketing Proposal Table' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsalesproposaldtlapprovertrail`
--

CREATE TABLE IF NOT EXISTS `trnsalesproposaldtlapprovertrail` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `sales_proposal_trn_code` bigint(20) NOT NULL,
  `approver_user_mst_code` bigint(20) NOT NULL,
  `approver_action` tinyint(1) NOT NULL,
  `approver_action_at` datetime NOT NULL,
  `approver_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `is_reassigned` tinyint(1) NOT NULL,
  `is_committee_member` tinyint(1) NOT NULL,
  `website_otp` varchar(6) COLLATE latin1_general_ci NOT NULL COMMENT 'to be used for committee member single',
  `approver_current_identifier` varchar(20) COLLATE latin1_general_ci NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `sales_proposal_trn_code` (`sales_proposal_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsalesproposaldtlcommissions`
--

CREATE TABLE IF NOT EXISTS `trnsalesproposaldtlcommissions` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `sales_proposal_trn_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `peril_type` varchar(1) COLLATE latin1_general_ci NOT NULL COMMENT 'B - Basic ; A - Allied',
  `tsi_amount` double NOT NULL,
  `base_rate` double NOT NULL,
  `net_prem_amount` double NOT NULL,
  `commission_rate` double NOT NULL,
  `commission_amount` double NOT NULL,
  `commission_vat_amount` double NOT NULL,
  `commission_wtax_amount` double NOT NULL,
  `net_commission_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `sales_proposal_trn_code` (`sales_proposal_trn_code`),
  KEY `peril_mst_code` (`peril_mst_code`),
  KEY `sales_proposal_trn_code_2` (`sales_proposal_trn_code`,`peril_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='applicable for RI only' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsalesproposaldtlfileattachments`
--

CREATE TABLE IF NOT EXISTS `trnsalesproposaldtlfileattachments` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `sales_proposal_trn_code` bigint(20) NOT NULL,
  `uploaded_file_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `encrypted_uploaded_file_name` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `filetype` varchar(100) COLLATE latin1_general_ci NOT NULL,
  `uploaded_at` datetime NOT NULL,
  `uploaded_user_mst_code` bigint(20) NOT NULL,
  `attachment_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `description` mediumtext COLLATE latin1_general_ci NOT NULL,
  `remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`) USING BTREE,
  KEY `code_2` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='FOR UPLOADING OF SALES PROPOSAL ATTACHMENTS' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsalesproposaldtltrail`
--

CREATE TABLE IF NOT EXISTS `trnsalesproposaldtltrail` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `sales_proposal_trn_code` bigint(20) NOT NULL COMMENT 'trnsalesproposal.code',
  `trail_type` tinyint(1) NOT NULL COMMENT '0 - system\r\n1 - user',
  `trail_description` varchar(1000) COLLATE latin1_general_ci NOT NULL COMMENT '1 sentence trail',
  `trail_details` mediumtext COLLATE latin1_general_ci NOT NULL COMMENT 'detailed changes (table)',
  `trail_user_mst_code` bigint(20) NOT NULL COMMENT 'user who processed the action to this trail',
  `remarks` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `salesproposaltrncode` (`sales_proposal_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsignatoryactions`
--

CREATE TABLE IF NOT EXISTS `trnsignatoryactions` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_mst_code` bigint(20) NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `module_type` int(1) NOT NULL COMMENT '1 - insurance ; 2 - financials',
  `transaction_type` int(2) NOT NULL,
  `recommending_andor` tinyint(1) NOT NULL,
  `approving_andor` tinyint(1) NOT NULL,
  `signatory_type` tinyint(1) NOT NULL,
  `signatory_user_mst_code` bigint(20) NOT NULL,
  `amount` double NOT NULL,
  `reference_transaction_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `signatory_type_action` tinyint(1) NOT NULL COMMENT '0 - new ; 1 - approved ; 2 - rejected ; 3 - not needed',
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsupportticketpolicy`
--

CREATE TABLE IF NOT EXISTS `trnsupportticketpolicy` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `policy_number` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `new_policy_number` varchar(500) COLLATE latin1_general_ci NOT NULL COMMENT 'IF RENEWAL',
  `interim_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `quote_ref_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `branch_mst_code` bigint(20) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `subline_mst_code` bigint(20) NOT NULL,
  `inspection_date` date NOT NULL,
  `ticket_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `ticket_sequence` bigint(20) NOT NULL,
  `ticket_status` int(2) NOT NULL COMMENT '0 - New/Opened ; 10 - Cancelled ; 20 - On Hold ; 30 - Closed',
  `ticket_description` mediumtext COLLATE latin1_general_ci NOT NULL,
  `claims_trn_code` bigint(20) NOT NULL,
  `claim_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `department_mst_code` bigint(20) NOT NULL,
  `ticket_issue_mst_code` bigint(20) NOT NULL,
  `target_completion_date` date NOT NULL,
  `service_level_agreement_days` int(3) NOT NULL COMMENT 'number of days SLA',
  `assigned_to_at` datetime NOT NULL,
  `assigned_to_user_mst_code` bigint(20) NOT NULL,
  `assigned_by_user_mst_code` bigint(20) NOT NULL,
  `extra_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `cancelled_at` datetime NOT NULL,
  `cancelled_user_mst_code` bigint(20) NOT NULL,
  `on_hold_at` datetime NOT NULL,
  `on_hold_user_mst_code` bigint(20) NOT NULL,
  `closed_at` datetime NOT NULL,
  `closed_user_mst_code` bigint(20) NOT NULL,
  `email_address` varchar(150) COLLATE latin1_general_ci NOT NULL,
  `secondary_email_address` mediumtext COLLATE latin1_general_ci NOT NULL,
  `other_email_address` mediumtext COLLATE latin1_general_ci NOT NULL,
  `cellphone_number` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `is_delivery_required` tinyint(1) NOT NULL,
  `delivery_receipt_trn_code` int(20) NOT NULL,
  `delivery_particulars` mediumtext COLLATE latin1_general_ci NOT NULL,
  `delivery_date` date NOT NULL COMMENT 'preferred delivery date',
  `recipient_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `recipient_address` varchar(2000) COLLATE latin1_general_ci NOT NULL,
  `recipient_contact_number` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `other_remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `notify_list_cc_email_address` mediumtext COLLATE latin1_general_ci NOT NULL,
  `delivery_mode` tinyint(1) NOT NULL COMMENT '0 - Email / 1 - Messengerial or PNB Clearing / 2 - Thru ABIC Employee',
  `delivery_type` tinyint(1) NOT NULL COMMENT '0 - Delivery / 1 - Pick-Up',
  `is_rush` tinyint(1) NOT NULL,
  `generate_delivery_receipt_at` datetime NOT NULL,
  `generate_delivery_receipt_user_mst_code` bigint(20) NOT NULL,
  `sales_proposal_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `origpolicyseq` (`orig_policy_trn_code`,`ticket_sequence`),
  KEY `sales_proposal_trn_code` (`sales_proposal_trn_code`),
  KEY `branch_mst_code` (`branch_mst_code`),
  KEY `line_mst_code` (`line_mst_code`),
  KEY `subline_mst_code` (`subline_mst_code`),
  KEY `department_mst_code` (`department_mst_code`),
  KEY `ticket_issue_mst_code` (`ticket_issue_mst_code`),
  KEY `ticket_status` (`ticket_status`),
  KEY `target_completion_date` (`target_completion_date`),
  KEY `created_user_mst_code` (`created_user_mst_code`),
  KEY `assigned_to_user_mst_code` (`assigned_to_user_mst_code`),
  KEY `delivery_receipt_trn_code` (`delivery_receipt_trn_code`),
  KEY `claims_trn_code` (`claims_trn_code`),
  KEY `orig_policy_trn_code` (`orig_policy_trn_code`),
  KEY `deptuser` (`department_mst_code`,`created_user_mst_code`),
  KEY `created_at` (`created_at`),
  KEY `policy_number` (`policy_number`,`ticket_no`,`created_at`),
  FULLTEXT KEY `trnsupportticketpolicy_ticket_no` (`ticket_no`),
  FULLTEXT KEY `trnsupportticketpolicy_policy_number` (`policy_number`),
  FULLTEXT KEY `trnsupportticketpolicy_interim_no` (`interim_no`),
  FULLTEXT KEY `trnsupportticketpolicy_quote_ref_no` (`quote_ref_no`),
  FULLTEXT KEY `trnsupportticketpolicy_claim_no` (`claim_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsupportticketpolicydtlchangehistory`
--

CREATE TABLE IF NOT EXISTS `trnsupportticketpolicydtlchangehistory` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL,
  `change_type` int(2) NOT NULL,
  `change_from` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `change_to` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `support_ticket_policy_trn_code` (`support_ticket_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsupportticketpolicydtlfileattachments`
--

CREATE TABLE IF NOT EXISTS `trnsupportticketpolicydtlfileattachments` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL,
  `uploaded_file_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `encrypted_uploaded_file_name` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `filetype` varchar(100) COLLATE latin1_general_ci NOT NULL,
  `uploaded_at` datetime NOT NULL,
  `uploaded_user_mst_code` bigint(20) NOT NULL,
  `attachment_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `description` mediumtext COLLATE latin1_general_ci NOT NULL,
  `remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `crmattachment` (`support_ticket_policy_trn_code`),
  KEY `crmattachment2` (`support_ticket_policy_trn_code`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='FOR UPLOADING OF CRM TICKET ATTACHMENTS' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsupportticketpolicydtlinfocodes`
--

CREATE TABLE IF NOT EXISTS `trnsupportticketpolicydtlinfocodes` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL,
  `ticket_issue_mst_dtl_info_codes_code` bigint(20) NOT NULL,
  `short_name` varchar(50) COLLATE latin1_general_ci NOT NULL,
  `info_code_name` varchar(150) COLLATE latin1_general_ci NOT NULL,
  `description` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `data_type` int(2) NOT NULL COMMENT '1 - Character (One Liner) ; 2 - Integer ; 3 - Decimal ; 4 - Date ; 5 - Character (Multiline) ; 6 - Character (Texteditor) ;7 - Combo Box ; 8 - Radio Button ; 9 - Checkbox ; 10 - Lookup ;',
  `is_required` tinyint(1) NOT NULL,
  `max_length` int(4) NOT NULL,
  `data_source` tinyint(1) NOT NULL COMMENT '0 - n/a ; 1 - Static ; 2 - Database',
  `data_source_database_name` varchar(200) COLLATE latin1_general_ci NOT NULL,
  `data_source_table_name` varchar(50) COLLATE latin1_general_ci NOT NULL COMMENT 'If from database table',
  `data_source_value_pair` varchar(5000) COLLATE latin1_general_ci NOT NULL COMMENT 'Format: Code:Value|Code:Value -- Tabled: Field:Field',
  `special_conditions` varchar(5000) COLLATE latin1_general_ci NOT NULL COMMENT 'for programmer use',
  `special_conditions2` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `print_order` int(3) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` int(11) NOT NULL,
  `updated_at` int(11) NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `support_ticket_policy_trn_code` (`support_ticket_policy_trn_code`),
  KEY `ticket_issue_mst_dtl_info_codes_code` (`ticket_issue_mst_dtl_info_codes_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsupportticketpolicydtlrenewal`
--

CREATE TABLE IF NOT EXISTS `trnsupportticketpolicydtlrenewal` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL,
  `delivery_options` varchar(2000) COLLATE latin1_general_ci NOT NULL COMMENT 'comma separated, 1 - Email ; 2 - Snail Mail ; 3 - View in Website',
  `new_email_address` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `new_phone_number` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `new_cellphone_number` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `delivery_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `extra_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `payment_option` int(2) NOT NULL,
  `non_renewal_reason_option` int(2) NOT NULL COMMENT '1 - poor customer service ; 2 - poor claims settlement ; 3 - other insurance low price ; 4 - no longer need ; 5 - others',
  `non_renewal_other_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `customer_experience_remarks` mediumtext COLLATE latin1_general_ci NOT NULL,
  `other_insurance_company_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `other_insurance_offer_price` double NOT NULL,
  `client_allow_counter_offer` tinyint(1) NOT NULL,
  `insurance_source` int(2) NOT NULL COMMENT '1 - Agent , 2 - Broker , 3 - Bank , 4 - Dealership , 5 - Others/Direct',
  `email_link_expiry_date` datetime NOT NULL,
  `email_option_selected` int(2) NOT NULL,
  `email_link_respond_datetime` datetime NOT NULL,
  `renewal_notice_send_type` tinyint(1) NOT NULL COMMENT '1 - Email/SMS Action ; 2 - Snail Mail ; 3 - Hand Carry ; 4 - Manual Email ; 5 - Via Courier ; 6 - Via Phone Call',
  `renewal_notice_send_to` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `renewal_notice_address` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `renewal_notice_email_address` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `renewal_notice_delivered_by` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `support_ticket_policy_trn_code` (`support_ticket_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsupportticketpolicydtltrail`
--

CREATE TABLE IF NOT EXISTS `trnsupportticketpolicydtltrail` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `support_ticket_policy_trn_code` bigint(20) NOT NULL,
  `message_type` int(2) NOT NULL COMMENT 'might be used in the future',
  `message_text` mediumtext COLLATE latin1_general_ci NOT NULL,
  `is_system_generated` tinyint(1) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `dtlindex` (`support_ticket_policy_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnsystemchat`
--

CREATE TABLE IF NOT EXISTS `trnsystemchat` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_mst_code_1` bigint(20) NOT NULL,
  `user_mst_code_2` bigint(20) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `chat_status` tinyint(1) NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `chat_type` tinyint(1) NOT NULL COMMENT '1 - Private Message ; 2 - Group Chat',
  `user_group_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `systemchatindex` (`chat_type`,`user_mst_code_1`,`user_mst_code_2`,`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyportfolio`
--

CREATE TABLE IF NOT EXISTS `trntreatyportfolio` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `line_mst_code` bigint(20) NOT NULL,
  `distribution_share_mst_code` bigint(20) NOT NULL,
  `ending_year` int(4) NOT NULL,
  `booking_year` int(4) NOT NULL,
  `treaty_portfolio_status` tinyint(1) NOT NULL,
  `treaty_portfolio_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `is_posted` tinyint(1) NOT NULL,
  `posted_datetime` datetime NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `journal_voucher_trn_code` bigint(20) NOT NULL,
  `interest_rate` double NOT NULL,
  `wht_rate` double NOT NULL,
  `total_prem_amount_withdraw` double NOT NULL,
  `total_loss_amount_withdraw` double NOT NULL,
  `total_prem_amount_transfer` double NOT NULL,
  `total_loss_amount_transfer` double NOT NULL,
  `total_prem_amount_reserve_retained` double NOT NULL,
  `total_prem_amount_released` double NOT NULL,
  `total_interest_amount` double NOT NULL,
  `total_wtax_amount` double NOT NULL,
  `total_sliding_comm_amount` double NOT NULL,
  `total_sliding_comm_vat_amount` double NOT NULL,
  `total_net_amount_due` double NOT NULL,
  `total_prem_amount_withdraw_whole` double NOT NULL COMMENT '100% OF WITHDRAWAL AMOUNT -- USED IN CALCULATING NEW % SHARE',
  `total_loss_amount_withdraw_whole` double NOT NULL COMMENT '100% OF WITHDRAWAL AMOUNT -- USED IN CALCULATING NEW % SHARE',
  `premium_percent` double NOT NULL COMMENT '35% OF THE TOTAL PREMIUM',
  `losses_percent` double NOT NULL COMMENT 'IF OUTSTANDING LOSSES ARE TO BE WITHHELD (SIMILAR TO PREMIUM 35%)',
  `premium_reserved` double NOT NULL COMMENT '40% OF THE TOTAL PREMIUM (PREMIUM RESERVED)',
  `new_distribution_percentage` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`line_mst_code`,`distribution_share_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyportfoliodtlpanels`
--

CREATE TABLE IF NOT EXISTS `trntreatyportfoliodtlpanels` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_portfolio_trn_code` bigint(20) NOT NULL,
  `reinsurer_mst_code` bigint(20) NOT NULL,
  `distribution_percentage` double NOT NULL,
  `prem_amount_withdraw` double NOT NULL,
  `loss_amount_withdraw` double NOT NULL,
  `new_distribution_percentage` double NOT NULL,
  `prem_amount_transfer` double NOT NULL,
  `loss_amount_transfer` double NOT NULL,
  `prem_amount_reserve_retained` double NOT NULL,
  `prem_amount_released` double NOT NULL,
  `interest_amount` double NOT NULL,
  `wtax_amount` double NOT NULL,
  `sliding_comm_amount` double NOT NULL,
  `sliding_comm_vat_amount` double NOT NULL,
  `net_amount_due` double NOT NULL,
  `loss_ratio_percentage` double NOT NULL,
  `offset_type` tinyint(4) NOT NULL COMMENT '1 - A/R ; 2 - A/P',
  `offsetting_ar_transaction_trn_code` bigint(20) NOT NULL,
  `offsetting_ar_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `offsetting_ap_transaction_trn_code` bigint(20) NOT NULL,
  `offsetting_ap_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `is_new_panel` tinyint(1) NOT NULL COMMENT '0 - existing panel | 1 - from portfolio process',
  `compute_loss_ratio` tinyint(1) NOT NULL COMMENT '1 - VALUE IS FROM COMPUTED LOSS RATIO ; 0 - NO LOSS RATIO (dont compute sliding comm)',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_portfolio_trn_code`,`reinsurer_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyportfoliodtlpanelsperils`
--

CREATE TABLE IF NOT EXISTS `trntreatyportfoliodtlpanelsperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_portfolio_trn_code` bigint(20) NOT NULL,
  `treaty_portfolio_dtl_panels_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `comm_amount` double NOT NULL,
  `comm_vat_amount` double NOT NULL,
  `sliding_comm_amount` double NOT NULL,
  `sliding_comm_vat_amount` double NOT NULL,
  `provisional_comm_rate` double NOT NULL,
  `applicable_comm_rate` double NOT NULL,
  `adjustment_comm_rate` double NOT NULL,
  `prem_amount_withdraw` double NOT NULL COMMENT 'TO BE USED IN COMPUTING LOSS RATIO PER PERIL (FL PERILS)',
  `loss_amount_withdraw` double NOT NULL COMMENT 'TO BE USED IN COMPUTING LOSS RATIO PER PERIL (FL PERILS)',
  `prem_amount_transfer` double NOT NULL COMMENT 'TO BE USED IN COMPUTING LOSS RATIO PER PERIL (FL PERILS)',
  `loss_amount_transfer` double NOT NULL COMMENT 'TO BE USED IN COMPUTING LOSS RATIO PER PERIL (FL PERILS)',
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_portfolio_trn_code`,`treaty_portfolio_dtl_panels_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatystatements`
--

CREATE TABLE IF NOT EXISTS `trntreatystatements` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `quarter_no` int(4) NOT NULL,
  `booking_year` int(4) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `total_prem_amount` double NOT NULL,
  `total_loss_expense_paid_amount` double NOT NULL,
  `total_comm_amount` double NOT NULL,
  `total_comm_vat_amount` double NOT NULL,
  `total_premium_reserve_retained_amount` double NOT NULL,
  `total_premium_reserve_released_amount` double NOT NULL,
  `total_interest_amount` double NOT NULL,
  `total_wtax_amount` double NOT NULL,
  `treaty_statement_no` varchar(200) COLLATE latin1_general_cs NOT NULL,
  `treaty_statement_status` int(2) NOT NULL,
  `is_posted` tinyint(1) NOT NULL,
  `posted_datetime` datetime NOT NULL,
  `posted_user_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`booking_year`,`quarter_no`,`line_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatystatementsdtldist`
--

CREATE TABLE IF NOT EXISTS `trntreatystatementsdtldist` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_statements_trn_code` bigint(20) NOT NULL,
  `distribution_share_mst_code` bigint(20) NOT NULL,
  `journal_voucher_trn_code` bigint(20) NOT NULL,
  `total_prem_amount` double NOT NULL,
  `total_loss_expense_paid_amount` double NOT NULL,
  `total_comm_amount` double NOT NULL,
  `total_comm_vat_amount` double NOT NULL,
  `total_premium_reserve_retained_amount` double NOT NULL,
  `total_premium_reserve_released_amount` double NOT NULL,
  `total_interest_amount` double NOT NULL,
  `total_wtax_amount` double NOT NULL,
  `interest_rate` double NOT NULL,
  `wht_rate` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_statements_trn_code`,`distribution_share_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatystatementsdtldistpanels`
--

CREATE TABLE IF NOT EXISTS `trntreatystatementsdtldistpanels` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_statements_trn_code` bigint(20) NOT NULL,
  `treaty_statements_dtl_dist_code` bigint(20) NOT NULL,
  `reinsurer_mst_code` bigint(20) NOT NULL,
  `distribution_percentage` double NOT NULL,
  `offset_type` tinyint(4) NOT NULL COMMENT '1 - A/R ; 2 - A/P',
  `offsetting_ar_transaction_trn_code` bigint(20) NOT NULL,
  `offsetting_ar_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `offsetting_ap_transaction_code` bigint(20) NOT NULL,
  `offsetting_ap_no` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `total_prem_amount` double NOT NULL,
  `total_loss_expense_paid_amount` double NOT NULL,
  `total_comm_amount` double NOT NULL,
  `total_comm_vat_amount` double NOT NULL,
  `total_premium_reserve_retained_amount` double NOT NULL,
  `total_premium_reserve_released_amount` double NOT NULL,
  `total_interest_amount` double NOT NULL,
  `total_wtax_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_statements_trn_code`,`treaty_statements_dtl_dist_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatystatementsdtldistpanelsperils`
--

CREATE TABLE IF NOT EXISTS `trntreatystatementsdtldistpanelsperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_statements_trn_code` bigint(20) NOT NULL,
  `treaty_statements_dtl_dist_code` bigint(20) NOT NULL,
  `treaty_statements_dtl_dist_panels_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `loss_expense_paid_amount` double NOT NULL,
  `loss_paid_amount` double NOT NULL,
  `expense_paid_amount` double NOT NULL,
  `comm_amount` double NOT NULL,
  `comm_vat_amount` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_statements_trn_code`,`treaty_statements_dtl_dist_code`,`treaty_statements_dtl_dist_panels_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyworkingpaper`
--

CREATE TABLE IF NOT EXISTS `trntreatyworkingpaper` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `working_paper_ref_no` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `booking_year` int(4) NOT NULL,
  `booking_period` int(2) NOT NULL,
  `line_mst_code` bigint(20) NOT NULL,
  `treaty_working_paper_status` tinyint(1) NOT NULL,
  `total_tsi_amount` double NOT NULL,
  `total_prem_amount` double NOT NULL,
  `no_of_policies` int(5) NOT NULL,
  `no_of_direct_policies` int(5) NOT NULL,
  `no_of_inward_policies` int(5) NOT NULL,
  `no_of_endorsements` int(5) NOT NULL,
  `no_of_alterations` int(5) NOT NULL,
  `total_dist_tsi_amount` double NOT NULL,
  `total_dist_prem_amount` double NOT NULL,
  `total_comm_amount` double NOT NULL,
  `total_comm_vat_amount` double NOT NULL,
  `treaty_statement_trn_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`booking_year`,`line_mst_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyworkingpaperdtldist`
--

CREATE TABLE IF NOT EXISTS `trntreatyworkingpaperdtldist` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_working_paper_trn_code` bigint(20) NOT NULL,
  `distribution_share_mst_code` bigint(20) NOT NULL,
  `total_tsi_amount` double NOT NULL,
  `total_prem_amount` double NOT NULL,
  `total_dist_tsi_amount` double NOT NULL,
  `total_dist_prem_amount` double NOT NULL,
  `total_comm_amount` double NOT NULL,
  `total_comm_vat_amount` double NOT NULL,
  `no_of_policies` int(5) NOT NULL,
  `no_of_direct_policies` int(5) NOT NULL,
  `no_of_inward_policies` int(5) NOT NULL,
  `no_of_endorsements` int(5) NOT NULL,
  `no_of_alterations` int(5) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_working_paper_trn_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyworkingpaperdtldistperils`
--

CREATE TABLE IF NOT EXISTS `trntreatyworkingpaperdtldistperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_working_paper_trn_code` bigint(20) NOT NULL,
  `treaty_working_paper_dtl_dist_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `tsi_amount` double NOT NULL,
  `dist_prem_amount` double NOT NULL,
  `dist_tsi_amount` double NOT NULL,
  `comm_amount` double NOT NULL,
  `comm_vat_amount` double NOT NULL,
  `comm_rate` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_working_paper_trn_code`,`treaty_working_paper_dtl_dist_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyworkingpaperdtldistpolicy`
--

CREATE TABLE IF NOT EXISTS `trntreatyworkingpaperdtldistpolicy` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_working_paper_trn_code` bigint(20) NOT NULL,
  `treaty_working_paper_dtl_dist_code` bigint(20) NOT NULL,
  `orig_policy_trn_code` bigint(20) NOT NULL,
  `policy_source` tinyint(1) NOT NULL,
  `policy_type` int(2) NOT NULL,
  `prem_amount` double NOT NULL,
  `tsi_amount` double NOT NULL,
  `dist_prem_amount` double NOT NULL,
  `dist_tsi_amount` double NOT NULL,
  `distribution_percentage` double NOT NULL,
  `comm_amount` double NOT NULL,
  `comm_vat_amount` double NOT NULL,
  `assured_mst_code` bigint(20) NOT NULL,
  `inception_date` date NOT NULL,
  `expiry_date` date NOT NULL,
  `reinsurer_mst_code` bigint(20) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_working_paper_trn_code`,`treaty_working_paper_dtl_dist_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trntreatyworkingpaperdtldistpolicyperils`
--

CREATE TABLE IF NOT EXISTS `trntreatyworkingpaperdtldistpolicyperils` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `treaty_working_paper_trn_code` bigint(20) NOT NULL,
  `treaty_working_paper_dtl_dist_code` bigint(20) NOT NULL,
  `treaty_working_paper_dtl_dist_policy_code` bigint(20) NOT NULL,
  `peril_mst_code` bigint(20) NOT NULL,
  `prem_amount` double NOT NULL,
  `tsi_amount` double NOT NULL,
  `dist_prem_amount` double NOT NULL,
  `dist_tsi_amount` double NOT NULL,
  `comm_amount` double NOT NULL,
  `comm_vat_amount` double NOT NULL,
  `comm_rate` double NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `compoundindex` (`treaty_working_paper_trn_code`,`treaty_working_paper_dtl_dist_code`,`treaty_working_paper_dtl_dist_policy_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `trnyearclosing`
--

CREATE TABLE IF NOT EXISTS `trnyearclosing` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `branch_mst_code` bigint(20) NOT NULL,
  `booking_year` int(4) NOT NULL,
  `year_closing_status` tinyint(1) NOT NULL COMMENT '0 - Posted Year End ; 1 - Year Closed',
  `retained_earnings_amount` double NOT NULL,
  `retained_earnings_normal_balance` tinyint(1) NOT NULL COMMENT '1 - Debit ; 2 - Credit (the place of retained earnings in j/v)',
  `retained_earnings_chart_of_accounts_mst_code` bigint(20) NOT NULL,
  `journal_voucher_trn_code` bigint(20) NOT NULL,
  `posted_transaction_user_mst_code` bigint(20) NOT NULL,
  `posted_transaction_datetime` datetime NOT NULL,
  `close_month_user_mst_code` bigint(20) NOT NULL,
  `close_month_datetime` datetime NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `trnyrclsindex` (`branch_mst_code`,`booking_year`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='REFERENCE TABLE FOR YEAR END CLOSING' AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `_dtlmasterfiletemplatesactions`
--

CREATE TABLE IF NOT EXISTS `_dtlmasterfiletemplatesactions` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `master_file_templates_code` bigint(20) NOT NULL,
  `action_type` tinyint(1) NOT NULL COMMENT '1 - Whole Masterfile ; 2 - Per Record',
  `action_name` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `action_shortname` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `action_id_prefix` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `module_action_mst_code` bigint(20) NOT NULL,
  `custom_php_module_include_filename` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `custom_php_module_inline_js_filenames` varchar(5000) COLLATE latin1_general_ci NOT NULL,
  `print_order` int(3) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `masterfiletemplateactionindex` (`master_file_templates_code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='CUSTOM ACTIONS ONLY. ADD/EDIT/DELETE/PRINT/SHOW NOT INCLUDED' AUTO_INCREMENT=22 ;



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

--
-- Table structure for table `_dtlmasterfiletemplatescolumns`
--

CREATE TABLE IF NOT EXISTS `_dtlmasterfiletemplatescolumns` (
  `code` bigint(20) NOT NULL AUTO_INCREMENT,
  `master_file_templates_code` bigint(20) NOT NULL,
  `field_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `table_field_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `field_header_caption` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `can_display_on_table` tinyint(1) NOT NULL,
  `can_show` tinyint(1) NOT NULL,
  `can_add` tinyint(1) NOT NULL,
  `can_edit` tinyint(1) NOT NULL,
  `is_required` tinyint(1) NOT NULL,
  `is_unique` tinyint(1) NOT NULL,
  `alignment` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `data_type` int(2) NOT NULL,
  `max_length` int(4) NOT NULL,
  `data_source` tinyint(1) NOT NULL,
  `data_source_database_name` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `data_source_table_name` varchar(50) COLLATE latin1_general_cs NOT NULL,
  `data_source_table_alias` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `data_source_field_alias` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `data_source_value_pair` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `special_conditions` varchar(5000) COLLATE latin1_general_cs NOT NULL,
  `print_order` int(3) NOT NULL,
  `remarks` varchar(500) COLLATE latin1_general_cs NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_user_mst_code` bigint(20) NOT NULL,
  `updated_user_mst_code` bigint(20) NOT NULL,
  PRIMARY KEY (`code`),
  KEY `masterfiletemplatescolumnsindex` (`master_file_templates_code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=2128 ;

--
-- Dumping data for table `_dtlmasterfiletemplatescolumns`
--

INSERT INTO `_dtlmasterfiletemplatescolumns` (`code`, `master_file_templates_code`, `field_name`, `table_field_name`, `field_header_caption`, `can_display_on_table`, `can_show`, `can_add`, `can_edit`, `is_required`, `is_unique`, `alignment`, `data_type`, `max_length`, `data_source`, `data_source_database_name`, `data_source_table_name`, `data_source_table_alias`, `data_source_field_alias`, `data_source_value_pair`, `special_conditions`, `print_order`, `remarks`, `created_at`, `updated_at`, `created_user_mst_code`, `updated_user_mst_code`) VALUES
(1, 2, 'Action Name', 'action_name', 'Name of action', 1, 1, 1, 1, 1, 1, 'left', 1, 30, 0, '', '', '', '', '', '', 1, '', '2015-04-25 21:15:43', '2015-04-25 21:15:43', 1, 1),
(2, 2, 'Description', 'description', 'Description of the action', 1, 1, 1, 1, 1, 1, 'left', 1, 30, 0, '', '', '', '', '', '', 2, '', '2015-04-25 21:15:43', '2015-04-25 21:15:43', 1, 1),
(3, 2, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 3, '', '', '', '', '', '', 4, '', '2015-04-26 11:47:03', '2015-04-26 11:47:03', 1, 1),
(4, 2, 'Internal Code', 'code', 'Primary Key', 1, 1, 0, 0, 0, 0, 'center', 0, 0, 0, '', '', '', '', '', '', 0, '', '2015-04-30 23:15:59', '2015-04-30 23:15:59', 1, 1),
(5, 2, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '5', '5-created_user_mst_code', 'code:whole_name', '', 5, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(6, 2, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 6, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(7, 2, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '7', '7-updated_user_mst_code', 'code:whole_name', '', 8, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(8, 2, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 9, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(9, 3, 'Internal Code', 'code', 'Internal code', 1, 1, 0, 0, 0, 0, 'center', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-07 06:38:38', '2015-05-07 06:38:38', 1, 1),
(10, 3, 'Key', 'parameter_key', 'Parameter Key', 1, 1, 1, 0, 1, 1, '', 1, 500, 0, '', '', '', '', '', '', 1, '', '2015-05-07 06:38:38', '2015-05-07 06:38:38', 1, 1),
(11, 3, 'Value', 'parameter_value', 'Value of the key', 1, 1, 1, 1, 0, 0, '', 5, 500, 0, '', '', '', '', '', '', 2, '', '2015-05-07 06:38:38', '2015-05-07 06:38:38', 1, 1),
(12, 3, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '12', '12-created_user_mst_code', 'code:whole_name', '', 5, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(13, 3, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 6, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(14, 3, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '14', '14-updated_user_mst_code', 'code:whole_name', '', 8, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(15, 3, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 9, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(16, 3, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 3, '', '', '', '', '', '', 4, '', '2015-04-26 11:47:03', '2015-04-26 11:47:03', 1, 1),
(17, 4, 'Internal Code', 'code', 'Internal code', 1, 1, 0, 0, 0, 0, 'center', 1, 50, 0, '', '', '', '', '', '', 0, '', '2015-05-07 20:36:20', '2015-05-07 20:36:20', 1, 1),
(18, 4, 'ATC Code', 'atc_code', 'ATC Code', 1, 1, 1, 1, 1, 1, 'center', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-07 20:36:20', '2015-05-07 20:36:20', 1, 1),
(19, 4, 'ATC Name', 'description', 'ATC Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 2, '', '2015-05-07 20:36:21', '2015-05-07 20:36:21', 1, 1),
(20, 4, 'G/L Code', 'chart_of_accounts_mst_code', 'Chart of Accounts Code', 0, 1, 1, 1, 0, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstchartofaccounts', '20', '20-chart_of_accounts_mst_code', 'code:gl_code account_title', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstchartofaccounts.html', 3, '', '2015-05-07 20:36:21', '2015-05-07 20:36:21', 1, 1),
(21, 4, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '21', '21-created_user_mst_code', 'code:whole_name', '', 5, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(22, 4, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 6, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(23, 4, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '23', '23-updated_user_mst_code', 'code:whole_name', '', 8, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(24, 4, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 9, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(25, 4, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 3, '', '', '', '', '', '', 4, '', '2015-04-26 11:47:03', '2015-04-26 11:47:03', 1, 1),
(26, 7, 'Internal Code', 'code', 'code', 1, 1, 0, 0, 0, 0, 'center', 0, 0, 0, '', '', '', '', '', '', 0, '', '2015-05-09 11:31:40', '2015-05-09 11:31:40', 1, 1),
(27, 7, 'Type', 'bank_type', 'Bank Type', 1, 1, 1, 1, 1, 0, 'center', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Bank|2:Financial Institution', '', 2, '', '2015-05-09 11:31:40', '2015-05-09 11:31:40', 1, 1),
(28, 7, 'Acronym', 'short_name', 'Bank Short Name', 1, 1, 1, 1, 1, 1, 'center', 1, 20, 0, '', '', '', '', '', '', 1, '', '2015-05-09 11:56:23', '2015-05-09 11:56:23', 1, 1),
(29, 7, 'Bank Name', 'bank_name', 'Bank Name', 1, 1, 1, 1, 1, 0, '', 1, 200, 0, '', '', '', '', '', '', 3, '', '2015-05-09 11:59:38', '2015-05-09 11:59:38', 1, 1),
(30, 7, 'Description', 'description', 'Bank Description', 0, 1, 1, 1, 0, 0, '', 5, 500, 0, '', '', '', '', '', '', 4, '', '2015-05-09 12:02:47', '2015-05-09 12:02:47', 1, 1),
(31, 7, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 3, '', '', '', '', '', '', 5, '', '2015-04-26 11:47:03', '2015-04-26 11:47:03', 1, 1),
(32, 7, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 9, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(33, 7, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '33', '33-updated_user_mst_code', 'code:whole_name', '', 8, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(34, 7, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 6, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(35, 7, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '35', '35-created_user_mst_code', 'code:whole_name', '', 5, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(36, 8, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'center', 0, 0, 0, '', '', '', '', '', '', 0, '', '2015-05-10 22:34:16', '2015-05-10 22:34:16', 1, 1),
(37, 8, 'Company', 'company_mst_code', 'Company', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcompany', '37', '37-company_mst_code', 'code:company_name', '', 2, '', '2015-05-10 22:39:14', '2015-05-10 22:39:14', 1, 1),
(38, 8, 'Branch', 'branch_mst_code', 'Branch', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbranch', '38', '38-branch_mst_code', 'code:branch_name', 'chainingparentid=masterfiletransaction-id-7-37-company_mst_code|chainingparentfield=company_mst_code', 3, '', '2015-05-10 22:46:10', '2015-05-10 22:46:10', 1, 1),
(39, 8, 'Bank', 'bank_mst_code', 'Bank', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbank', '39', '39-bank_mst_code', 'code:bank_name', '', 4, '', '2015-05-10 22:47:01', '2015-05-10 22:47:01', 1, 1),
(40, 8, 'Account Type', 'account_type', 'Account Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Savings Account|2:Current Account', '', 5, '', '2015-05-10 22:53:16', '2015-05-10 22:53:16', 1, 1),
(41, 8, 'Account Number', 'account_number', 'Account Number', 1, 1, 1, 1, 1, 1, 'center', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-10 22:53:16', '2015-05-10 22:53:16', 1, 1),
(42, 8, 'Account Name', 'account_name', 'Account Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 6, '', '2015-05-10 22:53:16', '2015-05-10 22:53:16', 1, 1),
(43, 8, 'Bank Branch', 'bank_branch', 'Bank Branch', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 7, '', '2015-05-10 22:53:16', '2015-05-10 22:53:16', 1, 1),
(44, 8, 'Current Balance', 'current_balance', 'Current Balance', 0, 1, 0, 1, 0, 0, 'right', 3, 20, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=0', 8, '', '2015-05-10 22:59:31', '2015-05-10 22:59:31', 1, 1),
(45, 8, 'G/L Code', 'chart_of_accounts_mst_code', 'Chart of Accounts Code', 0, 1, 1, 1, 1, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstchartofaccounts', '45', '45-chart_of_accounts_mst_code', 'code:gl_code account_title', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstchartofaccounts.html', 9, '', '2015-05-07 20:36:21', '2015-05-07 20:36:21', 1, 1),
(47, 4, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '47', '47-created_user_mst_code', 'code:whole_name', '', 11, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(48, 8, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 12, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(49, 8, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '49', '49-updated_user_mst_code', 'code:whole_name', '', 13, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(50, 8, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 15, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(51, 8, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 10, '', '2015-04-26 11:47:03', '2015-04-26 11:47:03', 1, 1),
(52, 8, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '52', '52-created_user_mst_code', 'code:whole_name', '', 11, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(53, 9, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'center', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-13 16:49:29', '2015-05-13 16:49:29', 1, 1),
(54, 9, 'Country', 'country_mst_code', 'Country', 1, 1, 1, 1, 1, 0, 'left', 7, 1, 2, 'bd926c5_iisaac_test', 'mstcountry', '54', '54-country_mst_code', 'code:country_name', '', 2, '', '2015-05-13 16:49:29', '2015-05-13 16:49:29', 1, 1),
(55, 9, 'Region', 'region_mst_code', 'Region', 1, 1, 1, 1, 1, 0, 'left', 7, 1, 2, 'bd926c5_iisaac_test', 'mstregion', '55', '55-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-54-country_mst_code|chainingparentfield=country_mst_code', 3, '', '2015-05-13 16:53:29', '2015-05-13 16:53:29', 1, 1),
(56, 9, 'Province', 'province_mst_code', 'Province', 1, 1, 1, 1, 1, 0, 'left', 7, 1, 2, 'bd926c5_iisaac_test', 'mstprovince', '56', '56-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-55-region_mst_code|chainingparentfield=region_mst_code', 4, '', '2015-05-13 17:02:50', '2015-05-13 17:02:50', 1, 1),
(57, 9, 'City', 'city_mst_code', 'City', 1, 1, 1, 1, 1, 0, 'left', 7, 1, 2, 'bd926c5_iisaac_test', 'mstcity', '57', '57-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-56-province_mst_code|chainingparentfield=province_mst_code', 5, '', '2015-05-13 17:02:50', '2015-05-13 17:02:50', 1, 1),
(58, 9, 'Acronym', 'short_name', 'Acronym', 1, 1, 1, 1, 1, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-13 17:02:50', '2015-05-13 17:02:50', 1, 1),
(59, 9, 'Brgy. Name', 'barangay_name', 'Barangay Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 5, '', '2015-05-13 17:02:50', '2015-05-13 17:02:50', 1, 1),
(60, 9, 'Brgy. No.', 'barangay_number', 'Barangay Number', 0, 1, 1, 1, 0, 0, 'left', 2, 50, 0, '', '', '', '', '', '', 6, '', '2015-05-13 17:02:50', '2015-05-13 17:02:50', 1, 1),
(62, 9, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 10, '', '2015-04-26 11:47:03', '2015-04-26 11:47:03', 1, 1),
(63, 9, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '63', '63-created_user_mst_code', 'code:whole_name', '', 11, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(64, 9, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 12, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(65, 9, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '65', '65-updated_user_mst_code', 'code:whole_name', '', 13, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(66, 9, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 15, '', '2015-05-02 02:48:41', '2015-05-02 02:48:41', 1, 1),
(67, 10, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'center', 0, 0, 0, '', '', '', '', '', '', 0, '', '2015-05-13 17:45:45', '2015-05-13 17:45:45', 1, 1),
(68, 10, 'Country', 'country_mst_code', 'Country', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '68', '68-country_mst_code', 'code:country_name', '', 2, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(69, 10, 'Region', 'region_mst_code', 'Region', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '69', '69-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-68-country_mst_code|chainingparentfield=country_mst_code', 3, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(70, 10, 'Province', 'province_mst_code', 'Province', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '70', '70-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-69-region_mst_code|chainingparentfield=region_mst_code', 4, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(71, 10, 'City', 'city_mst_code', 'City', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '71', '71-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-70-province_mst_code|chainingparentfield=province_mst_code', 5, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(72, 10, 'Barangay', 'barangay_mst_code', 'Barangay', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '72', '72-barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-71-city_mst_code|chainingparentfield=city_mst_code', 5, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(73, 10, 'Block no.', 'block_number', 'Block Number', 1, 1, 1, 1, 1, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(74, 10, 'Description', 'description', 'Description', 0, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 7, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(75, 10, 'District Name', 'district_mst_code', 'District Name', 1, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstdistrict', '75', '75-district_mst_code', 'code:district_name', 'chainingparentid=masterfiletransaction-id-7-71-city_mst_code|chainingparentfield=city_mst_code', 6, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(76, 10, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 9, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(77, 10, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '77', '77-created_user_mst_code', 'code:whole_name', '', 10, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(78, 10, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 11, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(79, 10, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '79', '79-updated_user_mst_code', 'code:whole_name', '', 11, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(80, 10, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 12, '', '2015-05-13 19:09:55', '2015-05-13 19:09:55', 1, 1),
(81, 11, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(82, 11, 'Company', 'company_mst_code', 'Company', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcompany', '82', '82-company_mst_code', 'code:company_name', '', 2, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(83, 11, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(84, 11, 'Branch Name', 'branch_name', 'Branch Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 3, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(85, 11, 'Main Branch?', 'is_main_branch', 'Is Main Branch?', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 4, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(86, 11, 'Country', 'country_mst_code', 'Country', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '86', '86-country_mst_code', 'code:country_name', '', 5, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(87, 11, 'Region', 'region_mst_code', 'Region', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '87', '87-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-86-country_mst_code|chainingparentfield=country_mst_code', 6, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(88, 11, 'Province', 'province_mst_code', 'Province', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '88', '88-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-87-region_mst_code|chainingparentfield=region_mst_code', 7, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(89, 11, 'City', 'city_mst_code', 'City', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '89', '89-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-88-province_mst_code|chainingparentfield=province_mst_code', 8, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(90, 11, 'Zip Code', 'zip_code_mst_code', 'Zip Code', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstzipcode', '90', '90-zip_code_mst_code', 'code:zip_code', 'chainingparentid=masterfiletransaction-id-7-89-city_mst_code|chainingparentfield=city_mst_code', 9, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(91, 11, 'Barangay', 'barangay_mst_code', 'Barangay', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '91', '91-barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-89-city_mst_code|chainingparentfield=city_mst_code', 10, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(92, 11, 'Street Address', 'street_address', 'Street Address', 0, 1, 1, 1, 1, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 11, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(93, 11, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 20, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 12, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(94, 11, 'Phone No.', 'phone_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 13, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(95, 11, 'Fax No.', 'fax_number', 'Fax Number', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 14, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(96, 11, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(97, 11, 'Branch Manager', 'contact_person', 'Branch Manager', 0, 1, 1, 1, 0, 0, 'left', 1, 100, 0, '', '', '', '', '', '', 16, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(98, 11, 'VAT No.', 'vat_no', 'VAT Number', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 17, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(99, 11, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 18, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(100, 11, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '100', '100-created_user_mst_code', 'code:whole_name', '', 19, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(101, 11, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 20, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(102, 11, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '102', '102-updated_user_mst_code', 'code:whole_name', '', 21, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(103, 11, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 22, '', '2015-05-13 20:15:56', '2015-05-13 20:15:56', 1, 1),
(104, 12, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(105, 12, 'Country', 'country_mst_code', 'Country', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '105', '105-country_mst_code', 'code:country_name', '', 1, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(106, 12, 'Region', 'region_mst_code', 'Region', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '106', '106-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-105-country_mst_code|chainingparentfield=country_mst_code', 2, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(107, 12, 'Province', 'province_mst_code', 'Province', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '107', '107-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-106-region_mst_code|chainingparentfield=region_mst_code', 3, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(108, 12, 'Acronym', 'short_name', 'Short Name', 0, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 6, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(109, 12, 'City Name', 'city_name', 'City Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 7, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(110, 12, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 9, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(111, 12, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '111', '111-created_user_mst_code', 'code:whole_name', '', 10, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(112, 12, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 11, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(113, 12, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '113', '113-updated_user_mst_code', 'code:whole_name', '', 11, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(114, 12, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 12, '', '2015-05-13 23:42:15', '2015-05-13 23:42:15', 1, 1),
(115, 13, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(117, 13, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 2, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(118, 13, 'Company Name', 'company_name', 'Company Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 3, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(119, 13, 'Country', 'country_mst_code', 'Country', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '119', '119-country_mst_code', 'code:country_name', '', 5, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(120, 13, 'Region', 'region_mst_code', 'Region', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '120', '120-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-119-country_mst_code|chainingparentfield=country_mst_code', 6, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(121, 13, 'Province', 'province_mst_code', 'Province', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '121', '121-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-120-region_mst_code|chainingparentfield=region_mst_code', 7, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(122, 13, 'City', 'city_mst_code', 'City', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '122', '122-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-121-province_mst_code|chainingparentfield=province_mst_code', 8, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(123, 13, 'Zip Code', 'zip_code_mst_code', 'Zip Code', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstzipcode', '123', '123-zip_code_mst_code', 'code:zip_code', 'chainingparentid=masterfiletransaction-id-7-122-city_mst_code|chainingparentfield=city_mst_code', 9, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(124, 13, 'Barangay', 'barangay_mst_code', 'Barangay', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '124', '124-barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-122-city_mst_code|chainingparentfield=city_mst_code', 10, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(125, 13, 'Street Address', 'street_address', 'Street Address', 0, 1, 1, 1, 1, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 11, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(126, 13, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 20, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 12, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(127, 13, 'Phone No.', 'phone_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 13, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(128, 13, 'Fax No.', 'fax_number', 'Fax Number', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 14, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(129, 13, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(130, 13, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 100, 0, '', '', '', '', '', '', 16, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(131, 13, 'VAT No.', 'vat_no', 'VAT Number', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 17, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(132, 13, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 19, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(133, 13, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '133', '133-created_user_mst_code', 'code:whole_name', '', 20, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(134, 13, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 21, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(135, 13, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '135', '135-updated_user_mst_code', 'code:whole_name', '', 22, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(136, 13, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 23, '', '2015-05-15 00:26:25', '2015-05-15 00:26:25', 1, 1),
(137, 14, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(138, 14, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 2, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(139, 14, 'Country Name', 'country_name', 'Country Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 3, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(140, 14, 'Capital City', 'capital_city_mst_code', 'Capital City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '140', '140-capital_city_mst_code', 'code:city_name', '', 8, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(141, 14, 'Main Currency', 'main_currency_mst_code', 'Main Currency', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcurrency', '141', '141-main_currency_mst_code', 'code:currency_name', '', 8, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(142, 14, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 18, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(143, 14, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '143', '143-created_user_mst_code', 'code:whole_name', '', 19, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(144, 14, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 20, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(145, 14, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '145', '145-updated_user_mst_code', 'code:whole_name', '', 21, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(146, 14, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 22, '', '2015-05-15 12:00:25', '2015-05-15 12:00:25', 1, 1),
(147, 15, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(148, 15, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(149, 15, 'Symbol', 'symbol', 'Symbol', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 2, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(150, 15, 'Currency Name', 'currency_name', 'Currency Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 3, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(151, 15, 'Country', 'country_mst_code', 'Country', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '151', '151-country_mst_code', 'code:country_name', '', 4, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(152, 15, 'Default Currency?', 'is_default', 'Is Default Currency?', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 5, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(153, 15, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 6, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(154, 15, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '154', '154-created_user_mst_code', 'code:whole_name', '', 7, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(155, 15, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 8, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(156, 15, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '156', '156-updated_user_mst_code', 'code:whole_name', '', 9, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(157, 15, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 22, '', '2015-05-15 12:10:16', '2015-05-15 12:10:16', 1, 1),
(158, 16, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(159, 16, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(160, 16, 'Department Name', 'department_name', 'Department Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(161, 16, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(162, 16, 'Department Head', 'department_head_employee_mst_code', 'Department Head', 0, 1, 1, 1, 0, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstemployee', '162', '162-department_head_employee_mst_code', 'code:employee_number whole_name', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstemployee.html', 25, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(163, 16, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 30, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(164, 16, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '164', '164-created_user_mst_code', 'code:whole_name', '', 35, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(165, 16, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 40, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(166, 16, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '166', '166-updated_user_mst_code', 'code:whole_name', '', 45, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(167, 16, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 50, '', '2015-05-15 12:42:13', '2015-05-15 12:42:13', 1, 1),
(169, 17, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(170, 17, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 1, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(171, 17, 'Division Name', 'division_name', 'Division Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 2, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(172, 17, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 3, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(173, 17, 'Division Head', 'division_head_user_mst_code', 'Division Head', 0, 1, 1, 1, 0, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstuser', '173', '173-division_head_user_mst_code', 'code:username whole_name user_image_code', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstuser.html', 4, '', '2015-05-15 19:44:39', '2022-02-18 14:43:24', 1, 2),
(174, 17, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(175, 17, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '175', '175-created_user_mst_code', 'code:whole_name', '', 6, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(176, 17, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 7, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(177, 17, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '177', '177-updated_user_mst_code', 'code:whole_name', '', 8, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(178, 17, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 9, '', '2015-05-15 19:44:39', '2015-05-15 19:44:39', 1, 1),
(197, 19, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(198, 19, 'Acronym', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(199, 19, 'Document Type Name', 'description', 'Document Type Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 10, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(200, 19, 'Document Type', 'document_type', 'Document Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Insurance Related|2:Others', '', 15, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(201, 19, 'Series Level', 'series_level', 'Series Level', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Company Level|2:Branch Level|3:Line Level|4:Subline Level|5:User Level', '', 20, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(202, 19, 'Has Prefix?', 'has_prefix', 'Has Prefix?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 25, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(203, 19, 'Has Suffix?', 'has_suffix', 'Has Suffix?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 30, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(204, 19, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 35, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(205, 19, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '205', '205-created_user_mst_code', 'code:whole_name', '', 40, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(206, 19, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 45, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(207, 19, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '207', '207-updated_user_mst_code', 'code:whole_name', '', 50, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(208, 19, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 55, '', '2015-05-16 01:20:30', '2015-05-16 01:20:30', 1, 1),
(209, 20, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(210, 20, 'Employee No.', 'employee_number', 'Employee Number', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(211, 20, 'Company', 'company_mst_code', 'Company', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcompany', '211', '211-company_mst_code', 'code:company_name', '', 10, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(212, 20, 'Branch', 'branch_mst_code', 'Branch', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbranch', '212', '212-branch_mst_code', 'code:branch_name', 'chainingparentid=masterfiletransaction-id-7-211-company_mst_code|chainingparentfield=company_mst_code', 15, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(213, 20, 'Division', 'division_mst_code', 'Division', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstdivision', '213', '213-division_mst_code', 'code:division_name', '', 20, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(214, 20, 'Department', 'department_mst_code', 'Department', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstdepartment', '214', '214-department_mst_code', 'code:department_name', '', 25, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(215, 20, 'Name Prefix', 'name_prefix', 'Name Prefix', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 30, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(216, 20, 'First Name', 'first_name', 'First Name', 0, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 35, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(217, 20, 'Middle Name', 'middle_name', 'Middle Name', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 40, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(218, 20, 'Last Name', 'last_name', 'Last Name', 0, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 45, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(219, 20, 'Name Suffix', 'name_suffix', 'Name Suffix / Auxilliary Name', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 45, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(220, 20, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 20, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 50, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(221, 20, 'SSS No.', 'sss_no', 'SSS number', 0, 1, 1, 1, 0, 0, 'left', 1, 20, 0, '', '', '', '', '', '', 55, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(222, 20, 'Pagibig No.', 'pagibig_no', 'Pagibig/HMDF no.', 0, 1, 1, 1, 0, 0, 'left', 1, 20, 0, '', '', '', '', '', '', 60, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(223, 20, 'Philhealth No.', 'philhealth_no', 'Philhealth No.', 0, 1, 1, 1, 0, 0, 'left', 1, 20, 0, '', '', '', '', '', '', 65, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(224, 20, 'User Code', 'user_mst_code', 'Linked User Code', 0, 1, 1, 1, 0, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstuser', '224', '224-user_mst_code', 'code:username whole_name user_image_code', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstuser.html', 70, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(225, 20, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(226, 20, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '226', '226-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(227, 20, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(228, 20, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '228', '228-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(229, 20, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 04:06:10', '2015-05-17 04:06:10', 1, 1),
(230, 22, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(231, 22, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(232, 22, 'Module Name', 'module_name', 'Module Name', 1, 1, 1, 1, 1, 1, 'left', 1, 500, 0, '', '', '', '', '', '', 15, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(233, 22, 'Program Name', 'program_name', 'Program Name', 1, 1, 1, 1, 1, 1, 'left', 1, 500, 0, '', '', '', '', '', '', 25, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(234, 22, 'Is Enabled', 'is_enabled', 'Is this module enabled?', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 35, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(235, 22, 'Module Actions', 'module_action_dtl_codes', 'Module Actions', 0, 1, 1, 1, 0, 0, 'left', 9, 0, 2, 'bd926c5_iisaac_test', 'mstmoduleaction', '235', '235-module_action_dtl_codes', 'code:action_name', '', 45, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(236, 22, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(237, 22, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '237', '237-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(238, 22, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(239, 22, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '239', '239-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(240, 22, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 04:56:41', '2015-05-17 04:56:41', 1, 1),
(241, 23, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(242, 23, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(243, 23, 'Term Name', 'term_name', 'Term Name', 1, 1, 1, 1, 1, 1, 'left', 1, 150, 0, '', '', '', '', '', '', 15, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(244, 23, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 25, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(245, 23, 'No. of Days', 'no_days', 'Number of Days', 0, 1, 1, 1, 1, 0, 'left', 2, 3, 0, '', '', '', '', '', '', 35, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(246, 23, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1);
INSERT INTO `_dtlmasterfiletemplatescolumns` (`code`, `master_file_templates_code`, `field_name`, `table_field_name`, `field_header_caption`, `can_display_on_table`, `can_show`, `can_add`, `can_edit`, `is_required`, `is_unique`, `alignment`, `data_type`, `max_length`, `data_source`, `data_source_database_name`, `data_source_table_name`, `data_source_table_alias`, `data_source_field_alias`, `data_source_value_pair`, `special_conditions`, `print_order`, `remarks`, `created_at`, `updated_at`, `created_user_mst_code`, `updated_user_mst_code`) VALUES
(247, 23, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '247', '247-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(248, 23, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(249, 23, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '249', '249-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(250, 23, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 11:15:12', '2015-05-17 11:15:12', 1, 1),
(251, 24, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(252, 24, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(253, 24, 'Position Name', 'position_name', 'Position Name', 1, 1, 1, 1, 1, 1, 'left', 1, 150, 0, '', '', '', '', '', '', 15, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(254, 24, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 25, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(255, 24, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(256, 24, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '256', '256-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(257, 24, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(258, 24, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '258', '258-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(259, 24, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 11:56:15', '2015-05-17 11:56:15', 1, 1),
(260, 25, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(261, 25, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(262, 25, 'Country', 'country_mst_code', 'Country', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '262', '262-country_mst_code', 'code:country_name', '', 15, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(263, 25, 'Region', 'region_mst_code', 'Region', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '263', '263-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-262-country_mst_code|chainingparentfield=country_mst_code', 26, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(264, 25, 'Province Name', 'province_name', 'Province Name', 1, 1, 1, 1, 1, 1, 'left', 1, 150, 0, '', '', '', '', '', '', 35, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(265, 25, 'Typhoon Calamity Zone', 'typhoon_calamity_zone_mst_code', 'Typhoon Calamity Zone', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcalamityzone', '265', '265-typhoon_calamity_zone_mst_code', 'calamity_zone:calamity_area_province_mst_code calamity_zone', 'custom_file_to_open=masterfiles$select_mstcalamityzone|condition=equals|condition_source_table_field=calamity_type|condition_source_table_field_value=1', 45, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(266, 25, 'Earthquake Calamity Zone', 'earthquake_calamity_zone_code', 'Earthquake Calamity Zone', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcalamityzone', '266', '266-earthquake_calamity_zone_code', 'calamity_zone:calamity_area_province_mst_code calamity_zone', 'custom_file_to_open=masterfiles$select_mstcalamityzone|condition=equals|condition_source_table_field=calamity_type|condition_source_table_field_value=2', 55, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(267, 25, 'Flood Calamity Zone', 'flood_calamity_zone_code', 'Flood Calamity Zone', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcalamityzone', '267', '267-flood_calamity_zone_code', 'calamity_zone:calamity_area_province_mst_code calamity_zone', 'custom_file_to_open=masterfiles$select_mstcalamityzone|condition=equals|condition_source_table_field=calamity_type|condition_source_table_field_value=3', 65, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(268, 25, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(269, 25, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '269', '269-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(270, 25, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(271, 25, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '271', '271-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(272, 25, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 12:08:06', '2015-05-17 12:08:06', 1, 1),
(273, 26, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(274, 26, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(275, 26, 'Country', 'country_mst_code', 'Country', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '275', '275-country_mst_code', 'code:country_name', '', 15, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(276, 26, 'Region Name', 'region_name', 'Region Name', 1, 1, 1, 1, 1, 1, 'left', 1, 150, 0, '', '', '', '', '', '', 35, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(277, 26, 'Region Number', 'region_number', 'Region Number', 1, 1, 1, 1, 1, 1, 'left', 1, 20, 0, '', '', '', '', '', '', 45, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(278, 26, 'Order No.', 'order_number', 'Order Number', 0, 1, 1, 1, 0, 0, 'left', 2, 3, 0, '', '', '', '', '', '', 55, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(279, 26, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(280, 26, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '280', '280-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(281, 26, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(282, 26, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '282', '282-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(283, 26, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 12:21:37', '2015-05-17 12:21:37', 1, 1),
(284, 27, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(285, 27, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(286, 27, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 1, 'left', 1, 150, 0, '', '', '', '', '', '', 15, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(287, 27, 'Department', 'type_department', 'Department', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Underwriting|2:Collection|3:Reinsurance|4:Claims|5:Financials|6:HR Admin|7:Adhoc|8:Risk Management|9:Sales and Marketing|10:Audit', '', 35, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(288, 27, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(289, 27, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '289', '289-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(290, 27, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(291, 27, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '291', '291-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 14:18:57', '2015-05-17 14:18:57', 1, 1),
(292, 27, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '0000-00-00 00:00:00', '2015-05-17 14:18:57', 1, 1),
(293, 28, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(294, 28, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(295, 28, 'User Group Name', 'whole_name', 'Whole Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(296, 28, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 15, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(297, 28, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(298, 28, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '298', '298-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(299, 28, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(300, 28, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '300', '300-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(301, 28, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 14:25:31', '2015-05-17 14:25:31', 1, 1),
(302, 29, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(303, 29, 'Zip Code', 'zip_code', 'Zip Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(304, 29, 'Country', 'country_mst_code', 'Country', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '304', '304-country_mst_code', 'code:country_name', '', 15, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(305, 29, 'Region', 'region_mst_code', 'Region', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '305', '305-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-304-country_mst_code|chainingparentfield=country_mst_code', 26, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(306, 29, 'Province', 'province_mst_code', 'Province', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '306', '306-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-305-region_mst_code|chainingparentfield=region_mst_code', 37, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(307, 29, 'City', 'city_mst_code', 'City', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '307', '307-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-306-province_mst_code|chainingparentfield=province_mst_code', 48, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(308, 29, 'Description', 'description', 'Description', 1, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 70, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(309, 29, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(310, 29, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '310', '310-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(311, 29, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(312, 29, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '312', '312-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(313, 29, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 14:45:51', '2015-05-17 14:45:51', 1, 1),
(314, 30, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(315, 30, 'Title', 'title', 'Announcement Title', 1, 1, 1, 1, 1, 1, 'left', 1, 150, 0, '', '', '', '', '', '', 5, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(316, 30, 'Type', 'type', 'Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Global|2:System|3:Commercial', '', 15, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(317, 30, 'Is Active?', 'is_active', 'Is Active?', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 25, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(318, 30, 'Display on announcements?', 'is_appearing_on_top', 'To display announcements on announcements section', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 35, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(319, 30, 'Active Date', 'active_datetime', 'Active Date', 1, 1, 1, 1, 1, 0, 'left', 4, 20, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 45, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(320, 30, 'Last Display Date', 'last_display_datetime', 'Last Display Date', 1, 1, 1, 1, 1, 0, 'left', 4, 20, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 55, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(321, 30, 'Content', 'content', 'Announcement Content', 0, 1, 1, 1, 0, 0, 'left', 6, 5000, 0, '', '', '', '', '', '', 70, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(322, 30, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(323, 30, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '323', '323-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(324, 30, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(325, 30, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '325', '325-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(326, 30, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 14:58:56', '2015-05-17 14:58:56', 1, 1),
(327, 31, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(328, 31, 'Reference', 'reference', 'Reference', 1, 1, 0, 0, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 5, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(329, 31, 'Description', 'description', 'Description', 0, 1, 0, 0, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 15, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(330, 31, 'Additional Info 1', 'additional_info_1', 'Additional Information 1', 1, 1, 0, 0, 0, 0, 'left', 5, 5000, 0, '', '', '', '', '', '', 25, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(331, 31, 'Additional Info 2', 'additional_info_2', 'Additional Information 2', 0, 1, 0, 0, 0, 0, 'left', 5, 5000, 0, '', '', '', '', '', '', 35, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(332, 31, 'User', 'action_user_mst_code', 'User who did the action', 1, 1, 0, 0, 0, 0, 'left', 1, 50, 2, '', 'mstuser', '332', '332-action_user_mst_code', 'code:whole_name', '', 45, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(333, 31, 'Module', 'module_mst_code', 'Module', 1, 1, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstmodule', '333', '333-module_mst_code', 'code:module_name', '', 55, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(334, 31, 'Action', 'module_action_mst_code', 'Module Action', 1, 1, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstmoduleaction', '334', '334-module_action_mst_code', 'code:action_name', '', 70, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(335, 31, 'Remarks', 'remarks', 'Remarks', 0, 1, 0, 0, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(336, 31, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '336', '336-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(337, 31, 'Created at', 'created_at', 'Date time created', 1, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(338, 31, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '338', '338-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(339, 31, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 15:35:07', '2015-05-17 15:35:07', 1, 1),
(340, 32, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(341, 32, 'From Currency', 'from_currency_mst_code', 'From Currency', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcurrency', '341', '341-from_currency_mst_code', 'code:currency_name', '', 5, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(342, 32, 'To Currency', 'to_currency_mst_code', 'To Currency', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcurrency', '342', '342-to_currency_mst_code', 'code:currency_name', '', 15, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(343, 32, 'Exchange Rate', 'exchange_rate', 'Exchange Rate', 1, 1, 1, 1, 1, 0, 'right', 3, 30, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 25, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(344, 32, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(345, 32, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '345', '345-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(346, 32, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(347, 32, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '347', '347-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(348, 32, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(349, 32, 'Base Currency', 'base_currency_mst_code', 'Base Currency', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcurrency', '349', '349-base_currency_mst_code', 'code:currency_name', '', 3, '', '2015-05-17 16:12:45', '2015-05-17 16:12:45', 1, 1),
(350, 33, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(351, 33, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(352, 33, 'Industry Group', 'industry_group_mst_code', 'Industry Group', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstindustrygroup', '352', '352-industry_group_mst_code', 'code:description', '', 10, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(353, 33, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 0, 'left', 1, 500, 0, '', '', '', '', '', '', 15, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(354, 33, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(355, 33, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '355', '355-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(356, 33, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(357, 33, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '357', '357-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(358, 33, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-20 20:41:32', '2015-05-20 20:41:32', 1, 1),
(359, 34, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(360, 34, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(361, 34, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 0, 'left', 1, 500, 0, '', '', '', '', '', '', 15, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(362, 34, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(363, 34, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '363', '363-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(364, 34, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(365, 34, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '365', '365-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(366, 34, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-20 22:57:21', '2015-05-20 22:57:21', 1, 1),
(367, 35, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(368, 35, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(369, 35, 'Line Name', 'line_name', 'Line Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 10, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(370, 35, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 15, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(371, 35, 'Advanced Renewal Cut-off Days', 'advanced_renewal_cutoff_days', 'Advanced Renewal Cut-off Days', 0, 1, 1, 1, 1, 0, 'left', 2, 3, 0, '', '', '', '', '', '', 20, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(372, 35, 'Expired Renewal Cut-off Days', 'expired_renewal_cutoff_days', 'Expired Renewal Cut-off Days', 0, 1, 1, 1, 0, 0, 'left', 2, 3, 0, '', '', '', '', '', '', 25, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(373, 35, 'Can Renew Expired Policy?', 'can_renew_expired_policy', 'Can Renew Expired Policy?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 30, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(374, 35, 'Minimum Prem. Amt. (for Quotation)', 'minimum_premium_amount', 'Minimum Premium Amount - used for Quotation', 0, 1, 1, 1, 1, 0, 'right', 3, 30, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 35, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(375, 35, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(376, 35, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '376', '376-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(377, 35, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(378, 35, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '378', '378-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(379, 35, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-20 23:26:34', '2015-05-20 23:26:34', 1, 1),
(380, 36, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(381, 36, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(382, 36, 'Line', 'line_mst_code', 'Line', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstline', '382', '382-line_mst_code', 'code:line_name', '', 10, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(383, 36, 'Subline Name', 'subline_name', 'Subline Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(384, 36, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(385, 36, 'Depreciation Rate (For Motorcar)', 'depreciation_rate', 'Depreciation Rate (For Motorcar)', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 35, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(386, 36, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(387, 36, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '387', '387-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(388, 36, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(389, 36, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '389', '389-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(390, 36, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-21 01:05:09', '2015-05-21 01:05:09', 1, 1),
(391, 37, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(392, 37, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(393, 37, 'Line', 'line_mst_code', 'Line', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstline', '393', '393-line_mst_code', 'code:line_name', '', 10, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(394, 37, 'Peril Name', 'peril_name', 'Peril Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(395, 37, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(396, 37, 'Peril Type', 'peril_type', 'Peril Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', 'B:Basic|A:Allied', '', 25, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(397, 37, 'Order no.', 'order_no', 'Print order number', 1, 1, 1, 1, 1, 0, 'right', 2, 4, 0, '', '', '', '', '', '', 30, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(398, 37, 'Is Common Peril?', 'is_common_peril', 'If this peril is automatically included in policy', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 35, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(399, 37, 'Common Peril TSI Amount', 'common_peril_tsi_amt', 'Common Peril Sum Insured Amount (Only if Is common peril is set to Yes)', 0, 1, 1, 1, 0, 0, 'right', 3, 30, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 40, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(400, 37, 'Common Peril Prem Amount', 'common_peril_prem_amt', 'Common Peril Premium Amount (Only if Is common peril is set to Yes)', 0, 1, 1, 1, 0, 0, 'right', 3, 30, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 45, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(401, 37, 'Common Peril Tariff Code (Fire only)', 'common_peril_tariff_mst_code', 'Common Peril Premium Amount (Only if Is common peril is set to Yes and is Fire)', 0, 1, 1, 1, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstfiretariffs', '401', '401-common_peril_tariff_mst_code', 'code:tariff_code tariff_name', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstfiretariffs.html', 50, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(402, 37, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(403, 37, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '403', '403-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(404, 37, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(405, 37, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '405', '405-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(406, 37, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 01:24:41', '2015-05-22 01:24:41', 1, 1),
(407, 38, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(408, 38, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(409, 38, 'Tax Name', 'tax_name', 'Tax Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(410, 38, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(411, 38, 'Print Sequence', 'print_sequence', 'Print Sequence', 1, 1, 1, 1, 1, 1, 'right', 2, 4, 0, '', '', '', '', '', '', 30, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(412, 38, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(413, 38, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '413', '413-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(414, 38, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(415, 38, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '415', '415-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(416, 38, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 21:50:23', '2015-05-22 21:50:23', 1, 1),
(417, 40, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(418, 40, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(419, 40, 'Dist. Share Name.', 'dist_share_name', 'Distribution Share Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(420, 40, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(421, 40, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(422, 40, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '422', '422-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(423, 40, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(424, 40, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '424', '424-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(425, 40, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 22:32:14', '2015-05-22 22:32:14', 1, 1),
(426, 41, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(427, 41, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(428, 41, 'Line', 'line_mst_code', 'Line', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstline', '428', '428-line_mst_code', 'code:line_name', '', 10, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(429, 41, 'Subline', 'subline_mst_code', 'Subline', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstsubline', '429', '429-subline_mst_code', 'code:subline_name', 'chainingparentid=masterfiletransaction-id-7-428-line_mst_code|chainingparentfield=line_mst_code', 15, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(430, 41, 'Deductible Name', 'deductible_name', 'Deductible Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(431, 41, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 25, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(432, 41, 'Deductible Type', 'deductible_type', 'Deductible Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Rated|2:Fixed Amount', '', 25, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(433, 41, 'Rate/Amount', 'amount', 'Deductible Rate / Fixed Amount', 0, 1, 1, 1, 0, 0, 'right', 3, 20, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 30, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(434, 41, 'Minimum Deductible Amount', 'min_deductible_amount', 'Minimum Deductible Amount', 0, 1, 1, 1, 0, 0, 'right', 3, 20, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 30, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(435, 41, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(436, 41, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '436', '436-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(437, 41, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(438, 41, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '438', '438-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(439, 41, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 22:43:00', '2015-05-22 22:43:00', 1, 1),
(440, 42, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(441, 42, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(442, 42, 'Mortgagee Name', 'mortgagee_name', 'Mortgagee Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(443, 42, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(444, 42, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(445, 42, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '445', '445-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(446, 42, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(447, 42, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '447', '447-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(448, 42, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 22:57:05', '2015-05-22 22:57:05', 1, 1),
(449, 43, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(450, 43, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(451, 43, 'MV Type Name', 'mv_type_name', 'MV Type Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(452, 43, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(453, 43, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(454, 43, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '454', '454-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(455, 43, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(456, 43, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '456', '456-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(457, 43, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 22:59:56', '2015-05-22 22:59:56', 1, 1),
(458, 44, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(459, 44, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(460, 44, 'Intermediary Type Name', 'agent_type_description', 'Intermediary Type Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(461, 44, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(462, 44, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '462', '462-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(463, 44, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(464, 44, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '464', '464-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(465, 44, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 23:10:58', '2015-05-22 23:10:58', 1, 1),
(466, 45, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(467, 45, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(468, 45, 'Reinsurer Type Name', 'reinsurer_type_name', 'Reinsurer Type Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(469, 45, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(470, 45, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(471, 45, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '471', '471-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(472, 45, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(473, 45, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '473', '473-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1);
INSERT INTO `_dtlmasterfiletemplatescolumns` (`code`, `master_file_templates_code`, `field_name`, `table_field_name`, `field_header_caption`, `can_display_on_table`, `can_show`, `can_add`, `can_edit`, `is_required`, `is_unique`, `alignment`, `data_type`, `max_length`, `data_source`, `data_source_database_name`, `data_source_table_name`, `data_source_table_alias`, `data_source_field_alias`, `data_source_value_pair`, `special_conditions`, `print_order`, `remarks`, `created_at`, `updated_at`, `created_user_mst_code`, `updated_user_mst_code`) VALUES
(474, 45, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-22 23:46:24', '2015-05-22 23:46:24', 1, 1),
(486, 46, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(487, 46, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(489, 46, 'Title', 'warrant_title', 'Warranty Clause Title', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(490, 46, 'Print order', 'print_order', 'Print order', 0, 1, 1, 1, 1, 0, 'right', 2, 4, 0, '', '', '', '', '', '', 20, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(491, 46, 'Warranty Text', 'warrant_text', 'Warranty Text', 0, 1, 1, 1, 0, 0, 'left', 6, 300000, 0, '', '', '', '', '', '', 25, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(493, 46, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(494, 46, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '494', '494-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(495, 46, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(496, 46, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '496', '496-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(497, 46, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 00:10:31', '2015-05-23 00:10:31', 1, 1),
(498, 47, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(499, 47, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(500, 47, 'Reason Name', 'non_renewal_reason_name', 'Non Renewal Reason Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(501, 47, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(502, 47, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(503, 47, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '503', '503-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(504, 47, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(505, 47, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '505', '505-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(506, 47, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 11:22:26', '2015-05-23 11:22:26', 1, 1),
(507, 48, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(508, 48, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(509, 48, 'Status Name', 'status_name', 'Claim Status Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(510, 48, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(511, 48, 'Status Type', 'status_type', 'Status Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Valid|2:Invalid', '', 15, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(512, 48, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(513, 48, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '513', '513-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(514, 48, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(515, 48, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '515', '515-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(516, 48, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 11:34:35', '2015-05-23 11:34:35', 1, 1),
(517, 49, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(518, 49, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(519, 49, 'Document Name', 'required_doc_name', 'Required Document Name', 1, 1, 1, 1, 1, 1, 'left', 5, 8000, 0, '', '', '', '', '', '', 15, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(520, 49, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 9000, 0, '', '', '', '', '', '', 20, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(521, 49, 'Is Required?', 'is_required', 'Is Required?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 25, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(522, 49, 'Applicable for the ff. Nature of Loss', 'nature_of_loss_mst_codes', 'Applicable for the ff. Nature of Loss', 0, 1, 1, 1, 0, 0, 'left', 9, 0, 2, 'bd926c5_iisaac_test', 'mstnatureofloss', '522', '522-nature_of_loss_mst_codes', 'code:line_mst_code nature_of_loss_name', 'chainingparentid=masterfiletransaction-id-7-1351-line_mst_code|chainingparentfield=line_mst_code', 45, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(523, 49, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(524, 49, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '524', '524-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(525, 49, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(526, 49, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '526', '526-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(527, 49, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 14:18:48', '2015-05-23 14:18:48', 1, 1),
(528, 50, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(529, 50, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(530, 50, 'Line', 'line_mst_code', 'Line', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstline', '530', '530-line_mst_code', 'code:line_name', '', 10, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(531, 50, 'Nature of Loss Name', 'nature_of_loss_name', 'Nature of Loss Name', 1, 1, 1, 1, 1, 1, 'left', 1, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(532, 50, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 20, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(533, 50, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(534, 50, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '534', '534-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(535, 50, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(536, 50, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '536', '536-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(537, 50, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 14:24:00', '2015-05-23 14:24:00', 1, 1),
(538, 51, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(539, 51, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(540, 51, 'Loss/Expense Desc.', 'claims_loss_expense_desc_code', 'Loss/Expense Description', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstclaimslossexpensedescription', '540', '540-claims_loss_expense_desc_code', 'code:description', '', 10, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(541, 51, 'Description', 'description', 'Description', 1, 1, 1, 1, 0, 0, 'left', 5, 5000, 0, '', '', '', '', '', '', 20, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(542, 51, 'Amount', 'amount', 'Amount', 0, 1, 1, 1, 0, 0, 'right', 3, 40, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 30, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(543, 51, 'Is Fixed Amount?', 'is_fixed_amount', 'Is Fixed Amount?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 35, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(544, 51, 'Is VATable?', 'is_vatable', 'Is VATable?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 40, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(545, 51, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 2000, 0, '', '', '', '', '', '', 75, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(546, 51, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '546', '546-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(547, 51, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(548, 51, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '548', '548-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(549, 51, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 14:42:11', '2015-05-23 14:42:11', 1, 1),
(550, 52, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(551, 52, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(552, 52, 'Other Deduction Name', 'other_deduction_name', 'Other Deduction Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(553, 52, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(554, 52, 'Amount', 'amount', 'Amount', 0, 1, 1, 1, 0, 0, 'right', 3, 40, 0, '', '', '', '', '', 'usesformat=yes|formatmode=number|format=2', 30, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(555, 52, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(556, 52, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '556', '556-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(557, 52, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(558, 52, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '558', '558-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(559, 52, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 14:46:23', '2015-05-23 14:46:23', 1, 1),
(560, 53, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(561, 53, 'G/L Code', 'gl_code', 'Chart of Accounts Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(562, 53, 'Parent G/L Code', 'parent_chart_of_accounts_mst_code', 'Parent Chart of Accounts Title', 1, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstchartofaccounts', '562', '562-parent_chart_of_accounts_mst_code', 'code:gl_code account_title', '', 5, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(563, 53, 'Syntec G/L Code', 'system_gl_code', 'Syntec G/L Code', 0, 1, 1, 1, 0, 0, 'left', 5, 5000, 0, '', '', '', '', '', '', 15, '', '2015-05-23 16:10:08', '2018-01-13 13:08:13', 2, 2),
(564, 53, 'Account Title', 'account_title', 'Account Title', 1, 1, 1, 1, 1, 1, 'left', 5, 150, 0, '', '', '', '', '', '', 20, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(565, 53, 'Is Active?', 'is_active', 'Is Active?', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 25, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(566, 53, 'Account Type', 'account_type', 'Account Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 1, 'bd926c5_iisaac_test', '', '', '', 'A:Assets|L:Liabilities|C:Equity|I:Income|E:Expenses', '', 30, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(567, 53, 'G/L Category', 'gl_category_mst_code', 'G/L Category', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstglcategory', '567', '567-gl_category_mst_code', 'code:description', 'chainingparentid=masterfiletransaction-id-7-566-account_type|chainingparentfield=account_type', 35, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(568, 53, 'Normal Balance', 'normal_balance', 'Normal Balance', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Debit|2:Credit', '', 40, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(569, 53, 'Currency', 'currency_mst_code', 'Currency', 0, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcurrency', '569', '569-currency_mst_code', 'code:currency_name', '', 43, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(570, 53, 'Is Required S/L?', 'is_required_sl', 'Is Required Subsidiary Ledger?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 45, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(571, 53, 'Is Required Cost Center?', 'is_required_costcenter', 'Is Required Cost Center?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 50, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(572, 53, 'Relief Type', 'relief_type', 'Relief Type', 0, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Service|2:Capital Goods|3:Other Goods', '', 55, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(573, 53, 'Report Type', 'report_type_mst_code', 'Report Type', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstglreporttype', '573', '573-report_type_mst_code', 'code:report_type_name', '', 60, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(574, 53, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(575, 53, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '575', '575-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(576, 53, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(577, 53, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '577', '577-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(578, 53, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 16:10:08', '2015-05-23 16:10:08', 1, 1),
(579, 54, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(580, 54, 'Category Code', 'category_code', 'Category Code', 0, 1, 1, 1, 0, 0, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(581, 54, 'Account Type', 'account_type', 'Account Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 1, 'bd926c5_iisaac_test', '', '', '', 'A:Assets|L:Liabilities|C:Equity|I:Income|E:Expenses', '', 10, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(582, 54, 'Description', 'description', 'Description', 1, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(583, 54, 'Print order', 'print_order', 'Print order', 1, 1, 1, 1, 1, 0, 'right', 2, 4, 0, '', '', '', '', '', '', 20, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(584, 54, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(585, 54, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '585', '585-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(586, 54, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(587, 54, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '587', '587-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(588, 54, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 16:30:21', '2015-05-23 16:30:21', 1, 1),
(589, 55, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(590, 55, 'Group Code', 'gl_group_code', 'Group Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(591, 55, 'Account Type', 'account_type', 'Account Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 1, 'bd926c5_iisaac_test', '', '', '', 'A:Assets|L:Liabilities|C:Equity|I:Income|E:Expenses', '', 10, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(592, 55, 'Report Type', 'report_type_mst_code', 'Report Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstglreporttype', '592', '592-report_type_mst_code', 'code:report_type_name', '', 60, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(593, 55, 'Description', 'description', 'Description', 1, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(594, 55, 'Print order', 'print_order', 'Print order', 0, 1, 1, 1, 1, 0, 'right', 2, 4, 0, '', '', '', '', '', '', 20, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(595, 55, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(596, 55, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '596', '596-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(597, 55, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(598, 55, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '598', '598-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(599, 55, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 16:39:01', '2015-05-23 16:39:01', 1, 1),
(600, 56, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(601, 56, 'Caption', 'caption', 'caption', 1, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 15, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(602, 56, 'Report Type', 'gl_report_type_mst_code', 'Report Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstglreporttype', '602', '602-gl_report_type_mst_code', 'code:report_type_name', '', 20, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(603, 56, 'G/L Group', 'gl_group_mst_code', 'G/L Group', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstglgroup', '603', '603-gl_group_mst_code', 'code:description', 'chainingparentid=masterfiletransaction-id-7-602-gl_report_type_mst_code|chainingparentfield=report_type_mst_code', 25, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(604, 56, 'G/L Category', 'gl_category_mst_code', 'G/L Category', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstglcategory', '604', '604-gl_category_mst_code', 'code:description', '', 35, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(605, 56, 'Print order', 'print_order', 'Print order', 0, 1, 1, 1, 1, 0, 'right', 2, 4, 0, '', '', '', '', '', '', 18, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(606, 56, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(607, 56, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '607', '607-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(608, 56, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(609, 56, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '609', '609-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(610, 56, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 18:28:59', '2015-05-23 18:28:59', 1, 1),
(611, 57, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(612, 57, 'Report Type Code', 'report_type_code', 'Report Type Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(613, 57, 'Report Type Name', 'report_type_name', 'Report Type Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(614, 57, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(615, 57, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(616, 57, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '616', '616-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(617, 57, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(618, 57, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '618', '618-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(619, 57, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-23 18:42:53', '2015-05-23 18:42:53', 1, 1),
(620, 58, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(621, 58, 'S/L Group Code', 'sl_group_code', 'Subsidiary Ledger Group Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(622, 58, 'S/L Group Name', 'sl_group_name', 'Subsidiary Ledger Group Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(623, 58, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(624, 58, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(625, 58, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '625', '625-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(626, 58, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(627, 58, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '627', '627-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(628, 58, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 18:45:24', '2015-05-24 18:45:24', 1, 1),
(629, 59, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(630, 59, 'S/L Code', 'sl_code', 'Subsidiary Ledger Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(631, 59, 'S/L Group', 'sl_group_mst_code', 'S/L Group', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstSlgroup', '631', '631-sl_group_mst_code', 'code:sl_group_name', '', 10, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(632, 59, 'G/L Code', 'chart_of_accounts_mst_code', 'Chart of Accounts Code', 1, 1, 1, 1, 1, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstchartofaccounts', '632', '632-chart_of_accounts_mst_code', 'code:gl_code account_title', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstchartofaccounts.html', 15, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(633, 59, 'S/L Name', 'sl_name', 'Subsidiary Ledger Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(634, 59, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(635, 59, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '635', '635-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(636, 59, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(637, 59, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '637', '637-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(638, 59, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 18:57:08', '2015-05-24 18:57:08', 1, 1),
(639, 60, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(640, 60, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(641, 60, 'Supplier Group Name', 'supplier_group_name', 'Supplier Group Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 10, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(642, 60, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(643, 60, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(644, 60, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '644', '644-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(645, 60, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(646, 60, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '646', '646-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(647, 60, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 19:06:22', '2015-05-24 19:06:22', 1, 1),
(648, 61, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(649, 61, 'Reference no.', 'reference_no', 'Reference no.', 1, 1, 1, 1, 1, 0, 'left', 1, 500, 0, '', '', '', '', '', '', 5, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(650, 61, 'Supplier', 'supplier_mst_code', 'Supplier', 1, 1, 1, 1, 1, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstsupplier', '650', '650-supplier_mst_code', 'code:supplier_code supplier_name', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstsupplier.html', 10, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(651, 61, 'Reference no. 2', 'reference_no2', 'Reference no. 2', 0, 1, 1, 1, 0, 0, 'left', 1, 500, 0, '', '', '', '', '', '', 15, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(652, 61, 'G/L Code', 'chart_of_accounts_mst_code', 'Chart of Accounts Code', 1, 1, 1, 1, 1, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstchartofaccounts', '652', '652-chart_of_accounts_mst_code', 'code:gl_code account_title', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstchartofaccounts.html', 20, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(653, 61, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 25, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(654, 61, 'Particulars', 'particulars', 'Particulars', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 30, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(655, 61, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(656, 61, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '656', '656-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(657, 61, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(658, 61, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '658', '658-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(659, 61, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 19:15:23', '2015-05-24 19:15:23', 1, 1),
(660, 63, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(661, 63, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(662, 63, 'Customer Group Name', 'customer_group_name', 'Customer Group Name', 1, 1, 1, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 10, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(663, 63, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(664, 63, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(665, 63, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '665', '665-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(666, 63, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(667, 63, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '667', '667-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(668, 63, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 20:31:24', '2015-05-24 20:31:24', 1, 1),
(669, 64, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(670, 64, 'Check Type', 'check_type', 'Check Type', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(671, 64, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(672, 64, 'Clearing Days', 'clearing_days', 'Clearing Days', 0, 1, 1, 1, 1, 0, 'left', 2, 4, 0, '', '', '', '', '', '', 35, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(673, 64, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(674, 64, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '674', '674-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(675, 64, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(676, 64, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '676', '676-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(677, 64, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 20:43:01', '2015-05-24 20:43:01', 1, 1),
(678, 65, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(679, 65, 'Doc. Code', 'document_code', 'Document Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(680, 65, 'Type', 'transaction_type', 'Transaction Type', 1, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '0:All|1:A/P|2:A/R|3:C/V|4:O/R|5:J/V', '', 10, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(681, 65, 'Document Name', 'document_name', 'Document', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 15, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(682, 65, 'Description', 'description', 'Description', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(683, 65, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(684, 65, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '684', '684-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(685, 65, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(686, 65, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '686', '686-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(687, 65, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 20:52:34', '2015-05-24 20:52:34', 1, 1),
(688, 66, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(689, 66, 'Short Name', 'short_name', 'Short Name', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(690, 66, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(691, 66, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(692, 66, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '692', '692-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(693, 66, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(694, 66, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '694', '694-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(695, 66, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 20:56:38', '2015-05-24 20:56:38', 1, 1),
(696, 67, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(697, 67, 'From Unit', 'from_unit_mst_code', 'From Unit', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstunit', '697', '697-from_unit_mst_code', 'code:description', '', 5, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(698, 67, 'To Unit', 'to_unit_mst_code', 'To Unit', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstunit', '698', '698-to_unit_mst_code', 'code:description', '', 15, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(699, 67, 'Conversion Rate', 'conversion_rate', 'Conversion Rate', 1, 1, 1, 1, 1, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 25, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(700, 67, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(701, 67, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '701', '701-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(702, 67, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(703, 67, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '703', '703-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(704, 67, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 21:03:53', '2015-05-24 21:03:53', 1, 1),
(705, 68, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(706, 68, 'Item Class Code', 'item_class_code', 'Item Class Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(707, 68, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(708, 68, 'G/L Code', 'chart_of_accounts_mst_code', 'Chart of Accounts Code', 0, 1, 1, 1, 0, 0, 'left', 10, 0, 2, 'bd926c5_iisaac_test', 'mstchartofaccounts', '708', '708-chart_of_accounts_mst_code', 'code:gl_code account_title', 'remotelink=api/ReceiveSelect2Tables.php|templatefileloc=includes/typeaheadtemplates/mstchartofaccounts.html', 25, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(709, 68, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(710, 68, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '710', '710-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(711, 68, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(712, 68, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '712', '712-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(713, 68, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-05-24 21:09:05', '2015-05-24 21:09:05', 1, 1),
(714, 69, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-05-24 21:15:17', '2015-05-24 21:15:17', 1, 1),
(715, 69, 'Item Subclass Code', 'item_subclass_code', 'Item Subclass Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 5, '', '2015-05-24 21:15:17', '2015-05-24 21:15:17', 1, 1),
(716, 69, 'Item Class', 'item_class_mst_code', 'Item Class', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstitemclass', '716', '716-item_class_mst_code', 'code:description', '', 10, '', '2015-05-24 21:15:17', '2015-05-24 21:15:17', 1, 1),
(717, 69, 'Description', 'description', 'Description', 1, 1, 1, 1, 1, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 20, '', '2015-05-24 21:15:17', '2015-05-24 21:15:17', 1, 1);

INSERT INTO `_dtlmasterfiletemplatescolumns` (`code`, `master_file_templates_code`, `field_name`, `table_field_name`, `field_header_caption`, `can_display_on_table`, `can_show`, `can_add`, `can_edit`, `is_required`, `is_unique`, `alignment`, `data_type`, `max_length`, `data_source`, `data_source_database_name`, `data_source_table_name`, `data_source_table_alias`, `data_source_field_alias`, `data_source_value_pair`, `special_conditions`, `print_order`, `remarks`, `created_at`, `updated_at`, `created_user_mst_code`, `updated_user_mst_code`) VALUES
(950, 99, 'Company', 'company_mst_code', 'Company', 1, 1, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcompany', '950', '950-company_mst_code', 'code:company_name', '', 10, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(951, 99, 'Branch', 'branch_mst_code', 'Branch', 1, 1, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbranch', '951', '951-branch_mst_code', 'code:branch_name', 'chainingparentid=masterfiletransaction-id-7-950-company_mst_code|chainingparentfield=company_mst_code', 15, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(952, 99, 'Booking Year', 'booking_year', 'Booking Year', 1, 1, 0, 0, 0, 0, 'left', 2, 50, 0, '', '', '', '', '', 'customformat=yes|format=9999', 20, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(953, 99, 'Booking Period', 'booking_period', 'Booking Period', 1, 1, 0, 0, 0, 0, 'left', 3, 50, 0, '', '', '', '', '', '', 25, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(954, 99, 'Period Description', 'period_description', 'Period Description', 1, 1, 0, 1, 1, 0, 'left', 1, 200, 0, '', '', '', '', '', '', 30, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(955, 99, 'Is Closed?', 'is_closed', 'Is Closed?', 1, 1, 0, 0, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 35, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(956, 99, 'Remarks', 'remarks', 'Remarks', 0, 1, 0, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 75, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(957, 99, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '957', '957-created_user_mst_code', 'code:whole_name', '', 80, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(958, 99, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 85, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(959, 99, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '959', '959-updated_user_mst_code', 'code:whole_name', '', 90, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(960, 99, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 95, '', '2015-06-09 17:13:14', '2015-06-09 17:13:14', 1, 1),
(961, 100, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(962, 100, 'Client Type', 'assured_type', 'Client Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Individual|2:Corporate|3:Institutional|4:Groups', '', 5, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(963, 100, 'Institution Type', 'institution_type', 'Institution Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:AFP|2:PNP|3:Others', '', 10, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(964, 100, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 15, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(965, 100, 'Client Name', 'assured_name', 'Client Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 20, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(966, 100, 'Title', 'title', 'Title', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 25, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(967, 100, 'First Name', 'first_name', 'First Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 30, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(968, 100, 'Middle Name', 'middle_name', 'Middle Name', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 35, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(969, 100, 'Last Name', 'last_name', 'Last Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 40, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(970, 100, 'Gender', 'gender', 'Gender', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', 'M:Male|F:Female', '', 45, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(971, 100, 'Is Active?', 'is_active', 'Is Active?', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 50, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(972, 100, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 55, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(973, 100, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '973', '973-payment_term_mst_code', 'code:term_name', '', 60, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(974, 100, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 65, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(975, 100, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 70, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(976, 100, 'Client Since', 'client_since_date', 'Client Since', 0, 1, 1, 1, 0, 0, 'left', 4, 20, 0, '', '', '', '', '', '', 75, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(977, 100, 'Phone Number', 'phone_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(978, 100, 'Cellphone Number', 'cellphone_number', 'Cellphone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 85, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(979, 100, 'Fax Number', 'fax_number', 'Fax Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 90, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(980, 100, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 95, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(981, 100, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '981', '981-created_user_mst_code', 'code:whole_name', '', 100, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(982, 100, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 105, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(983, 100, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '983', '983-updated_user_mst_code', 'code:whole_name', '', 110, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(984, 100, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 115, '', '2015-06-09 23:33:38', '2015-06-09 23:33:38', 1, 1),
(985, 101, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(986, 101, 'Agent Code', 'agent_code', 'Agent Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 3, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(987, 101, 'Type', 'agent_type', 'Type', 0, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Individual|2:Corporate|3:Institutional|4:Groups', '', 5, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(988, 101, 'Institution Type', 'institution_type', 'Institution Type', 0, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:AFP|2:PNP|3:Others', '', 10, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(989, 101, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 15, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(990, 101, 'Agent Name', 'agent_name', 'Agent Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 20, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(992, 101, 'First Name', 'first_name', 'First Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 30, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(993, 101, 'Middle Name', 'middle_name', 'Middle Name', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 35, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(994, 101, 'Last Name', 'last_name', 'Last Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 40, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(995, 101, 'Gender', 'gender', 'Gender', 0, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', 'M:Male|F:Female', '', 45, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(996, 101, 'Is Active?', 'is_active', 'Is Active?', 1, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 50, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(998, 101, 'License No.', 'license_no', 'License No.', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 55, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(999, 101, 'Agent Type', 'agent_type_mst_code', 'Agent Type', 1, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstagenttype', '999', '999-agent_type_mst_code', 'code:agent_type_description', '', 57, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1000, 101, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '1000', '1000-payment_term_mst_code', 'code:term_name', '', 60, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1001, 101, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 65, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1002, 101, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 70, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1003, 101, 'Agent Since', 'agent_since_date', 'Agent Since', 0, 1, 1, 1, 0, 0, 'left', 4, 20, 0, '', '', '', '', '', '', 75, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1004, 101, 'Phone Number', 'phone_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1007, 101, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 92, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1008, 101, 'VAT Rate', 'vat_rate', 'VAT Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 94, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1009, 101, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 200, 0, '', '', '', '', '', '', 200, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1010, 101, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1010', '1010-created_user_mst_code', 'code:whole_name', '', 210, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1011, 101, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 220, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1012, 101, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1012', '1012-updated_user_mst_code', 'code:whole_name', '', 230, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1013, 101, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 240, '', '2015-06-09 23:47:01', '2015-06-09 23:47:01', 1, 1),
(1014, 21, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1015, 21, 'Menu Name', 'menu_name', 'Menu Name (NOT NEEDED IF DETAIL)', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 20, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1016, 21, 'Parent Menu', 'menu_item_mst_code', 'Parent Menu', 1, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstmenuitem', '1016', '1016-menu_item_mst_code', 'code:menu_name', '', 10, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1017, 21, 'Menu Type', 'type', 'Menu Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Parent|2:Detail', '', 30, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1018, 21, 'Module', 'module_mst_code', 'Module', 1, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstmodule', '1018', '1018-module_mst_code', 'code:short_name', '', 40, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1019, 21, 'Is Active?', 'is_active', 'Is Active?', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 50, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1020, 21, 'Order no.', 'order_no', 'Print order number', 0, 1, 1, 1, 1, 0, 'right', 2, 4, 0, '', '', '', '', '', '', 60, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1021, 21, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 95, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1022, 21, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1022', '1022-created_user_mst_code', 'code:whole_name', '', 100, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1023, 21, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 105, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1024, 21, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1024', '1024-updated_user_mst_code', 'code:whole_name', '', 110, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1025, 21, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 115, '', '2015-06-10 11:41:21', '2015-06-10 11:41:21', 1, 1),
(1026, 102, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1027, 102, 'Unlicensed Intermediary Code', 'solicitor_code', 'Unlicensed Intermediary Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 3, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1028, 102, 'Type', 'solicitor_type', 'Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Individual|2:Corporate|3:Institutional|4:Groups', '', 5, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1029, 102, 'Institution Type', 'institution_type', 'Institution Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:AFP|2:PNP|3:Others', '', 10, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1030, 102, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 15, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1031, 102, 'Unlicensed Intermediary Name', 'solicitor_name', 'Unlicensed Intermediary Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 20, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1033, 102, 'First Name', 'first_name', 'First Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 30, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1034, 102, 'Middle Name', 'middle_name', 'Middle Name', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 35, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1035, 102, 'Last Name', 'last_name', 'Last Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 40, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1036, 102, 'Unlicensed Intermediary Since', 'solicitor_since_date', 'Unlicensed Intermediary Since', 0, 1, 1, 1, 0, 0, 'left', 4, 20, 0, '', '', '', '', '', '', 75, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1037, 102, 'Phone Number', 'phone_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1038, 102, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 92, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1039, 102, 'VAT Rate', 'vat_rate', 'VAT Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 94, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1040, 102, 'Mailing Country', 'mailing_country_mst_code', 'Mailing Country', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1040', '1040-mailing_country_mst_code', 'code:country_name', '', 95, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1041, 102, 'Mailing Region', 'mailing_region_mst_code', 'Mailing Region', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1041', '1041-mailing_region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1040-mailing_country_mst_code|chainingparentfield=country_mst_code', 96, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1042, 102, 'Mailing Province', 'mailing_province_mst_code', 'Mailing Province', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1042', '1042-mailing_province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1041-mailing_region_mst_code|chainingparentfield=region_mst_code', 97, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1043, 102, 'Mailing City', 'mailing_city_mst_code', 'Mailing City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1043', '1043-mailing_city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1042-mailing_province_mst_code|chainingparentfield=province_mst_code', 98, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1044, 102, 'Mailing Barangay', 'mailing_barangay_mst_code', 'Mailing Barangay', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1044', '1044-mailing_barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1043-mailing_city_mst_code|chainingparentfield=city_mst_code', 100, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1045, 102, 'Mailing Street Address', 'mailing_street_address', 'Mailing Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 102, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1046, 102, 'Billing Country', 'billing_country_mst_code', 'Billing Country', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1046', '1046-billing_country_mst_code', 'code:country_name', '', 105, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1047, 102, 'Billing Region', 'billing_region_mst_code', 'Billing Region', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1047', '1047-billing_region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1046-billing_country_mst_code|chainingparentfield=country_mst_code', 106, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1048, 102, 'Billing Province', 'billing_province_mst_code', 'Billing Province', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1048', '1048-billing_province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1047-billing_region_mst_code|chainingparentfield=region_mst_code', 107, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1049, 102, 'Billing City', 'billing_city_mst_code', 'Billing City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1049', '1049-billing_city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1048-billing_province_mst_code|chainingparentfield=province_mst_code', 108, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1050, 102, 'Billing Barangay', 'billing_barangay_mst_code', 'Billing Barangay', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1050', '1050-billing_barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1049-billing_city_mst_code|chainingparentfield=city_mst_code', 109, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1051, 102, 'Billing Street Address', 'billing_street_address', 'Billing Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 110, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1052, 102, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 112, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1053, 102, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1053', '1053-created_user_mst_code', 'code:whole_name', '', 113, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1054, 102, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 115, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1055, 102, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1055', '1055-updated_user_mst_code', 'code:whole_name', '', 120, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1056, 102, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 125, '', '2015-06-10 22:15:16', '2015-06-10 22:15:16', 1, 1),
(1057, 103, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1058, 103, 'Reinsurer Code', 'reinsurer_code', 'Reinsurer Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1059, 103, 'Reinsurer Type', 'reinsurer_type_mst_code', 'Reinsurer Type', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstreinsurertype', '1059', '1059-reinsurer_type_mst_code', 'code:reinsurer_type_name', '', 20, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1060, 103, 'Local Type', 'local_type', 'Local Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Local|2:Foreign|3:ASEAN', '', 30, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1061, 103, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 40, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1062, 103, 'Reinsurer Name', 'reinsurer_name', 'Reinsurer Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 45, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1063, 103, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 50, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1064, 103, 'Attention', 'attention', 'Attention', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 55, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1065, 103, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '1065', '1065-payment_term_mst_code', 'code:term_name', '', 60, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1066, 103, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 65, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1067, 103, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 70, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1068, 103, 'Phone Number', 'phone_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1069, 103, 'Fax Number', 'fax_number', 'Fax Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 90, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1070, 103, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 92, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1071, 103, 'VAT Rate', 'vat_rate', 'VAT Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 94, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1072, 103, 'Included in PPW Reminder?', 'is_included_ppw_reminder', 'Is Included in PPW Reminder?', 0, 1, 1, 1, 0, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Yes|2:No', '', 95, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1073, 103, 'Mailing Country', 'mailing_country_mst_code', 'Mailing Country', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1073', '1073-mailing_country_mst_code', 'code:country_name', '', 100, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1074, 103, 'Mailing Region', 'mailing_region_mst_code', 'Mailing Region', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1074', '1074-mailing_region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1073-mailing_country_mst_code|chainingparentfield=country_mst_code', 106, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1075, 103, 'Mailing Province', 'mailing_province_mst_code', 'Mailing Province', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1075', '1075-mailing_province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1074-mailing_region_mst_code|chainingparentfield=region_mst_code', 107, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1076, 103, 'Mailing City', 'mailing_city_mst_code', 'Mailing City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1076', '1076-mailing_city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1075-mailing_province_mst_code|chainingparentfield=province_mst_code', 108, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1077, 103, 'Mailing Barangay', 'mailing_barangay_mst_code', 'Mailing Barangay', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1077', '1077-mailing_barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1076-mailing_city_mst_code|chainingparentfield=city_mst_code', 109, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1078, 103, 'Mailing Street Address', 'mailing_street_address', 'Mailing Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 114, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1079, 103, 'Billing Country', 'billing_country_mst_code', 'Billing Country', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1079', '1079-billing_country_mst_code', 'code:country_name', '', 115, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1080, 103, 'Billing Region', 'billing_region_mst_code', 'Billing Region', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1080', '1080-billing_region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1079-billing_country_mst_code|chainingparentfield=country_mst_code', 116, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1081, 103, 'Billing Province', 'billing_province_mst_code', 'Billing Province', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1081', '1081-billing_province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1080-billing_region_mst_code|chainingparentfield=region_mst_code', 117, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1082, 103, 'Billing City', 'billing_city_mst_code', 'Billing City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1082', '1082-billing_city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1081-billing_province_mst_code|chainingparentfield=province_mst_code', 118, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1083, 103, 'Billing Barangay', 'billing_barangay_mst_code', 'Billing Barangay', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1083', '1083-billing_barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1082-billing_city_mst_code|chainingparentfield=city_mst_code', 119, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1084, 103, 'Billing Street Address', 'billing_street_address', 'Billing Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 120, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1085, 103, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 122, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1086, 103, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1086', '1086-created_user_mst_code', 'code:whole_name', '', 124, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1087, 103, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 125, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1088, 103, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1088', '1088-updated_user_mst_code', 'code:whole_name', '', 130, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1089, 103, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 135, '', '2015-06-10 22:45:30', '2015-06-10 22:45:30', 1, 1),
(1090, 104, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1091, 104, 'Adjuster Code', 'adjuster_code', 'Adjuster Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1092, 104, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 20, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1093, 104, 'Adjuster Type', 'adjuster_type', 'Adjuster Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Outside Adjusters|2:In-house Adjusters', '', 30, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1094, 104, 'Adjuster Linked User', 'adjuster_user_mst_code', 'Adjuster Linked User', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstuser', '1094', '1094-adjuster_user_mst_code', 'code:whole_name', 'condition=equals|condition_source_table_field=department_mst_Code|condition_source_table_field_value=13|orderby=first_name, last_name, code ASC', 40, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1095, 104, 'Adjuster Name', 'adjuster_name', 'Adjuster Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 45, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1096, 104, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 50, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1097, 104, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '1097', '1097-payment_term_mst_code', 'code:term_name', '', 60, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1098, 104, 'Phone Number', 'contact_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1099, 104, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 92, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1100, 104, 'VAT Rate', 'vat_rate', 'VAT Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 94, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1101, 104, 'Country', 'country_mst_code', 'Country', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1101', '1101-country_mst_code', 'code:country_name', '', 100, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1102, 104, 'Region', 'region_mst_code', 'Region', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1102', '1102-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1101-country_mst_code|chainingparentfield=country_mst_code', 106, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1103, 104, 'Province', 'province_mst_code', 'Province', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1103', '1103-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1102-region_mst_code|chainingparentfield=region_mst_code', 107, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1104, 104, 'City', 'city_mst_code', 'City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1104', '1104-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1103-province_mst_code|chainingparentfield=province_mst_code', 108, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1105, 104, 'Barangay', 'barangay_mst_code', 'Barangay', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1105', '1105-barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1104-city_mst_code|chainingparentfield=city_mst_code', 109, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1106, 104, 'Street Address', 'street_address', 'Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 114, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1107, 104, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 122, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1108, 104, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1108', '1108-created_user_mst_code', 'code:whole_name', '', 124, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1109, 104, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 125, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1110, 104, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1110', '1110-updated_user_mst_code', 'code:whole_name', '', 130, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1111, 104, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 135, '', '2015-06-10 23:01:32', '2015-06-10 23:01:32', 1, 1),
(1112, 105, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1113, 105, 'Repair Shop Code', 'repair_shop_code', 'Repair Shop Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1114, 105, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 20, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1115, 105, 'Repair Shop Name', 'repair_shop_name', 'Repair Shop Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 45, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1116, 105, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 50, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1117, 105, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '1117', '1117-payment_term_mst_code', 'code:term_name', '', 60, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1118, 105, 'Phone Number', 'contact_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1119, 105, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 92, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1120, 105, 'VAT Rate', 'vat_rate', 'VAT Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 94, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1121, 105, 'Country', 'country_mst_code', 'Country', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1121', '1121-country_mst_code', 'code:country_name', '', 100, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1122, 105, 'Region', 'region_mst_code', 'Region', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1122', '1122-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1121-country_mst_code|chainingparentfield=country_mst_code', 106, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1123, 105, 'Province', 'province_mst_code', 'Province', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1123', '1123-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1122-region_mst_code|chainingparentfield=region_mst_code', 107, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1124, 105, 'City', 'city_mst_code', 'City', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1124', '1124-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1123-province_mst_code|chainingparentfield=province_mst_code', 108, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1125, 105, 'Barangay', 'barangay_mst_code', 'Barangay', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1125', '1125-barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1124-city_mst_code|chainingparentfield=city_mst_code', 109, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1126, 105, 'Street Address', 'street_address', 'Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 114, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1127, 105, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 122, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1128, 105, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1128', '1128-created_user_mst_code', 'code:whole_name', '', 124, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1129, 105, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 125, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1130, 105, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1130', '1130-updated_user_mst_code', 'code:whole_name', '', 130, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1131, 105, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 135, '', '2015-06-10 23:09:01', '2015-06-10 23:09:01', 1, 1),
(1132, 106, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1133, 106, 'Third Party Code', 'third_party_code', 'Third Party Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1134, 106, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 20, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1135, 106, 'Third Party Name', 'third_party_name', 'Third Party Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 45, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1136, 106, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 50, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1137, 106, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '1137', '1137-payment_term_mst_code', 'code:term_name', '', 60, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1138, 106, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 70, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1139, 106, 'Phone Number', 'contact_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1140, 106, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 92, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1141, 106, 'VAT Rate', 'vat_rate', 'VAT Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 94, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1142, 106, 'Country', 'country_mst_code', 'Country', 0, 0, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcountry', '1142', '1142-country_mst_code', 'code:country_name', '', 100, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1143, 106, 'Region', 'region_mst_code', 'Region', 0, 0, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstregion', '1143', '1143-region_mst_code', 'code:region_name', 'chainingparentid=masterfiletransaction-id-7-1142-country_mst_code|chainingparentfield=country_mst_code', 106, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1144, 106, 'Province', 'province_mst_code', 'Province', 0, 0, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstprovince', '1144', '1144-province_mst_code', 'code:province_name', 'chainingparentid=masterfiletransaction-id-7-1143-region_mst_code|chainingparentfield=region_mst_code', 107, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1145, 106, 'City', 'city_mst_code', 'City', 0, 0, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstcity', '1145', '1145-city_mst_code', 'code:city_name', 'chainingparentid=masterfiletransaction-id-7-1144-province_mst_code|chainingparentfield=province_mst_code', 108, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1146, 106, 'Barangay', 'barangay_mst_code', 'Barangay', 0, 0, 0, 0, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstbarangay', '1146', '1146-barangay_mst_code', 'code:barangay_name', 'chainingparentid=masterfiletransaction-id-7-1145-city_mst_code|chainingparentfield=city_mst_code', 109, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1147, 106, 'Street Address', 'street_address', 'Street Address', 0, 1, 1, 1, 0, 0, 'left', 5, 500, 0, '', '', '', '', '', '', 114, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1148, 106, 'Remarks', 'remarks', 'Remarks', 0, 1, 1, 1, 0, 0, 'left', 5, 50, 0, '', '', '', '', '', '', 122, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1149, 106, 'Created by', 'created_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1149', '1149-created_user_mst_code', 'code:whole_name', '', 124, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1150, 106, 'Created at', 'created_at', 'Date time created', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 125, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1151, 106, 'Last Updated By', 'updated_user_mst_code', 'Username', 0, 1, 0, 0, 0, 0, 'left', 10, 50, 2, 'bd926c5_iisaac_test', 'mstuser', '1151', '1151-updated_user_mst_code', 'code:whole_name', '', 130, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1152, 106, 'Last updated at', 'updated_at', 'Date time updated', 0, 1, 0, 0, 0, 0, 'left', 4, 50, 0, '', '', '', '', '', 'usesformat=yes|formatmode=datetime|format=F d Y h:i a', 135, '', '2015-06-10 23:12:58', '2015-06-10 23:12:58', 1, 1),
(1153, 107, 'Internal Code', 'code', 'Code', 1, 1, 0, 0, 0, 0, 'left', 0, 20, 0, '', '', '', '', '', '', 0, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1154, 107, 'Supplier Code', 'supplier_code', 'Supplier Code', 1, 1, 1, 1, 1, 1, 'left', 1, 50, 0, '', '', '', '', '', '', 10, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1155, 107, 'Type', 'supplier_type', 'Type', 1, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Individual|2:Corporate|3:Institutional|4:Groups', '', 15, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1156, 107, 'Supplier Group', 'supplier_group_mst_code', 'Supplier Group', 1, 1, 1, 1, 1, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstsuppliergroup', '1156', '1156-supplier_group_mst_code', 'code:supplier_group_name', '', 20, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1157, 107, 'Institution Type', 'institution_type', 'Institution Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:AFP|2:PNP|3:Others', '', 25, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1158, 107, 'Tax Type', 'tax_type', 'Tax Type', 0, 1, 1, 1, 1, 0, 'left', 8, 0, 1, 'bd926c5_iisaac_test', '', '', '', '1:Vatable|2:Non-VAT|3:Zero Rated|4:Tax Exempt', '', 30, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1159, 107, 'Supplier Name', 'supplier_name', 'Supplier Name', 1, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 45, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1160, 107, 'First Name', 'first_name', 'First Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 50, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1161, 107, 'Middle Name', 'middle_name', 'Middle Name', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 55, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1162, 107, 'Last Name', 'last_name', 'Last Name', 0, 1, 1, 1, 1, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 60, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1163, 107, 'Contact Person', 'contact_person', 'Contact Person', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 65, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1164, 107, 'TIN', 'tin', 'TIN', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', 'customformat=yes|format=999-999-999-999', 70, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1165, 107, 'Term Agreement', 'payment_term_mst_code', 'Term Agreement', 0, 1, 1, 1, 0, 0, 'left', 7, 0, 2, 'bd926c5_iisaac_test', 'mstpaymentterm', '1165', '1165-payment_term_mst_code', 'code:term_name', '', 75, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1166, 107, 'E-mail Address', 'email_address', 'E-mail Address', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 80, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1167, 107, 'Phone Number', 'contact_number', 'Phone Number', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 82, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1168, 107, 'WHT Rate', 'wtax_rate', 'Withholding Tax Rate', 0, 1, 1, 1, 0, 0, 'left', 3, 30, 0, '', '', '', '', '', '', 90, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1),
(1169, 107, 'VAT No.', 'vat_no', 'VAT No', 0, 1, 1, 1, 0, 0, 'left', 1, 150, 0, '', '', '', '', '', '', 95, '', '2015-06-11 00:06:13', '2015-06-11 00:06:13', 1, 1);
