-- Table structure for table `erp_audit_log_functionality_lookup`
--

CREATE TABLE `erp_audit_log_functionality_lookup` (
  `id` int(11) NOT NULL,
  `symbolic_name` varchar(50) NOT NULL,
  `enum_name` varchar(50) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_audit_log_functionality_lookup`
--

INSERT INTO `erp_audit_log_functionality_lookup` (`id`, `symbolic_name`, `enum_name`, `isActive`) VALUES
(1, 'Customers', 'CUSTOMERS', 'Y'),
(2, 'Prospects', 'PROSPECTS', 'Y'),
(3, 'Leads', 'LEADS', 'Y'),
(4, 'Quotations', 'QUOTATIONS', 'Y'),
(5, 'Orders', 'ORDERS', 'Y'),
(6, 'Delivery Note', 'DELIVERY_NOTE', 'Y'),
(7, 'Invoice', 'INVOICE', 'Y'),
(8, 'Sales Return', 'SALES_RETURN', 'Y'),
(9, 'Vendor', 'VENDOR', 'Y'),
(10, 'Requisition', 'REQUISITION', 'Y'),
(11, 'Purchase Enquiry', 'PURCHASE_ENQUIRY', 'Y'),
(12, 'Purchase Order', 'PURCHASE_ORDER', 'Y'),
(13, 'Material Receipt (Stores)', 'MATERIAL_RECEIPT', 'Y'),
(14, 'Material Receipt (QC)', 'QUALITY_CHECK', 'Y'),
(15, 'Purchase Invoice', 'PURCHASE_INVOICE', 'Y'),
(16, 'Purchase Return', 'PURCHASE_RETURN', 'Y'),
(17, 'Landing Cost Calculation', 'LANDING_COST', 'Y'),
(18, 'Finished Products', 'FINISHED_PRODUCTS', 'Y'),
(19, 'Service', 'SERVICE', 'Y'),
(20, 'Raw Material', 'RAW_MATERIAL', 'Y'),
(21, 'Batch Split', 'BATCH_SPLIT', 'Y'),
(22, 'Issues', 'ISSUES', 'Y'),
(23, 'Direct Transfer', 'DIRECT_TRANSFER', 'Y'),
(24, 'External Transfer', 'INDIRECT_TRANSFER', 'Y'),
(25, 'Receive Items', 'RECEIVE_ITEMS', 'Y'),
(26, 'Material To Material Transfer', 'MATERIAL_TO_MATERIAL_TRANSFER', 'Y'),
(27, 'Bill of Material', 'BILL_OF_MATERIAL', 'Y'),
(28, 'Production Order', 'PRODUCTION_ORDER', 'Y'),
(29, 'Goods Issue', 'GOODS_ISSUE', 'Y'),
(30, 'Goods Receipt', 'GOODS_RECEIPT', 'Y'),
(31, 'Bank', 'BANK', 'Y'),
(32, 'Currencies', 'CURRENCIES', 'Y'),
(33, 'Payment Terms', 'PAYMENT_TERMS', 'Y'),
(34, 'Footer Items', 'FOOTER_ITEMS', 'Y'),
(35, 'Branch', 'BRANCH', 'Y'),
(36, 'Company WPS Details', 'COMPANY_WPS_DETAILS', 'Y'),
(37, 'Leave Type', 'LEAVE_TYPE', 'Y'),
(38, 'Document', 'DOCUMENT', 'Y'),
(39, 'Appraisal', 'APPRAISAL', 'Y'),
(40, 'Salary', 'SALARY', 'Y'),
(41, 'General', 'GENERAL', 'Y'),
(42, 'Shift Timings', 'SHIFT_TIMINGS', 'Y'),
(43, 'EOS', 'EOS', 'Y'),
(44, 'Notice Period', 'NOTICE_PERIOD', 'Y'),
(45, 'Warehouse Master', 'WAREHOUSE_MASTER', 'Y'),
(46, 'Brand Master', 'BRAND_MASTER', 'Y'),
(47, 'Rack Master', 'RACK_MASTER', 'Y'),
(48, 'Bin Master', 'BIN_MASTER', 'Y'),
(49, 'Unit Master', 'UNIT_MASTER', 'Y'),
(50, 'Generic Master', 'GENERIC_MASTER', 'Y'),
(51, 'Tax Master', 'TAX_MASTER', 'Y'),
(52, 'Price Group Master', 'PRICE_GROUP_MASTER', 'Y'),
(53, 'Price List', 'PRICE_LIST', 'Y'),
(54, 'Sales Groups', 'SALES_GROUPS', 'Y'),
(55, 'Projects', 'PROJECTS', 'Y'),
(56, 'Probabilities', 'PROBABILITIES', 'Y'),
(57, 'Industry', 'INDUSTRY', 'Y'),
(58, 'Quotation Close Reasons', 'QUOTATION_CLOSE_REASONS', 'Y'),
(59, 'Terms and Conditions', 'TERMS_AND_CONDITIONS', 'Y'),
(60, 'Approval Matrix', 'APPROVAL_MATRIX', 'Y'),
(61, 'Prefix', 'PREFIX', 'Y'),
(62, 'Sales Target', 'SALES_TARGET', 'Y'),
(63, 'Country', 'COUNTRY', 'Y'),
(64, 'Shipping Methods', 'SHIPPING_METHODS', 'Y'),
(65, 'Tracking', 'TRACKING', 'Y'),
(66, 'Messaging', 'MESSAGING', 'Y'),
(69, 'Fixed Asset Master', 'FIXED_ASSET_MASTER', 'Y'),
(70, 'Depreciaton', 'DEPRECIATION', 'Y'),
(71, 'Fixed Asset Register', 'FIXED_ASSET_REGISTER', 'Y'),
(72, 'Aggregate', 'AGGREGATE', 'Y'),
(73, 'Landed Cost Item', 'LANDED_COST_ITEM', 'Y'),
(74, 'Employee Type', 'EMPLOYEE_TYPE', 'Y'),
(75, 'Document Type', 'DOCUMENT_TYPE', 'Y'),
(76, 'Supplier Type', 'SUPPLIER_TYPE', 'Y'),
(77, 'Bill Type', 'BILL_TYPE', 'Y'),
(78, 'User', 'USER', 'Y'),
(79, 'User Groups', 'USER_GROUPS', 'Y'),
(80, 'Change Rack and Bin', 'CHANGE_RACK_BIN', 'Y'),
(81, 'Delivery Note Cancellation', 'DELIVERY_NOTE_CANCELLED', 'Y'),
(83, 'Advance Invoice', 'ADVANCE_INVOICE', 'Y'),
(84, 'Delivery Rent Date Changed', 'DELIVERY_RENT_DATE_CHANGED', 'Y'),
(85, 'Delivery Date Changed', 'DELIVERY_DELIVERY_DATE_CHANGED', 'Y'),
(88, 'Hire External Transfer', 'HIRE_INDIRECT_TRANSFER', 'Y'),
(89, 'Receipts', 'RECEIPTS', 'Y'),
(90, 'Flyer', 'FLYER_MASTER', 'Y'),
(91, 'Machine Document', 'MACHINE_DOCUMENT', 'Y'),
(92, 'User Login', 'LOGIN', 'Y'),
(93, 'User Log Out', 'LOGOUT', 'Y'),
(94, 'EOS Payment Master', 'EOSPAYMENT', 'Y'),
(95, 'Purchase Order Shipment', 'PO_TRACK_SHIPMENT', 'Y'),
(96, 'Location Master', 'LOCATION', 'Y'),
(97, 'ProjectExternalCompany', 'PROJECTEXTERNALCOMPANY', 'Y'),
(98, 'Task Category Master', 'TASKCATEGORY', 'Y'),
(99, 'Task SubCategory Master', 'TASKSUBCATEGORY', 'Y'),
(100, 'Labour Hours Master', 'LABOURHOURS', 'Y'),
(101, 'Activity Status', 'ACTIVITYSTATUS', 'Y'),
(102, 'Activity Type', 'ACTIVITYTYPE', 'Y'),
(103, 'Accounts', 'ACCOUNTS', 'Y');

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

--
-- Table structure for table `erp_brand_sales_target`
--

CREATE TABLE `erp_brand_sales_target` (
  `id` int(11) NOT NULL,
  `brand_id` int(11) NOT NULL,
  `yearly` decimal(15,3) NOT NULL,
  `m1` decimal(15,3) NOT NULL,
  `m2` decimal(15,3) NOT NULL,
  `m3` decimal(15,3) NOT NULL,
  `m4` decimal(15,3) NOT NULL,
  `m5` decimal(15,3) NOT NULL,
  `m6` decimal(15,3) NOT NULL,
  `m7` decimal(15,3) NOT NULL,
  `m8` decimal(15,3) NOT NULL,
  `m9` decimal(15,3) NOT NULL,
  `m10` decimal(15,3) NOT NULL,
  `m11` decimal(15,3) NOT NULL,
  `m12` decimal(15,3) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_change_rack_bin`
--

CREATE TABLE `erp_change_rack_bin` (
  `id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `partno` int(11) NOT NULL,
  `rack` int(11) NOT NULL,
  `bin` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_cheque_collection`
--

CREATE TABLE `erp_cheque_collection` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  `date_of_collection` date NOT NULL,
  `cheque_amount` decimal(15,2) NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'Not Collected',
  `no_of_cheque` int(11) NOT NULL,
  `notes` varchar(255) NOT NULL,
  `cheque_image` varchar(50) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ch_template`
--

CREATE TABLE `erp_ch_template` (
  `id` int(11) NOT NULL,
  `html` text NOT NULL,
  `has_acc_payee` enum('N','Y') NOT NULL,
  `name` varchar(200) NOT NULL,
  `bank_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_ch_template`
--

INSERT INTO `erp_ch_template` (`id`, `html`, `has_acc_payee`, `name`, `bank_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, '&lt;div class=&quot;item ui-draggable ui-draggable-handle&quot; style=&quot;font-size: 11px; font-family: sans-serif; font-weight: 400; line-height: 1.2; position: absolute; left: 69.7199px; top: 61.7292px;&quot;&gt;Payee_Name&lt;/div&gt;&lt;div class=&quot;item ui-draggable ui-draggable-handle&quot; style=&quot;font-size: 11px; font-family: sans-serif; font-weight: 400; line-height: 1.2; position: absolute; left: 673.718px; top: 46.7315px;&quot;&gt;Date&lt;/div&gt;&lt;div class=&quot;item ui-draggable ui-draggable-handle&quot; style=&quot;font-size: 11px; font-family: sans-serif; font-weight: 400; line-height: 1.2; position: absolute; left: 226.685px; top: 133.706px;&quot;&gt;00.00&lt;/div&gt;&lt;div class=&quot;item ui-draggable ui-draggable-handle&quot; style=&quot;font-size: 11px; font-family: sans-serif; font-weight: 400; line-height: 1.2; position: absolute; left: 69.7107px; top: 130.731px;&quot;&gt;Amount in word&lt;/div&gt;&lt;div class=&quot;item ui-draggable ui-draggable-handle&quot; id=&quot;ch-accout-payye&quot; style=&quot;border-color: black; border-style: solid none; border-width: 2px 0px; width: 98px; display: none; text-align: center; font-size: 11px; font-family: sans-serif; font-weight: 400; line-height: 1.2; position: absolute;&quot;&gt;Account Payee&lt;/div&gt;', 'N', 'ABC BANK', 2, 1, '2024-07-04 02:57:08', 1, '2024-07-04 02:57:55');

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

--
-- Table structure for table `erp_color_settings`
--

CREATE TABLE `erp_color_settings` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `theme_color` varchar(100) NOT NULL,
  `theme_color_right` varchar(100) NOT NULL,
  `light_color` varchar(100) NOT NULL,
  `light_color_right` varchar(100) NOT NULL,
  `logo_bg_color` varchar(100) NOT NULL,
  `print_tbl_border_color` varchar(100) NOT NULL,
  `print_tbl_header_color` varchar(100) NOT NULL,
  `print_top_left_bg` varchar(100) NOT NULL,
  `print_top_left_box_text_color` varchar(100) NOT NULL,
  `print_table_alternative_row_bg` varchar(100) NOT NULL,
  `print_footer_bg` varchar(100) NOT NULL,
  `grid_header_font_color` varchar(100) NOT NULL,
  `grid_table_bg` varchar(100) NOT NULL,
  `grid_table_row_color` varchar(100) NOT NULL,
  `button_color` varchar(100) NOT NULL,
  `button_color_right` varchar(100) NOT NULL,
  `menu_color` varchar(100) NOT NULL,
  `menu_hover_color` varchar(100) NOT NULL,
  `dashboard_count_color` varchar(100) NOT NULL,
  `tab_bg_color` varchar(100) NOT NULL,
  `login_page_bg` varchar(100) NOT NULL,
  `graph_color_one` varchar(500) NOT NULL,
  `graph_color_two` varchar(500) NOT NULL,
  `graph_color_three` varchar(500) NOT NULL,
  `graph_color_four` varchar(500) NOT NULL,
  `graph_color_five` varchar(500) NOT NULL,
  `graph_color_six` varchar(500) NOT NULL,
  `graph_color_seven` varchar(500) NOT NULL,
  `graph_color_eight` varchar(500) NOT NULL,
  `report_html_header_color` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_color_settings`
--

INSERT INTO `erp_color_settings` (`id`, `company_id`, `theme_color`, `theme_color_right`, `light_color`, `light_color_right`, `logo_bg_color`, `print_tbl_border_color`, `print_tbl_header_color`, `print_top_left_bg`, `print_top_left_box_text_color`, `print_table_alternative_row_bg`, `print_footer_bg`, `grid_header_font_color`, `grid_table_bg`, `grid_table_row_color`, `button_color`, `button_color_right`, `menu_color`, `menu_hover_color`, `dashboard_count_color`, `tab_bg_color`, `login_page_bg`, `graph_color_one`, `graph_color_two`, `graph_color_three`, `graph_color_four`, `graph_color_five`, `graph_color_six`, `graph_color_seven`, `graph_color_eight`, `report_html_header_color`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, '#3552d7', '#828df4', '#4b56d8', '#236876', '#ffffff', '#0b7d1c', '#000000', '#d2fbd9', '#000000', '#dbffd9', '#c6fdcf', '#ededed', '#ffffff', '#fafafa', '#0640d9', '#140691', '#5c5c5c', '#d6d6d6', '#0909d7', '#cfcfcf', '#04078e', '#008000', '#408080', '#008040', '#ff8080', '#8080ff', '#804000', '#808080', '#004040', '#ffffff', 1, '2025-04-30 10:44:52', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_company_menu_settings`
--

CREATE TABLE `erp_company_menu_settings` (
  `id` bigint(20) NOT NULL,
  `crm_company_id` bigint(20) NOT NULL,
  `menu_key` varchar(100) NOT NULL,
  `menu_name` varchar(150) NOT NULL,
  `company_module` int(1) NOT NULL,
  `is_enabled` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `erp_company_menu_settings`
--

INSERT INTO `erp_company_menu_settings` (`id`, `crm_company_id`, `menu_key`, `menu_name`, `company_module`, `is_enabled`) VALUES
(1, 1, 'mis_menu', 'Mis menu', 0, 1),
(2, 1, 'sales_menu', 'Sales menu', 0, 1),
(3, 1, 'customer_menu', 'Customer menu', 0, 1),
(4, 1, 'leads_menu', 'Leads menu', 0, 1),
(5, 1, 'quotation_menu', 'Quotation menu', 0, 1),
(6, 1, 'sales_order_menu', 'Sales order menu', 0, 1),
(7, 1, 'sales_invoice_menu', 'Sales invoice menu', 0, 1),
(8, 1, 'purchase_menu', 'Purchase menu', 0, 1),
(9, 1, 'suppliers_menu', 'Suppliers menu', 0, 1),
(10, 1, 'purchase_orders_menu', 'Purchase orders menu', 0, 1),
(11, 1, 'purchase_invoices_menu', 'Purchase invoices menu', 0, 1),
(12, 1, 'inventory_menu', 'Inventory menu', 0, 1),
(13, 1, 'inventory_products_menu', 'Inventory products menu', 0, 1),
(14, 1, 'inventory_issues_menu', 'Inventory issues menu', 0, 1),
(15, 1, 'inventory_receipts_menu', 'Inventory receipts menu', 0, 1),
(16, 1, 'inventory_serial_menu', 'Inventory serial menu', 0, 0),
(17, 1, 'inventory_transfer_menu', 'Inventory transfer menu', 0, 1),
(18, 1, 'inventory_transfer_out_menu', 'Inventory transfer out menu', 0, 0),
(19, 1, 'inventory_intransit_menu', 'Inventory intransit menu', 0, 0),
(20, 1, 'inventory_transfer_in_menu', 'Inventory transfer in menu', 0, 0),
(21, 1, 'assembly_menu', 'Assembly menu', 0, 1),
(22, 1, 'accounts_menu', 'Accounts menu', 0, 1),
(23, 1, 'hr_menu', 'Hr menu', 0, 1),
(24, 1, 'projects_menu', 'Projects menu', 0, 1),
(25, 1, 'fm_menu', 'Fm menu', 0, 0),
(26, 1, 'fixed_asset_menu', 'Fixed asset menu', 0, 0),
(27, 1, 'reports_menu', 'Reports menu', 0, 1),
(28, 1, 'masters_menu', 'Masters menu', 0, 1),
(29, 1, 'admin_menu', 'Admin menu', 0, 1),
(30, 1, 'lead_list', 'Lead list', 0, 1),
(31, 1, 'quotation_list', 'Quotation list', 0, 1),
(32, 1, 'order_list', 'Order list', 0, 1),
(33, 1, 'invoice_list', 'Invoice list', 0, 1),
(34, 1, 'current_stock', 'Current stock', 0, 1),
(35, 1, 'stock_movement', 'Stock movement', 0, 1),
(36, 1, 'zero_cost_items', 'Zero cost items', 0, 1),
(37, 1, 'trialbalance', 'Trialbalance', 0, 1),
(38, 1, 'profit_loss', 'Profit loss', 0, 1),
(39, 1, 'balance_report', 'Balance report', 0, 1),
(40, 1, 'general_ledger', 'General ledger', 0, 1),
(41, 1, 'ledger_report', 'Ledger report', 0, 1),
(42, 1, 'sales_groups', 'Sales groups', 0, 1),
(43, 1, 'industries', 'Industries', 0, 1),
(44, 1, 'quotation_close_reasons', 'Quotation close reasons', 0, 1),
(45, 1, 'warehouses', 'Warehouses', 0, 1),
(46, 1, 'brands', 'Brands', 0, 1),
(47, 1, 'racks', 'Racks', 0, 1),
(48, 1, 'trial_balance_detailed', 'Trial balance detailed', 0, 1),
(49, 1, 'auditclose_trial_balance', 'Auditclose trial balance', 0, 1),
(50, 1, 'profit_loss_detailed', 'Profit loss detailed', 0, 1),
(51, 1, 'balance_detailed_report', 'Balance detailed report', 0, 1),
(52, 1, 'general_ledger_new', 'General ledger new', 0, 1),
(53, 1, 'general_detailed_report', 'General detailed report', 0, 1),
(54, 1, 'ledger_summary_report', 'Ledger summary report', 0, 1),
(55, 1, 'subledger_detailed_report', 'Subledger detailed report', 0, 1),
(56, 1, 'customer_statement', 'Customer statement', 0, 1),
(57, 1, 'customer_statement_as_on_date', 'Customer statement as on date', 0, 1),
(58, 1, 'consolidated_statement_report', 'Consolidated statement report', 0, 1),
(59, 1, 'customer_pdc_statement', 'Customer pdc statement', 0, 1),
(60, 1, 'vendor_statement', 'Vendor statement', 0, 1),
(61, 1, 'vendor_statement_as_on_date', 'Vendor statement as on date', 0, 1),
(62, 1, 'vendor_pdc_statement', 'Vendor pdc statement', 0, 1),
(63, 1, 'receivable_aging', 'Receivable aging', 0, 1),
(64, 1, 'payable_aging', 'Payable aging', 0, 1),
(65, 1, 'vat_register', 'Vat register', 0, 1),
(66, 1, 'production_summary_list', 'Production summary list', 0, 1),
(67, 1, 'production_consumption_list', 'Production consumption list', 0, 1),
(68, 1, 'out_of_stock_list', 'Out of stock list', 0, 1),
(69, 1, 'vehicle_list', 'Vehicle list', 0, 1),
(70, 1, 'vehicle_service', 'Vehicle service', 0, 1),
(71, 1, 'vehicle_allotment', 'Vehicle allotment', 0, 1),
(72, 1, 'customer_list', 'Customer list', 0, 1),
(73, 1, 'customer_contact_list', 'Customer contact list', 0, 1),
(74, 1, 'vendor_list', 'Vendor list', 0, 1),
(75, 1, 'vendor_contact_list', 'Vendor contact list', 0, 1),
(76, 1, 'payment_terms', 'Payment terms', 0, 1),
(77, 1, 'activity_list', 'Activity list', 0, 1),
(78, 1, 'attendance_report', 'Attendance report', 0, 1),
(79, 1, 'company_report', 'Company report', 0, 1),
(80, 1, 'employee_report', 'Employee report', 0, 1),
(81, 1, 'leave_report', 'Leave report', 0, 1),
(82, 1, 'salary_report', 'Salary report', 0, 1),
(83, 1, 'ticket_report', 'Ticket report', 0, 1),
(84, 1, 'terms_conditions', 'Terms conditions', 0, 1),
(85, 1, 'ai_dashboard', 'Ai dashboard', 0, 1),
(86, 1, 'workspace', 'Workspace', 0, 1),
(87, 1, 'notification', 'Notification', 0, 1),
(88, 1, 'source_of_leads', 'Source of leads', 0, 1),
(89, 1, 'status_master', 'Status master', 0, 1),
(90, 1, 'bins', 'Bins', 0, 1),
(91, 1, 'units', 'Units', 0, 1),
(92, 1, 'categories', 'Categories', 0, 1),
(93, 1, 'taxes', 'Taxes', 0, 1),
(94, 1, 'inventory_item_types', 'Inventory item types', 0, 1),
(95, 1, 'upload_pricing_group', 'Upload pricing group', 0, 1),
(96, 1, 'upload_item', 'Upload item', 0, 1),
(97, 1, 'upload_stock', 'Upload stock', 0, 1),
(98, 1, 'banks', 'Banks', 0, 1),
(99, 1, 'currencies', 'Currencies', 0, 1),
(100, 1, 'payment_terms_master', 'Payment terms master', 0, 1),
(101, 1, 'footer_items', 'Footer items', 0, 1),
(102, 1, 'countries', 'Countries', 0, 1),
(103, 1, 'shipping_methods', 'Shipping methods', 0, 1),
(104, 1, 'document_types', 'Document types', 0, 1),
(105, 1, 'inco_terms', 'Inco terms', 0, 1),
(106, 1, 'fixed_assets_type', 'Fixed assets type', 0, 1),
(107, 1, 'company_module', 'Company module', 0, 1),
(108, 1, 'company_sub_module', 'Company sub module', 0, 1),
(109, 1, 'project_categories', 'Project categories', 0, 0),
(110, 1, 'project_sub_categories', 'Project sub categories', 0, 0),
(111, 1, 'external_labour', 'External labour', 0, 0),
(112, 1, 'hr_general', 'Hr general', 0, 0),
(113, 1, 'hr_finance', 'Hr finance', 0, 0),
(114, 1, 'hr_contracts', 'Hr contracts', 0, 0),
(115, 1, 'hr_settings', 'Hr settings', 0, 0),
(116, 1, 'bill_of_material_menu', 'Bill of material menu', 0, 1),
(117, 1, 'production_orders_menu', 'Production orders menu', 0, 1),
(118, 1, 'goods_issue_menu', 'Goods issue menu', 0, 1),
(119, 1, 'goods_receipts_menu', 'Goods receipts menu', 0, 1),
(120, 1, 'vouchers_menu', 'Vouchers menu', 0, 1),
(121, 1, 'allocation_list_menu', 'Allocation list menu', 0, 1),
(122, 1, 'cheque_management_menu', 'Cheque management menu', 0, 1),
(123, 1, 'reconciliation_menu', 'Reconciliation menu', 0, 1),
(124, 1, 'ledgers_menu', 'Ledgers menu', 0, 1),
(125, 1, 'subledger_type_menu', 'Subledger type menu', 0, 1),
(126, 1, 'subledgers_menu', 'Subledgers menu', 0, 1),
(127, 1, 'audit_close_menu', 'Audit close menu', 0, 1),
(128, 1, 'account_mapping_menu', 'Account mapping menu', 0, 1),
(129, 1, 'voucher_type_menu', 'Voucher type menu', 0, 1),
(130, 1, 'sync_subledgers_menu', 'Sync subledgers menu', 0, 1),
(131, 1, 'payment_mode_menu', 'Payment mode menu', 0, 1),
(132, 1, 'general_settings_menu', 'General settings menu', 0, 1),
(133, 1, 'accounts_audit_log_menu', 'Accounts audit log menu', 0, 1),
(134, 1, 'accounts_settings_menu', 'Accounts settings menu', 0, 1),
(135, 1, 'hr_dashboard_menu', 'Hr dashboard menu', 0, 1),
(136, 1, 'hr_calendar_menu', 'Hr calendar menu', 0, 1),
(137, 1, 'hr_representation_menu', 'Hr representation menu', 0, 1),
(138, 1, 'hr_employee_analysis_menu', 'Hr employee analysis menu', 0, 1),
(139, 1, 'hr_snapshot_menu', 'Hr snapshot menu', 0, 1),
(140, 1, 'employee_details_menu', 'Employee details menu', 0, 1),
(141, 1, 'biometric_exclude_menu', 'Biometric exclude menu', 0, 1),
(142, 1, 'employee_shift_menu', 'Employee shift menu', 0, 1),
(143, 1, 'upload_attendance_daily_menu', 'Upload attendance daily menu', 0, 1),
(144, 1, 'upload_attendance_range_menu', 'Upload attendance range menu', 0, 1),
(145, 1, 'daily_attendance_menu', 'Daily attendance menu', 0, 1),
(146, 1, 'employee_attendance_menu', 'Employee attendance menu', 0, 1),
(147, 1, 'monthly_attendance_menu', 'Monthly attendance menu', 0, 1),
(148, 1, 'delete_attendance_menu', 'Delete attendance menu', 0, 1),
(149, 1, 'attendance_list_menu', 'Attendance list menu', 0, 1),
(150, 1, 'mark_attendance_menu', 'Mark attendance menu', 0, 1),
(151, 1, 'meeting_flexi_menu', 'Meeting flexi menu', 0, 1),
(152, 1, 'recruitment_menu', 'Recruitment menu', 0, 1),
(153, 1, 'appraisal_menu', 'Appraisal menu', 0, 1),
(154, 1, 'leave_details_menu', 'Leave details menu', 0, 1),
(155, 1, 'add_reduce_leave_menu', 'Add reduce leave menu', 0, 1),
(156, 1, 'duty_resumption_menu', 'Duty resumption menu', 0, 1),
(157, 1, 'leave_balance_menu', 'Leave balance menu', 0, 1),
(158, 1, 'leave_encashment_menu', 'Leave encashment menu', 0, 1),
(159, 1, 'leave_settlement_menu', 'Leave settlement menu', 0, 1),
(160, 1, 'leave_settlement_list_menu', 'Leave settlement list menu', 0, 1),
(161, 1, 'leave_migration_menu', 'Leave migration menu', 0, 1),
(162, 1, 'loan_menu', 'Loan menu', 0, 1),
(163, 1, 'document_request_menu', 'Document request menu', 0, 1),
(164, 1, 'resignation_menu', 'Resignation menu', 0, 1),
(165, 1, 'complaint_suggestion_menu', 'Complaint suggestion menu', 0, 1),
(166, 1, 'eos_settlement_menu', 'Eos settlement menu', 0, 1),
(167, 1, 'gratuity_list_menu', 'Gratuity list menu', 0, 1),
(168, 1, 'offboarding_menu', 'Offboarding menu', 0, 1),
(169, 1, 'training_details_menu', 'Training details menu', 0, 1),
(170, 1, 'training_matrix_menu', 'Training matrix menu', 0, 1),
(171, 1, 'employee_tickets_menu', 'Employee tickets menu', 0, 1),
(172, 1, 'family_tickets_menu', 'Family tickets menu', 0, 1),
(173, 1, 'ticket_encashment_menu', 'Ticket encashment menu', 0, 1),
(174, 1, 'ticket_change_menu', 'Ticket change menu', 0, 1),
(175, 1, 'organization_chart_menu', 'Organization chart menu', 0, 1),
(176, 1, 'payroll_payments_menu', 'Payroll payments menu', 0, 1),
(177, 1, 'salary_calculation_menu', 'Salary calculation menu', 0, 1),
(178, 1, 'salary_component_upload_menu', 'Salary component upload menu', 0, 1),
(179, 1, 'salary_list_menu', 'Salary list menu', 0, 1),
(180, 1, 'salary_cash_menu', 'Salary cash menu', 0, 1),
(181, 1, 'salary_cheque_menu', 'Salary cheque menu', 0, 1),
(182, 1, 'salary_sif_menu', 'Salary sif menu', 0, 1),
(183, 1, 'salary_exchange_menu', 'Salary exchange menu', 0, 1),
(184, 1, 'salary_bank_menu', 'Salary bank menu', 0, 1),
(185, 1, 'salary_advance_menu', 'Salary advance menu', 0, 1),
(186, 1, 'preview_payslip_menu', 'Preview payslip menu', 0, 1),
(187, 1, 'print_payslip_menu', 'Print payslip menu', 0, 1),
(188, 1, 'disable_payslip_menu', 'Disable payslip menu', 0, 1),
(189, 1, 'salary_transfer_file_menu', 'Salary transfer file menu', 0, 1),
(190, 1, 'salary_checker_menu', 'Salary checker menu', 0, 1),
(191, 1, 'overtime_sheet_menu', 'Overtime sheet menu', 0, 1),
(192, 1, 'change_username_password_menu', 'Change username password menu', 0, 1),
(193, 1, 'change_branch_menu', 'Change branch menu', 0, 1),
(194, 1, 'change_department_menu', 'Change department menu', 0, 1),
(195, 1, 'change_designation_menu', 'Change designation menu', 0, 1),
(196, 1, 'reporting_manager_menu', 'Reporting manager menu', 0, 1),
(197, 1, 'attendance_manager_menu', 'Attendance manager menu', 0, 1),
(198, 1, 'bank_details_menu', 'Bank details menu', 0, 1),
(199, 1, 'gender_menu', 'Gender menu', 0, 1),
(200, 1, 'dob_menu', 'Dob menu', 0, 1),
(201, 1, 'doj_menu', 'Doj menu', 0, 1),
(202, 1, 'marital_status_menu', 'Marital status menu', 0, 1),
(203, 1, 'nationality_menu', 'Nationality menu', 0, 1),
(204, 1, 'weekend_menu', 'Weekend menu', 0, 1),
(205, 1, 'overtime_settings_menu', 'Overtime settings menu', 0, 1),
(206, 1, 'biometric_no_menu', 'Biometric no menu', 0, 1),
(207, 1, 'pension_scheme_menu', 'Pension scheme menu', 0, 1),
(208, 1, 'team_menu', 'Team menu', 0, 1),
(209, 1, 'salary_transfer_mode_menu', 'Salary transfer mode menu', 0, 1),
(210, 1, 'salary_calc_method_menu', 'Salary calc method menu', 0, 1),
(211, 1, 'contract_type_menu', 'Contract type menu', 0, 1),
(212, 1, 'pdf_settings_menu', 'Pdf settings menu', 0, 1),
(213, 1, 'mail_settings_menu', 'Mail settings menu', 0, 1),
(214, 1, 'assign_visa_entity_menu', 'Assign visa entity menu', 0, 1),
(215, 1, 'passport_request_menu', 'Passport request menu', 0, 1),
(216, 1, 'passport_status_menu', 'Passport status menu', 0, 1),
(217, 1, 'catalogue_menu', 'Catalogue menu', 0, 1),
(218, 1, 'internal_circular_menu', 'Internal circular menu', 0, 1),
(219, 1, 'external_circular_menu', 'External circular menu', 0, 1),
(220, 1, 'employee_documents_menu', 'Employee documents menu', 0, 1),
(221, 1, 'dependant_documents_menu', 'Dependant documents menu', 0, 1),
(222, 1, 'expense_submission_menu', 'Expense submission menu', 0, 1),
(223, 1, 'employee_expense_menu', 'Employee expense menu', 0, 1),
(224, 1, 'staff_board_menu', 'Staff board menu', 0, 1),
(225, 1, 'notes_menu', 'Notes menu', 0, 1),
(226, 1, 'notice_of_conduct_menu', 'Notice of conduct menu', 0, 1),
(227, 1, 'calendar_notification_menu', 'Calendar notification menu', 0, 1),
(228, 1, 'purchase_request_menu', 'Purchase request menu', 0, 1),
(229, 1, 'templates_menu', 'Templates menu', 0, 1),
(230, 1, 'employee_device_menu', 'Employee device menu', 0, 1),
(231, 1, 'approve_level_menu', 'Approve level menu', 0, 1),
(232, 1, 'branch_level_approve_menu', 'Branch level approve menu', 0, 1),
(233, 1, 'change_approver_menu', 'Change approver menu', 0, 1),
(234, 1, 'approval_report_menu', 'Approval report menu', 0, 1),
(235, 1, 'room_settings_menu', 'Room settings menu', 0, 1),
(236, 1, 'bed_space_menu', 'Bed space menu', 0, 1),
(237, 1, 'room_allocation_menu', 'Room allocation menu', 0, 1),
(238, 1, 'project_operations_menu', 'Project operations menu', 0, 1),
(239, 1, 'admin_project_time_menu', 'Admin project time menu', 0, 1),
(240, 1, 'labour_project_time_menu', 'Labour project time menu', 0, 1),
(241, 1, 'vehicle_menu', 'Vehicle menu', 0, 0),
(242, 1, 'maintenance_type_menu', 'Maintenance type menu', 0, 0),
(243, 1, 'service_status_menu', 'Service status menu', 0, 0),
(244, 1, 'vehicle_maintenance_menu', 'Vehicle maintenance menu', 0, 0),
(245, 1, 'vehicle_allotment_menu', 'Vehicle allotment menu', 0, 0),
(246, 1, 'fixed_asset_register_menu', 'Fixed asset register menu', 0, 0),
(247, 1, 'fixed_asset_depreciation_menu', 'Fixed asset depreciation menu', 0, 0),
(248, 1, 'delivert_note_menu', 'Delivert note menu', 0, 1),
(249, 1, 'sales_return_menu', 'Sales return menu', 0, 1),
(250, 1, 'sales_DL_tracker_menu', 'Sales DL tracker menu', 0, 1),
(251, 1, 'sales_reciept_tracker_menu', 'Sales reciept tracker menu', 0, 1),
(252, 1, 'purchase_requisition_menu', 'Purchase requisition menu', 0, 1),
(253, 1, 'purchase_enquiry_menu', 'Purchase enquiry menu', 0, 1),
(254, 1, 'material_receipts_menu', 'Material receipts menu', 0, 1),
(255, 1, 'quality_check_menu', 'Quality check menu', 0, 1),
(256, 1, 'purchase_returns_menu', 'Purchase returns menu', 0, 1),
(257, 1, 'purchase_delivery_tracker', 'Purchase delivery tracker', 0, 1),
(258, 1, 'purchase_payment_tracker', 'Purchase payment tracker', 0, 1),
(259, 1, 'creditnote_list', 'Creditnote list', 0, 1),
(260, 1, 'deliverynote_list', 'Deliverynote list', 0, 1),
(261, 1, 'netsales_list', 'Netsales list', 0, 1),
(262, 1, 'po_list', 'Po list', 0, 1),
(263, 1, 'mr_list', 'Mr list', 0, 1),
(264, 1, 'pi_list', 'Pi list', 0, 1),
(265, 1, 'pdbn_list', 'Pdbn list', 0, 1),
(266, 1, 'net_purchase_list', 'Net purchase list', 0, 1),
(267, 1, 'trasnfer_items', 'Trasnfer items', 0, 1),
(268, 1, 'transaction_items', 'Transaction items', 0, 1),
(269, 1, 'accounts_reports_menu', 'Accounts reports menu', 0, 1);

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

--
-- Table structure for table `erp_company_settings`
--

CREATE TABLE `erp_company_settings` (
  `id` bigint(20) NOT NULL,
  `crm_company_id` bigint(20) NOT NULL,
  `permissions` text NOT NULL,
  `sales_menu` int(11) NOT NULL,
  `purchase_menu` int(11) NOT NULL,
  `inventory_menu` int(11) NOT NULL,
  `mis_menu` int(11) NOT NULL,
  `hr_menu` int(11) NOT NULL,
  `accounts_menu` int(11) NOT NULL,
  `reports_menu` int(11) NOT NULL,
  `masters_menu` int(11) NOT NULL,
  `admin_menu` int(11) NOT NULL,
  `projects_menu` int(11) NOT NULL,
  `fm_menu` int(11) NOT NULL,
  `assembly_menu` int(11) NOT NULL,
  `direct_order` enum('Y','N') NOT NULL DEFAULT 'Y',
  `direct_purchase_order` enum('Y','N') NOT NULL DEFAULT 'Y',
  `allow_change_description` int(11) NOT NULL,
  `create_by` int(11) NOT NULL,
  `create_date_time` datetime NOT NULL,
  `print_template_id` enum('L','M','R') NOT NULL DEFAULT 'L',
  `print_template_logo` varchar(100) NOT NULL,
  `direct_purchase_enquiry` enum('Y','N') NOT NULL DEFAULT 'Y',
  `qualitycontrol` enum('Y','N') NOT NULL DEFAULT 'Y',
  `stock_updates_on` enum('QC','PI') NOT NULL,
  `package_type` enum('AUTO','MANUAL') NOT NULL DEFAULT 'MANUAL',
  `direct_quotation` enum('Y','N') NOT NULL DEFAULT 'Y',
  `generate_invoice_no` enum('NORMAL','OUTLET') NOT NULL DEFAULT 'NORMAL',
  `calculate_commission` enum('Y','N') NOT NULL DEFAULT 'N',
  `default_currency_id` int(11) NOT NULL,
  `default_country_id` int(11) NOT NULL,
  `include_vat` enum('Y','N') NOT NULL DEFAULT 'N',
  `quotation_validity_days` int(11) NOT NULL,
  `stock_lock_flag` enum('Y','N') NOT NULL DEFAULT 'N',
  `fixed_asset_menu` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_company_settings`
--

INSERT INTO `erp_company_settings` (`id`, `crm_company_id`, `permissions`, `sales_menu`, `purchase_menu`, `inventory_menu`, `mis_menu`, `hr_menu`, `accounts_menu`, `reports_menu`, `masters_menu`, `admin_menu`, `projects_menu`, `fm_menu`, `assembly_menu`, `direct_order`, `direct_purchase_order`, `allow_change_description`, `create_by`, `create_date_time`, `print_template_id`, `print_template_logo`, `direct_purchase_enquiry`, `qualitycontrol`, `stock_updates_on`, `package_type`, `direct_quotation`, `generate_invoice_no`, `calculate_commission`, `default_currency_id`, `default_country_id`, `include_vat`, `quotation_validity_days`, `stock_lock_flag`, `fixed_asset_menu`) VALUES
(1, 1, '{\"sales_customer\":1,\"sales_lead\":1,\"sales_quotation\":1,\"sales_order\":1,\"sales_delivery\":1,\"sales_invoice\":1,\"sales_creditnote\":1,\"sales_deliverytrack\":1,\"purchase_vendor\":1,\"purchase_requisition\":1,\"purchase_enquiry\":1,\"purchase_order\":1,\"purchase_material_request\":1,\"purchase_qc\":1,\"purchase_invoice\":1,\"purchase_debitnote\":1,\"purchase_deliverytrack\":1,\"mail_to_customer\":1,\"mail_single_feedback\":1,\"master_industry\":1,\"master_probabilities\":1,\"master_sales_group\":1,\"master_projects\":1,\"master_validity\":1,\"master_quotation_close_reasion\":1,\"master_banks\":1,\"master_currencies\":1,\"master_payment_terms\":1,\"master_footer\":1,\"master_sales_pricing\":1,\"master_country\":1,\"master_unit\":1,\"master_brand_class\":1,\"master_inventory_generic\":1,\"master_warehouse\":1,\"master_brand\":1,\"master_rack\":1,\"master_bin\":1,\"master_category\":1,\"master_invstatus\":1,\"master_table\":1,\"master_dimension_one\":1,\"master_dimension_two\":1,\"master_dimension_three\":1,\"master_numbering\":1,\"master_settings\":1,\"master_shippingmethods\":1,\"master_pricingterms\":1,\"master_availabilities\":1,\"master_customduties\":1,\"inventory_stocks\":1,\"inventory_raw_material\":1,\"inventory_service\":1,\"inventory_sales\":1,\"mis_dashboard\":1,\"mis_cockpit\":1,\"mis_calendar\":1,\"mis_workspace\":1,\"mis_meeting\":1,\"others_sampletracking\":1,\"others_rma_receipts\":1,\"others_rma_sendvendor\":1,\"finance_journal\":1,\"finance_receipt\":1,\"finance_payment\":1,\"finance_debitnote\":1,\"finance_creditnote\":1,\"finance_posted\":1,\"production_bill\":1,\"production_po\":1,\"production_gi\":1,\"production_gr\":1,\"report_sales\":1,\"report_inventory\":1,\"report_customer\":1,\"report_purchase\":1,\"report_finance\":1,\"admin_user\":1,\"admin_usergroup\":1,\"settings_com\":1,\"settings_set\":1,\"settings_mod\":1,\"settings_dim\":1, \"inventory_image_show_quotation\":1, \"inventory_upload_image\":1}', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 'Y', 'Y', 0, 1, '0000-00-00 00:00:00', 'R', 'blueskylogo.png', 'Y', 'Y', 'QC', 'AUTO', 'Y', 'OUTLET', 'N', 0, 169, 'N', 30, 'N', 1);

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

--
-- Table structure for table `erp_cost_price_group`
--

CREATE TABLE `erp_cost_price_group` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `cost_price1` decimal(15,5) NOT NULL,
  `cost_price_group_file_name` varchar(255) NOT NULL,
  `uploaded_by` int(11) NOT NULL,
  `uploaded_date` datetime NOT NULL,
  `last_updated_by` int(11) NOT NULL,
  `last_updated_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_cost_price_group_name`
--

CREATE TABLE `erp_cost_price_group_name` (
  `id` int(11) NOT NULL,
  `pricing_group_label` varchar(255) NOT NULL,
  `pricing_group_name` varchar(255) NOT NULL,
  `pricing_group_description` varchar(255) NOT NULL,
  `default_pricing_group` enum('Y','N') NOT NULL,
  `lowest_pricing_group` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_creditnote`
--

CREATE TABLE `erp_creditnote` (
  `id` bigint(20) NOT NULL,
  `file_id` bigint(20) NOT NULL,
  `creditnote_no` int(11) NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `crm_user_id` bigint(20) NOT NULL,
  `invoice_id` bigint(20) NOT NULL,
  `project_id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` bigint(20) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `reference` varchar(255) NOT NULL,
  `currency` varchar(255) NOT NULL,
  `credited_amount` decimal(15,2) NOT NULL,
  `credited_date` date NOT NULL,
  `reason` text NOT NULL,
  `tax_type` int(11) NOT NULL,
  `total_tax_amount` decimal(15,2) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `invoice_type` int(11) NOT NULL COMMENT 'Primary key of crmmas_invoice_type id',
  `sales_return` enum('ST','DA') NOT NULL COMMENT 'ST->update in stock,DA-> update in Damage',
  `creditnote_notification` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `is_updated_store` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `responsible_user` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `outlet_id` int(11) NOT NULL,
  `paymentmode_id` int(11) NOT NULL COMMENT 'Primary key of erp_acc_payment_mode id	',
  `paid_amount` decimal(15,6) NOT NULL COMMENT 'used in accounts RV receipt	',
  `commision_percentage` decimal(10,2) NOT NULL,
  `commision_amount` decimal(10,6) NOT NULL,
  `payment_type` varchar(255) NOT NULL,
  `paid_cash_amount` decimal(15,2) NOT NULL,
  `paid_card_amount` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_creditnote`
--

INSERT INTO `erp_creditnote` (`id`, `file_id`, `creditnote_no`, `order_id`, `crm_user_id`, `invoice_id`, `project_id`, `customer_id`, `contact_id`, `exchange_rate`, `reference`, `currency`, `credited_amount`, `credited_date`, `reason`, `tax_type`, `total_tax_amount`, `notes`, `terms_and_conditions`, `remarks`, `isActive`, `invoice_type`, `sales_return`, `creditnote_notification`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `is_updated_store`, `posted`, `responsible_user`, `warehouse_id`, `outlet_id`, `paymentmode_id`, `paid_amount`, `commision_percentage`, `commision_amount`, `payment_type`, `paid_cash_amount`, `paid_card_amount`) VALUES
(50001, 1033, 50001, 0, 2, 40013, 0, 1001, 1, 1.00, '', '1', 1050.00, '2025-12-19', 'reason', 0, 50.00, '', '', '', 'Y', 1, 'ST', '', 2, 0, '2025-12-19 04:45:03', '0000-00-00 00:00:00', 'Y', 'Y', 0, 1, 0, 0, 0.000000, 0.00, 0.000000, '', 0.00, 0.00),
(50002, 1005, 0, 0, 2, 40001, 0, 1001, 1, 1.00, '', '1', 1051050.00, '2025-12-20', 'test', 0, 50050.00, '', 'Sales Terms and Conditions come here', '', 'Y', 1, 'ST', '', 2, 0, '2025-12-20 03:34:00', '0000-00-00 00:00:00', 'N', 'N', 0, 1, 0, 0, 0.000000, 0.00, 0.000000, '', 0.00, 0.00),
(50003, 1035, 50003, 0, 2, 40014, 0, 1001, 1, 1.00, '', '1', 1890.00, '2025-12-20', 'qw', 0, 90.00, '', 'Sales Terms and Conditions come here', '', 'Y', 1, 'ST', '', 2, 0, '2025-12-20 03:52:28', '0000-00-00 00:00:00', 'Y', 'Y', 0, 1, 0, 0, 0.000000, 0.00, 0.000000, '', 0.00, 0.00),
(50004, 1009, 0, 0, 2, 40003, 0, 1002, 2, 1.00, '', '1', 1680.00, '2025-12-23', 'sss', 0, 80.00, '', 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', '', 'Y', 1, 'ST', '', 2, 0, '2025-12-23 11:46:27', '0000-00-00 00:00:00', 'N', 'N', 0, 1, 0, 0, 0.000000, 0.00, 0.000000, '', 0.00, 0.00),
(50005, 1016, 0, 0, 2, 40002, 0, 1001, 1, 1.00, '', '1', 2139.90, '2025-12-23', 'damaged', 0, 101.90, '', 'Sales Terms and Conditions come here', '', 'Y', 1, 'ST', '', 2, 0, '2025-12-23 03:35:44', '0000-00-00 00:00:00', 'N', 'N', 0, 1, 0, 0, 0.000000, 0.00, 0.000000, '', 0.00, 0.00);

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

--
-- Table structure for table `erp_creditnote_addition`
--

CREATE TABLE `erp_creditnote_addition` (
  `id` int(11) NOT NULL,
  `creditnote_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_creditnote_deduction`
--

CREATE TABLE `erp_creditnote_deduction` (
  `id` int(11) NOT NULL,
  `creditnote_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_creditnote_item`
--

CREATE TABLE `erp_creditnote_item` (
  `id` int(11) NOT NULL,
  `creditnote_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `bonus_qty` decimal(15,3) NOT NULL,
  `description` text NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `returned_unit_id` int(11) NOT NULL,
  `returned_quantity` decimal(15,3) NOT NULL,
  `returned_bonus_qty` decimal(15,2) NOT NULL,
  `damage_quantity` decimal(15,3) NOT NULL,
  `net_amount` decimal(15,3) NOT NULL,
  `deliverynote_id` int(11) NOT NULL,
  `invoice_item_id` int(11) NOT NULL,
  `product_loc_hiring_id` int(11) NOT NULL,
  `tax_vat_amount` decimal(15,2) NOT NULL,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `unit` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `remarks` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_creditnote_item`
--

INSERT INTO `erp_creditnote_item` (`id`, `creditnote_id`, `product_id`, `quantity`, `bonus_qty`, `description`, `rate`, `returned_unit_id`, `returned_quantity`, `returned_bonus_qty`, `damage_quantity`, `net_amount`, `deliverynote_id`, `invoice_item_id`, `product_loc_hiring_id`, `tax_vat_amount`, `tax_vat_percentage`, `unit`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `remarks`) VALUES
(1, 50001, 1, 1.000, 0.000, 'A1001 Item', 1000.000, 1, 1.000, 0.00, 0.000, 1000.000, 0, 20, 0, 50.00, 5.00, 1, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(2, 50002, 1, 1.000, 0.000, 'A1001 Item', 1000.000, 1, 1.000, 0.00, 0.000, 1000.000, 0, 1, 0, 50.00, 5.00, 1, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(3, 50002, 2, 1000.000, 0.000, 'A1002 Item', 1000.000, 2, 1000.000, 0.00, 0.000, 1000000.000, 0, 2, 0, 50000.00, 5.00, 2, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(4, 50003, 1, 2.000, 0.000, 'A1001 Item', 1800.000, 1, 1.000, 0.00, 0.000, 1800.000, 0, 21, 0, 90.00, 5.00, 1, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(5, 50004, 2, 3.000, 0.000, 'A1002 Item', 1600.000, 2, 1.000, 0.00, 0.000, 1600.000, 0, 6, 0, 80.00, 5.00, 2, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(6, 50005, 1, 5.000, 0.000, 'A1001 Item', 1258.000, 1, 1.000, 0.00, 0.000, 1258.000, 0, 3, 0, 62.90, 5.00, 1, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(7, 50005, 2, 5.000, 0.000, 'A1002 Item', 780.000, 2, 1.000, 0.00, 0.000, 780.000, 0, 4, 0, 39.00, 5.00, 2, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

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

--
-- Table structure for table `erp_customer_contact`
--

CREATE TABLE `erp_customer_contact` (
  `id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `prefix` varchar(500) NOT NULL,
  `person_name` varchar(255) NOT NULL,
  `designation` varchar(255) NOT NULL,
  `contact_phone_no` varchar(255) NOT NULL,
  `department` varchar(255) NOT NULL,
  `contact_mobile_no` varchar(255) NOT NULL,
  `contact_email_id` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isDefault` enum('N','Y') NOT NULL DEFAULT 'N',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_customer_contact`
--

INSERT INTO `erp_customer_contact` (`id`, `customer_id`, `prefix`, `person_name`, `designation`, `contact_phone_no`, `department`, `contact_mobile_no`, `contact_email_id`, `notes`, `isActive`, `isDefault`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(1, 1001, '', 'Sales/Account', '', '', '', '', '', '', 'Y', 'N', '2025-12-18 06:18:38', 2, '2025-12-18 06:18:38', 2),
(2, 1002, '', 'Mr. Abdullah', 'Sales Manager', '04 5699787', 'Sales', '05 78985', 'abdullah@customerone.com', '', 'Y', 'N', '2025-12-19 08:12:40', 1, '2025-12-19 00:00:00', 2),
(3, 1002, '', 'Mr. Thomas', 'Purchase Manager', '04 598789', 'Purchase', '050 456987', 'thomas@customerone.com', '', 'Y', 'N', '2025-12-19 00:00:00', 2, NULL, NULL);

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

--
-- Table structure for table `erp_customer_dashboard`
--

CREATE TABLE `erp_customer_dashboard` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `ai_dashboard_id` int(11) NOT NULL,
  `customer_value` decimal(15,2) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_customer_dashboard`
--

INSERT INTO `erp_customer_dashboard` (`id`, `customer_id`, `ai_dashboard_id`, `customer_value`, `updated_by`, `updated_date_time`) VALUES
(1, 1090, 1, 1.00, 0, '0000-00-00 00:00:00'),
(2, 1090, 2, 2.00, 0, '0000-00-00 00:00:00'),
(3, 1090, 3, 3.00, 0, '0000-00-00 00:00:00'),
(4, 1090, 4, 4.00, 0, '0000-00-00 00:00:00'),
(5, 1090, 5, 5.00, 0, '0000-00-00 00:00:00'),
(6, 1090, 6, 6.00, 0, '0000-00-00 00:00:00'),
(7, 1090, 7, 7.00, 0, '0000-00-00 00:00:00'),
(8, 1090, 8, 8.00, 0, '0000-00-00 00:00:00'),
(9, 1001, 1, 1.00, 0, '0000-00-00 00:00:00'),
(10, 1001, 2, 2.00, 0, '0000-00-00 00:00:00'),
(11, 1001, 3, 3.00, 0, '0000-00-00 00:00:00'),
(12, 1001, 4, 4.00, 0, '0000-00-00 00:00:00'),
(13, 1001, 5, 5.00, 0, '0000-00-00 00:00:00'),
(14, 1001, 6, 6.00, 0, '0000-00-00 00:00:00'),
(15, 1001, 7, 7.00, 0, '0000-00-00 00:00:00'),
(16, 1001, 8, 8.00, 0, '0000-00-00 00:00:00'),
(17, 1001, 1, 1.00, 0, '0000-00-00 00:00:00'),
(18, 1001, 2, 2.00, 0, '0000-00-00 00:00:00'),
(19, 1001, 3, 3.00, 0, '0000-00-00 00:00:00'),
(20, 1001, 4, 4.00, 0, '0000-00-00 00:00:00'),
(21, 1001, 5, 5.00, 0, '0000-00-00 00:00:00'),
(22, 1001, 6, 6.00, 0, '0000-00-00 00:00:00'),
(23, 1001, 7, 7.00, 0, '0000-00-00 00:00:00'),
(24, 1001, 8, 8.00, 0, '0000-00-00 00:00:00'),
(25, 1091, 1, 1.00, 0, '0000-00-00 00:00:00'),
(26, 1091, 2, 2.00, 0, '0000-00-00 00:00:00'),
(27, 1091, 3, 3.00, 0, '0000-00-00 00:00:00'),
(28, 1091, 4, 4.00, 0, '0000-00-00 00:00:00'),
(29, 1091, 5, 5.00, 0, '0000-00-00 00:00:00'),
(30, 1091, 6, 6.00, 0, '0000-00-00 00:00:00'),
(31, 1091, 7, 78.00, 0, '0000-00-00 00:00:00'),
(32, 1091, 8, 8.00, 0, '0000-00-00 00:00:00'),
(33, 1005, 1, 1.00, 0, '0000-00-00 00:00:00'),
(34, 1005, 2, 2.00, 0, '0000-00-00 00:00:00'),
(35, 1005, 3, 3.00, 0, '0000-00-00 00:00:00'),
(36, 1005, 4, 4.00, 0, '0000-00-00 00:00:00'),
(37, 1005, 5, 5.00, 0, '0000-00-00 00:00:00'),
(38, 1005, 6, 6.00, 0, '0000-00-00 00:00:00'),
(39, 1005, 7, 7.00, 0, '0000-00-00 00:00:00'),
(40, 1005, 8, 8.00, 0, '0000-00-00 00:00:00'),
(41, 1092, 1, 1.00, 0, '0000-00-00 00:00:00'),
(42, 1092, 2, 2.00, 0, '0000-00-00 00:00:00'),
(43, 1092, 3, 3.00, 0, '0000-00-00 00:00:00'),
(44, 1092, 4, 4.00, 0, '0000-00-00 00:00:00'),
(45, 1092, 5, 5.00, 0, '0000-00-00 00:00:00'),
(46, 1092, 6, 6.00, 0, '0000-00-00 00:00:00'),
(47, 1092, 7, 7.00, 0, '0000-00-00 00:00:00'),
(48, 1092, 8, 8.00, 0, '0000-00-00 00:00:00'),
(49, 1093, 1, 1.00, 0, '0000-00-00 00:00:00'),
(50, 1093, 2, 2.00, 0, '0000-00-00 00:00:00'),
(51, 1093, 3, 3.00, 0, '0000-00-00 00:00:00'),
(52, 1093, 4, 4.00, 0, '0000-00-00 00:00:00'),
(53, 1093, 5, 5.00, 0, '0000-00-00 00:00:00'),
(54, 1093, 6, 6.00, 0, '0000-00-00 00:00:00'),
(55, 1093, 7, 7.00, 0, '0000-00-00 00:00:00'),
(56, 1093, 8, 8.00, 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_customer_docs`
--

CREATE TABLE `erp_customer_docs` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `document_no` varchar(255) NOT NULL,
  `document_type` int(11) NOT NULL COMMENT '1-statement of accounts,2-trade licence',
  `document` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_customer_docs`
--

INSERT INTO `erp_customer_docs` (`id`, `customer_id`, `document_no`, `document_type`, `document`, `from_date`, `to_date`) VALUES
(1, 1001, 'Test Doc', 1, '2025-12-19-Sample Logo.png', '0000-00-00', '2025-12-31');

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

--
-- Table structure for table `erp_customer_feedback`
--

CREATE TABLE `erp_customer_feedback` (
  `id` int(11) NOT NULL,
  `customer_vendor_id` int(11) NOT NULL,
  `feed_back_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_customer_feedback_details`
--

CREATE TABLE `erp_customer_feedback_details` (
  `id` int(11) NOT NULL,
  `customer_feedback_id` int(11) NOT NULL COMMENT 'primary key from customer feed back',
  `question_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `answer` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_customer_pricing_group`
--

CREATE TABLE `erp_customer_pricing_group` (
  `id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `brand_id` int(11) NOT NULL,
  `pricing_group_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_customer_shipping_details`
--

CREATE TABLE `erp_customer_shipping_details` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `shipping_customer_name` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `city` varchar(255) NOT NULL,
  `street_address` text NOT NULL,
  `po_box` varchar(255) NOT NULL,
  `postal_code` varchar(255) NOT NULL,
  `country_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_customer_shipping_details`
--

INSERT INTO `erp_customer_shipping_details` (`id`, `customer_id`, `shipping_customer_name`, `state`, `city`, `street_address`, `po_box`, `postal_code`, `country_id`) VALUES
(1, 1001, 'Custmer One', '', 'Dubai', 'Building 870\r\nBusiness Bay', '', '58974', 130),
(2, 1002, 'Customer Two', '', 'Sharjah', 'Building 1\r\nIndustrial Area 2', '', '87954', 130);

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

--
-- Table structure for table `erp_damaged_store`
--

CREATE TABLE `erp_damaged_store` (
  `id` int(11) NOT NULL,
  `transfer_date` date NOT NULL,
  `reference` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_damaged_store_details`
--

CREATE TABLE `erp_damaged_store_details` (
  `id` int(11) NOT NULL,
  `damaged_store_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL COMMENT 'primary key to crm_store',
  `part_number` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_damaged_store_material_details`
--

CREATE TABLE `erp_damaged_store_material_details` (
  `id` int(11) NOT NULL,
  `damaged_store_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `material_receipt_id` int(11) NOT NULL,
  `material_receipt_qty` decimal(15,3) NOT NULL,
  `issued_qty` decimal(15,3) NOT NULL,
  `bill_exit` varchar(255) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `rack_id` int(11) NOT NULL,
  `bin_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_delivery_item`
--

CREATE TABLE `erp_delivery_item` (
  `id` int(11) NOT NULL,
  `delivery_note_id` int(11) NOT NULL,
  `quotes_item_id` int(11) NOT NULL,
  `order_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `picked_qty` decimal(15,3) NOT NULL,
  `remarks` text NOT NULL,
  `alternate_id` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_delivery_item`
--

INSERT INTO `erp_delivery_item` (`id`, `delivery_note_id`, `quotes_item_id`, `order_item_id`, `product_id`, `part_number`, `description`, `quantity`, `unit_id`, `picked_qty`, `remarks`, `alternate_id`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 30001, 13, 1, 1, 'A1001', 'A1001 Item', 1.000, 1, 1.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 30001, 14, 2, 2, 'A1002', 'A1002 Item', 1000.000, 2, 1000.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 30002, 35, 19, 1, 'A1001', 'A1001 Item', 1.000, 1, 1.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 30002, 36, 20, 2, 'A1002', 'A1002 Item', 3.000, 2, 3.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 30003, 39, 27, 1, 'A1001', 'A1001 Item', 5.000, 1, 5.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 30003, 40, 28, 2, 'A1002', 'A1002 Item', 5.000, 2, 5.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 30004, 37, 21, 1, 'A1001', 'A1001 Item', 2.000, 1, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 30004, 38, 22, 2, 'A1002', 'A1002 Item', 2.000, 2, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 30005, 0, 31, 1, 'A1001', 'A1001 Item', 1.000, 1, 1.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 30006, 0, 32, 1, 'A1001', 'A1001 Item', 1.000, 1, 1.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 30007, 43, 33, 1, 'A1001', 'A1001 Item', 2.000, 1, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 30007, 44, 34, 2, 'A1002', 'A1002 Item', 2.000, 2, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, 30008, 49, 37, 1, 'A1001', 'A1001 Item', 2.000, 1, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 30008, 50, 38, 2, 'A1002', 'A1002 Item', 2.000, 2, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, 30009, 0, 39, 1, 'A1001', 'A1001 Item', 3.000, 1, 3.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(16, 30009, 0, 40, 2, 'A1002', 'A1002 Item', 2.000, 2, 2.000, '', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_delivery_note`
--

CREATE TABLE `erp_delivery_note` (
  `id` int(11) NOT NULL,
  `file_title` varchar(255) NOT NULL,
  `file_id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `delivery_date` date NOT NULL,
  `shipped_by` varchar(255) NOT NULL,
  `billing_address` varchar(255) NOT NULL,
  `shipping_address` varchar(255) NOT NULL,
  `sales_group` varchar(255) NOT NULL,
  `awb_no` varchar(255) NOT NULL,
  `no_of_boxes` int(11) NOT NULL,
  `tracking_no` varchar(255) NOT NULL,
  `total_weight` varchar(100) NOT NULL,
  `total_volume` varchar(100) NOT NULL,
  `packed_by` varchar(255) NOT NULL,
  `shipping_conditions` varchar(255) NOT NULL,
  `lpo` varchar(255) NOT NULL,
  `remarks` text NOT NULL,
  `notes` text NOT NULL,
  `others` varchar(255) NOT NULL,
  `terms_id` int(11) NOT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `delivery_from` enum('S','DI') NOT NULL DEFAULT 'S',
  `invoiced` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `remarks_cancel` text NOT NULL,
  `status` enum('PN','CL','CN') NOT NULL DEFAULT 'PN' COMMENT 'PN-Pending,CL-Completed,CN-Cancelled',
  `delivery_type` enum('sales','service') NOT NULL DEFAULT 'sales',
  `ready_to_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `inco_term_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_delivery_note`
--

INSERT INTO `erp_delivery_note` (`id`, `file_title`, `file_id`, `quotes_id`, `order_id`, `customer_id`, `contact_id`, `lead_owner_id`, `delivery_date`, `shipped_by`, `billing_address`, `shipping_address`, `sales_group`, `awb_no`, `no_of_boxes`, `tracking_no`, `total_weight`, `total_volume`, `packed_by`, `shipping_conditions`, `lpo`, `remarks`, `notes`, `others`, `terms_id`, `terms_and_conditions`, `delivery_from`, `invoiced`, `posted`, `remarks_cancel`, `status`, `delivery_type`, `ready_to_invoice`, `inco_term_id`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(30001, '', 1005, 1, 20001, 1001, 1, 2, '2025-12-19', '', 'United Arab Emirates', '', '1', '', 0, '30001', '', '', '', '', '45554', '', '', '', 1, 'Sales Terms and Conditions come here', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-19 08:24:37', '2025-12-19 08:25:28'),
(30002, '', 1009, 10003, 20002, 1002, 2, 2, '2025-12-19', '', 'P.O Box : 87954\r\nBuilding 1\r\nIndustrial Area 2\r\nSharjah, United Arab Emirates', '', '1', '', 0, '30002', '', '', '', '', 'LPo1', '', '', '', 1, 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-19 11:38:11', '2025-12-19 01:39:15'),
(30003, '', 1016, 10004, 20004, 1001, 1, 2, '2025-12-19', '', 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', '', '1', '', 0, '30003', '', '', '', '', 'LPO1', '', '', '', 1, 'Sales Terms and Conditions come here', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-19 13:08:44', '2025-12-19 01:09:03'),
(30004, '', 1008, 10002, 20003, 1001, 1, 2, '2025-12-19', '', 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', '', '1', '', 0, '30004', '', '', '', '', '21231', '', '', '', 1, 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-19 13:38:22', '2025-12-19 01:56:11'),
(30005, '', 1032, 0, 20005, 1001, 1, 2, '2025-12-19', '', 'Building 870\r\nBusiness Bay\r\nPO Box : 58974\r\nDubai\r\nUnited Arab Emirates', '', '1', '', 0, '30005', '', '', '', '', '11', '', '', '', 0, '', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-19 15:50:34', '2025-12-19 03:50:42'),
(30006, '', 1033, 0, 20006, 1001, 1, 2, '2025-12-19', '', 'Building 870\r\nBusiness Bay\r\nPO Box : 58974\r\nDubai\r\nUnited Arab Emirates', '', '1', '', 0, '30006', '', '', '', '', '11', '', '', '', 0, '', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-19 15:58:14', '2025-12-19 03:58:37'),
(30007, '', 1035, 10005, 20007, 1001, 1, 2, '2025-12-20', '', 'P.O Box : 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', '', '1', '', 0, '30007', '', '', '', '', 'l', '', '', '', 1, 'Sales Terms and Conditions come here', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-20 09:29:24', '2025-12-20 09:29:37'),
(30008, '', 1037, 10006, 20008, 1001, 1, 2, '2025-12-20', '', 'PO Box 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', 'Custmer One\r\nPO Box : 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', '1', '', 0, '30008', '', '', '', '', '12', '', '', '', 1, 'Sales Terms and Conditions come here\r\nNext Line', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-20 14:16:24', '2025-12-20 02:17:24'),
(30009, '', 1039, 10006, 20009, 1002, 2, 2, '2025-12-22', '', 'Building 1\r\nIndustrial Area 2\r\nPO Box : 87954\r\nSharjah\r\nUnited Arab Emirates', 'Custmer One\r\nPO Box : 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', '1', '', 0, '30009', '', '', '', '', '12', '', '', '', 1, 'Sales Terms and Conditions come here\r\nNext Line', 'S', 'N', 'Y', '', 'CL', 'sales', 'Y', 1, 'Y', 2, 2, '2025-12-22 11:00:23', '2025-12-22 11:00:41');

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

--
-- Table structure for table `erp_demo_item_details`
--

CREATE TABLE `erp_demo_item_details` (
  `id` int(11) NOT NULL,
  `demo_monitoring_id` int(11) NOT NULL COMMENT 'foreign key to material receipt table',
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `item_serial_no` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `picked_qty` decimal(15,3) NOT NULL,
  `item_return_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_demo_item_details_return`
--

CREATE TABLE `erp_demo_item_details_return` (
  `id` int(11) NOT NULL,
  `demo_item_id` int(11) NOT NULL,
  `return_qty` decimal(15,3) NOT NULL,
  `return_date` date NOT NULL,
  `serial_no` varchar(30) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_demo_item_general`
--

CREATE TABLE `erp_demo_item_general` (
  `id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `item_issue_date` date NOT NULL,
  `item_return_date` datetime NOT NULL,
  `notes` text NOT NULL,
  `terms_conditions` text NOT NULL,
  `is_active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `reference` varchar(255) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `connected_file` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_dining_table`
--

CREATE TABLE `erp_dining_table` (
  `id` int(11) NOT NULL,
  `code` varchar(2) NOT NULL,
  `seat` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_invoice`
--

CREATE TABLE `erp_direct_invoice` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `invoice_date` date NOT NULL,
  `custom_invoice_no` varchar(255) NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `reference` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `terms_id` int(11) NOT NULL,
  `remarks` text NOT NULL,
  `grand_total` decimal(15,4) NOT NULL,
  `invoice_type` int(11) NOT NULL,
  `total_tax_amount` decimal(15,4) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `payment_terms` varchar(255) NOT NULL,
  `payment_type` int(11) NOT NULL,
  `card_num` varchar(20) NOT NULL,
  `phone` varchar(25) NOT NULL,
  `billing_address` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `invoice_status` int(11) NOT NULL,
  `total_discount_amount` decimal(15,6) NOT NULL,
  `total_discount_percentage` decimal(15,6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_invoice_addition`
--

CREATE TABLE `erp_direct_invoice_addition` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_invoice_deduction`
--

CREATE TABLE `erp_direct_invoice_deduction` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_invoice_item`
--

CREATE TABLE `erp_direct_invoice_item` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `deduction_amount` decimal(15,4) NOT NULL,
  `amount` decimal(15,4) NOT NULL,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,4) NOT NULL,
  `net_amount` decimal(15,6) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_purchase_invoice`
--

CREATE TABLE `erp_direct_purchase_invoice` (
  `id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `invoice_no` varchar(255) NOT NULL,
  `invoice_date` date NOT NULL,
  `payment_date` date NOT NULL,
  `grand_total` decimal(15,4) NOT NULL,
  `invoice_type` int(11) NOT NULL,
  `total_tax_amount` decimal(15,4) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `payment_terms` varchar(255) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_purchase_invoice_addition`
--

CREATE TABLE `erp_direct_purchase_invoice_addition` (
  `id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_purchase_invoice_deduction`
--

CREATE TABLE `erp_direct_purchase_invoice_deduction` (
  `id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_direct_purchase_invoice_item`
--

CREATE TABLE `erp_direct_purchase_invoice_item` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `amount` decimal(15,4) NOT NULL,
  `tax_percentage` decimal(15,2) NOT NULL,
  `tax_amount` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_document`
--

CREATE TABLE `erp_document` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `document_name` text NOT NULL,
  `document_actual_file_name` text NOT NULL,
  `uploaded_from` enum('L','Q','O','P_R','P_E','P_O','M_R','P_I','C','B_M','PR_O','G_I','G_R','P_C','I_GI','I_GR','I','ACC') NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_employee_rate`
--

CREATE TABLE `erp_employee_rate` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `kilogram` float NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `rate_type` varchar(255) NOT NULL,
  `rate_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_features_approve_level`
--

CREATE TABLE `erp_features_approve_level` (
  `id` int(11) NOT NULL,
  `operations_type` enum('LE','QU','SO','PR','PE','PO') NOT NULL COMMENT 'LE - Leads, QU - Quotes, SO - Orders, PR - Purchase Requisitions, PE - Purchase Enquiries, PO - Purchase Orders',
  `max_level` int(11) NOT NULL,
  `level_1_type` enum('1','2','3','4','5','0') NOT NULL DEFAULT '0',
  `level_1_authority` int(11) NOT NULL,
  `level_2_type` enum('1','2','3','4','5','0') NOT NULL DEFAULT '0',
  `level_2_authority` int(11) NOT NULL,
  `level_3_type` enum('1','2','3','4','5','0') NOT NULL DEFAULT '0',
  `level_3_authority` int(11) NOT NULL,
  `level_4_type` enum('1','2','3','4','5','0') NOT NULL DEFAULT '0',
  `level_4_authority` int(11) NOT NULL,
  `level_5_type` enum('1','2','3','4','5','0') NOT NULL DEFAULT '0',
  `level_5_authority` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_features_approve_level`
--

INSERT INTO `erp_features_approve_level` (`id`, `operations_type`, `max_level`, `level_1_type`, `level_1_authority`, `level_2_type`, `level_2_authority`, `level_3_type`, `level_3_authority`, `level_4_type`, `level_4_authority`, `level_5_type`, `level_5_authority`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'LE', 2, '0', 16, '0', 2, '0', 0, '0', 0, '0', 0, 0, '0000-00-00 00:00:00', 1, '2025-12-23 05:45:10'),
(2, 'QU', 2, '0', 16, '0', 2, '0', 0, '0', 0, '0', 0, 1, '2025-12-08 11:10:06', 1, '2025-12-23 05:45:10'),
(3, 'SO', 2, '0', 16, '0', 2, '0', 0, '0', 0, '0', 0, 1, '2025-12-08 11:10:06', 1, '2025-12-23 05:45:10'),
(4, 'PR', 2, '0', 16, '0', 2, '0', 0, '0', 0, '0', 0, 1, '2025-12-08 11:10:06', 1, '2025-12-23 05:45:10'),
(5, 'PE', 2, '0', 16, '0', 2, '0', 0, '0', 0, '0', 0, 1, '2025-12-08 11:10:06', 1, '2025-12-23 05:45:10'),
(6, 'PO', 2, '0', 16, '0', 2, '0', 0, '0', 0, '0', 0, 1, '2025-12-08 11:10:06', 1, '2025-12-23 05:45:10');

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

--
-- Table structure for table `erp_features_operations`
--

CREATE TABLE `erp_features_operations` (
  `id` int(11) NOT NULL,
  `operations_type` enum('LE','QU','SO','PR','PE','PO') NOT NULL,
  `file_no` int(11) NOT NULL,
  `operation_date` datetime NOT NULL,
  `level` int(11) NOT NULL,
  `header_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `user_name` varchar(255) NOT NULL,
  `operation_status` enum('A','R') NOT NULL COMMENT 'A - Approved\r\nR - Rejected',
  `notes` text NOT NULL,
  `is_active` enum('N','Y') NOT NULL DEFAULT 'Y',
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_features_operations`
--

INSERT INTO `erp_features_operations` (`id`, `operations_type`, `file_no`, `operation_date`, `level`, `header_id`, `user_id`, `user_name`, `operation_status`, `notes`, `is_active`, `updated_by`, `updated_date_time`) VALUES
(1, 'QU', 10103, '2025-12-09 13:30:47', 1, 10058, 8, 'admin', 'A', 'test notes', 'N', 8, '2025-12-10 13:59:49'),
(6, 'QU', 10103, '2025-12-09 18:26:45', 2, 10058, 8, 'admin', 'R', '', 'N', 8, '2025-12-10 13:59:49'),
(7, 'QU', 10103, '2025-12-09 18:27:15', 2, 10058, 8, 'admin', 'R', 'sorry', 'N', 8, '2025-12-10 13:59:49'),
(8, 'QU', 10081, '2025-12-10 07:15:32', 1, 10044, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(21, 'QU', 10067, '2025-12-10 11:20:21', 1, 10033, 7, 'user1', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(22, 'QU', 10068, '2025-12-10 11:20:31', 1, 10034, 7, 'user1', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(23, 'QU', 10102, '2025-12-10 11:20:40', 1, 10057, 7, 'user1', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(24, 'QU', 10103, '2025-12-10 11:21:06', 1, 10058, 7, 'user1', 'A', '', 'N', 8, '2025-12-10 13:59:49'),
(25, 'QU', 10102, '2025-12-10 11:21:42', 2, 10057, 6, 'shebin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(26, 'QU', 10081, '2025-12-10 11:21:48', 2, 10044, 6, 'shebin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(27, 'QU', 10068, '2025-12-10 11:21:53', 2, 10034, 6, 'shebin', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(28, 'QU', 10067, '2025-12-10 11:21:58', 2, 10033, 6, 'shebin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(29, 'QU', 10081, '2025-12-10 11:22:37', 3, 10044, 9, 'dhanya', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(30, 'QU', 10068, '2025-12-10 11:22:44', 3, 10034, 9, 'dhanya', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(32, 'QU', 10068, '2025-12-10 11:24:08', 4, 10034, 4, 'ruel', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(33, 'QU', 10067, '2025-12-10 11:24:57', 3, 10033, 9, 'dhanya', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(34, 'QU', 10067, '2025-12-10 11:25:46', 4, 10033, 4, 'ruel', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(35, 'QU', 10067, '2025-12-10 11:26:23', 5, 10033, 8, 'admin', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(36, 'QU', 10116, '2025-12-10 11:44:57', 1, 10064, 7, 'user1', 'A', 'LEvel 1 OK', 'N', 1, '2025-12-15 15:30:03'),
(37, 'QU', 10116, '2025-12-10 11:46:18', 2, 10064, 6, 'shebin', 'A', 'Level 2 OK', 'N', 1, '2025-12-15 15:30:03'),
(38, 'QU', 10068, '2025-12-10 12:17:53', 5, 10034, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(39, 'QU', 10067, '2025-12-10 12:23:54', 4, 10033, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(40, 'QU', 10116, '2025-12-10 14:00:08', 1, 10064, 8, 'admin', 'A', '', 'N', 1, '2025-12-15 15:30:03'),
(43, 'PO', 10227, '2025-12-10 15:41:31', 1, 60053, 8, 'admin', 'A', '', 'N', 4, '2025-12-10 15:54:19'),
(44, 'PO', 10227, '2025-12-10 15:45:03', 1, 60053, 8, 'admin', 'R', '', 'N', 4, '2025-12-10 15:54:19'),
(45, 'PO', 10227, '2025-12-10 15:50:38', 1, 60053, 8, 'admin', 'A', 'test ok', 'N', 4, '2025-12-10 15:54:19'),
(46, 'SO', 10225, '2025-12-12 10:56:00', 1, 20109, 8, 'admin', 'A', 'tested', 'N', 1, '2025-12-16 11:36:44'),
(47, 'SO', 10231, '2025-12-12 11:34:22', 1, 20111, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:30:55'),
(48, 'SO', 10231, '2025-12-12 11:38:09', 1, 20111, 8, 'admin', 'R', '', 'N', 1, '2025-12-16 16:30:55'),
(49, 'SO', 10231, '2025-12-12 11:39:48', 1, 20111, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:30:55'),
(50, 'PR', 10178, '2025-12-12 12:28:32', 1, 10014, 8, 'admin', 'A', '', 'N', 0, '0000-00-00 00:00:00'),
(51, 'PR', 10178, '2025-12-12 12:32:36', 1, 10014, 8, 'admin', 'R', 'tested', 'Y', 0, '0000-00-00 00:00:00'),
(52, 'PR', 10178, '2025-12-12 12:32:47', 1, 10014, 8, 'admin', 'A', 'ok test', 'Y', 0, '0000-00-00 00:00:00'),
(53, 'PE', 10038, '2025-12-12 13:43:56', 1, 10038, 8, 'admin', 'A', 'test', 'N', 0, '0000-00-00 00:00:00'),
(54, 'PE', 10038, '2025-12-12 13:52:41', 1, 10038, 8, 'admin', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(55, 'PE', 10038, '2025-12-12 13:52:45', 1, 10038, 8, 'admin', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(56, 'PE', 10038, '2025-12-12 13:52:49', 1, 10038, 8, 'admin', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(57, 'PE', 10038, '2025-12-12 13:52:52', 1, 10038, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(58, 'LE', 10015, '2025-12-12 14:34:30', 1, 1004, 8, 'admin', 'A', 'test', 'Y', 0, '0000-00-00 00:00:00'),
(59, 'LE', 10045, '2025-12-12 14:35:19', 1, 1007, 8, 'admin', 'R', '', 'N', 8, '2025-12-16 18:18:17'),
(60, 'LE', 10045, '2025-12-12 14:35:23', 1, 1007, 8, 'admin', 'R', '', 'N', 8, '2025-12-16 18:18:17'),
(61, 'LE', 10045, '2025-12-12 14:35:27', 1, 1007, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(62, 'PO', 10232, '2025-12-12 16:53:29', 1, 60057, 9, 'dhanya', 'A', '', 'N', 8, '2025-12-16 14:29:06'),
(63, 'PO', 10232, '2025-12-12 16:54:13', 2, 60057, 8, 'admin', 'R', '', 'N', 8, '2025-12-16 14:29:06'),
(64, 'PO', 10232, '2025-12-12 16:54:22', 1, 60057, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:29:06'),
(65, 'PO', 10232, '2025-12-12 16:54:28', 2, 60057, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:29:06'),
(66, 'SO', 10045, '2025-12-12 17:00:14', 1, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(67, 'SO', 10045, '2025-12-12 17:01:00', 2, 20112, 4, 'ruel', 'R', '', 'N', 8, '2025-12-16 18:18:17'),
(68, 'SO', 10045, '2025-12-12 17:01:42', 1, 20112, 8, 'admin', 'A', 'resubmitting', 'N', 8, '2025-12-16 18:18:17'),
(69, 'SO', 10045, '2025-12-12 17:02:37', 2, 20112, 4, 'ruel', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(70, 'PE', 10040, '2025-12-12 17:19:23', 1, 10040, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(71, 'PE', 10040, '2025-12-12 17:19:28', 2, 10040, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(72, 'LE', 10237, '2025-12-13 08:05:17', 1, 1037, 8, 'admin', 'A', 'A1', 'N', 8, '2025-12-13 08:20:03'),
(73, 'QU', 10237, '2025-12-13 08:10:14', 1, 10116, 8, 'admin', 'A', 'A1', 'N', 8, '2025-12-13 08:20:03'),
(74, 'QU', 10237, '2025-12-13 08:12:38', 1, 10116, 8, 'admin', 'A', 'A2', 'N', 8, '2025-12-13 08:20:03'),
(75, 'SO', 10237, '2025-12-13 08:19:09', 1, 20113, 8, 'admin', 'A', 'R\r\n', 'N', 8, '2025-12-13 08:20:03'),
(76, 'SO', 10237, '2025-12-13 08:20:19', 1, 20113, 8, 'admin', 'A', '4\r\n', 'Y', 0, '0000-00-00 00:00:00'),
(77, 'SO', 10237, '2025-12-13 08:26:34', 2, 20113, 9, 'dhanya', 'A', '444\r\n442\r\n2\r\n', 'Y', 0, '0000-00-00 00:00:00'),
(78, 'PR', 10240, '2025-12-13 08:55:28', 1, 10017, 8, 'admin', 'A', 'S1', 'N', 8, '2025-12-15 11:00:17'),
(79, 'PE', 10241, '2025-12-13 08:59:15', 1, 10045, 8, 'admin', 'A', 'ee', 'Y', 0, '0000-00-00 00:00:00'),
(80, 'PO', 10242, '2025-12-13 09:02:23', 1, 60058, 8, 'admin', 'A', 'ee\r\ne', 'Y', 0, '0000-00-00 00:00:00'),
(81, 'PO', 10242, '2025-12-13 09:04:15', 2, 60058, 9, 'dhanya', 'A', 'yui', 'Y', 0, '0000-00-00 00:00:00'),
(82, 'PR', 10243, '2025-12-15 11:00:59', 1, 10018, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(83, 'PE', 10245, '2025-12-15 12:07:39', 1, 10046, 8, 'admin', 'A', '', 'N', 8, '2025-12-15 12:40:17'),
(84, 'PE', 10245, '2025-12-15 12:44:33', 1, 10046, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(85, 'PE', 10233, '2025-12-15 12:44:51', 1, 10042, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(86, 'PR', 10240, '2025-12-15 12:47:30', 1, 10017, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(87, 'PE', 10235, '2025-12-15 12:48:03', 1, 10044, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(88, 'LE', 10226, '2025-12-15 13:03:17', 1, 1036, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(89, 'LE', 10244, '2025-12-15 13:07:29', 1, 1038, 8, 'admin', 'A', '', 'N', 8, '2025-12-15 13:19:02'),
(90, 'LE', 10244, '2025-12-15 13:19:07', 1, 1038, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(91, 'LE', 10244, '2025-12-15 13:19:07', 1, 1038, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(92, 'LE', 10244, '2025-12-15 13:19:11', 2, 1038, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(93, 'LE', 10244, '2025-12-15 13:19:15', 3, 1038, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(94, 'QU', 10249, '2025-12-15 15:50:43', 1, 10118, 8, 'admin', 'A', 'notes added', 'N', 1, '2025-12-16 16:46:40'),
(95, 'QU', 10249, '2025-12-15 15:50:46', 2, 10118, 8, 'admin', 'A', 'notes added', 'N', 1, '2025-12-16 16:46:40'),
(96, 'QU', 10068, '2025-12-15 17:44:15', 1, 10034, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(97, 'QU', 10068, '2025-12-15 17:44:43', 2, 10034, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 08:12:01'),
(98, 'QU', 10249, '2025-12-15 17:51:27', 1, 10118, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:46:40'),
(99, 'QU', 10249, '2025-12-15 17:51:31', 2, 10118, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:46:40'),
(100, 'QU', 10249, '2025-12-16 08:15:55', 1, 10118, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:46:40'),
(101, 'QU', 10249, '2025-12-16 08:15:59', 2, 10118, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:46:40'),
(102, 'QU', 10116, '2025-12-16 08:41:15', 1, 10064, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(103, 'QU', 10116, '2025-12-16 08:41:20', 2, 10064, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(104, 'QU', 10250, '2025-12-16 09:31:56', 1, 10119, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:43:06'),
(105, 'QU', 10250, '2025-12-16 09:32:04', 2, 10119, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:43:06'),
(106, 'PO', 10251, '2025-12-16 09:47:51', 1, 60059, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 12:46:31'),
(107, 'PO', 10251, '2025-12-16 09:47:55', 2, 60059, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 12:46:31'),
(108, 'PR', 10252, '2025-12-16 11:34:04', 1, 10020, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(109, 'PR', 10252, '2025-12-16 11:34:10', 2, 10020, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(110, 'PE', 10253, '2025-12-16 11:34:55', 1, 10048, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(111, 'PE', 10253, '2025-12-16 11:35:00', 2, 10048, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(112, 'PO', 10232, '2025-12-16 12:50:46', 1, 60057, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:29:06'),
(113, 'PO', 10251, '2025-12-16 12:51:00', 1, 60059, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(114, 'PO', 10251, '2025-12-16 12:51:06', 2, 60059, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(115, 'PO', 10232, '2025-12-16 12:58:10', 2, 60057, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:29:06'),
(116, 'PO', 10230, '2025-12-16 12:59:05', 1, 60056, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(117, 'PO', 10230, '2025-12-16 12:59:11', 2, 60056, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(118, 'SO', 10239, '2025-12-16 13:00:24', 1, 20114, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:26:08'),
(119, 'SO', 10239, '2025-12-16 13:00:27', 2, 20114, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:26:08'),
(120, 'SO', 10045, '2025-12-16 13:01:46', 1, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(121, 'SO', 10045, '2025-12-16 13:01:50', 2, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(122, 'SO', 10045, '2025-12-16 13:02:48', 1, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(123, 'SO', 10045, '2025-12-16 13:02:51', 2, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(124, 'PO', 10228, '2025-12-16 13:21:20', 1, 60054, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:31:42'),
(125, 'PO', 10228, '2025-12-16 13:21:25', 2, 60054, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 14:31:42'),
(126, 'PO', 10232, '2025-12-16 14:29:21', 1, 60057, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(127, 'PO', 10232, '2025-12-16 14:29:27', 2, 60057, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(128, 'PO', 10228, '2025-12-16 14:31:52', 1, 60054, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(129, 'PO', 10228, '2025-12-16 14:31:57', 2, 60054, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(130, 'SO', 10239, '2025-12-16 14:39:41', 1, 20114, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:26:08'),
(131, 'SO', 10239, '2025-12-16 14:39:45', 2, 20114, 8, 'admin', 'A', '', 'N', 1, '2025-12-16 16:26:08'),
(132, 'SO', 10045, '2025-12-16 14:40:03', 1, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(133, 'SO', 10045, '2025-12-16 14:40:19', 2, 20112, 8, 'admin', 'A', '', 'N', 8, '2025-12-16 18:18:17'),
(134, 'SO', 10250, '2025-12-16 14:43:12', 1, 20115, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(135, 'SO', 10250, '2025-12-16 14:43:16', 2, 20115, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(136, 'SO', 10045, '2025-12-16 18:18:24', 1, 20112, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(137, 'SO', 10045, '2025-12-16 18:18:28', 2, 20112, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(138, 'QU', 10254, '2025-12-17 11:13:41', 1, 10120, 8, 'admin', 'A', '', 'N', 8, '2025-12-17 11:15:29'),
(139, 'QU', 10254, '2025-12-17 11:13:45', 2, 10120, 8, 'admin', 'A', '', 'N', 8, '2025-12-17 11:15:29'),
(140, 'QU', 10254, '2025-12-17 11:14:16', 1, 10120, 8, 'admin', 'A', '', 'N', 8, '2025-12-17 11:15:29'),
(141, 'QU', 10254, '2025-12-17 11:14:21', 2, 10120, 8, 'admin', 'A', '', 'N', 8, '2025-12-17 11:15:29'),
(142, 'SO', 10254, '2025-12-17 11:15:35', 1, 20116, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(143, 'SO', 10254, '2025-12-17 11:15:39', 2, 20116, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(144, 'PO', 10255, '2025-12-17 13:57:36', 1, 60060, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(145, 'PO', 10255, '2025-12-17 13:57:44', 2, 60060, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(146, 'PO', 10256, '2025-12-17 17:41:01', 1, 60061, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(147, 'PO', 10256, '2025-12-17 17:41:38', 2, 60061, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(148, 'PO', 10257, '2025-12-17 18:11:43', 1, 60062, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(149, 'PO', 10257, '2025-12-17 18:11:46', 2, 60062, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(150, 'PO', 10258, '2025-12-17 18:14:36', 1, 60063, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(151, 'PO', 10258, '2025-12-17 18:14:38', 2, 60063, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(152, 'PO', 10258, '2025-12-17 18:14:42', 2, 60063, 8, 'admin', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(153, 'PR', 1001, '2025-12-18 09:02:55', 1, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-18 18:21:09'),
(154, 'PR', 1001, '2025-12-18 09:02:59', 2, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-18 18:21:09'),
(155, 'PE', 1002, '2025-12-18 09:04:12', 1, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(156, 'PE', 1002, '2025-12-18 09:04:16', 2, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(157, 'PE', 1002, '2025-12-18 09:04:17', 2, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(158, 'PE', 1002, '2025-12-18 09:04:17', 2, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(159, 'PE', 1002, '2025-12-18 09:05:50', 1, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(160, 'PE', 1002, '2025-12-18 09:05:57', 2, 10001, 2, 'admin@26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(161, 'PO', 1003, '2025-12-18 09:20:39', 1, 60001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:31:41'),
(162, 'PO', 1003, '2025-12-18 09:20:43', 2, 60001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:31:41'),
(163, 'LE', 1004, '2025-12-18 09:25:55', 1, 1001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(164, 'LE', 1004, '2025-12-18 09:25:58', 2, 1001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(165, 'PO', 1005, '2025-12-18 09:51:41', 1, 60002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(166, 'PO', 1005, '2025-12-18 09:51:44', 2, 60002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(167, 'PO', 1005, '2025-12-18 09:53:12', 1, 60002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(168, 'PO', 1005, '2025-12-18 09:53:15', 2, 60002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(169, 'QU', 1004, '2025-12-18 09:56:42', 1, 10001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(170, 'QU', 1004, '2025-12-18 09:56:46', 2, 10001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(171, 'QU', 1004, '2025-12-18 10:23:33', 1, 10001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(172, 'QU', 1004, '2025-12-18 10:23:38', 2, 10001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(173, 'QU', 1004, '2025-12-18 10:23:38', 2, 10001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(174, 'QU', 1004, '2025-12-18 10:23:38', 2, 10001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(175, 'PR', 1006, '2025-12-18 10:28:11', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:33:28'),
(176, 'PR', 1006, '2025-12-18 10:28:20', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:33:28'),
(177, 'PE', 1007, '2025-12-18 10:29:01', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:05:06'),
(178, 'PE', 1007, '2025-12-18 10:29:04', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:05:06'),
(179, 'PO', 1008, '2025-12-18 10:29:36', 1, 60003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(180, 'PO', 1008, '2025-12-18 10:29:39', 2, 60003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(181, 'SO', 1004, '2025-12-18 10:54:36', 1, 20001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(182, 'SO', 1004, '2025-12-18 10:54:39', 2, 20001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(183, 'SO', 1004, '2025-12-18 10:57:06', 1, 20001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(184, 'SO', 1004, '2025-12-18 10:57:10', 2, 20001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-18 18:24:20'),
(185, 'QU', 1009, '2025-12-18 11:06:27', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(186, 'QU', 1009, '2025-12-18 11:06:33', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(187, 'QU', 1009, '2025-12-18 11:43:10', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(188, 'QU', 1009, '2025-12-18 11:43:15', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(189, 'PR', 1010, '2025-12-18 11:48:02', 1, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:21:07'),
(190, 'PR', 1010, '2025-12-18 11:48:05', 2, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:21:07'),
(191, 'PE', 1011, '2025-12-18 11:48:24', 1, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(192, 'PE', 1011, '2025-12-18 11:48:27', 2, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(193, 'PO', 1012, '2025-12-18 12:03:23', 1, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:44:45'),
(194, 'PO', 1012, '2025-12-18 12:03:27', 2, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:44:45'),
(195, 'QU', 1009, '2025-12-18 14:04:46', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(196, 'QU', 1009, '2025-12-18 14:49:14', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(197, 'PO', 1016, '2025-12-18 15:43:13', 1, 60005, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(198, 'PO', 1016, '2025-12-18 15:43:17', 2, 60005, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(199, 'SO', 1009, '2025-12-18 15:54:50', 1, 20002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(200, 'SO', 1009, '2025-12-18 15:54:54', 2, 20002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(201, 'PR', 1017, '2025-12-18 16:05:52', 1, 10004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:20:36'),
(202, 'PR', 1017, '2025-12-18 16:05:59', 2, 10004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:20:36'),
(203, 'PE', 1018, '2025-12-18 16:06:33', 1, 10004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:20:59'),
(204, 'PE', 1018, '2025-12-18 16:06:36', 2, 10004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:20:59'),
(205, 'PO', 1019, '2025-12-18 16:07:09', 1, 60006, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:21:40'),
(206, 'PO', 1019, '2025-12-18 16:07:12', 2, 60006, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:21:40'),
(207, 'PO', 1021, '2025-12-18 17:12:51', 1, 60007, 2, 'admin26', 'A', '', 'N', 1, '2025-12-19 14:23:43'),
(208, 'PO', 1021, '2025-12-18 17:12:54', 2, 60007, 2, 'admin26', 'A', '', 'N', 1, '2025-12-19 14:23:43'),
(209, 'PO', 1021, '2025-12-18 17:14:11', 1, 60007, 2, 'admin26', 'A', '', 'N', 1, '2025-12-19 14:23:43'),
(210, 'PO', 1021, '2025-12-18 17:14:25', 2, 60007, 2, 'admin26', 'A', '', 'N', 1, '2025-12-19 14:23:43'),
(211, 'PR', 1002, '2025-12-18 18:22:14', 1, 75001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(212, 'PR', 1002, '2025-12-18 18:22:17', 2, 75001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:29:35'),
(213, 'PE', 1003, '2025-12-18 18:22:37', 1, 85001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:31:41'),
(214, 'PE', 1003, '2025-12-18 18:22:43', 2, 85001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:31:41'),
(215, 'PO', 1006, '2025-12-18 18:33:33', 1, 60001, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(216, 'PO', 1006, '2025-12-18 18:33:36', 2, 60001, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(217, 'QU', 1005, '2025-12-18 18:46:11', 1, 1, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(218, 'QU', 1005, '2025-12-18 18:46:15', 2, 1, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(219, 'QU', 1005, '2025-12-19 08:12:44', 1, 1, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(220, 'QU', 1005, '2025-12-19 08:13:06', 2, 1, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 08:13:29'),
(221, 'LE', 1008, '2025-12-19 08:18:56', 1, 1001, 2, 'admin26', 'A', 'A1', 'N', 2, '2025-12-19 12:08:21'),
(222, 'LE', 1008, '2025-12-19 08:21:09', 2, 1001, 2, 'admin26', 'A', 'Approval 2', 'N', 2, '2025-12-19 12:08:21'),
(223, 'SO', 1005, '2025-12-19 08:22:52', 1, 20001, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(224, 'SO', 1005, '2025-12-19 08:22:56', 2, 20001, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(225, 'QU', 1008, '2025-12-19 08:23:22', 1, 2, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(226, 'QU', 1008, '2025-12-19 08:23:26', 2, 2, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(227, 'QU', 1009, '2025-12-19 08:26:24', 1, 3, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(228, 'QU', 1008, '2025-12-19 08:40:34', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(229, 'PR', 1010, '2025-12-19 08:59:01', 1, 75002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:21:07'),
(230, 'PR', 1010, '2025-12-19 09:00:10', 2, 75002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 09:21:07'),
(231, 'PO', 1007, '2025-12-19 09:05:31', 1, 60002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(232, 'PO', 1007, '2025-12-19 09:05:37', 2, 60002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(233, 'PE', 1011, '2025-12-19 09:06:18', 1, 85002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(234, 'PE', 1011, '2025-12-19 09:06:22', 2, 85002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(235, 'QU', 1009, '2025-12-19 09:09:09', 1, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(236, 'QU', 1009, '2025-12-19 09:09:12', 2, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(237, 'PR', 1010, '2025-12-19 09:21:48', 1, 75002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(238, 'PR', 1010, '2025-12-19 09:21:55', 2, 75002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(239, 'PR', 1012, '2025-12-19 09:44:49', 1, 75003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(240, 'PR', 1012, '2025-12-19 09:44:52', 2, 75003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(241, 'PE', 1003, '2025-12-19 09:50:46', 1, 85001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:31:41'),
(242, 'PE', 1003, '2025-12-19 09:50:49', 2, 85001, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:31:41'),
(243, 'QU', 1009, '2025-12-19 09:51:50', 1, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(244, 'QU', 1009, '2025-12-19 09:51:53', 2, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(245, 'QU', 1009, '2025-12-19 10:18:20', 1, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(246, 'QU', 1009, '2025-12-19 10:18:24', 2, 10003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(247, 'SO', 1009, '2025-12-19 10:19:23', 1, 20002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(248, 'SO', 1009, '2025-12-19 10:19:27', 2, 20002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:32:50'),
(249, 'QU', 1008, '2025-12-19 10:21:50', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(250, 'QU', 1008, '2025-12-19 10:21:53', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(251, 'PE', 1011, '2025-12-19 10:22:22', 1, 85002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(252, 'PE', 1011, '2025-12-19 10:22:55', 2, 85002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(253, 'PE', 1011, '2025-12-19 10:23:16', 1, 85002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(254, 'PE', 1011, '2025-12-19 10:23:20', 2, 85002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:30:23'),
(255, 'PE', 1011, '2025-12-19 10:31:26', 1, 85002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(256, 'PE', 1011, '2025-12-19 10:31:32', 2, 85002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(257, 'PO', 1013, '2025-12-19 10:34:42', 1, 60003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:56:25'),
(258, 'PO', 1013, '2025-12-19 10:34:48', 2, 60003, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 10:56:25'),
(259, 'PO', 1014, '2025-12-19 10:48:15', 1, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:19:50'),
(260, 'PO', 1014, '2025-12-19 10:48:34', 1, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:19:50'),
(261, 'PO', 1014, '2025-12-19 10:48:38', 2, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:19:50'),
(262, 'PO', 1014, '2025-12-19 10:57:27', 1, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:19:50'),
(263, 'PO', 1013, '2025-12-19 10:57:34', 1, 60003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(264, 'PO', 1013, '2025-12-19 10:57:37', 2, 60003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(265, 'PO', 1014, '2025-12-19 11:00:08', 2, 60004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 11:19:50'),
(266, 'PO', 1015, '2025-12-19 11:19:02', 1, 60005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(267, 'PO', 1015, '2025-12-19 11:19:17', 2, 60005, 2, 'admin26', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(268, 'PO', 1015, '2025-12-19 11:19:21', 1, 60005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(269, 'PO', 1015, '2025-12-19 11:19:29', 2, 60005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(270, 'PO', 1014, '2025-12-19 11:20:01', 1, 60004, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(271, 'PO', 1014, '2025-12-19 11:20:06', 2, 60004, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(272, 'SO', 1009, '2025-12-19 11:37:57', 1, 20002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(273, 'SO', 1009, '2025-12-19 11:38:03', 2, 20002, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(274, 'QU', 1008, '2025-12-19 11:44:18', 1, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(275, 'QU', 1008, '2025-12-19 11:44:23', 2, 10002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:08:21'),
(276, 'SO', 1008, '2025-12-19 12:08:47', 1, 20003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(277, 'SO', 1008, '2025-12-19 12:08:50', 2, 20003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(278, 'LE', 1016, '2025-12-19 12:12:11', 1, 1002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(279, 'LE', 1016, '2025-12-19 12:12:11', 1, 1002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(280, 'LE', 1016, '2025-12-19 12:12:18', 2, 1002, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(281, 'QU', 1016, '2025-12-19 12:13:21', 1, 10004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(282, 'QU', 1016, '2025-12-19 12:13:29', 2, 10004, 2, 'admin26', 'A', '', 'N', 2, '2025-12-19 12:14:05'),
(283, 'SO', 1016, '2025-12-19 12:14:22', 1, 20004, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(284, 'SO', 1016, '2025-12-19 12:14:26', 2, 20004, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(285, 'PR', 1017, '2025-12-19 12:20:41', 1, 75004, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(286, 'PR', 1017, '2025-12-19 12:20:45', 2, 75004, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(287, 'PE', 1018, '2025-12-19 12:21:08', 1, 85003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(288, 'PE', 1018, '2025-12-19 12:21:12', 2, 85003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(289, 'PO', 1019, '2025-12-19 12:21:46', 1, 60006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(290, 'PO', 1019, '2025-12-19 12:21:52', 2, 60006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(291, 'PO', 1021, '2025-12-19 14:24:53', 1, 60007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(292, 'PO', 1021, '2025-12-19 14:24:57', 2, 60007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(293, 'PR', 1022, '2025-12-19 14:52:27', 1, 75005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(294, 'PR', 1022, '2025-12-19 14:52:31', 2, 75005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(295, 'PE', 1025, '2025-12-19 14:55:46', 1, 85006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(296, 'PE', 1025, '2025-12-19 14:55:49', 2, 85006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(297, 'PO', 1026, '2025-12-19 14:57:51', 1, 60008, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(298, 'PO', 1026, '2025-12-19 14:57:54', 2, 60008, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(299, 'PR', 1027, '2025-12-19 15:02:09', 1, 75006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(300, 'PR', 1027, '2025-12-19 15:02:12', 2, 75006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(301, 'PE', 1028, '2025-12-19 15:02:26', 1, 85007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(302, 'PE', 1028, '2025-12-19 15:02:33', 2, 85007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(303, 'PO', 1029, '2025-12-19 15:02:58', 1, 60009, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(304, 'PO', 1029, '2025-12-19 15:03:05', 2, 60009, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(305, 'PO', 1030, '2025-12-19 15:18:49', 1, 60010, 2, 'admin26', 'A', '', 'N', 1, '2025-12-23 10:21:28'),
(306, 'PO', 1030, '2025-12-19 15:18:53', 2, 60010, 2, 'admin26', 'A', '', 'N', 1, '2025-12-23 10:21:28'),
(307, 'PO', 1031, '2025-12-19 15:23:17', 1, 60011, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(308, 'PO', 1031, '2025-12-19 15:23:22', 2, 60011, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(309, 'SO', 1032, '2025-12-19 15:50:12', 1, 20005, 2, 'admin26', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(310, 'SO', 1032, '2025-12-19 15:50:24', 1, 20005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(311, 'SO', 1032, '2025-12-19 15:50:28', 2, 20005, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(312, 'SO', 1033, '2025-12-19 15:58:02', 1, 20006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(313, 'SO', 1033, '2025-12-19 15:58:07', 2, 20006, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(314, 'QU', 1035, '2025-12-20 09:28:54', 1, 10005, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 09:29:09'),
(315, 'QU', 1035, '2025-12-20 09:28:57', 2, 10005, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 09:29:09'),
(316, 'SO', 1035, '2025-12-20 09:29:14', 1, 20007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(317, 'SO', 1035, '2025-12-20 09:29:17', 2, 20007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(318, 'LE', 1036, '2025-12-20 12:29:30', 1, 1003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(319, 'LE', 1036, '2025-12-20 12:29:43', 2, 1003, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(320, 'QU', 1037, '2025-12-20 13:16:50', 1, 10006, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 13:54:25'),
(321, 'QU', 1037, '2025-12-20 13:16:53', 2, 10006, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 13:54:25'),
(322, 'QU', 1037, '2025-12-20 13:18:44', 1, 10006, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 13:54:25'),
(323, 'QU', 1037, '2025-12-20 13:18:47', 2, 10006, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 13:54:25'),
(324, 'QU', 1038, '2025-12-20 13:23:01', 1, 10007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(325, 'QU', 1038, '2025-12-20 13:23:04', 2, 10007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(326, 'SO', 1037, '2025-12-20 13:36:45', 1, 20008, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 13:54:25'),
(327, 'SO', 1037, '2025-12-20 13:38:01', 2, 20008, 2, 'admin26', 'A', '', 'N', 2, '2025-12-20 13:54:25'),
(328, 'SO', 1037, '2025-12-20 13:58:38', 1, 20008, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(329, 'SO', 1037, '2025-12-20 13:58:41', 2, 20008, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(330, 'PR', 1040, '2025-12-22 08:08:17', 1, 75007, 2, 'admin26', 'A', 'approval 1', 'N', 2, '2025-12-22 08:35:21'),
(331, 'PR', 1040, '2025-12-22 08:08:29', 2, 75007, 2, 'admin26', 'A', 'approval 2', 'N', 2, '2025-12-22 08:35:21'),
(332, 'PR', 1040, '2025-12-22 08:35:28', 1, 75007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(333, 'PR', 1040, '2025-12-22 08:35:34', 2, 75007, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(334, 'PE', 1041, '2025-12-22 08:41:55', 1, 85008, 2, 'admin26', 'A', 'approve1\r\n', 'N', 2, '2025-12-23 10:28:27'),
(335, 'PE', 1041, '2025-12-22 08:43:05', 2, 85008, 2, 'admin26', 'A', 'approve2', 'N', 2, '2025-12-23 10:28:27'),
(336, 'PO', 1042, '2025-12-22 09:55:11', 1, 60012, 2, 'admin26', 'A', 'approval1', 'Y', 0, '0000-00-00 00:00:00'),
(337, 'PO', 1042, '2025-12-22 09:55:24', 2, 60012, 2, 'admin26', 'A', 'Approve 2', 'Y', 0, '0000-00-00 00:00:00'),
(338, 'SO', 1039, '2025-12-22 10:59:40', 1, 20009, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(339, 'SO', 1039, '2025-12-22 10:59:45', 2, 20009, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(340, 'PO', 1030, '2025-12-23 10:22:00', 1, 60010, 2, 'admin26', 'R', '', 'Y', 0, '0000-00-00 00:00:00'),
(341, 'PO', 1030, '2025-12-23 10:22:10', 1, 60010, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(342, 'PO', 1030, '2025-12-23 10:22:35', 2, 60010, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(343, 'PO', 1044, '2025-12-23 10:24:03', 1, 60013, 2, 'admin26', 'A', '', 'N', 2, '2025-12-23 10:27:22'),
(344, 'PO', 1044, '2025-12-23 10:24:14', 2, 60013, 2, 'admin26', 'A', '', 'N', 2, '2025-12-23 10:27:22'),
(345, 'PO', 1044, '2025-12-23 10:25:15', 1, 60013, 2, 'admin26', 'A', '', 'N', 2, '2025-12-23 10:27:22'),
(346, 'PO', 1044, '2025-12-23 10:25:22', 2, 60013, 2, 'admin26', 'A', '', 'N', 2, '2025-12-23 10:27:22'),
(347, 'PO', 1044, '2025-12-23 10:27:25', 1, 60013, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(348, 'PO', 1044, '2025-12-23 10:27:29', 2, 60013, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(349, 'PE', 1041, '2025-12-23 10:28:31', 1, 85008, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00'),
(350, 'PE', 1041, '2025-12-23 10:28:34', 2, 85008, 2, 'admin26', 'A', '', 'Y', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_file_note`
--

CREATE TABLE `erp_file_note` (
  `id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `customer_vendor_id` int(11) NOT NULL,
  `customer_vendor_type` int(11) NOT NULL COMMENT '1-customer,2-vendor',
  `contact_id` int(11) NOT NULL,
  `file_id` int(11) DEFAULT NULL,
  `file_note_from` int(11) NOT NULL COMMENT '1-purchase,2-sale,3-customer,4-vendor,5-customer contact,6-vendor contact',
  `notes` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_fixed_asset_depreciation`
--

CREATE TABLE `erp_fixed_asset_depreciation` (
  `id` int(11) NOT NULL,
  `fixed_asset_register` int(10) UNSIGNED DEFAULT NULL,
  `fixed_asset_type` int(11) NOT NULL,
  `depreciated_date` date NOT NULL,
  `depreciation_amount` decimal(15,2) NOT NULL,
  `created_at` datetime NOT NULL,
  `created_by` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_fixed_asset_master`
--

CREATE TABLE `erp_fixed_asset_master` (
  `id` int(11) NOT NULL,
  `starting_series_number` varchar(50) NOT NULL,
  `last_number` varchar(50) NOT NULL,
  `fixed_asset_name` varchar(50) NOT NULL,
  `description` text DEFAULT NULL,
  `depreciation_period` int(11) NOT NULL,
  `depreciating_debit_account` varchar(50) NOT NULL,
  `depreciating_credit_account` varchar(50) NOT NULL,
  `isActive` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_fixed_asset_master`
--

INSERT INTO `erp_fixed_asset_master` (`id`, `starting_series_number`, `last_number`, `fixed_asset_name`, `description`, `depreciation_period`, `depreciating_debit_account`, `depreciating_credit_account`, `isActive`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, '1001', '', 'Vehicles', 'Vehicles', 60, '288', '288', 1, 2, NULL, '2025-12-18 06:15:53', NULL),
(2, '2001', '', 'Machinery', 'Machinery', 120, '288', '288', 1, 2, NULL, '2025-12-18 06:16:15', NULL),
(3, '3001', '3004', 'Buildings', 'Buildings', 120, '288', '288', 1, 2, NULL, '2025-12-18 06:16:32', NULL),
(4, '4001', '', 'IT Infrastructure', 'IT Infrastructure', 36, '288', '288', 1, 2, NULL, '2025-12-18 06:16:58', NULL),
(5, '5001', '', 'Furniture and Fixtures', 'Furniture and Fixtures', 60, '288', '288', 1, 2, NULL, '2025-12-18 06:17:27', NULL);

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

--
-- Table structure for table `erp_fixed_asset_register`
--

CREATE TABLE `erp_fixed_asset_register` (
  `id` int(11) NOT NULL,
  `purchase_date` date NOT NULL,
  `depreciation_start_date` date NOT NULL,
  `master_id` int(11) NOT NULL,
  `fixed_asset_no` varchar(50) NOT NULL,
  `part_no` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `rate` decimal(15,2) NOT NULL,
  `serial_no` varchar(50) NOT NULL,
  `total_value` decimal(15,2) NOT NULL,
  `current_book_value` decimal(15,2) NOT NULL,
  `daily_depreciation` decimal(15,3) NOT NULL,
  `monthly_depreciation` decimal(15,2) NOT NULL,
  `depr_date` date NOT NULL,
  `fixed_asset_master_number` int(11) NOT NULL,
  `fixed_asset_register_number` int(11) NOT NULL,
  `sold_amount` decimal(15,2) NOT NULL,
  `depr_last_date` date NOT NULL,
  `inactive_date` date NOT NULL,
  `depr_check_date` date NOT NULL,
  `current_depr_value` decimal(15,3) NOT NULL,
  `active` enum('SO','SC','Y') NOT NULL DEFAULT 'Y' COMMENT 'SO : Sold, SC : Scrap, Y: Active',
  `notes` text NOT NULL,
  `location` varchar(255) NOT NULL,
  `posted` enum('N','Y') NOT NULL DEFAULT 'N',
  `debit_account` int(11) NOT NULL,
  `credit_account` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_flyers`
--

CREATE TABLE `erp_flyers` (
  `id` int(11) NOT NULL,
  `title` varchar(400) NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_flyer_bulk_send`
--

CREATE TABLE `erp_flyer_bulk_send` (
  `id` int(11) NOT NULL,
  `details` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_flyer_contact`
--

CREATE TABLE `erp_flyer_contact` (
  `id` int(11) NOT NULL,
  `flyer_id` int(11) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_fm_technician`
--

CREATE TABLE `erp_fm_technician` (
  `id` int(11) NOT NULL,
  `technician_name` varchar(255) NOT NULL,
  `technician_type` int(11) NOT NULL,
  `mobile_no` varchar(255) NOT NULL,
  `unit_hour_rate` decimal(15,2) NOT NULL,
  `remarks` text NOT NULL,
  `sort_order` int(11) NOT NULL,
  `is_active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_appraisal`
--

CREATE TABLE `erp_hr_appraisal` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `appraisal_for` varchar(700) NOT NULL,
  `appraisal_description` text NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `approve_question_level1_id` int(11) NOT NULL,
  `approve_question_level1_date` date NOT NULL,
  `approve_question_level2_id` int(11) NOT NULL,
  `approve_question_level2_date` date NOT NULL,
  `revert_comment` text NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_appraisal`
--

INSERT INTO `erp_hr_appraisal` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `department_id`, `appraisal_for`, `appraisal_description`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `approve_question_level1_id`, `approve_question_level1_date`, `approve_question_level2_id`, `approve_question_level2_date`, `revert_comment`, `status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 5, 2, 2, 1, 0, 'year-2024', 'tests', 1, '2025-06-26', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 2, '2025-06-26', '', 0, '0000-00-00', 0, '0000-00-00', '', 12, 8, '2025-06-20 14:23:13', 11, '2025-06-26 14:07:45');

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

--
-- Table structure for table `erp_hr_appraisal_analysis`
--

CREATE TABLE `erp_hr_appraisal_analysis` (
  `id` int(11) NOT NULL,
  `appraisal_id` int(11) NOT NULL,
  `appraisal_type` int(11) NOT NULL COMMENT 'primary key of hr_mas_appraisal_type',
  `appraisal_goal` text NOT NULL,
  `question_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `question_weightage` decimal(15,2) NOT NULL,
  `target_achieved_date` date NOT NULL,
  `level1_answer` text NOT NULL,
  `level1_score` int(11) NOT NULL DEFAULT 0,
  `level2_answer` text NOT NULL,
  `level2_score` int(11) NOT NULL DEFAULT 0,
  `level3_answer` text NOT NULL,
  `level3_score` int(11) NOT NULL DEFAULT 0,
  `level4_answer` text NOT NULL,
  `level4_score` int(11) NOT NULL DEFAULT 0,
  `level5_answer` text NOT NULL,
  `level5_score` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_appraisal_analysis`
--

INSERT INTO `erp_hr_appraisal_analysis` (`id`, `appraisal_id`, `appraisal_type`, `appraisal_goal`, `question_id`, `question`, `question_weightage`, `target_achieved_date`, `level1_answer`, `level1_score`, `level2_answer`, `level2_score`, `level3_answer`, `level3_score`, `level4_answer`, `level4_score`, `level5_answer`, `level5_score`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 'Efficiency in  Gate Pass Process & AP', 1, 'Zero error in making AP using SAP system & sending to Accounts department after generating. Ensure that AP will be closed after 24hrs.', 50.00, '2025-12-31', '1', 10, '1', 10, '', 0, '', 0, '', 0, 8, '0000-00-00 00:00:00', 11, '2025-06-26 14:07:45', 'Y'),
(2, 1, 1, 'Efficiency in  Gate Pass Process & AP', 2, 'Ensure documents for gate passes are up to date before  uploading to portal and share the approved gate pass on the same day.', 50.00, '2025-12-31', '2', 10, '11', 10, '', 0, '', 0, '', 0, 8, '0000-00-00 00:00:00', 11, '2025-06-26 14:07:45', 'Y'),
(3, 1, 2, 'Accurate Inventory Control, Maintain Building Facility & Accomplish Facility Projects', 3, 'Daily routine inspection of HQ premises & Weekly visit in NH,NC,WH-UAQ & TNS premises to ensure all are well maintained.', 40.00, '2025-12-31', '3', 10, '111', 10, '', 0, '', 0, '', 0, 8, '0000-00-00 00:00:00', 11, '2025-06-26 14:07:45', 'Y'),
(4, 1, 2, 'Accurate Inventory Control, Maintain Building Facility & Accomplish Facility Projects', 4, '100% Inventory Tracking & Accuracy of facility Supplies', 30.00, '2025-12-31', '4', 10, '1111', 10, '', 0, '', 0, '', 0, 8, '0000-00-00 00:00:00', 11, '2025-06-26 14:07:45', 'Y'),
(5, 1, 2, 'Accurate Inventory Control, Maintain Building Facility & Accomplish Facility Projects', 5, 'Coordinate with the vendor with 2 - 3 quotation with competitive price and get approval of HOD on the same day', 30.00, '2025-12-31', '5', 10, '1111', 9, '', 0, '', 0, '', 0, 8, '0000-00-00 00:00:00', 11, '2025-06-26 14:07:45', 'Y'),
(6, 1, 3, 'Manageable timeline for submission of AP invoices and Gate pass request', 6, 'Manageable timeline for submission of AP invoices and Gate pass request', 100.00, '2025-12-31', '66', 10, '11', 10, '', 0, '', 0, '', 0, 8, '0000-00-00 00:00:00', 11, '2025-06-26 14:07:45', 'Y');

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

--
-- Table structure for table `erp_hr_appraisal_department`
--

CREATE TABLE `erp_hr_appraisal_department` (
  `id` int(11) NOT NULL,
  `department_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_appraisal_department`
--

INSERT INTO `erp_hr_appraisal_department` (`id`, `department_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'General', 8, '2025-06-20 14:13:47', 8, '2025-06-20 14:14:25', 'Y');

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

--
-- Table structure for table `erp_hr_appraisal_questions`
--

CREATE TABLE `erp_hr_appraisal_questions` (
  `id` int(11) NOT NULL,
  `appraisal_type` int(11) NOT NULL COMMENT 'primary key of hr_mas_appraisal_type',
  `department_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `weightage_percent` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_appraisal_questions`
--

INSERT INTO `erp_hr_appraisal_questions` (`id`, `appraisal_type`, `department_id`, `question`, `weightage_percent`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 'Zero error in making AP using SAP system & sending to Accounts department after generating. Ensure that AP will be closed after 24hrs.', 50.00, 8, '2025-06-20 14:20:42', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 1, 'Ensure documents for gate passes are up to date before  uploading to portal and share the approved gate pass on the same day.', 50.00, 8, '2025-06-20 14:20:42', 0, '0000-00-00 00:00:00', 'Y'),
(3, 2, 1, 'Daily routine inspection of HQ premises & Weekly visit in NH,NC,WH-UAQ & TNS premises to ensure all are well maintained.', 40.00, 8, '2025-06-20 14:20:42', 0, '0000-00-00 00:00:00', 'Y'),
(4, 2, 1, '100% Inventory Tracking & Accuracy of facility Supplies', 30.00, 8, '2025-06-20 14:20:42', 0, '0000-00-00 00:00:00', 'Y'),
(5, 2, 1, 'Coordinate with the vendor with 2 - 3 quotation with competitive price and get approval of HOD on the same day', 30.00, 8, '2025-06-20 14:20:42', 0, '0000-00-00 00:00:00', 'Y'),
(6, 3, 1, 'Manageable timeline for submission of AP invoices and Gate pass request', 100.00, 8, '2025-06-20 14:20:42', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_appraisal_type`
--

CREATE TABLE `erp_hr_appraisal_type` (
  `id` int(11) NOT NULL,
  `appraisal_id` int(11) NOT NULL,
  `type_id` int(11) NOT NULL,
  `weightage` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_appraisal_type`
--

INSERT INTO `erp_hr_appraisal_type` (`id`, `appraisal_id`, `type_id`, `weightage`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, 40.00, 8, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 1, 2, 30.00, 8, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 1, 3, 30.00, 8, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_attendance_log`
--

CREATE TABLE `erp_hr_attendance_log` (
  `id` int(11) NOT NULL,
  `emp_id` int(11) NOT NULL,
  `log_date` date NOT NULL,
  `log_time` time NOT NULL,
  `log_type` enum('IN','OUT','LOG_IN','LOG_OUT') NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `latitude` varchar(25) NOT NULL,
  `longitude` varchar(25) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_attendance_manager`
--

CREATE TABLE `erp_hr_attendance_manager` (
  `id` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_attendance_manager`
--

INSERT INTO `erp_hr_attendance_manager` (`id`, `branch`, `employee_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 1, '2025-06-26 02:23:22', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_attendance_punch_history`
--

CREATE TABLE `erp_hr_attendance_punch_history` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `attendance_date` date NOT NULL,
  `punch_time` time NOT NULL,
  `punch_status` enum('I','O','BI','BO','MI','MO') NOT NULL DEFAULT 'I' COMMENT 'I-IN,O-OUT,BI-BREAK-IN,BO-BREAK OUT,,MI-Machine break start,MO-Machine break end',
  `latitude` varchar(300) NOT NULL,
  `longitude` varchar(300) NOT NULL,
  `current_latitude` varchar(500) NOT NULL,
  `current_longitude` varchar(500) NOT NULL,
  `punch_location` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_attendance_upload_format`
--

CREATE TABLE `erp_hr_attendance_upload_format` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `use_employee_code_r_biometric` enum('E','B') NOT NULL DEFAULT 'E',
  `employee_id` int(11) NOT NULL,
  `biometric_id` int(11) NOT NULL,
  `attendance_date` int(11) NOT NULL,
  `date_format` tinyint(4) NOT NULL,
  `time_from` enum('C','S') NOT NULL DEFAULT 'C' COMMENT 'C-Column No,S-Status Based',
  `login_time` int(11) NOT NULL,
  `logout_time` int(11) NOT NULL,
  `status_column` tinyint(4) NOT NULL,
  `status_login` varchar(50) NOT NULL,
  `status_logout` varchar(50) NOT NULL,
  `status_time` tinyint(4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci COMMENT='Table for setting format of attendance file';

--
-- Dumping data for table `erp_hr_attendance_upload_format`
--

INSERT INTO `erp_hr_attendance_upload_format` (`id`, `branch_id`, `use_employee_code_r_biometric`, `employee_id`, `biometric_id`, `attendance_date`, `date_format`, `time_from`, `login_time`, `logout_time`, `status_column`, `status_login`, `status_logout`, `status_time`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 0, 'E', 0, 0, 1, 2, 'C', 2, 3, 0, '', '', 0, 0, '0000-00-00 00:00:00', 1, '2025-11-26 09:00:41'),
(2, 1, 'E', 0, 0, 1, 1, 'C', 2, 3, 0, '', '', 0, 1, '2025-11-26 09:00:56', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_audit_log`
--

CREATE TABLE `erp_hr_audit_log` (
  `id` int(11) NOT NULL,
  `functionality` int(11) NOT NULL,
  `master_table_id` int(11) NOT NULL,
  `performed_by` int(11) NOT NULL,
  `performed_date_time` datetime NOT NULL,
  `remarks` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_audit_log`
--

INSERT INTO `erp_hr_audit_log` (`id`, `functionality`, `master_table_id`, `performed_by`, `performed_date_time`, `remarks`) VALUES
(1, 32, 1, 1, '2025-06-18 12:00:43', 'Created branch  Bluesky-UAE'),
(2, 32, 1, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(3, 32, 2, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(4, 32, 3, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(5, 32, 4, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(6, 32, 5, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(7, 32, 6, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(8, 32, 7, 1, '2025-06-18 12:00:43', 'Created branch working hours  1'),
(9, 32, 1, 1, '2025-06-18 12:05:38', 'Updated branch  Bluesky-UAE'),
(10, 32, 1, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(11, 32, 2, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(12, 32, 3, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(13, 32, 4, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(14, 32, 5, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(15, 32, 6, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(16, 32, 7, 1, '2025-06-18 12:05:38', 'Updated branch working hours  1'),
(17, 34, 1, 8, '2025-06-18 14:37:27', 'Created leave type  Annual leave'),
(18, 34, 1, 8, '2025-06-18 14:44:37', 'Updated leave type  Annual leave'),
(19, 2, 1, 8, '2025-06-18 14:44:37', 'Salary Details Created for employee code BT0002'),
(20, 24, 1, 1, '2025-06-18 16:49:15', 'Updated salary lock 2025'),
(21, 16, 6, 1, '2025-06-19 09:16:46', 'Updated bank ADCB Islamic Bank'),
(22, 16, 6, 1, '2025-06-19 09:16:51', 'Updated bank ADCB Islamic Bank'),
(23, 16, 6, 1, '2025-06-19 09:16:54', 'Updated bank ADCB Islamic Bank'),
(24, 16, 6, 1, '2025-06-19 09:16:59', 'Updated bank ADCB Islamic Bank'),
(25, 16, 4, 1, '2025-06-19 09:20:25', 'Updated bank ABN AMRO Group NV'),
(26, 16, 4, 1, '2025-06-19 09:20:29', 'Updated bank ABN AMRO Group NV'),
(27, 39, 1, 8, '2025-06-19 10:50:56', 'Created shift timing  morning'),
(28, 4, 1, 8, '2025-06-20 14:15:23', 'Updated appraisal type Efficiency in  Gate Pass Process & AP'),
(29, 4, 2, 8, '2025-06-20 14:15:23', 'Updated appraisal type Accurate Inventory Control, Maintain Building Facility & Accomplish Facility Projects'),
(30, 4, 3, 8, '2025-06-20 14:15:23', 'Updated appraisal type Manageable timeline for submission of AP invoices and Gate pass request'),
(31, 5, 1, 8, '2025-06-20 14:20:42', 'Updated appraisal KPI Zero error in making AP using SAP system & sending to Accounts department after generating. Ensure that AP will be closed after 24hrs.'),
(32, 5, 2, 8, '2025-06-20 14:20:42', 'Updated appraisal KPI Ensure documents for gate passes are up to date before  uploading to portal and share the approved gate pass on the same day.'),
(33, 5, 3, 8, '2025-06-20 14:20:42', 'Updated appraisal KPI Daily routine inspection of HQ premises & Weekly visit in NH,NC,WH-UAQ & TNS premises to ensure all are well maintained.'),
(34, 5, 4, 8, '2025-06-20 14:20:42', 'Updated appraisal KPI 100% Inventory Tracking & Accuracy of facility Supplies'),
(35, 5, 5, 8, '2025-06-20 14:20:42', 'Updated appraisal KPI Coordinate with the vendor with 2 - 3 quotation with competitive price and get approval of HOD on the same day'),
(36, 5, 6, 8, '2025-06-20 14:20:42', 'Updated appraisal KPI Manageable timeline for submission of AP invoices and Gate pass request'),
(37, 34, 1, 8, '2025-06-20 15:36:44', 'Updated leave type  Annual leave'),
(38, 34, 1, 8, '2025-06-20 15:37:06', 'Updated leave type  Annual leave'),
(39, 2, 2, 8, '2025-06-20 15:37:45', 'Salary Details Created for employee code BT0001'),
(40, 34, 1, 1, '2025-06-23 09:17:14', 'Updated leave type  Annual leave'),
(41, 2, 3, 1, '2025-06-23 09:17:14', 'Salary Details Created for employee code BT0003'),
(42, 15, 1, 8, '2025-06-23 10:48:39', 'Created training course First Aid'),
(43, 15, 1, 8, '2025-06-23 10:48:39', 'Created training course details First AID'),
(44, 34, 1, 8, '2025-06-23 11:13:18', 'Updated leave type  Annual leave'),
(45, 16, 12, 8, '2025-06-23 17:09:49', 'Updated bank Citibank'),
(46, 16, 36, 8, '2025-06-23 17:10:04', 'Updated bank ADNB'),
(47, 40, 1, 1, '2025-06-24 09:49:48', 'Created wps entity  Bluesky'),
(48, 9, 1, 8, '2025-06-24 11:57:50', 'Created product book'),
(49, 1, 2, 8, '2025-06-24 15:51:53', 'Updated department IT'),
(50, 1, 2, 8, '2025-06-24 15:51:59', 'Updated department IT'),
(51, 2, 12, 8, '2025-06-24 15:59:27', 'Updated designation Assistant1'),
(52, 2, 12, 8, '2025-06-24 15:59:31', 'Updated designation Assistant'),
(53, 2, 12, 8, '2025-06-24 15:59:36', 'Updated designation Assistant'),
(54, 2, 12, 8, '2025-06-24 15:59:43', 'Updated designation Assistant'),
(55, 32, 1, 1, '2025-06-24 17:06:44', 'Updated branch  Bluesky-UAE1'),
(56, 32, 1, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(57, 32, 2, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(58, 32, 3, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(59, 32, 4, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(60, 32, 5, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(61, 32, 6, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(62, 32, 7, 1, '2025-06-24 17:06:44', 'Updated branch working hours  1'),
(63, 32, 1, 1, '2025-06-24 17:07:42', 'Updated branch  Bluesky-UAE1'),
(64, 32, 1, 1, '2025-06-24 17:07:49', 'Updated branch  Bluesky-UAE1'),
(65, 32, 1, 1, '2025-06-24 17:07:54', 'Updated branch  Bluesky-UAE1'),
(66, 32, 1, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(67, 32, 2, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(68, 32, 3, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(69, 32, 4, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(70, 32, 5, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(71, 32, 6, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(72, 32, 7, 1, '2025-06-24 17:07:54', 'Updated branch working hours  1'),
(73, 32, 1, 1, '2025-06-24 17:08:08', 'Updated branch  Bluesky-UAE'),
(74, 32, 1, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(75, 32, 2, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(76, 32, 3, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(77, 32, 4, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(78, 32, 5, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(79, 32, 6, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(80, 32, 7, 1, '2025-06-24 17:08:08', 'Updated branch working hours  1'),
(81, 8, 1, 8, '2025-06-25 07:47:33', 'Created holiday isalamic new year'),
(82, 8, 2, 8, '2025-06-25 07:59:12', 'Created holiday Islamic year'),
(83, 34, 1, 1, '2025-06-25 08:16:24', 'Updated leave type  Annual leave'),
(84, 34, 1, 1, '2025-06-25 08:17:34', 'Updated leave type  Annual leave'),
(85, 34, 1, 1, '2025-06-25 08:17:41', 'Updated leave type  Annual leave'),
(86, 35, 2, 1, '2025-06-25 08:29:50', 'Updated notice period  2 Month'),
(87, 35, 2, 1, '2025-06-25 08:29:56', 'Updated notice period  2 Months'),
(88, 35, 3, 1, '2025-06-25 08:29:59', 'Updated notice period  3 Months'),
(89, 35, 3, 1, '2025-06-25 08:30:03', 'Updated notice period  3 Months'),
(90, 35, 3, 1, '2025-06-25 08:30:09', 'Updated notice period  3 Months'),
(91, 10, 1, 8, '2025-06-25 08:33:27', 'Created recruitment department Accounts'),
(92, 10, 1, 8, '2025-06-25 08:38:29', 'Updated recruitment department Accounts'),
(93, 10, 1, 8, '2025-06-25 08:38:33', 'Updated recruitment department Accounts'),
(94, 11, 1, 8, '2025-06-25 08:39:12', 'Created recruitment question Q1'),
(95, 11, 2, 8, '2025-06-25 08:47:34', 'Created recruitment question Q1'),
(96, 15, 1, 8, '2025-06-25 09:03:25', 'Updated training course First Aid'),
(97, 15, 1, 8, '2025-06-25 09:03:29', 'Updated training course First Aid'),
(98, 38, 9, 1, '2025-06-25 09:39:54', 'Updated relation type  Brother'),
(99, 16, 12, 8, '2025-06-25 09:43:41', 'Updated bank Citibank'),
(100, 16, 12, 8, '2025-06-25 09:43:51', 'Updated bank Citibank'),
(101, 16, 12, 8, '2025-06-25 09:44:29', 'Updated bank Citibank'),
(102, 16, 12, 8, '2025-06-25 09:45:16', 'Updated bank Citibank'),
(103, 36, 1, 1, '2025-06-25 09:45:36', 'Updated overtime type  NOT - Normal Overtime'),
(104, 36, 1, 1, '2025-06-25 09:45:40', 'Updated overtime type  NOT - Normal Overtime'),
(105, 36, 4, 1, '2025-06-25 09:45:44', 'Updated overtime type  NGT-Night Shift Overtime'),
(106, 36, 4, 1, '2025-06-25 09:45:51', 'Updated overtime type  NGT-Night Shift Overtime'),
(107, 37, 1, 1, '2025-06-25 09:51:13', 'Updated pension settings  143'),
(108, 37, 1, 1, '2025-06-25 09:51:54', 'Updated pension settings  143'),
(109, 37, 2, 1, '2025-06-25 09:51:57', 'Updated pension settings  '),
(110, 37, 2, 1, '2025-06-25 09:53:09', 'Updated pension settings  '),
(111, 38, 2, 1, '2025-06-25 10:00:05', 'Updated relation type  Mothe'),
(112, 17, 1, 8, '2025-06-25 10:00:13', 'Updated currency UAE Dirham'),
(113, 38, 2, 1, '2025-06-25 10:00:13', 'Updated relation type  Mother'),
(114, 38, 5, 1, '2025-06-25 10:00:19', 'Updated relation type  Son'),
(115, 17, 1, 8, '2025-06-25 10:00:21', 'Updated currency UAE Dirham'),
(116, 38, 5, 1, '2025-06-25 10:00:24', 'Updated relation type  Son'),
(117, 17, 1, 8, '2025-06-25 10:00:28', 'Updated currency UAE Dirham'),
(118, 17, 1, 8, '2025-06-25 10:00:36', 'Updated currency UAE Dirham'),
(119, 18, 1, 8, '2025-06-25 10:18:32', 'Updated expense Emirates ID1'),
(120, 18, 1, 8, '2025-06-25 10:18:36', 'Updated expense Emirates ID'),
(121, 18, 1, 8, '2025-06-25 10:18:39', 'Updated expense Emirates ID'),
(122, 18, 1, 8, '2025-06-25 10:18:43', 'Updated expense Emirates ID'),
(123, 19, 1, 8, '2025-06-25 10:19:03', 'Created Eos clearance HR Clearance'),
(124, 39, 1, 1, '2025-06-25 10:20:18', 'Updated shift timing  morning'),
(125, 39, 1, 1, '2025-06-25 10:20:26', 'Updated shift timing  Morning'),
(126, 19, 1, 8, '2025-06-25 10:34:52', 'Updated Eos clearance HR Clearance1'),
(127, 19, 1, 8, '2025-06-25 10:35:59', 'Updated Eos clearance HR Clearance'),
(128, 21, 5, 8, '2025-06-25 11:15:01', 'Updated Eos payment term Ticket Allowance1'),
(129, 21, 5, 8, '2025-06-25 11:15:06', 'Updated Eos payment term Ticket Allowance'),
(130, 21, 5, 8, '2025-06-25 11:15:11', 'Updated Eos payment term Ticket Allowance'),
(131, 21, 5, 8, '2025-06-25 11:15:22', 'Updated Eos payment term Ticket Allowance'),
(132, 21, 6, 8, '2025-06-25 11:15:57', 'Updated Eos payment term Payment'),
(133, 23, 1, 8, '2025-06-25 11:35:42', 'Updated salary type Basic'),
(134, 23, 1, 8, '2025-06-25 11:35:47', 'Updated salary type Basic'),
(135, 26, 8, 8, '2025-06-25 12:43:06', 'Updated certificate Salary Increment Letter'),
(136, 26, 8, 8, '2025-06-25 12:43:10', 'Updated certificate Salary Increment Letter'),
(137, 26, 8, 8, '2025-06-25 12:43:15', 'Updated certificate Salary Increment Letter'),
(138, 27, 1, 8, '2025-06-25 12:43:42', 'Updated company document 1234567'),
(139, 27, 1, 8, '2025-06-25 12:56:25', 'Created company document 1234567'),
(140, 28, 7, 8, '2025-06-25 13:26:39', 'Updated document type Contract'),
(141, 28, 7, 8, '2025-06-25 13:26:44', 'Updated document type Contract'),
(142, 28, 7, 8, '2025-06-25 13:26:48', 'Updated document type Contract'),
(143, 30, 3, 8, '2025-06-25 13:57:57', 'Updated in out document  Labour Card1'),
(144, 30, 3, 8, '2025-06-25 13:58:01', 'Updated in out document  Labour Card'),
(145, 30, 3, 8, '2025-06-25 13:58:03', 'Updated in out document  Labour Card'),
(146, 30, 3, 8, '2025-06-25 13:58:10', 'Updated in out document  Labour Card'),
(147, 31, 3, 8, '2025-06-25 14:06:17', 'Created job contract  Limited'),
(148, 31, 3, 8, '2025-06-25 14:08:17', 'Updated job contract  Limited1'),
(149, 31, 3, 8, '2025-06-25 14:08:24', 'Updated job contract  Limited'),
(150, 31, 3, 8, '2025-06-25 14:08:26', 'Updated job contract  Limited'),
(151, 31, 3, 8, '2025-06-25 14:08:36', 'Updated job contract  Limited'),
(152, 8, 3, 1, '2025-06-27 07:37:38', 'Created holiday Holiday'),
(153, 17, 3, 8, '2025-06-27 15:18:06', 'Updated currency Euro'),
(154, 17, 4, 8, '2025-06-27 15:19:50', 'Updated currency GBP'),
(155, 17, 1, 8, '2025-06-27 15:19:58', 'Updated currency UAE Dirham'),
(156, 17, 3, 8, '2025-06-27 15:20:17', 'Updated currency Euro'),
(157, 17, 1, 8, '2025-06-27 15:24:18', 'Updated currency UAE Dirham'),
(158, 23, 2, 1, '2025-06-27 16:23:29', 'Created salary type Bonus'),
(159, 34, 2, 1, '2025-06-27 16:26:52', 'Created leave type  Paternal Leave'),
(160, 34, 3, 1, '2025-06-27 16:28:14', 'Created leave type  Maternity Leave'),
(161, 34, 4, 1, '2025-06-27 16:29:20', 'Created leave type  Sick Leave'),
(162, 34, 2, 1, '2025-06-27 16:29:50', 'Updated leave type  Paternal Leave'),
(163, 34, 3, 1, '2025-06-27 16:30:02', 'Updated leave type  Maternity Leave'),
(164, 34, 4, 1, '2025-06-27 16:30:15', 'Updated leave type  Sick Leave'),
(165, 34, 5, 8, '2025-06-28 06:58:00', 'Created leave type  Short Leave'),
(166, 34, 5, 8, '2025-06-28 07:16:48', 'Updated leave type  Short Leave'),
(167, 32, 1, 8, '2025-06-28 07:17:07', 'Updated branch  Bluesky-UAE'),
(168, 32, 1, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(169, 32, 2, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(170, 32, 3, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(171, 32, 4, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(172, 32, 5, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(173, 32, 6, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(174, 32, 7, 8, '2025-06-28 07:17:07', 'Updated branch working hours  1'),
(175, 34, 5, 8, '2025-06-30 08:30:53', 'Updated leave type  Short Leave'),
(176, 16, 37, 1, '2025-07-16 16:41:20', 'Block/Unblock bank Sbi'),
(177, 16, 37, 1, '2025-07-16 16:42:00', 'Updated bank Sbi'),
(178, 17, 6, 1, '2025-07-16 16:42:10', 'Block/Unblock currency Sbi'),
(179, 17, 7, 1, '2025-07-16 16:43:00', 'Block/Unblock currency Currency1'),
(180, 17, 6, 1, '2025-07-16 16:43:12', 'Updated currency Sbi'),
(181, 17, 7, 1, '2025-07-16 16:43:15', 'Updated currency Currency1'),
(182, 32, 1, 8, '2025-10-23 14:33:24', 'Updated branch  Bluesky-UAE'),
(183, 32, 1, 1, '2025-11-26 09:07:15', 'Updated branch  Bluesky-UAE'),
(184, 32, 1, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(185, 32, 2, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(186, 32, 3, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(187, 32, 4, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(188, 32, 5, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(189, 32, 6, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(190, 32, 7, 1, '2025-11-26 09:07:15', 'Updated branch working hours  1'),
(191, 32, 1, 1, '2025-11-26 09:07:43', 'Updated branch  Bluesky-UAE'),
(192, 32, 1, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(193, 32, 2, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(194, 32, 3, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(195, 32, 4, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(196, 32, 5, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(197, 32, 6, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(198, 32, 7, 1, '2025-11-26 09:07:43', 'Updated branch working hours  1'),
(199, 17, 0, 2, '2025-12-19 12:07:09', 'Block/Unblock currency INR'),
(200, 17, 8, 2, '2025-12-19 12:07:19', 'Updated currency INR');

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

--
-- Table structure for table `erp_hr_audit_log_functionality`
--

CREATE TABLE `erp_hr_audit_log_functionality` (
  `id` int(11) NOT NULL,
  `symbolic_name` varchar(255) NOT NULL,
  `symbolic_code` varchar(100) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_audit_log_functionality`
--

INSERT INTO `erp_hr_audit_log_functionality` (`id`, `symbolic_name`, `symbolic_code`, `isActive`) VALUES
(2, 'Master Designation', 'DESIGNATION', 'Y'),
(1, 'Master Department', 'DEPARTMENT', 'Y'),
(3, 'Master Country', 'COUNTRY', 'Y'),
(4, 'Master Appraisal Type', 'APPRAISAL TYPE', 'Y'),
(5, 'Master Appraisal Question', 'APPRAISAL QUESTION', 'Y'),
(6, 'Master App Permission', 'APP PERMISSION', 'Y'),
(7, 'Master Employee Panel Permission', 'EMPLOYEE PANEL PERMISSION', 'Y'),
(8, 'Master Holiday', 'HOLIDAY', 'Y'),
(9, 'Master Product', 'PRODUCT', 'Y'),
(10, 'Master Recruitment Department', 'RECRUITMENT DEPARTMENT', 'Y'),
(11, 'Master Recruitment Question', 'RECRUITMENT QUESTION', 'Y'),
(12, 'Master Recruitment On Boarding', 'RECRUITMENT ON BOARDING', 'Y'),
(13, 'Master Recruitment Off Boarding', 'RECRUITMENT OFF BOARDING', 'Y'),
(14, 'Master Settings', 'SETTINGS', 'Y'),
(15, 'Master Training Course', 'TRAINING COURSE', 'Y'),
(16, 'Master Bank', 'BANK', 'Y'),
(17, 'Master Currency', 'CURRENCY', 'Y'),
(18, 'Master Expense', 'EXPENSE', 'Y'),
(19, 'Master EOS Clearance', 'EOS CLEARANCE', 'Y'),
(20, 'Master EOS Gratuity', 'EOS GRATUITY', 'Y'),
(21, 'Master EOS Payment Terms', 'EOS PAYMENT TERMS', 'Y'),
(22, 'Master Incentive Structure', 'INCENTIVE STRUCTURE', 'Y'),
(23, 'Master Salary Type', 'SALARY TYPE', 'Y'),
(24, 'Master Salary Lock Month', 'SALARY LOCK MONTH', 'Y'),
(25, 'Master Salary Date Settings', 'SALARY DATE SETTINGS', 'Y'),
(26, 'Master Certificate', 'CERTIFICATE', 'Y'),
(27, 'Master Company Documents', 'COMPANY DOCUMENTS', 'Y'),
(28, 'Master Document Type', 'DOCUMENT TYPE', 'Y'),
(29, 'Master Document Expiry Status', 'DOCUMENT EXPIRY STATUS', 'Y'),
(30, 'Master In-Out Document', 'IN OUT DOCUMENT', 'Y'),
(31, 'Master Job Contract', 'JOB CONTRACT', 'Y'),
(32, 'Master Branch', 'BRANCH', 'Y'),
(33, 'Master Business Unit', 'BUSINESS UNIT', 'Y'),
(34, 'Master Leave Type', 'LEAVE TYPE', 'Y'),
(35, 'Master Notice Period', 'NOTICE PERIOD', 'Y'),
(36, 'Master Overtime Type', 'OVERTIME TYPE', 'Y'),
(37, 'Master Pension Settings', 'PENSION SETTINGS', 'Y'),
(38, 'Master Relation Type', 'RELATION TYPE', 'Y'),
(39, 'Master Shift Timings', 'SHIFT TIMINGS', 'Y'),
(40, 'Master WPS Entity', 'WPS ENTITY', 'Y'),
(41, 'Admin Users', 'USERS', 'Y'),
(42, 'Admin Usergroup', 'USERGROUP', 'Y'),
(43, 'Master Project Work', 'PROJECT WORK', 'Y');

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

--
-- Table structure for table `erp_hr_bank`
--

CREATE TABLE `erp_hr_bank` (
  `id` int(11) NOT NULL,
  `account_no` varchar(100) NOT NULL,
  `description` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_calendar_notification`
--

CREATE TABLE `erp_hr_calendar_notification` (
  `id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `notification` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_calendar_notification`
--

INSERT INTO `erp_hr_calendar_notification` (`id`, `start_date`, `end_date`, `notification`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, '2025-06-25', '2025-06-25', 'tests', 8, '2025-06-24 11:31:44', 8, '2025-06-24 11:47:31');

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

--
-- Table structure for table `erp_hr_company_catalogue`
--

CREATE TABLE `erp_hr_company_catalogue` (
  `id` int(11) NOT NULL,
  `branch_or_sponsor_id` varchar(100) NOT NULL,
  `department_id` varchar(100) NOT NULL,
  `title` text NOT NULL,
  `notes` text NOT NULL,
  `catalogue_attachment` varchar(700) NOT NULL,
  `employees_viewed` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_catalogue`
--

INSERT INTO `erp_hr_company_catalogue` (`id`, `branch_or_sponsor_id`, `department_id`, `title`, `notes`, `catalogue_attachment`, `employees_viewed`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, '1', '', 'tests', '<p>\n	sdfdsfdsfds</p>\n', '', '', 8, '2025-06-23 16:35:22', 8, '2025-06-23 16:54:20', 'N'),
(2, '1', '', 'tests', '<p>\n	sffsdfds</p>\n', '', '', 8, '2025-06-23 16:54:37', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_company_circular`
--

CREATE TABLE `erp_hr_company_circular` (
  `id` int(11) NOT NULL,
  `branch_or_sponsor_id` text NOT NULL,
  `circular_type` int(11) NOT NULL COMMENT '1-Indoor,2-Outdoor',
  `employee_id` text NOT NULL,
  `title` varchar(500) NOT NULL,
  `notes` text NOT NULL,
  `date_circular` date NOT NULL,
  `employees_viewed` text NOT NULL,
  `circular_document` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_circular`
--

INSERT INTO `erp_hr_company_circular` (`id`, `branch_or_sponsor_id`, `circular_type`, `employee_id`, `title`, `notes`, `date_circular`, `employees_viewed`, `circular_document`, `created_by`, `isActive`) VALUES
(1, '1', 1, '1', 'tes', '<p>\n	xvfxgdsfgs</p>\n', '2025-06-24', '', '', 8, 'N'),
(2, '1', 2, '', 'tess', '<p>\n	dgfdsgdsg</p>\n', '2025-06-24', '', '', 8, 'Y'),
(3, '1', 1, '1', 'ew', '<p>\n	wefdsfdsfd</p>\n', '2025-12-12', '', '', 8, 'Y');

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

--
-- Table structure for table `erp_hr_company_document`
--

CREATE TABLE `erp_hr_company_document` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `document_number` varchar(30) NOT NULL,
  `document_type` int(11) NOT NULL,
  `document_file` text NOT NULL,
  `validate_till_date` date NOT NULL,
  `renew_on` date NOT NULL,
  `status` int(11) NOT NULL COMMENT '0-Not in Process,1-In Process',
  `expiry_notify` int(11) NOT NULL DEFAULT 0 COMMENT '0-No,1-Yes',
  `inprocess_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_document`
--

INSERT INTO `erp_hr_company_document` (`id`, `company_id`, `document_id`, `document_number`, `document_type`, `document_file`, `validate_till_date`, `renew_on`, `status`, `expiry_notify`, `inprocess_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, '1234567', 1, 'sample-1157  6   1 .pdf', '2025-12-26', '2025-11-26', 0, 0, '0000-00-00', 8, '2025-06-25 12:43:42', 8, 2025);

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

--
-- Table structure for table `erp_hr_company_inprocess_document`
--

CREATE TABLE `erp_hr_company_inprocess_document` (
  `id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `stage_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `completed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_company_templates`
--

CREATE TABLE `erp_hr_company_templates` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `document_title` varchar(255) NOT NULL,
  `document_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_templates`
--

INSERT INTO `erp_hr_company_templates` (`id`, `branch_id`, `document_title`, `document_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 0, 'test', '', 8, '2025-06-24 12:44:45', 8, '2025-06-24 12:58:14', 'N'),
(2, 1, 'test1', '', 8, '2025-06-24 12:58:04', 8, '2025-06-24 13:00:11', 'Y'),
(3, 1, 'test', '', 8, '2025-06-24 12:58:23', 8, '2025-06-24 12:58:26', 'N'),
(4, 1, 'test', '', 8, '2025-06-24 12:59:13', 8, '2025-06-24 13:00:05', 'N');

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

--
-- Table structure for table `erp_hr_department`
--

CREATE TABLE `erp_hr_department` (
  `id` int(11) NOT NULL,
  `department_name` varchar(255) NOT NULL,
  `normal_ot_days` int(11) NOT NULL,
  `holiday_ot_days` int(11) NOT NULL,
  `night_ot_days` int(11) NOT NULL,
  `weekend_ot_days` int(11) NOT NULL,
  `holiday_incentive` decimal(10,2) NOT NULL DEFAULT 1.00,
  `absent_deduction` decimal(10,2) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_department`
--

INSERT INTO `erp_hr_department` (`id`, `department_name`, `normal_ot_days`, `holiday_ot_days`, `night_ot_days`, `weekend_ot_days`, `holiday_incentive`, `absent_deduction`, `isActive`) VALUES
(1, 'Administration', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(2, 'IT', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(3, 'Operations', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(4, 'HR', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(5, 'Finance', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(6, 'Sales', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(7, 'Production', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(8, 'Marketing', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(9, 'Accounts', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(10, 'Help Desk', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(11, 'Logistics', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(12, 'Quality', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(13, 'HOH', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(14, 'EXPORT', 0, 0, 0, 0, 1.00, 0.00, 'Y');

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

--
-- Table structure for table `erp_hr_department_approve_level`
--

CREATE TABLE `erp_hr_department_approve_level` (
  `id` int(11) NOT NULL,
  `functionality_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `level_1_type` enum('L','S','N','H') NOT NULL,
  `level_1_authority` int(11) NOT NULL,
  `level_2_type` enum('L','S','N','H') NOT NULL,
  `level_2_authority` int(11) NOT NULL,
  `level_3_type` enum('L','S','N','H') NOT NULL,
  `level_3_authority` int(11) NOT NULL,
  `level_4_type` enum('L','S','N','H') NOT NULL,
  `level_4_authority` int(11) NOT NULL,
  `level_5_type` enum('L','S','N','H') NOT NULL,
  `level_5_authority` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_designation`
--

CREATE TABLE `erp_hr_designation` (
  `id` int(11) NOT NULL,
  `designation_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_designation`
--

INSERT INTO `erp_hr_designation` (`id`, `designation_name`, `isActive`) VALUES
(1, 'IT Manager', 'Y'),
(2, 'HR Manager', 'Y'),
(3, 'Operations Manager', 'Y'),
(4, 'Production Manager', 'Y'),
(5, 'Finance Manager', 'Y'),
(6, 'Administrator', 'Y'),
(7, 'Marketing Manager', 'Y'),
(8, 'Sales Manager', 'Y'),
(9, 'Telecom Manager', 'Y'),
(10, 'Research Associate', 'Y'),
(11, 'Admin Assistant', 'Y'),
(12, 'Assistant', 'Y');

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

--
-- Table structure for table `erp_hr_employee_approve_level`
--

CREATE TABLE `erp_hr_employee_approve_level` (
  `id` int(11) NOT NULL,
  `functionality_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `level_1_type` enum('L','S','N','H') NOT NULL,
  `level_1_authority` int(11) NOT NULL,
  `level_2_type` enum('L','S','N','H') NOT NULL,
  `level_2_authority` int(11) NOT NULL,
  `level_3_type` enum('L','S','N','H') NOT NULL,
  `level_3_authority` int(11) NOT NULL,
  `level_4_type` enum('L','S','N','H') NOT NULL,
  `level_4_authority` int(11) NOT NULL,
  `level_5_type` enum('L','S','N','H') NOT NULL,
  `level_5_authority` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_approve_level`
--

INSERT INTO `erp_hr_employee_approve_level` (`id`, `functionality_id`, `employee_id`, `max_level`, `level_1_type`, `level_1_authority`, `level_2_type`, `level_2_authority`, `level_3_type`, `level_3_authority`, `level_4_type`, `level_4_authority`, `level_5_type`, `level_5_authority`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 2, 2, 'N', 2, 'N', 1, 'L', 1, 'L', 1, 'L', 1, 1, '2025-06-18 15:15:34', 2, '2025-12-18 08:52:46'),
(2, 1, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 11:18:34', 2, '2025-12-18 08:52:55'),
(3, 7, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 11:18:34', 2, '2025-12-18 08:52:55'),
(4, 12, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 11:19:21', 2, '2025-12-18 08:52:55'),
(5, 6, 1, 2, 'N', 1, 'N', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 16:14:29', 2, '2025-12-18 08:52:55'),
(6, 9, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-20 15:38:29', 2, '2025-12-18 08:52:55'),
(7, 2, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 07:44:25', 2, '2025-12-18 08:52:55'),
(8, 4, 1, 2, 'N', 1, 'H', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 08:40:40', 2, '2025-12-18 08:52:55'),
(9, 5, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 10:16:33', 2, '2025-12-18 08:52:55'),
(10, 10, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 13:05:59', 2, '2025-12-18 08:52:55'),
(11, 3, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 14:26:39', 2, '2025-12-18 08:52:55'),
(12, 8, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-24 11:58:12', 2, '2025-12-18 08:52:55'),
(13, 14, 2, 1, 'N', 1, 'L', 1, 'L', 1, 'L', 1, 'L', 1, 1, '2025-06-27 14:33:09', 8, '2025-07-22 09:58:00'),
(14, 16, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 1, '2025-12-15 09:29:18', 2, '2025-12-18 08:52:55');

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

--
-- Table structure for table `erp_hr_employee_asset`
--

CREATE TABLE `erp_hr_employee_asset` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `asset_id` int(11) NOT NULL,
  `master_asset_id` int(11) NOT NULL,
  `asset_description` text NOT NULL,
  `asset_date_issue` date NOT NULL,
  `asset_date_return` date NOT NULL,
  `asset_undertaking_letter` varchar(700) NOT NULL,
  `asset_status` int(11) NOT NULL COMMENT '1-Issued,2-Returned,3-Discarded,4-Lost',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_attendance`
--

CREATE TABLE `erp_hr_employee_attendance` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `branch_or_sponsor_id` int(11) NOT NULL,
  `shift_id` int(11) NOT NULL,
  `attendance_date` date NOT NULL,
  `week_day` varchar(255) NOT NULL,
  `login_time` varchar(100) NOT NULL,
  `logout_time` varchar(100) NOT NULL,
  `status` varchar(25) NOT NULL COMMENT '1-Present,2-Absent,3-Leave,4->Holiday,5->Weekend',
  `leave_id` int(11) NOT NULL COMMENT 'primary key of crm_hr_employee_leave_detail table',
  `normal_overtime` time NOT NULL,
  `holiday_overtime` time NOT NULL,
  `weekend_overtime` time NOT NULL,
  `night_shift_overtime` time NOT NULL,
  `night_shift_allowance` decimal(10,2) NOT NULL,
  `order_manhours` int(11) NOT NULL COMMENT 'Manhours Table Id',
  `onsite_normal_overtime` time NOT NULL,
  `onsite_holiday_overtime` time NOT NULL,
  `daily_allowance` decimal(15,2) NOT NULL,
  `overtime_rate` decimal(15,2) NOT NULL,
  `total_overtime_amount` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `morning_late` time NOT NULL,
  `variance_time_loss` time NOT NULL,
  `excess_time` time NOT NULL,
  `total_working` time NOT NULL,
  `excuse_reason` text NOT NULL,
  `remarks` text NOT NULL,
  `pay_roll_monthid` varchar(255) NOT NULL,
  `upload_file` text NOT NULL,
  `attendance_via` enum('D','M','U','H','E','A') NOT NULL COMMENT 'D->daily,M->Monthly,U->upload,H->Hiring,E-ESS Punch',
  `login_punch_from` enum('O','H') NOT NULL DEFAULT 'O' COMMENT 'O-Office,H-Home',
  `logout_punch_from` enum('O','H') NOT NULL DEFAULT 'O' COMMENT 'O-Office,H-Home',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_attendance`
--

INSERT INTO `erp_hr_employee_attendance` (`id`, `employee_id`, `branch_or_sponsor_id`, `shift_id`, `attendance_date`, `week_day`, `login_time`, `logout_time`, `status`, `leave_id`, `normal_overtime`, `holiday_overtime`, `weekend_overtime`, `night_shift_overtime`, `night_shift_allowance`, `order_manhours`, `onsite_normal_overtime`, `onsite_holiday_overtime`, `daily_allowance`, `overtime_rate`, `total_overtime_amount`, `total_amount`, `morning_late`, `variance_time_loss`, `excess_time`, `total_working`, `excuse_reason`, `remarks`, `pay_roll_monthid`, `upload_file`, `attendance_via`, `login_punch_from`, `logout_punch_from`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 1, 2, '2025-06-19', 'Thursday', '06:00', '12:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '00:00:00', '06:00:00', '', '', '', '', 'D', 'O', 'O', 8, '2025-06-19 11:06:35', 0, '0000-00-00 00:00:00'),
(2, 1, 1, 1, '2025-06-19', 'Thursday', '10:00:00', '18:00:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '02:00:00', '08:00:00', 'tee', '', '', '', 'H', 'H', 'H', 10, '2025-06-26 08:50:20', 0, '0000-00-00 00:00:00'),
(3, 3, 1, 0, '2025-12-12', 'Friday', '08:00', '18:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '01:00:00', '10:00:00', '', '', '', '', 'D', 'O', 'O', 1, '2025-12-12 12:08:00', 0, '0000-00-00 00:00:00'),
(4, 2, 1, 0, '2025-12-12', 'Friday', '08:00', '18:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '01:00:00', '10:00:00', '', '', '', '', 'D', 'O', 'O', 1, '2025-12-12 12:08:00', 0, '0000-00-00 00:00:00'),
(5, 1, 1, 0, '2025-12-12', 'Friday', '08:00', '18:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '01:00:00', '10:00:00', '', '', '', '', 'D', 'O', 'O', 1, '2025-12-12 12:08:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_attendance_excuse`
--

CREATE TABLE `erp_hr_employee_attendance_excuse` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `view_status` tinyint(4) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_attendance_excuse`
--

INSERT INTO `erp_hr_employee_attendance_excuse` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `apply_date`, `status`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 4, 1, 1, 1, '2025-06-19', 12, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', 'test', 1, 8, '2025-06-19 14:03:46', 10, '2025-06-26 08:50:20');

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

--
-- Table structure for table `erp_hr_employee_attendance_excuse_details`
--

CREATE TABLE `erp_hr_employee_attendance_excuse_details` (
  `id` int(11) NOT NULL,
  `excuse_id` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `customer_name` varchar(700) NOT NULL,
  `visit_area` varchar(700) NOT NULL,
  `excuse_date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `excuse_reason` text NOT NULL,
  `document` varchar(700) NOT NULL,
  `excuse_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `attendance_status` tinyint(4) NOT NULL,
  `rejected_level` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_attendance_excuse_details`
--

INSERT INTO `erp_hr_employee_attendance_excuse_details` (`id`, `excuse_id`, `type`, `customer_name`, `visit_area`, `excuse_date`, `start_time`, `end_time`, `excuse_reason`, `document`, `excuse_status`, `attendance_status`, `rejected_level`, `updated_by`, `updated_date_time`) VALUES
(2, 2, 2, '', '', '2025-06-19', '10:00:00', '18:00:00', 'tee', '', 'Y', 1, 0, 10, '2025-06-26 08:50:20');

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

--
-- Table structure for table `erp_hr_employee_attendance_warning`
--

CREATE TABLE `erp_hr_employee_attendance_warning` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `date_from` date NOT NULL,
  `date_to` date NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_biometric_exclude`
--

CREATE TABLE `erp_hr_employee_biometric_exclude` (
  `id` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_biometric_exclude`
--

INSERT INTO `erp_hr_employee_biometric_exclude` (`id`, `branch`, `employee_id`) VALUES
(2, 1, 1);

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

--
-- Table structure for table `erp_hr_employee_branch`
--

CREATE TABLE `erp_hr_employee_branch` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_branch`
--

INSERT INTO `erp_hr_employee_branch` (`id`, `employee_id`, `branch_id`, `from_date`, `to_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, '2021-02-10', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 2, 1, '2024-02-07', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 3, 1, '2004-05-12', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_brand_salary_percent`
--

CREATE TABLE `erp_hr_employee_brand_salary_percent` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `brand_id` int(11) NOT NULL,
  `salary_percent` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_bussiness_trip`
--

CREATE TABLE `erp_hr_employee_bussiness_trip` (
  `id` int(11) NOT NULL,
  `function_type` int(11) DEFAULT NULL,
  `employee_id` varchar(200) NOT NULL,
  `last_approved_level` tinyint(4) NOT NULL,
  `last_cancel_level` tinyint(4) NOT NULL DEFAULT -1,
  `apply_date` date NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `no_days` decimal(5,1) NOT NULL,
  `leave_reason` text NOT NULL,
  `ticket_applied` tinyint(4) NOT NULL DEFAULT 0,
  `travel_date` date NOT NULL,
  `travel_destination` varchar(700) NOT NULL,
  `return_date` date NOT NULL,
  `return_destination` varchar(700) NOT NULL,
  `status` int(11) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_approved_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_id` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `status_cancel` int(11) NOT NULL DEFAULT 0,
  `cancel_reason_employee` text NOT NULL,
  `date_apply_cancel` date NOT NULL,
  `cancel_level_1_id` int(11) NOT NULL,
  `date_cancel_level_1` date NOT NULL,
  `cancel_level_1_comment` text NOT NULL,
  `cancel_level_2_id` int(11) NOT NULL,
  `date_cancel_level_2` date NOT NULL,
  `cancel_level_2_comment` text NOT NULL,
  `cancel_level_3_id` int(11) NOT NULL,
  `date_cancel_level_3` date NOT NULL,
  `cancel_level_3_comment` text NOT NULL,
  `cancel_level_4_id` int(11) NOT NULL,
  `date_cancel_level_4` date NOT NULL,
  `cancel_level_4_comment` text NOT NULL,
  `cancel_level_5_id` int(11) NOT NULL,
  `date_cancel_level_5` date NOT NULL,
  `cancel_level_5_comment` text NOT NULL,
  `cancel_approved_id` int(11) NOT NULL,
  `date_cancel_hr` date NOT NULL,
  `cancel_comment_hr` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not viewed,1-Viewed',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_certificate`
--

CREATE TABLE `erp_hr_employee_certificate` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` tinyint(4) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `reference_no` varchar(255) NOT NULL,
  `certificate_id` int(11) NOT NULL,
  `addresses_to` text NOT NULL,
  `vehicle_type` int(11) NOT NULL COMMENT '1-Automatic,2-Manual',
  `apply_date` date NOT NULL,
  `apply_notes` text NOT NULL,
  `month` int(11) NOT NULL,
  `salary_year` int(11) NOT NULL,
  `new_salary` decimal(15,2) NOT NULL,
  `visa_type` int(11) NOT NULL COMMENT '1=''Visit Visa'',2=''Single Entry'',3=''Multiple Entry''',
  `visit_from` date NOT NULL,
  `visit_to` date NOT NULL,
  `visit_purpose` int(11) NOT NULL COMMENT '1-''Tourist'',2-''Business''',
  `visit_country` int(11) NOT NULL,
  `visitcompny_town` varchar(500) NOT NULL,
  `visit_reason` text NOT NULL,
  `embassy` varchar(500) NOT NULL,
  `born_city` varchar(500) NOT NULL,
  `certificate_document` varchar(255) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approval_id` int(11) NOT NULL,
  `approval_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `performance_month_1` decimal(10,2) NOT NULL,
  `performance_month_2` decimal(10,2) NOT NULL,
  `performance_month_3` decimal(10,2) NOT NULL,
  `probation` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1-Applied,2-Approve,3-Rejected,4-downloaded',
  `view_status` int(11) NOT NULL COMMENT '1-Not viewd,2-Viewed',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_certificate`
--

INSERT INTO `erp_hr_employee_certificate` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `reference_no`, `certificate_id`, `addresses_to`, `vehicle_type`, `apply_date`, `apply_notes`, `month`, `salary_year`, `new_salary`, `visa_type`, `visit_from`, `visit_to`, `visit_purpose`, `visit_country`, `visitcompny_town`, `visit_reason`, `embassy`, `born_city`, `certificate_document`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approval_id`, `approval_date`, `approval_comment`, `performance_month_1`, `performance_month_2`, `performance_month_3`, `probation`, `status`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 8, 1, 1, 1, '1000', 1, '', 0, '2025-06-23', 'tests', 0, 0, 0.00, 0, '0000-00-00', '0000-00-00', 0, 0, '', '', '', '', 'Salary Certificate - pdf salary certificate.pdf', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', '', 0.00, 0.00, 0.00, 0, 14, 0, 8, '2025-06-23 09:54:47', 10, '2025-06-26 11:19:34'),
(3, 8, 1, 1, 1, '', 1, '', 0, '2025-06-26', 'test', 0, 0, 0.00, 0, '0000-00-00', '0000-00-00', 0, 0, '', '', '', '', 'Salary Certificate - pdf salary certificate21.pdf', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', '', 0.00, 0.00, 0.00, 0, 14, 0, 10, '2025-06-26 11:22:07', 10, '2025-06-26 11:22:55'),
(4, 8, 2, 0, 1, '', 2, '', 0, '2025-06-26', 'tests', 0, 0, 0.00, 0, '0000-00-00', '0000-00-00', 0, 0, '', '', '', '', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0.00, 0.00, 0.00, 0, 1, 0, 10, '2025-06-26 11:33:42', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_complaint_suggestion`
--

CREATE TABLE `erp_hr_employee_complaint_suggestion` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `complaint_suggestion` text NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0-requested,1-hr_approved',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_complaint_suggestion`
--

INSERT INTO `erp_hr_employee_complaint_suggestion` (`id`, `employee_id`, `complaint_suggestion`, `created_date`, `status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 1, 'testse', '2025-06-23', 0, 8, '2025-06-23 10:36:33', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_contacts`
--

CREATE TABLE `erp_hr_employee_contacts` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `contact_person_name` varchar(700) NOT NULL,
  `local_contact_number` varchar(100) NOT NULL,
  `home_country_contact` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_department`
--

CREATE TABLE `erp_hr_employee_department` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_department`
--

INSERT INTO `erp_hr_employee_department` (`id`, `employee_id`, `department_id`, `from_date`, `to_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, '2021-02-10', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 2, 9, '2024-02-07', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 3, 9, '2004-05-12', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_dependants`
--

CREATE TABLE `erp_hr_employee_dependants` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `dependant_name` varchar(500) NOT NULL,
  `date_of_birth` date NOT NULL,
  `relationship` int(11) NOT NULL,
  `nationality` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `renewal_date` date NOT NULL,
  `document_upload` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_designation`
--

CREATE TABLE `erp_hr_employee_designation` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_designation`
--

INSERT INTO `erp_hr_employee_designation` (`id`, `employee_id`, `designation_id`, `from_date`, `to_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, '2021-02-10', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 2, 5, '2024-02-07', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 3, 5, '2004-05-12', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_documents`
--

CREATE TABLE `erp_hr_employee_documents` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `document_number` varchar(255) NOT NULL,
  `document_file` varchar(500) NOT NULL,
  `validate_till_date` date NOT NULL,
  `renew_on` date NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not in Process,1-In Process',
  `expiry_notify` int(11) NOT NULL DEFAULT 0 COMMENT '0-No,1-Yes',
  `inprocess_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_documents`
--

INSERT INTO `erp_hr_employee_documents` (`id`, `employee_id`, `document_id`, `document_number`, `document_file`, `validate_till_date`, `renew_on`, `status`, `expiry_notify`, `inprocess_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, '123', '', '2026-01-02', '2025-12-03', 0, 0, '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_document_expiry`
--

CREATE TABLE `erp_hr_employee_document_expiry` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `description` varchar(30) NOT NULL,
  `document_number` varchar(30) NOT NULL,
  `document_type` int(11) NOT NULL,
  `document_name` text NOT NULL,
  `validate_till_date` date NOT NULL,
  `renew_on` date NOT NULL,
  `status` int(11) NOT NULL,
  `inprocess_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_eos`
--

CREATE TABLE `erp_hr_employee_eos` (
  `id` int(11) NOT NULL,
  `branch_or_sponsor_id` int(11) NOT NULL,
  `gratuity_rule_id` int(11) NOT NULL,
  `releaving_type` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `employee_id` int(11) NOT NULL,
  `service_days` decimal(15,2) NOT NULL,
  `leave_encashed_balance` decimal(10,2) NOT NULL,
  `leave_settlement` decimal(15,2) NOT NULL,
  `overtime_salary` decimal(15,2) NOT NULL,
  `gratuity` decimal(15,2) NOT NULL,
  `notice_period_id` int(11) NOT NULL,
  `notice_period_salary` decimal(15,2) NOT NULL,
  `employee_salary` decimal(15,2) NOT NULL,
  `addition_others` decimal(15,2) NOT NULL,
  `additions` decimal(15,2) NOT NULL,
  `salary_advance` decimal(15,2) NOT NULL,
  `leave_amount` decimal(15,2) NOT NULL,
  `loan` decimal(15,2) NOT NULL,
  `pension_amount` decimal(15,2) NOT NULL,
  `deduction_others` decimal(15,2) NOT NULL,
  `deductions` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `salary_start_date` date NOT NULL,
  `date_leaving` date NOT NULL,
  `hr_comment` text NOT NULL,
  `resignation_document` varchar(500) NOT NULL,
  `hr_exit_document` varchar(500) NOT NULL,
  `eosclearance_document` varchar(500) NOT NULL,
  `lop` decimal(10,2) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `remarks` text NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_no` varchar(50) NOT NULL,
  `cheque_date` date NOT NULL,
  `approve_date` date NOT NULL,
  `payment_date` date NOT NULL,
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_eos`
--

INSERT INTO `erp_hr_employee_eos` (`id`, `branch_or_sponsor_id`, `gratuity_rule_id`, `releaving_type`, `apply_date`, `employee_id`, `service_days`, `leave_encashed_balance`, `leave_settlement`, `overtime_salary`, `gratuity`, `notice_period_id`, `notice_period_salary`, `employee_salary`, `addition_others`, `additions`, `salary_advance`, `leave_amount`, `loan`, `pension_amount`, `deduction_others`, `deductions`, `total_amount`, `salary_start_date`, `date_leaving`, `hr_comment`, `resignation_document`, `hr_exit_document`, `eosclearance_document`, `lop`, `status`, `payment_mode`, `remarks`, `credit_account`, `cheque_no`, `cheque_date`, `approve_date`, `payment_date`, `finance_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(3, 1, 1, 2, '2025-12-11', 3, 7884.00, 30.00, 4500.00, 0.00, 90358.00, 4, 2100.00, 3911.76, 0.00, 100869.76, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 100869.76, '2025-08-01', '2025-12-11', '', '', '', '', 0.00, 1, 0, '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', 'N', 1, '2025-12-11 07:37:16', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_eos_clearance`
--

CREATE TABLE `erp_hr_employee_eos_clearance` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `remarks` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_department_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level1_document` varchar(700) NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_department_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level2_document` varchar(700) NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_department_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level3_document` varchar(700) NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_department_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level4_document` varchar(700) NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_department_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approve_level5_document` varchar(700) NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_department_id` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approve_comments` text NOT NULL,
  `approved_document` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_eos_clearance_details`
--

CREATE TABLE `erp_hr_employee_eos_clearance_details` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `clearance_id` int(11) NOT NULL,
  `clearance_status` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_eos_details`
--

CREATE TABLE `erp_hr_employee_eos_details` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_id` int(11) NOT NULL,
  `salary_name` varchar(255) NOT NULL,
  `salary_amount` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_eos_details`
--

INSERT INTO `erp_hr_employee_eos_details` (`id`, `eos_id`, `employee_id`, `salary_id`, `salary_name`, `salary_amount`) VALUES
(3, 3, 3, 1, 'Basic', 4500.00);

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

--
-- Table structure for table `erp_hr_employee_eos_payment`
--

CREATE TABLE `erp_hr_employee_eos_payment` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `mas_payment_type` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `amount` decimal(10,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_expense`
--

CREATE TABLE `erp_hr_employee_expense` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `total` varchar(255) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer ',
  `payment_date` date NOT NULL,
  `remarks` text NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `payment_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `cheque_no` varchar(50) NOT NULL,
  `accounts_verified` enum('Y','N') NOT NULL DEFAULT 'N',
  `verified_by` int(11) NOT NULL,
  `verified_by_name` varchar(700) NOT NULL,
  `verified_date_time` datetime NOT NULL,
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_expense`
--

INSERT INTO `erp_hr_employee_expense` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `total`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `created_date`, `status`, `payment_mode`, `payment_date`, `remarks`, `credit_account`, `cheque_date`, `payment_status`, `cheque_no`, `accounts_verified`, `verified_by`, `verified_by_name`, `verified_date_time`, `finance_posted`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 3, 1, 1, 1, '100', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', 'test approval', '2025-06-24', 12, 0, '0000-00-00', '', 0, '0000-00-00', 'N', '', 'N', 0, '', '0000-00-00 00:00:00', 'N', 1, 8, '2025-06-24 08:12:08', 10, '2025-06-27 15:49:22');

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

--
-- Table structure for table `erp_hr_employee_expense_details`
--

CREATE TABLE `erp_hr_employee_expense_details` (
  `id` int(11) NOT NULL,
  `expense_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `expense_component_id` int(11) NOT NULL,
  `expense_date` date NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `notes` text NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `grand_total` decimal(15,2) NOT NULL,
  `file` varchar(255) NOT NULL,
  `person_attended_entertained` varchar(700) NOT NULL,
  `company` varchar(700) NOT NULL,
  `place` varchar(700) NOT NULL,
  `business_details` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_expense_details`
--

INSERT INTO `erp_hr_employee_expense_details` (`id`, `expense_id`, `employee_id`, `expense_component_id`, `expense_date`, `currency_id`, `exchange_rate`, `notes`, `amount`, `grand_total`, `file`, `person_attended_entertained`, `company`, `place`, `business_details`) VALUES
(1, 1, 1, 1, '2025-06-24', 1, 1.00, 'test petrol', 100.00, 100.00, '', '', '', '', '');

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

--
-- Table structure for table `erp_hr_employee_geocode`
--

CREATE TABLE `erp_hr_employee_geocode` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `geocode_location_id` int(11) NOT NULL,
  `latitude` varchar(200) NOT NULL,
  `longitude` varchar(200) NOT NULL,
  `description` varchar(700) NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_geocode_history`
--

CREATE TABLE `erp_hr_employee_geocode_history` (
  `id` int(11) NOT NULL,
  `geocode_tble_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `geocode_location_id` int(11) NOT NULL,
  `latitude` varchar(200) NOT NULL,
  `longitude` varchar(200) NOT NULL,
  `description` varchar(300) NOT NULL,
  `geo_tble_created_by` int(11) NOT NULL,
  `geo_tble_created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_geocode_history`
--

INSERT INTO `erp_hr_employee_geocode_history` (`id`, `geocode_tble_id`, `employee_id`, `geocode_location_id`, `latitude`, `longitude`, `description`, `geo_tble_created_by`, `geo_tble_created_date_time`, `created_by`, `created_date_time`) VALUES
(1, 1, 3, 1, '', '', '', 1, '2025-06-24 17:30:57', 1, '2025-06-25 08:08:55');

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

--
-- Table structure for table `erp_hr_employee_inout_document`
--

CREATE TABLE `erp_hr_employee_inout_document` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `in_out_document_id` int(11) NOT NULL,
  `in_out_type` int(11) NOT NULL,
  `in_out_date` date NOT NULL,
  `in_out_remarks` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_inprocess_document`
--

CREATE TABLE `erp_hr_employee_inprocess_document` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `stage_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `completed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_leave`
--

CREATE TABLE `erp_hr_employee_leave` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `leave_year` int(11) NOT NULL,
  `leave_opening` decimal(10,2) NOT NULL,
  `leave_current_balance` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave`
--

INSERT INTO `erp_hr_employee_leave` (`id`, `employee_id`, `leave_type`, `leave_year`, `leave_opening`, `leave_current_balance`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 1, 2025, 10.00, 9.00, 8, '2025-06-18 14:44:37', 1, '2025-06-27 16:07:55'),
(2, 1, 1, 2025, 30.00, 27.00, 8, '2025-06-20 15:37:06', 10, '2025-06-30 11:11:19'),
(3, 3, 1, 2025, 30.00, 30.00, 1, '2025-06-23 09:17:14', 0, '0000-00-00 00:00:00'),
(4, 3, 2, 2025, 5.00, 5.00, 1, '2025-06-27 16:29:50', 0, '0000-00-00 00:00:00'),
(5, 1, 2, 2025, 5.00, 5.00, 1, '2025-06-27 16:29:50', 0, '0000-00-00 00:00:00'),
(6, 2, 3, 2025, 5.00, 5.00, 1, '2025-06-27 16:30:02', 0, '0000-00-00 00:00:00'),
(7, 3, 4, 2025, 10.00, 10.00, 1, '2025-06-27 16:30:15', 0, '0000-00-00 00:00:00'),
(8, 2, 4, 2025, 10.00, 10.00, 1, '2025-06-27 16:30:15', 0, '0000-00-00 00:00:00'),
(9, 1, 4, 2025, 10.00, 10.00, 1, '2025-06-27 16:30:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_leavesettlement`
--

CREATE TABLE `erp_hr_employee_leavesettlement` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `date_rejoin` date NOT NULL,
  `date_leave` date NOT NULL,
  `date_applied` date NOT NULL,
  `date_approved` date NOT NULL,
  `employee_service_days` varchar(25) NOT NULL,
  `employee_service_period` varchar(255) NOT NULL,
  `available_leaves` decimal(10,2) NOT NULL,
  `balance_leave` decimal(10,2) NOT NULL,
  `encashed_leaves` decimal(10,2) NOT NULL,
  `leave_salary` decimal(10,2) NOT NULL,
  `other_payments` decimal(10,2) NOT NULL,
  `settlement_amount` decimal(10,2) NOT NULL,
  `notes` text NOT NULL,
  `prepared_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_finance_manger` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_gm` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1-Applied,2-Approved',
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `payment_date` date NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(255) NOT NULL,
  `remarks` text NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leavesettlement`
--

INSERT INTO `erp_hr_employee_leavesettlement` (`id`, `employee_id`, `date_rejoin`, `date_leave`, `date_applied`, `date_approved`, `employee_service_days`, `employee_service_period`, `available_leaves`, `balance_leave`, `encashed_leaves`, `leave_salary`, `other_payments`, `settlement_amount`, `notes`, `prepared_by`, `checked_by`, `checked_finance_manger`, `checked_gm`, `status`, `payment_mode`, `payment_date`, `credit_account`, `cheque_date`, `cheque_no`, `remarks`, `posted`) VALUES
(1, 2, '2024-02-07', '2025-06-09', '2025-06-20', '0000-00-00', '1.3', '1 Yrs 4 Month 2 Day', 9.00, 8.00, 1.00, 100.00, 400.00, 500.00, '', 8, 0, 0, 0, 1, 0, '0000-00-00', 0, '0000-00-00', '', '', 'N');

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

--
-- Table structure for table `erp_hr_employee_leave_detail`
--

CREATE TABLE `erp_hr_employee_leave_detail` (
  `id` int(11) NOT NULL,
  `function_type` int(11) DEFAULT NULL COMMENT 'For Leave Approval Procedure',
  `max_level` int(11) NOT NULL,
  `employee_id` varchar(200) NOT NULL,
  `last_approved_level` tinyint(4) NOT NULL,
  `last_cancel_level` tinyint(4) NOT NULL DEFAULT -1,
  `leave_start_date` date NOT NULL,
  `leave_end_date` date NOT NULL,
  `no_days` decimal(5,1) NOT NULL,
  `half_day_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `half_day_time` varchar(2) NOT NULL,
  `normal_leave` decimal(10,2) NOT NULL COMMENT 'Leave count deducted from employee leave',
  `salary_deduction_leave` decimal(10,2) NOT NULL COMMENT 'Leave count for salary deduction',
  `leave_reason` text NOT NULL,
  `medical_certificate` varchar(500) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `ticket_applied` tinyint(4) NOT NULL DEFAULT 0,
  `travel_date` date NOT NULL,
  `travel_destination` varchar(700) NOT NULL,
  `return_date` date NOT NULL,
  `return_destination` varchar(700) NOT NULL,
  `leave_status` int(11) NOT NULL COMMENT '1-Applied,2-Line Manager Approved,3-Line Manager Rejected,4-HR Approved,5-HR Rejected,6-cancelled',
  `status_cancel` int(11) NOT NULL DEFAULT 0,
  `line_manager_id` int(11) NOT NULL,
  `line_manager_approved_date` date NOT NULL,
  `line_manager_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_id` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `hr_comment` text NOT NULL,
  `leave_approval_document` varchar(255) NOT NULL,
  `cancel_reason_employee` text NOT NULL,
  `date_apply_cancel` date NOT NULL,
  `cancel_level_1_id` int(11) NOT NULL,
  `date_cancel_lm` date NOT NULL,
  `cancel_comment_lm` text NOT NULL,
  `cancel_level_2_id` int(11) NOT NULL,
  `date_cancel_level_2` date NOT NULL,
  `cancel_level_2_comment` text NOT NULL,
  `cancel_level_3_id` int(11) NOT NULL,
  `date_cancel_level_3` date NOT NULL,
  `cancel_level_3_comment` text NOT NULL,
  `cancel_level_4_id` int(11) NOT NULL,
  `date_cancel_level_4` date NOT NULL,
  `cancel_level_4_comment` text NOT NULL,
  `cancel_level_5_id` int(11) NOT NULL,
  `date_cancel_level_5` date NOT NULL,
  `cancel_level_5_comment` text NOT NULL,
  `cancel_approved_id` int(11) NOT NULL,
  `date_cancel_hr` date NOT NULL,
  `cancel_comment_hr` text NOT NULL,
  `apply_date` date NOT NULL,
  `apply_by` int(11) NOT NULL,
  `lm_view_status` int(11) NOT NULL DEFAULT 0,
  `lm_cancel_view_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not viewed,1-Viewed',
  `hr_cancel_view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_detail`
--

INSERT INTO `erp_hr_employee_leave_detail` (`id`, `function_type`, `max_level`, `employee_id`, `last_approved_level`, `last_cancel_level`, `leave_start_date`, `leave_end_date`, `no_days`, `half_day_leave`, `half_day_time`, `normal_leave`, `salary_deduction_leave`, `leave_reason`, `medical_certificate`, `leave_type`, `ticket_applied`, `travel_date`, `travel_destination`, `return_date`, `return_destination`, `leave_status`, `status_cancel`, `line_manager_id`, `line_manager_approved_date`, `line_manager_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_id`, `approved_date`, `hr_comment`, `leave_approval_document`, `cancel_reason_employee`, `date_apply_cancel`, `cancel_level_1_id`, `date_cancel_lm`, `cancel_comment_lm`, `cancel_level_2_id`, `date_cancel_level_2`, `cancel_level_2_comment`, `cancel_level_3_id`, `date_cancel_level_3`, `cancel_level_3_comment`, `cancel_level_4_id`, `date_cancel_level_4`, `cancel_level_4_comment`, `cancel_level_5_id`, `date_cancel_level_5`, `cancel_level_5_comment`, `cancel_approved_id`, `date_cancel_hr`, `cancel_comment_hr`, `apply_date`, `apply_by`, `lm_view_status`, `lm_cancel_view_status`, `view_status`, `hr_cancel_view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, '2', 1, -1, '2025-06-20', '2025-06-20', 1.0, 'N', '', 1.00, 0.00, 'test', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 27, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 2, '2025-06-20', 'tests', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '2025-06-27', 'Cancelled by HR', '2025-06-18', 1, 0, 0, 0, 0, 1, '2025-06-18 15:16:09', 1, '2025-06-27 16:07:55'),
(2, 1, 2, '2', 2, -1, '2025-06-27', '2025-06-27', 1.0, 'N', '', 1.00, 0.00, 'tests', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 12, 0, 2, '2025-06-20', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-27', 'test', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-20', 8, 0, 0, 0, 0, 8, '2025-06-20 12:59:30', 10, '2025-06-27 11:03:13'),
(3, 2, 1, '1', 1, -1, '2025-07-04', '2025-07-04', 1.0, 'N', '', 1.00, 0.00, 'test', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 12, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-27', 'tswes', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-27', 10, 0, 0, 0, 0, 10, '2025-06-27 11:21:44', 10, '2025-06-27 11:21:58'),
(5, 1, 2, '2', 0, -1, '2025-07-11', '2025-07-11', 1.0, 'N', '', 1.00, 0.00, 'tests', '', 4, 0, '0000-00-00', '', '0000-00-00', '', 1, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-27', 11, 0, 0, 0, 0, 11, '2025-06-27 17:01:50', 0, '0000-00-00 00:00:00'),
(6, 2, 1, '1', 0, -1, '2025-06-28', '2025-06-28', 1.0, 'N', '', 1.00, 0.00, 'test', '', 4, 0, '0000-00-00', '', '0000-00-00', '', 0, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-27', 10, 0, 0, 0, 0, 10, '2025-06-27 17:01:52', 0, '0000-00-00 00:00:00'),
(7, 2, 1, '1', 1, -1, '2025-07-16', '2025-07-17', 2.0, 'N', '', 2.00, 0.00, 'test', '', 5, 0, '0000-00-00', '', '0000-00-00', '', 12, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-30', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-30', 10, 0, 0, 0, 0, 10, '2025-06-30 11:09:26', 10, '2025-06-30 11:11:19'),
(8, 2, 1, '1', 0, -1, '2025-12-25', '2025-12-25', 1.0, 'N', '', 1.00, 0.00, 'tests', '', 4, 0, '0000-00-00', '', '0000-00-00', '', 1, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-12-02', 10, 0, 0, 0, 0, 10, '2025-12-02 10:43:36', 0, '0000-00-00 00:00:00'),
(9, 2, 1, '1', 0, -1, '2025-12-02', '2025-12-02', 1.0, 'N', '', 1.00, 0.00, 'tsts', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 1, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-12-02', 10, 0, 0, 0, 0, 10, '2025-12-02 10:43:51', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_leave_encashment`
--

CREATE TABLE `erp_hr_employee_leave_encashment` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type_id` int(11) NOT NULL,
  `encashment_year` int(11) NOT NULL,
  `encashable_leave` decimal(10,2) NOT NULL,
  `encashment_amount` decimal(10,2) NOT NULL,
  `apply_date` date NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approval_comment` text NOT NULL,
  `approve_date` date NOT NULL,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `payment_date` date NOT NULL,
  `remarks` text NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `view_status` int(11) NOT NULL COMMENT '1-Not viewd,2-Viewed',
  `payment_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_encashment`
--

INSERT INTO `erp_hr_employee_leave_encashment` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `leave_type_id`, `encashment_year`, `encashable_leave`, `encashment_amount`, `apply_date`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approval_comment`, `approve_date`, `payment_mode`, `payment_date`, `remarks`, `approval_document`, `credit_account`, `cheque_date`, `cheque_no`, `status`, `view_status`, `payment_status`, `finance_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 6, 1, 1, 1, 1, 2025, 10.00, 1867.00, '2025-06-20', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '', '2025-06-27', 0, '0000-00-00', '', '', 0, '0000-00-00', '', 13, 1, 'N', 'N', 8, '2025-06-20 15:38:36', 10, '2025-06-27 11:21:24');

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

--
-- Table structure for table `erp_hr_employee_leave_excuse`
--

CREATE TABLE `erp_hr_employee_leave_excuse` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `customer_name` varchar(255) NOT NULL,
  `request_date` date NOT NULL,
  `duration_type` int(11) NOT NULL DEFAULT 1,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `excuse_reason` text NOT NULL,
  `type` int(11) NOT NULL COMMENT '1-Meeting,2-Excuse',
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0-not viewed,1-viewed',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_leave_ledger`
--

CREATE TABLE `erp_hr_employee_leave_ledger` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `leave_count` decimal(10,2) NOT NULL,
  `leave_reduce` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_ledger`
--

INSERT INTO `erp_hr_employee_leave_ledger` (`id`, `employee_id`, `leave_type`, `leave_count`, `leave_reduce`, `remarks`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 1, 10.00, 0.00, '2025 Year Leave', 8, '2025-06-18 14:44:37', 0, '0000-00-00 00:00:00'),
(2, 3, 1, 30.00, 0.00, '2025 Year Leave', 1, '2025-06-23 09:17:14', 0, '0000-00-00 00:00:00'),
(3, 2, 1, 1.00, 0.00, 'Leave added by cancellation of leave from 20/06/2025 to 20/06/2025', 1, '2025-06-27 16:07:55', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_leave_migrated`
--

CREATE TABLE `erp_hr_employee_leave_migrated` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `leave_start_date` date NOT NULL,
  `leave_end_date` date NOT NULL,
  `no_days` decimal(5,1) NOT NULL,
  `leave_reason` text NOT NULL,
  `ticket_applied` tinyint(4) NOT NULL DEFAULT 0,
  `leave_status` enum('M') NOT NULL DEFAULT 'M' COMMENT 'Migrated ',
  `medical_certificate` varchar(500) NOT NULL,
  `hr_comment` text NOT NULL,
  `leave_approval_document` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_migrated`
--

INSERT INTO `erp_hr_employee_leave_migrated` (`id`, `employee_id`, `leave_type`, `leave_start_date`, `leave_end_date`, `no_days`, `leave_reason`, `ticket_applied`, `leave_status`, `medical_certificate`, `hr_comment`, `leave_approval_document`, `created_by`, `created_date_time`) VALUES
(1, 2, 1, '2025-04-07', '2025-04-07', 1.0, 'test', 0, 'M', '', '', '', 8, '2025-06-20 16:36:30');

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

--
-- Table structure for table `erp_hr_employee_leave_resumption`
--

CREATE TABLE `erp_hr_employee_leave_resumption` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `rejoined_date` date NOT NULL,
  `remarks` text NOT NULL,
  `apply_date` date NOT NULL,
  `document_attachment` varchar(100) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `status` int(11) NOT NULL,
  `view_status` int(11) NOT NULL,
  `apply_from` enum('W','A') NOT NULL DEFAULT 'W',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_resumption`
--

INSERT INTO `erp_hr_employee_leave_resumption` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `rejoined_date`, `remarks`, `apply_date`, `document_attachment`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `status`, `view_status`, `apply_from`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(15, 14, 1, 0, 1, '2025-12-15', 'test', '2025-12-15', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, 0, 'W', 10, '2025-12-15 09:29:30', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_loan`
--

CREATE TABLE `erp_hr_employee_loan` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `loan_id` int(11) NOT NULL,
  `loan_amount` decimal(10,2) NOT NULL,
  `date_payment` date NOT NULL,
  `loan_installment` int(11) NOT NULL,
  `added_from` int(11) NOT NULL DEFAULT 1 COMMENT '1-payment form,2-Salary lock',
  `salary_lock_id` int(11) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `voucher_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_loan_detail`
--

CREATE TABLE `erp_hr_employee_loan_detail` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL DEFAULT 0,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL DEFAULT 0,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `reason_loan` text NOT NULL,
  `loan_amount` decimal(10,2) NOT NULL,
  `proposed_installment` int(11) NOT NULL,
  `proposed_monthly_installment` decimal(10,2) NOT NULL,
  `loan_repayment` decimal(10,2) NOT NULL,
  `loan_monthly_payment` decimal(15,2) NOT NULL,
  `loan_total_installment` int(11) NOT NULL,
  `repayment_start_month` int(11) NOT NULL,
  `repayment_start_year` int(11) NOT NULL,
  `repayment_start_date` date NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `loan_taken` date NOT NULL,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(50) NOT NULL,
  `payment_date` date NOT NULL,
  `remarks` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `loan_status` int(11) NOT NULL DEFAULT 0,
  `loan_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_loan_detail`
--

INSERT INTO `erp_hr_employee_loan_detail` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `apply_date`, `reason_loan`, `loan_amount`, `proposed_installment`, `proposed_monthly_installment`, `loan_repayment`, `loan_monthly_payment`, `loan_total_installment`, `repayment_start_month`, `repayment_start_year`, `repayment_start_date`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `loan_taken`, `payment_mode`, `credit_account`, `cheque_date`, `cheque_no`, `payment_date`, `remarks`, `view_status`, `loan_status`, `loan_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 7, 1, 1, 1, '2025-06-23', '', 1000.00, 2, 500.00, 0.00, 500.00, 2, 7, 2025, '2025-07-01', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-23', '', '0000-00-00', 0, 0, '0000-00-00', '', '0000-00-00', '', 1, 12, 'N', 8, '2025-06-23 08:35:28', 10, '2025-06-26 17:46:41', 'Y'),
(3, 7, 1, 0, 1, '2025-06-27', 'd', 1000.00, 4, 250.00, 0.00, 0.00, 0, 9, 2025, '2025-09-01', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '0000-00-00', 0, 0, '0000-00-00', '', '0000-00-00', '', 0, 1, 'N', 10, '2025-06-27 09:01:01', 10, '2025-06-27 09:01:17', 'Y');

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

--
-- Table structure for table `erp_hr_employee_notes`
--

CREATE TABLE `erp_hr_employee_notes` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_notes`
--

INSERT INTO `erp_hr_employee_notes` (`id`, `employee_id`, `notes`, `created_by`, `created_date_time`) VALUES
(1, 1, 'test', 8, '2025-06-24 10:36:18');

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

--
-- Table structure for table `erp_hr_employee_notice_conduct`
--

CREATE TABLE `erp_hr_employee_notice_conduct` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `warning_type` varchar(255) NOT NULL DEFAULT 'Written',
  `reference_no` int(11) NOT NULL,
  `reason` text NOT NULL,
  `type` int(11) NOT NULL DEFAULT 1 COMMENT '1-normal,2-warning,3->unauthorised',
  `month` int(11) NOT NULL DEFAULT 1,
  `year` year(4) NOT NULL,
  `month_1_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `month_2_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `month_3_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `notice_document` varchar(500) NOT NULL,
  `signed_notice_document` varchar(500) NOT NULL,
  `signed_date` date NOT NULL,
  `issued_date` date NOT NULL,
  `subject` text NOT NULL,
  `warning_field_1` text NOT NULL,
  `warning_field_2` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_notice_conduct`
--

INSERT INTO `erp_hr_employee_notice_conduct` (`id`, `employee_id`, `warning_type`, `reference_no`, `reason`, `type`, `month`, `year`, `month_1_amount`, `month_2_amount`, `month_3_amount`, `notice_document`, `signed_notice_document`, `signed_date`, `issued_date`, `subject`, `warning_field_1`, `warning_field_2`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 'Written', 0, 'testts', 1, 0, '2024', 0.00, 0.00, 0.00, '', 'sample-11.pdf', '2025-06-25', '2025-06-24', '', '', '', 1, 8, '2025-06-24 11:13:52', 10, '2025-06-25 16:35:07'),
(2, 1, 'Written', 2, 'df', 2, 0, '2024', 0.00, 0.00, 0.00, '', '', '0000-00-00', '0000-00-00', '', '', '', 1, 8, '2025-06-24 11:27:36', 0, '0000-00-00 00:00:00'),
(3, 1, 'Written', 3, 'fds', 3, 0, '2024', 0.00, 0.00, 0.00, '', '', '0000-00-00', '0000-00-00', '', '', '', 1, 8, '2025-06-24 11:28:03', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_offboard`
--

CREATE TABLE `erp_hr_employee_offboard` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `task_id` int(11) NOT NULL,
  `task` text NOT NULL,
  `notes` text NOT NULL,
  `task_done_date` date NOT NULL,
  `task_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_overtime`
--

CREATE TABLE `erp_hr_employee_overtime` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `overtimedate` date NOT NULL,
  `over_time_id` int(11) NOT NULL,
  `hours` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_pension`
--

CREATE TABLE `erp_hr_employee_pension` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `employee_contribution_amount` decimal(10,2) NOT NULL,
  `company_contribution_amount` decimal(10,2) NOT NULL,
  `total_pension_amount` decimal(10,2) NOT NULL,
  `created_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_purchase`
--

CREATE TABLE `erp_hr_employee_purchase` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL DEFAULT 0 COMMENT 'For Product Request Approval Procedure',
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `employee_id` int(11) NOT NULL,
  `payment_mode` tinyint(4) NOT NULL COMMENT '1-Cash,2-From Salary',
  `grand_total` decimal(15,2) NOT NULL,
  `status` int(11) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `apply_by` int(11) NOT NULL,
  `lm_view_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not viewed,1-Viewed',
  `cancel_reason` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_purchase`
--

INSERT INTO `erp_hr_employee_purchase` (`id`, `function_type`, `max_level`, `last_approved_level`, `apply_date`, `employee_id`, `payment_mode`, `grand_total`, `status`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `apply_by`, `lm_view_status`, `view_status`, `cancel_reason`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 12, 1, 0, '2025-06-27', 1, 1, 120.00, 1, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, 0, 0, '', 10, '2025-06-27 09:32:07', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_purchase_detail`
--

CREATE TABLE `erp_hr_employee_purchase_detail` (
  `id` int(11) NOT NULL,
  `purchase_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL,
  `cost` decimal(15,2) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_purchase_detail`
--

INSERT INTO `erp_hr_employee_purchase_detail` (`id`, `purchase_id`, `product_id`, `quantity`, `cost`, `amount`, `total_amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 2, 1, 1.00, 100.00, 120.00, 120.00, 10, '2025-06-27 09:32:07', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_qualification`
--

CREATE TABLE `erp_hr_employee_qualification` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `qualification` varchar(500) NOT NULL,
  `certificate_validity` date NOT NULL,
  `certificate_document` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_requisition`
--

CREATE TABLE `erp_hr_employee_requisition` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `expected_issue_date` date NOT NULL,
  `issue_date` date NOT NULL,
  `expected_return_date` date NOT NULL,
  `return_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `remarks` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `apply_from` enum('W','A') NOT NULL DEFAULT 'W',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_resignation`
--

CREATE TABLE `erp_hr_employee_resignation` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `reason` text NOT NULL,
  `apply_date` date NOT NULL,
  `last_date` date NOT NULL,
  `notice_type` int(11) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `lm_view_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_resignation`
--

INSERT INTO `erp_hr_employee_resignation` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `reason`, `apply_date`, `last_date`, `notice_type`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `status`, `lm_view_status`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 9, 1, 1, 1, 'test', '2025-06-23', '2025-07-30', 1, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 2, '2025-06-30', '', 13, 0, 0, 8, '2025-06-23 10:16:50', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_salary`
--

CREATE TABLE `erp_hr_employee_salary` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `consider_for_leave_payment` enum('Y','N') NOT NULL DEFAULT 'Y' COMMENT 'Y->yes,N->no',
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_salary`
--

INSERT INTO `erp_hr_employee_salary` (`id`, `employee_id`, `salary_type`, `amount`, `valid_from`, `valid_to`, `consider_for_leave_payment`, `notes`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 2, 1, 3000.00, '2024-02-07', '0000-00-00', 'Y', '', 8, '2025-06-18 14:44:37', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 1, 5600.00, '2021-02-10', '0000-00-00', 'Y', '', 8, '2025-06-20 15:37:45', 0, '0000-00-00 00:00:00', 'Y'),
(3, 3, 1, 4500.00, '2025-02-06', '0000-00-00', 'Y', '', 1, '2025-06-23 09:17:14', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_employee_salary_advance`
--

CREATE TABLE `erp_hr_employee_salary_advance` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `apply_date` date NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `advance_payment_date` date NOT NULL,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `credit_account` int(11) NOT NULL,
  `cheque_no` varchar(30) NOT NULL,
  `cheque_date` date NOT NULL,
  `remarks` text NOT NULL,
  `payment_note` text NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `advance_payment_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `paid` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_salary_advance_payment`
--

CREATE TABLE `erp_hr_employee_salary_advance_payment` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `advance_id` int(11) NOT NULL,
  `advance_amount` decimal(10,2) NOT NULL,
  `payment_date` date NOT NULL,
  `added_from` int(11) NOT NULL DEFAULT 1 COMMENT '1-payment form,2-Salary lock',
  `salary_lock_id` int(11) NOT NULL,
  `posted` enum('N','Y') NOT NULL DEFAULT 'N',
  `voucher_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_salary_deduction_leave`
--

CREATE TABLE `erp_hr_employee_salary_deduction_leave` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_id` int(11) NOT NULL,
  `leave_type_id` int(11) NOT NULL,
  `leave_date` date NOT NULL,
  `salary_deduction_type` enum('Y','H') NOT NULL COMMENT 'Y-Full,H-Half',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_shift`
--

CREATE TABLE `erp_hr_employee_shift` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `employee_id` varchar(200) NOT NULL,
  `shift_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `shift_group_identify` int(11) NOT NULL DEFAULT 0,
  `allowance_amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_shift`
--

INSERT INTO `erp_hr_employee_shift` (`id`, `branch_id`, `employee_id`, `shift_id`, `from_date`, `to_date`, `shift_group_identify`, `allowance_amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 1, '2', 1, '2025-06-19', '2025-06-19', 1, 0.00, 8, '2025-06-19 11:04:02', 0, '0000-00-00 00:00:00'),
(3, 1, '1', 1, '2025-06-19', '2025-06-19', 1, 0.00, 8, '2025-06-19 11:04:08', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_target`
--

CREATE TABLE `erp_hr_employee_target` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `target_type` enum('B','C') NOT NULL DEFAULT 'C',
  `target_amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_team`
--

CREATE TABLE `erp_hr_employee_team` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `team_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_ticket`
--

CREATE TABLE `erp_hr_employee_ticket` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `family_member` text NOT NULL,
  `leave_id` int(11) NOT NULL COMMENT 'if applied by an employee/admin along with the leave',
  `leave_type` int(11) NOT NULL,
  `date_apply` date NOT NULL,
  `travel_date` date NOT NULL,
  `travel_destination` varchar(700) NOT NULL,
  `return_date` date DEFAULT NULL,
  `return_destination` varchar(700) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1-Applied,2-Approved',
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approval_comment` text NOT NULL,
  `date_approved` date NOT NULL,
  `payment_date` date NOT NULL,
  `ticket_amt` decimal(15,2) NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `notes` text NOT NULL,
  `payment_mode` int(11) NOT NULL,
  `year` int(11) NOT NULL,
  `ticket_type` enum('E','F') NOT NULL DEFAULT 'E' COMMENT 'E-Employee,F-Family Ticket',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket`
--

INSERT INTO `erp_hr_employee_ticket` (`id`, `employee_id`, `family_member`, `leave_id`, `leave_type`, `date_apply`, `travel_date`, `travel_destination`, `return_date`, `return_destination`, `status`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approval_comment`, `date_approved`, `payment_date`, `ticket_amt`, `approval_document`, `notes`, `payment_mode`, `year`, `ticket_type`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(1, 1, '', 0, 1, '2025-06-23', '0000-00-00', '', NULL, NULL, 1, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '', '0000-00-00', '0000-00-00', 1000.00, '', '', 0, 2024, 'E', '2025-06-23 11:13:38', 8, '0000-00-00 00:00:00', 0),
(3, 2, '', 0, 1, '2025-06-23', '0000-00-00', '', NULL, NULL, 2, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '', '2025-09-03', '0000-00-00', 2500.00, '', '', 0, 2024, 'E', '2025-06-23 13:56:43', 1, '2025-09-03 14:31:20', 1),
(5, 2, '', 0, 1, '2025-09-03', '0000-00-00', '', NULL, NULL, 2, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '', '2025-09-03', '0000-00-00', 1000.00, '', '', 0, 2025, 'E', '2025-09-03 14:31:31', 1, '2025-09-03 14:31:41', 1);

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

--
-- Table structure for table `erp_hr_employee_ticket_encashment`
--

CREATE TABLE `erp_hr_employee_ticket_encashment` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_id` int(11) NOT NULL,
  `date_apply` date NOT NULL,
  `ticket_amt` decimal(15,2) NOT NULL,
  `year` int(11) NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `notes` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `payment_mode` int(11) NOT NULL,
  `payment_date` date NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(100) NOT NULL,
  `remarks` text NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `view_status` int(11) NOT NULL,
  `payment_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket_encashment`
--

INSERT INTO `erp_hr_employee_ticket_encashment` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `leave_id`, `date_apply`, `ticket_amt`, `year`, `approval_document`, `notes`, `status`, `payment_mode`, `payment_date`, `credit_account`, `cheque_date`, `cheque_no`, `remarks`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `view_status`, `payment_status`, `finance_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 10, 1, 0, 1, 1, '2025-06-23', 1000.00, 2025, '', '', 1, 0, '0000-00-00', 0, '0000-00-00', '', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, 'N', 'N', 8, '2025-06-23 13:06:01', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_ticket_entitlement`
--

CREATE TABLE `erp_hr_employee_ticket_entitlement` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `ticket_year` int(11) NOT NULL,
  `opening_balance` decimal(10,2) NOT NULL,
  `ticket_balance` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket_entitlement`
--

INSERT INTO `erp_hr_employee_ticket_entitlement` (`id`, `branch_id`, `employee_id`, `ticket_year`, `opening_balance`, `ticket_balance`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, 2025, 0.00, 16.66, 8, '2025-06-23 17:00:35', 1, '2025-09-03 14:52:42'),
(2, 1, 2, 2025, 0.00, -183.34, 8, '2025-06-23 17:00:35', 1, '2025-09-03 14:52:42'),
(3, 1, 1, 2025, 0.00, 16.66, 8, '2025-06-23 17:00:35', 1, '2025-09-03 14:52:42');

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

--
-- Table structure for table `erp_hr_employee_ticket_ledger`
--

CREATE TABLE `erp_hr_employee_ticket_ledger` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `ticket_percentage` decimal(10,2) NOT NULL,
  `ticket_percentage_deducted` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket_ledger`
--

INSERT INTO `erp_hr_employee_ticket_ledger` (`id`, `employee_id`, `ticket_percentage`, `ticket_percentage_deducted`, `remarks`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(19, 3, 8.33, 0.00, 'Ticket added by salary locked for June', 1, '2025-06-24 10:39:46', 0, '0000-00-00 00:00:00'),
(20, 2, 8.33, 0.00, 'Ticket added by salary locked for June', 1, '2025-06-24 10:39:46', 0, '0000-00-00 00:00:00'),
(21, 1, 8.33, 0.00, 'Ticket added by salary locked for June', 1, '2025-06-24 10:39:46', 0, '0000-00-00 00:00:00'),
(22, 3, 8.33, 0.00, 'Ticket added by salary locked for July', 1, '2025-09-03 14:52:42', 0, '0000-00-00 00:00:00'),
(23, 2, 8.33, 0.00, 'Ticket added by salary locked for July', 1, '2025-09-03 14:52:42', 0, '0000-00-00 00:00:00'),
(24, 1, 8.33, 0.00, 'Ticket added by salary locked for July', 1, '2025-09-03 14:52:42', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_ticket_setting`
--

CREATE TABLE `erp_hr_employee_ticket_setting` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `first_intialized_date` date NOT NULL,
  `ticket_available` decimal(10,2) NOT NULL,
  `ticket_given` decimal(10,2) NOT NULL,
  `ticket_pending` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_wps_company`
--

CREATE TABLE `erp_hr_employee_wps_company` (
  `id` int(11) NOT NULL,
  `wps_company_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_wps_company`
--

INSERT INTO `erp_hr_employee_wps_company` (`id`, `wps_company_id`, `employee_id`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`) VALUES
(1, 1, 1, 1, '2025-06-24 11:08:19', 0, '0000-00-00 00:00:00'),
(2, 1, 2, 1, '2025-06-24 11:08:19', 0, '0000-00-00 00:00:00'),
(3, 1, 3, 1, '2025-06-24 11:08:19', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_eos_gratuity_details`
--

CREATE TABLE `erp_hr_eos_gratuity_details` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `gratuity_mas_id` int(11) NOT NULL,
  `payment_period` varchar(500) NOT NULL,
  `amount` decimal(10,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_eos_gratuity_details`
--

INSERT INTO `erp_hr_eos_gratuity_details` (`id`, `eos_id`, `employee_id`, `gratuity_mas_id`, `payment_period`, `amount`) VALUES
(5, 3, 3, 3, '6th year onward', 74607.53),
(4, 3, 3, 2, 'First 5 years', 15750.00);

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

--
-- Table structure for table `erp_hr_expense`
--

CREATE TABLE `erp_hr_expense` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `expense_description` varchar(700) NOT NULL,
  `duration` tinyint(4) NOT NULL,
  `expense_month` int(11) NOT NULL,
  `expense_year` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_expense`
--

INSERT INTO `erp_hr_expense` (`id`, `employee_id`, `expense_description`, `duration`, `expense_month`, `expense_year`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 1, 'tes', 4, 6, 2025, 8, '2025-06-24 10:09:28', 8, '2025-06-24 10:09:44', 'Y');

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

--
-- Table structure for table `erp_hr_expense_detail`
--

CREATE TABLE `erp_hr_expense_detail` (
  `id` int(11) NOT NULL,
  `expense_id` int(11) NOT NULL,
  `expense_type_id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_expense_detail`
--

INSERT INTO `erp_hr_expense_detail` (`id`, `expense_id`, `expense_type_id`, `amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 2, 1, 1000.00, 8, '2025-06-24 10:09:28', 8, '2025-06-24 10:09:44'),
(3, 2, 2, 300.00, 8, '2025-06-24 10:09:44', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_expense_master`
--

CREATE TABLE `erp_hr_expense_master` (
  `id` int(11) NOT NULL,
  `expense_name` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_expense_master`
--

INSERT INTO `erp_hr_expense_master` (`id`, `expense_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Emirates ID', 1, '2023-09-25 03:02:33', 8, '2025-06-25 10:18:36', 'Y'),
(2, 'Visa Typing', 1, '2023-09-25 03:02:53', 0, '0000-00-00 00:00:00', 'Y'),
(3, 'Medical', 1, '2023-09-25 03:03:06', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_holiday_allowance`
--

CREATE TABLE `erp_hr_holiday_allowance` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `allowance_amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_leavesettlement`
--

CREATE TABLE `erp_hr_leavesettlement` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `date_rejoin` date NOT NULL,
  `date_leave` date NOT NULL,
  `employee_service_days` int(11) NOT NULL,
  `employee_service_period` varchar(255) NOT NULL,
  `settlement_amount` decimal(10,2) NOT NULL,
  `prepared_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_finance_manger` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_gm` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `available_leaves` decimal(10,2) NOT NULL,
  `added_leaves` decimal(10,2) NOT NULL,
  `total_leaves` decimal(10,2) NOT NULL,
  `leaves_taken` decimal(10,2) NOT NULL,
  `balance_leave` decimal(10,2) NOT NULL,
  `actual_leave` decimal(10,2) NOT NULL,
  `remaining_salary` int(11) NOT NULL,
  `leave_salary` decimal(10,2) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0-not used in salary calculation,1-used in salary calculation',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mail_settings`
--

CREATE TABLE `erp_hr_mail_settings` (
  `id` int(11) NOT NULL,
  `mail_function` int(11) NOT NULL,
  `from_mail_id` varchar(750) NOT NULL,
  `from_mail_name` varchar(700) NOT NULL,
  `self_mail` enum('Y','N') NOT NULL DEFAULT 'Y',
  `reporting_manager` enum('Y','N') NOT NULL DEFAULT 'N',
  `attendance_manager` enum('Y','N') NOT NULL DEFAULT 'N',
  `approval_authority` enum('Y','N') NOT NULL DEFAULT 'N',
  `notifying_employee` varchar(750) NOT NULL,
  `custom_mail_id` varchar(750) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mail_settings`
--

INSERT INTO `erp_hr_mail_settings` (`id`, `mail_function`, `from_mail_id`, `from_mail_name`, `self_mail`, `reporting_manager`, `attendance_manager`, `approval_authority`, `notifying_employee`, `custom_mail_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 23, 'info@mailbluesky.com', 'Bluesky-NoReply', 'Y', 'N', 'N', 'N', '', '', 8, '2025-06-23 03:45:29', 0, '0000-00-00 00:00:00', 'N');

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

--
-- Table structure for table `erp_hr_mail_status`
--

CREATE TABLE `erp_hr_mail_status` (
  `id` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `from_mail` varchar(500) NOT NULL,
  `sent_mail_id` text NOT NULL,
  `content` text NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_master_function`
--

CREATE TABLE `erp_hr_master_function` (
  `id` int(11) NOT NULL,
  `functionality` varchar(700) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_function`
--

INSERT INTO `erp_hr_master_function` (`id`, `functionality`, `isActive`) VALUES
(1, 'Leave', 'Y'),
(2, 'Loan', 'Y'),
(3, 'Salary Advance', 'Y'),
(4, 'Document Request', 'Y'),
(5, 'Resignation', 'Y'),
(6, 'Appraisal', 'Y'),
(7, 'Expense', 'Y'),
(8, 'Purchase Request', 'Y'),
(9, 'Leave Encashment', 'Y'),
(10, 'Ticket Encashment', 'Y'),
(11, 'Ticket', 'N'),
(12, 'Meeting/Flexi Time Request ', 'Y'),
(13, 'Business Trip', 'N'),
(14, 'EOS Clearance', 'N'),
(15, 'Passport Requisition', 'Y'),
(16, 'Duty Resumption', 'Y');

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

--
