-- 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;

--
-- Dumping data for table `erp_hr_employee_eos_clearance`
--

INSERT INTO `erp_hr_employee_eos_clearance` (`id`, `eos_id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `apply_date`, `status`, `remarks`, `view_status`, `approve_level1_id`, `approve_level1_department_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level1_document`, `approve_level2_id`, `approve_level2_department_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level2_document`, `approve_level3_id`, `approve_level3_department_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level3_document`, `approve_level4_id`, `approve_level4_department_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level4_document`, `approve_level5_id`, `approve_level5_department_id`, `approve_level5_date`, `approve_level5_comment`, `approve_level5_document`, `approved_by`, `approved_department_id`, `approved_date`, `approve_comments`, `approved_document`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 13, 1, 1, 2, '2025-06-27', 12, '', 0, 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 1, 1, '2025-06-27', 'test', 'sample-11-1  2 .pdf', 1, '2025-06-27 02:33:12', 10, '2025-06-27 15:03:44');

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

--
-- 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
(1, 1, 3, 1, 'Basic', 4500.00),
(2, 2, 2, 1, 'Basic', 3000.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');

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

--
-- 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_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_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
(1, 1, 3, 2, 'First 5 years', 15750.00),
(2, 1, 3, 3, '6th year onward', 72357.53),
(3, 2, 2, 2, '1 to 5 years', 2999.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', 'Y');

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

--
-- Table structure for table `erp_hr_master_mail_detail`
--

CREATE TABLE `erp_hr_master_mail_detail` (
  `id` int(11) NOT NULL,
  `mail_function_type` varchar(500) 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_mail_detail`
--

INSERT INTO `erp_hr_master_mail_detail` (`id`, `mail_function_type`, `isActive`) VALUES
(1, 'Leave Application by Employee', 'Y'),
(2, 'Leave Approval/Rejection', 'Y'),
(3, 'Leave Cancel Request From Employee', 'Y'),
(4, 'Leave Cancellation Approval/Rejection', 'Y'),
(5, 'Leave Encashment Application by Employee', 'Y'),
(6, 'Leave Encashment Approval/Rejection', 'Y'),
(7, 'Ticket Encashment Request From Employee', 'Y'),
(8, 'Ticket Encashment Approval/Rejection', 'Y'),
(13, 'Complaint/Suggestion', 'Y'),
(14, 'Loan Request by Employee', 'Y'),
(15, 'Loan Approval', 'Y'),
(16, 'Salary Advance Request by Employee', 'Y'),
(17, 'Salary Advance Approval', 'Y'),
(18, 'Document Request by Employee', 'Y'),
(19, 'Document Request Approval', 'Y'),
(20, 'Excuse/Meeting Request', 'Y'),
(21, 'Indoor Circular', 'Y'),
(22, 'Outdoor Circular', 'Y'),
(11, 'Resignation Request by Employee', 'Y'),
(23, 'Appraisal', 'Y'),
(12, 'Resignation Approval/Rejection', 'Y'),
(26, 'Employee Document Expiry', 'Y'),
(27, 'Company Document Expiry', 'Y'),
(25, 'Birthday/Anniversary Greetings', 'Y'),
(9, 'Expense Request by Employee', 'Y'),
(10, 'Expense Request Approval/Rejection', 'Y'),
(30, 'Staff Board Notification', 'Y'),
(28, 'Purchase Request', 'Y'),
(29, 'Purchase Request Approval', 'Y'),
(24, 'Appraisal Review', 'Y'),
(31, 'Morning Late', 'Y'),
(32, 'Meeting / Flexi Time Request', 'Y'),
(33, 'Meeting / Flexi Time Request Approval', 'Y');

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

--
-- Table structure for table `erp_hr_master_salary_lock`
--

CREATE TABLE `erp_hr_master_salary_lock` (
  `id` int(11) NOT NULL,
  `payroll_branch` int(11) NOT NULL,
  `payroll_month` varchar(25) NOT NULL,
  `payroll_year` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_salary_lock`
--

INSERT INTO `erp_hr_master_salary_lock` (`id`, `payroll_branch`, `payroll_month`, `payroll_year`) VALUES
(1, 0, '05', 2025);

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

--
-- Table structure for table `erp_hr_master_salary_procedure`
--

CREATE TABLE `erp_hr_master_salary_procedure` (
  `id` int(11) NOT NULL,
  `payroll_branch` int(11) NOT NULL,
  `payroll_start_day` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_salary_procedure`
--

INSERT INTO `erp_hr_master_salary_procedure` (`id`, `payroll_branch`, `payroll_start_day`) VALUES
(1, 0, 1);

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

--
-- Table structure for table `erp_hr_master_upload`
--

CREATE TABLE `erp_hr_master_upload` (
  `id` int(11) NOT NULL,
  `functionality` varchar(700) NOT NULL,
  `max_upload_size` 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=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_upload`
--

INSERT INTO `erp_hr_master_upload` (`id`, `functionality`, `max_upload_size`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Employee Documents', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(2, 'Profile Picture', 1, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(3, 'Asset Undertaking Letter', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(4, 'Qualification', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(5, 'Nominee-Documents', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(6, 'Employee Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(7, 'Salary Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(8, 'Leave Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(9, 'Document Details Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(10, 'Attendance Daily Upload', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(11, 'Attendance Monthly Upload', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(12, 'Shift Details Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(13, 'Meeting / Flexi Time Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(14, 'Recruitment Details Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(15, 'Recruitment Documents Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(16, 'Leave Medical Document Upload', 6, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(17, 'Leave Approval Document Upload', 6, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(18, 'Leave Migration Medical Document Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(19, 'Leave Migration Approval Document Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(20, 'Certificate Request Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(21, 'EOS -Resignation Acceptance Document', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(22, 'EOS -Exit Interview Document', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(23, 'EOS -EOS Clearance Document', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(24, 'Salary Component', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(25, 'Overtime Sheet', 5, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(26, 'Catalogue', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(27, 'Circular', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(28, 'Expense', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(29, 'Notice of Conduct', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(30, 'Master-Product', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(31, 'Master-Company Document', 8, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(32, 'Master-Asset', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(33, 'Master-Asset Details', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(34, 'Master-Branch Logo', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(35, 'Master-Branch Water Mark Logo', 3, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(36, 'Master-Branch Footer Image', 3, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(37, 'Master-Branch Organization Chart', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(38, 'Master-Branch Certificate Seal', 3, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(39, 'Master-Signature', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(40, 'Templates', 1, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(41, 'Admin-User Signature (in KB)', 30, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(42, 'Ticket Encashment Approval Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y');

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

--
-- Table structure for table `erp_hr_mas_appraisal`
--

CREATE TABLE `erp_hr_mas_appraisal` (
  `id` int(11) NOT NULL,
  `period_name` varchar(255) NOT NULL,
  `approval_period` varchar(255) 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_mas_appraisal_grade`
--

CREATE TABLE `erp_hr_mas_appraisal_grade` (
  `id` int(11) NOT NULL,
  `min_range` int(11) NOT NULL,
  `max_range` int(11) NOT NULL,
  `grade` varchar(100) NOT NULL,
  `grade_remark` 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;

--
-- Dumping data for table `erp_hr_mas_appraisal_grade`
--

INSERT INTO `erp_hr_mas_appraisal_grade` (`id`, `min_range`, `max_range`, `grade`, `grade_remark`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 0, 49, 'U', '0-49 Unsatisfactory', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(2, 50, 59, 'D', '50-59 Needs Improvement', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(3, 60, 69, 'C', '60-69 Meet Expectations', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(5, 80, 89, 'A', '80-89 Excellent', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(4, 70, 79, 'B', '70-79 Good', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(6, 90, 100, 'A+', '90-100 % Outstanding', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50');

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

--
-- Table structure for table `erp_hr_mas_appraisal_type`
--

CREATE TABLE `erp_hr_mas_appraisal_type` (
  `id` int(11) NOT NULL,
  `appraisal_type` varchar(500) NOT NULL,
  `appraisal_department` int(11) NOT NULL,
  `default_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_mas_appraisal_type`
--

INSERT INTO `erp_hr_mas_appraisal_type` (`id`, `appraisal_type`, `appraisal_department`, `default_weightage`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Efficiency in  Gate Pass Process & AP', 1, 40.00, 8, '2025-06-20 14:15:23', 0, '0000-00-00 00:00:00'),
(2, 'Accurate Inventory Control, Maintain Building Facility & Accomplish Facility Projects', 1, 30.00, 8, '2025-06-20 14:15:23', 0, '0000-00-00 00:00:00'),
(3, 'Manageable timeline for submission of AP invoices and Gate pass request', 1, 30.00, 8, '2025-06-20 14:15:23', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_mas_approval_scheme`
--

CREATE TABLE `erp_hr_mas_approval_scheme` (
  `id` int(11) NOT NULL,
  `scheme_name` varchar(255) 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_mas_approve_setting`
--

CREATE TABLE `erp_hr_mas_approve_setting` (
  `id` int(11) NOT NULL,
  `functionality_name` varchar(500) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `max_level` set('1','2','3','4') NOT NULL DEFAULT '2',
  `level_1` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `level_2` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `level_3` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `level_4` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `employee_level_1` text NOT NULL,
  `employee_level_2` text NOT NULL,
  `employee_level_3` text NOT NULL,
  `employee_level_4` 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=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_asset`
--

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

--
-- Dumping data for table `erp_hr_mas_asset`
--

INSERT INTO `erp_hr_mas_asset` (`id`, `asset_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Sim Card', 1, '2025-06-24 16:34:47', 1, '2025-06-24 16:38:25', 'Y');

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

--
-- Table structure for table `erp_hr_mas_asset_details`
--

CREATE TABLE `erp_hr_mas_asset_details` (
  `id` int(11) NOT NULL,
  `asset_id` int(11) NOT NULL,
  `asset_detail` varchar(500) NOT NULL,
  `asset_value` decimal(10,2) NOT NULL,
  `repair_cost_extra` decimal(10,2) NOT NULL,
  `asset_status` enum('G','D','R') NOT NULL DEFAULT 'G',
  `availability_status` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_asset_details`
--

INSERT INTO `erp_hr_mas_asset_details` (`id`, `asset_id`, `asset_detail`, `asset_value`, `repair_cost_extra`, `asset_status`, `availability_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, '1234', 50.00, 0.00, 'G', 'Y', 1, '2025-06-24 16:39:31', 1, '2025-06-24 17:01:43', 'Y');

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

--
-- Table structure for table `erp_hr_mas_business_unit`
--

CREATE TABLE `erp_hr_mas_business_unit` (
  `id` int(11) NOT NULL,
  `business_unit_name` varchar(700) NOT NULL,
  `document_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;

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

--
-- Table structure for table `erp_hr_mas_certificate_authorization`
--

CREATE TABLE `erp_hr_mas_certificate_authorization` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `designation` varchar(255) NOT NULL,
  `authority_signature` 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
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_certificate_authorization`
--

INSERT INTO `erp_hr_mas_certificate_authorization` (`id`, `employee_id`, `designation`, `authority_signature`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 2, 'manager', 'SIGN86.jpg', 8, '2025-06-25 14:43:50', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_certificate_name`
--

CREATE TABLE `erp_hr_mas_certificate_name` (
  `id` int(11) NOT NULL,
  `certificate_name` varchar(500) NOT NULL,
  `reference_no` int(11) NOT NULL,
  `code` varchar(6) NOT NULL,
  `apply_from` enum('A','N') NOT NULL DEFAULT 'N' COMMENT 'A-''Admin'',N-''From All'' ',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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_mas_certificate_name`
--

INSERT INTO `erp_hr_mas_certificate_name` (`id`, `certificate_name`, `reference_no`, `code`, `apply_from`, `isActive`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`) VALUES
(1, 'Salary Certificate', 1000, 'SC', 'N', 'Y', 0, '0000-00-00 00:00:00', 516, '2021-01-19 09:31:13'),
(2, 'Salary Transfer Letter', 1000, 'STL', 'N', 'Y', 0, '0000-00-00 00:00:00', 516, '2021-01-18 02:39:45'),
(3, 'Passport Release', 1, 'PR', 'A', 'Y', 0, '0000-00-00 00:00:00', 1, '2023-03-09 02:24:21'),
(4, 'Retrenchment Letter', 1, 'RL', 'A', 'Y', 1, '2021-03-12 14:48:19', 1, '2021-03-12 14:48:19'),
(5, 'Confirmation Letter', 1, 'CL', 'A', 'Y', 1, '2021-03-12 14:48:19', 1, '2022-02-14 10:19:52'),
(6, 'Business Trip', 1, 'BT', 'N', 'Y', 1, '2021-03-12 14:48:19', 1, '2023-03-09 02:22:58'),
(7, 'Warning Letter', 1, 'WL', 'A', 'N', 1, '2021-03-17 10:18:58', 1, '2021-03-17 10:18:58'),
(8, 'Salary Increment Letter', 1000, 'IL', 'A', 'Y', 0, '0000-00-00 00:00:00', 8, '2025-06-25 12:43:06'),
(9, 'Offer Letter', 1, 'OL', 'N', 'N', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(10, 'Salary Slip', 1000, 'SS', 'N', 'N', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(11, 'Liquor License', 1, 'LL', 'N', 'N', 386, '2021-05-09 06:34:32', 1, '2023-03-09 02:22:08'),
(12, 'NOC for Driving Licence', 1, 'NDL', 'N', 'Y', 1, '2023-03-09 02:24:45', 0, '0000-00-00 00:00:00'),
(13, 'Personal Trip', 1, 'PT', 'N', 'Y', 1, '2023-03-09 02:25:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_mas_color_code`
--

CREATE TABLE `erp_hr_mas_color_code` (
  `id` int(11) NOT NULL,
  `functionality` varchar(500) NOT NULL,
  `color_code` varchar(100) 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_mas_color_code`
--

INSERT INTO `erp_hr_mas_color_code` (`id`, `functionality`, `color_code`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Leave Apply', '#ffff80', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(2, 'Leave Approval', '#60cf3a', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(3, 'Holiday', '#bdb76b', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(4, 'Variance/Time Loss', '#ffaeae', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(5, 'Normal Time', '#fbb677', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(6, 'Excess Time', '#b4edb4', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(7, 'Weekend', '#c9a5a5', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(8, 'Absent', '#ce0d0d', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59');

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

--
-- Table structure for table `erp_hr_mas_company_branch_sponsor`
--

CREATE TABLE `erp_hr_mas_company_branch_sponsor` (
  `id` bigint(20) NOT NULL,
  `hr_code` varchar(100) NOT NULL,
  `branch_or_sponsor_logo` varchar(255) NOT NULL,
  `slip_header_name` text NOT NULL,
  `footer_logo` varchar(700) NOT NULL,
  `watermark_logo` varchar(700) NOT NULL,
  `certificate_seal` varchar(700) NOT NULL,
  `branch_or_sponsor_name` varchar(255) NOT NULL,
  `branch_or_sponsor_code` varchar(15) NOT NULL,
  `branch_or_sponsor_address` text NOT NULL,
  `branch_or_sponsor_city` varchar(255) NOT NULL,
  `branch_or_sponsor_state` varchar(255) NOT NULL,
  `branch_or_sponsor_country` int(11) NOT NULL,
  `branch_or_sponsor_postalcode` varchar(255) NOT NULL,
  `branch_or_sponsor_phno` varchar(255) NOT NULL,
  `branch_or_sponsor_email` varchar(255) NOT NULL,
  `branch_or_sponsor_location` varchar(255) NOT NULL,
  `branch_or_sponsor_fax` varchar(255) NOT NULL,
  `branch_or_sponsor_web` varchar(255) NOT NULL,
  `branch_or_sponsor_currency_id` int(11) NOT NULL,
  `organization_chart_name` text NOT NULL,
  `exclude_holiday` tinyint(4) NOT NULL COMMENT '1-No,1-Yes',
  `exclude_weekend` int(11) NOT NULL DEFAULT 0 COMMENT '0-No,1-Yes',
  `workstart_time` time NOT NULL,
  `workend_time` time NOT NULL,
  `weekend_work_starttime` time NOT NULL,
  `weekend_work_endtime` time NOT NULL,
  `branch_working_hours` time NOT NULL,
  `lunch_break_time` time NOT NULL,
  `ticket_provided` enum('Y','N') NOT NULL DEFAULT 'Y',
  `ticket_monthly_incremented` enum('Y','N') NOT NULL DEFAULT 'Y',
  `ticket_carry_forward` enum('Y','N') NOT NULL DEFAULT 'N',
  `leave_encashment_provided` enum('Y','N') NOT NULL DEFAULT 'Y',
  `leave_settlement_provided` enum('Y','N') NOT NULL DEFAULT 'Y',
  `salary_calculation_format` tinyint(4) NOT NULL,
  `salary_slip_view_ess` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_company_branch_sponsor`
--

INSERT INTO `erp_hr_mas_company_branch_sponsor` (`id`, `hr_code`, `branch_or_sponsor_logo`, `slip_header_name`, `footer_logo`, `watermark_logo`, `certificate_seal`, `branch_or_sponsor_name`, `branch_or_sponsor_code`, `branch_or_sponsor_address`, `branch_or_sponsor_city`, `branch_or_sponsor_state`, `branch_or_sponsor_country`, `branch_or_sponsor_postalcode`, `branch_or_sponsor_phno`, `branch_or_sponsor_email`, `branch_or_sponsor_location`, `branch_or_sponsor_fax`, `branch_or_sponsor_web`, `branch_or_sponsor_currency_id`, `organization_chart_name`, `exclude_holiday`, `exclude_weekend`, `workstart_time`, `workend_time`, `weekend_work_starttime`, `weekend_work_endtime`, `branch_working_hours`, `lunch_break_time`, `ticket_provided`, `ticket_monthly_incremented`, `ticket_carry_forward`, `leave_encashment_provided`, `leave_settlement_provided`, `salary_calculation_format`, `salary_slip_view_ess`, `isActive`) VALUES
(1, 'BT', '', 'Bluesky Technologies', '', '', '', 'Bluesky-UAE', 'BT', 'C1 - 520, AI Robotics Hub,\r\nAjman Free Zone,\r\nAjman, United Arab Emirates', 'Ajman', 'Ajman', 130, '', '+971 6 748 7105 ', 'info@mailbluesky.com', 'Ajman', '', 'www.bluesky.ae', 1, '', 1, 1, '08:00:00', '18:00:00', '00:00:00', '00:00:00', '09:00:00', '01:00:00', 'Y', 'Y', 'N', 'Y', 'Y', 0, 'Y', 'Y');

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

--
-- Table structure for table `erp_hr_mas_company_wps_details`
--

CREATE TABLE `erp_hr_mas_company_wps_details` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `company_name` varchar(500) NOT NULL,
  `company_code` varchar(255) NOT NULL,
  `company_bank_code` 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_mas_company_wps_details`
--

INSERT INTO `erp_hr_mas_company_wps_details` (`id`, `company_id`, `company_name`, `company_code`, `company_bank_code`, `isActive`) VALUES
(1, 1, 'Bluesky', '1234567891235', '123456789', 'Y');

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

--
-- Table structure for table `erp_hr_mas_document`
--

CREATE TABLE `erp_hr_mas_document` (
  `id` int(11) NOT NULL,
  `document_name` varchar(255) NOT NULL,
  `renewal_remainder` int(11) NOT NULL,
  `document_type` int(11) NOT NULL COMMENT '1-With date,2-Without date',
  `master_type` int(11) NOT NULL COMMENT '1-Employee Document, 2 - Company Document',
  `view_in_employee` enum('Y','N') NOT NULL DEFAULT 'N',
  `dashboard_view` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_document`
--

INSERT INTO `erp_hr_mas_document` (`id`, `document_name`, `renewal_remainder`, `document_type`, `master_type`, `view_in_employee`, `dashboard_view`, `isActive`) VALUES
(2, 'Emirates ID', 30, 1, 1, 'Y', 'Y', 'Y'),
(1, 'Passport', 30, 1, 1, 'Y', 'Y', 'Y'),
(3, 'Trade License', 30, 1, 2, 'N', 'Y', 'Y'),
(4, 'VIsa', 30, 1, 1, 'Y', 'Y', 'Y'),
(5, 'Insurance', 30, 1, 1, 'N', 'Y', 'Y'),
(6, 'Health Card', 15, 1, 1, 'N', 'Y', 'Y'),
(7, 'Contract', 30, 1, 1, 'Y', 'Y', 'Y');

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

--
-- Table structure for table `erp_hr_mas_employee_expense`
--

CREATE TABLE `erp_hr_mas_employee_expense` (
  `id` int(11) NOT NULL,
  `expense_component` 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_mas_employee_expense`
--

INSERT INTO `erp_hr_mas_employee_expense` (`id`, `expense_component`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Petrol', 8, '2025-06-24 08:11:32', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_eos_clearance`
--

CREATE TABLE `erp_hr_mas_eos_clearance` (
  `id` int(11) NOT NULL,
  `clearance_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `level` 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;

--
-- Dumping data for table `erp_hr_mas_eos_clearance`
--

INSERT INTO `erp_hr_mas_eos_clearance` (`id`, `clearance_name`, `isActive`, `level`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'HR Clearance', 'Y', 1, 8, '2025-06-25 10:19:03', 8, '2025-06-25 10:35:59');

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

--
-- Table structure for table `erp_hr_mas_eos_payment`
--

CREATE TABLE `erp_hr_mas_eos_payment` (
  `id` int(11) NOT NULL,
  `payment_name` varchar(500) NOT NULL,
  `type` enum('A','D') NOT NULL COMMENT 'A-Addition,D-Deduction',
  `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_mas_eos_payment`
--

INSERT INTO `erp_hr_mas_eos_payment` (`id`, `payment_name`, `type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(5, 'Ticket Allowance', 'A', 1, '2021-07-19 04:34:38', 8, '2025-06-25 11:15:06', 'Y'),
(6, 'Payment', 'D', 1, '2022-02-14 08:21:49', 8, '2025-06-25 11:15:57', 'Y');

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

--
-- Table structure for table `erp_hr_mas_excuse`
--

CREATE TABLE `erp_hr_mas_excuse` (
  `id` int(11) NOT NULL,
  `excuse_type` 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_mas_excuse`
--

INSERT INTO `erp_hr_mas_excuse` (`id`, `excuse_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Business Meeting', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(2, 'Flexi Time', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(3, 'Market Visit', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(4, 'Training', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(5, 'Event', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(6, 'Outside Work', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y');

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

--
-- Table structure for table `erp_hr_mas_expiry_status`
--

CREATE TABLE `erp_hr_mas_expiry_status` (
  `id` int(11) NOT NULL,
  `document` int(11) NOT NULL,
  `stages` varchar(255) NOT NULL,
  `processing_order` int(11) NOT NULL,
  `start_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_expiry_status`
--

INSERT INTO `erp_hr_mas_expiry_status` (`id`, `document`, `stages`, `processing_order`, `start_date`) VALUES
(1, 2, 'Medical', 1, '0000-00-00'),
(2, 2, 'Emirates ID', 2, '0000-00-00'),
(3, 2, 'Visa Renewal', 3, '0000-00-00'),
(4, 1, 'Staff Renewing', 1, '0000-00-00'),
(5, 1, 'Passport', 3, '0000-00-00'),
(7, 1, 'Document Submission', 2, '0000-00-00'),
(9, 3, 'Renewal', 1, '0000-00-00');

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

--
-- Table structure for table `erp_hr_mas_geocode_location`
--

CREATE TABLE `erp_hr_mas_geocode_location` (
  `id` int(11) NOT NULL,
  `geocode_location` varchar(500) NOT NULL,
  `latitude` varchar(700) NOT NULL,
  `longitude` varchar(700) NOT NULL,
  `isActive` 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=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_geocode_location`
--

INSERT INTO `erp_hr_mas_geocode_location` (`id`, `geocode_location`, `latitude`, `longitude`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Bluesky', '25.401', '55.51', 'Y', 1, '2025-06-24 17:12:15', 1, '2025-06-24 17:29:37');

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

--
-- Table structure for table `erp_hr_mas_grade`
--

CREATE TABLE `erp_hr_mas_grade` (
  `id` int(11) NOT NULL,
  `grade` 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=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_grade`
--

INSERT INTO `erp_hr_mas_grade` (`id`, `grade`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'A1', 1, '2023-02-27 17:00:57', 1, '2023-09-11 14:31:53', 'Y'),
(2, 'A2', 1, '2023-09-13 13:27:11', 1, '2023-09-13 13:27:15', 'Y'),
(3, 'A3', 1, '2023-09-25 14:41:24', 1, '2023-09-25 14:41:48', 'Y');

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

--
-- Table structure for table `erp_hr_mas_gratuity`
--

CREATE TABLE `erp_hr_mas_gratuity` (
  `id` int(11) NOT NULL,
  `rule_type` int(11) NOT NULL,
  `contract_type` int(11) NOT NULL,
  `releaving_type` tinyint(4) NOT NULL COMMENT '1-Termination,2-Resignation',
  `gratuity_type` varchar(500) NOT NULL,
  `gratuity_period_from` tinyint(4) NOT NULL,
  `gratuity_period_to` tinyint(4) NOT NULL,
  `salary_type` varchar(255) NOT NULL,
  `days_from` int(11) NOT NULL,
  `days_to` int(11) NOT NULL,
  `pay_cal` int(11) NOT NULL,
  `gratuity_provision_days` int(11) NOT NULL,
  `max_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_mas_gratuity`
--

INSERT INTO `erp_hr_mas_gratuity` (`id`, `rule_type`, `contract_type`, `releaving_type`, `gratuity_type`, `gratuity_period_from`, `gratuity_period_to`, `salary_type`, `days_from`, `days_to`, `pay_cal`, `gratuity_provision_days`, `max_year`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 0, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(2, 1, 0, 0, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(3, 1, 0, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(4, 2, 0, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(5, 2, 0, 0, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(6, 2, 0, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(7, 3, 0, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(8, 3, 0, 0, 'Level 2 (Upto 5 Year Only)', 1, 5, '1', 366, 1825, 2, 21, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(9, 3, 0, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y');

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

--
-- Table structure for table `erp_hr_mas_gratuity_24_4_2023`
--

CREATE TABLE `erp_hr_mas_gratuity_24_4_2023` (
  `id` int(11) NOT NULL,
  `contract_type` int(11) NOT NULL,
  `releaving_type` tinyint(4) NOT NULL COMMENT '1-Termination,2-Resignation',
  `gratuity_type` varchar(500) NOT NULL,
  `gratuity_period_from` tinyint(4) NOT NULL,
  `gratuity_period_to` tinyint(4) NOT NULL,
  `salary_type` varchar(255) NOT NULL,
  `days_from` int(11) NOT NULL,
  `days_to` int(11) NOT NULL,
  `pay_cal` int(11) NOT NULL,
  `gratuity_provision_days` int(11) NOT NULL,
  `max_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_mas_gratuity_24_4_2023`
--

INSERT INTO `erp_hr_mas_gratuity_24_4_2023` (`id`, `contract_type`, `releaving_type`, `gratuity_type`, `gratuity_period_from`, `gratuity_period_to`, `salary_type`, `days_from`, `days_to`, `pay_cal`, `gratuity_provision_days`, `max_year`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(2, 1, 0, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(3, 1, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(5, 2, 1, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(6, 2, 1, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(7, 2, 1, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(8, 2, 2, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y'),
(9, 2, 2, 'Level 2', 1, 3, '1', 366, 1095, 2, 7, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y'),
(10, 2, 2, 'Level 3', 3, 5, '1', 1096, 1825, 2, 14, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y'),
(11, 2, 2, 'Level 4', 5, 30, '1', 1826, 10950, 2, 21, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y');

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

--
-- Table structure for table `erp_hr_mas_gratuity_rule_type`
--

CREATE TABLE `erp_hr_mas_gratuity_rule_type` (
  `id` int(11) NOT NULL,
  `rule_type` 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_mas_gratuity_rule_type`
--

INSERT INTO `erp_hr_mas_gratuity_rule_type` (`id`, `rule_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'MAINLAND', 0, '2023-04-24 07:39:52', 0, '2023-04-24 07:39:52', 'Y'),
(2, 'Jafza I', 0, '2023-04-24 07:40:14', 0, '2023-04-24 07:40:14', 'Y'),
(3, 'Jafza II', 0, '2023-04-24 07:40:32', 0, '2023-04-24 07:40:32', 'Y');

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

--
-- Table structure for table `erp_hr_mas_holiday`
--

CREATE TABLE `erp_hr_mas_holiday` (
  `id` int(11) NOT NULL,
  `branch_id` varchar(500) NOT NULL,
  `holiday_date` date NOT NULL,
  `holiday_description` text NOT NULL,
  `notify` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date` date DEFAULT NULL,
  `is_Active` enum('Y','N') DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_holiday`
--

INSERT INTO `erp_hr_mas_holiday` (`id`, `branch_id`, `holiday_date`, `holiday_description`, `notify`, `created_by`, `created_date`, `updated_by`, `updated_date`, `is_Active`) VALUES
(2, '1', '2025-06-26', 'Islamic year', 'Y', 8, '2025-06-25', NULL, NULL, 'Y'),
(3, '1', '2025-06-30', 'Holiday', 'Y', 1, '2025-06-27', NULL, NULL, 'Y');

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

--
-- Table structure for table `erp_hr_mas_incentive_structure`
--

CREATE TABLE `erp_hr_mas_incentive_structure` (
  `id` int(11) NOT NULL,
  `amount_from` decimal(10,2) NOT NULL,
  `amount_to` decimal(10,2) NOT NULL,
  `percentage_val` 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,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_incentive_structure`
--

INSERT INTO `erp_hr_mas_incentive_structure` (`id`, `amount_from`, `amount_to`, `percentage_val`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 500000.00, 699999.00, 0.35, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(2, 700000.00, 999999.00, 0.40, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(3, 1000000.00, 1399999.00, 0.50, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(4, 1400000.00, 1799999.00, 0.70, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(5, 1800000.00, 1999999.00, 0.90, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(6, 2000000.00, 2999999.00, 1.00, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(7, 3000000.00, 4999999.00, 1.05, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(9, 5000000.00, 9999999.00, 1.10, 386, '2021-03-02 10:49:13', 2, '2023-10-06 11:36:43', 'Y');

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

--
-- Table structure for table `erp_hr_mas_inout_document`
--

CREATE TABLE `erp_hr_mas_inout_document` (
  `id` int(11) NOT NULL,
  `document_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_mas_inout_document`
--

INSERT INTO `erp_hr_mas_inout_document` (`id`, `document_name`, `isActive`) VALUES
(1, 'Passport', 'Y'),
(3, 'Labour Card', 'Y'),
(4, 'Emirates ID', 'Y');

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

--
-- Table structure for table `erp_hr_mas_job_contract`
--

CREATE TABLE `erp_hr_mas_job_contract` (
  `id` int(11) NOT NULL,
  `contract_type` 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_mas_job_contract`
--

INSERT INTO `erp_hr_mas_job_contract` (`id`, `contract_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Limited', 1, '2020-08-27 04:51:33', 0, '0000-00-00 00:00:00', 'N'),
(2, 'Unlimited', 1, '2020-08-27 04:51:41', 0, '0000-00-00 00:00:00', 'N'),
(3, 'Limited', 8, '2025-06-25 02:06:17', 8, '2025-06-25 02:08:24', 'Y');

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

--
-- Table structure for table `erp_hr_mas_leave`
--

CREATE TABLE `erp_hr_mas_leave` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL DEFAULT 0,
  `parent_id` int(11) NOT NULL,
  `leave_name` varchar(255) NOT NULL,
  `leave_abbreviation` varchar(3) NOT NULL,
  `employee_can_apply` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL COMMENT '1-Monthly Incremented,2-Yearly',
  `gender` tinyint(4) NOT NULL,
  `apply_before` int(11) NOT NULL,
  `employee_id` text NOT NULL,
  `leave_days` decimal(10,2) NOT NULL,
  `leave_days_above_1` decimal(10,2) NOT NULL,
  `leave_days_above_5` decimal(10,2) NOT NULL,
  `leave_days_above_10` decimal(10,2) NOT NULL,
  `additional_leave` decimal(10,2) NOT NULL DEFAULT 0.00,
  `encashable` enum('Y','N') NOT NULL DEFAULT 'N',
  `carry_forward` enum('Y','N') NOT NULL DEFAULT 'N',
  `carry_forward_limit` enum('Y','N') NOT NULL DEFAULT 'N',
  `carry_forward_leave` int(11) NOT NULL,
  `ticket_available` enum('Y','N') NOT NULL DEFAULT 'N',
  `salary_deduction` enum('Y','N','H') NOT NULL DEFAULT 'N',
  `salary_deduction_components` varchar(700) NOT NULL,
  `show_in_payslip` enum('Y','N') NOT NULL DEFAULT 'N',
  `document_medical_certificate_upload` enum('Y','N') NOT NULL DEFAULT 'N',
  `min_day_upload` int(11) NOT NULL,
  `leave_count_employee_panel` enum('Y','N') NOT NULL DEFAULT 'Y',
  `sub_type_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `negative_leave_apply_permission` enum('A','B','N') NOT NULL DEFAULT 'N' COMMENT 'A-From Admin only,B-From Both Side,N-No Permission',
  `salary_deduction_negative_leave` enum('Y','H','N') NOT NULL DEFAULT 'N' COMMENT 'Y-Full Salary,H-Half Paid,N-No Deduction',
  `leave_apply_limit` enum('Y','N') NOT NULL DEFAULT 'N' COMMENT 'Set limit for applying leaves',
  `max_leave_apply` int(11) NOT NULL,
  `is_annual_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `exclude_weekend` enum('Y','N') NOT NULL DEFAULT 'N',
  `exclude_holiday` enum('Y','N') NOT NULL DEFAULT 'N',
  `visible_portal` enum('Y','A','E') NOT NULL DEFAULT 'Y' COMMENT 'Y-All Portal,A-Admin,E-ESS',
  `show_app_dashboard` enum('Y','N') NOT NULL DEFAULT 'Y',
  `leave_increment_hold_on_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `ticket_increment_hold_on_leave` 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_mas_leave`
--

INSERT INTO `erp_hr_mas_leave` (`id`, `branch_id`, `parent_id`, `leave_name`, `leave_abbreviation`, `employee_can_apply`, `leave_type`, `gender`, `apply_before`, `employee_id`, `leave_days`, `leave_days_above_1`, `leave_days_above_5`, `leave_days_above_10`, `additional_leave`, `encashable`, `carry_forward`, `carry_forward_limit`, `carry_forward_leave`, `ticket_available`, `salary_deduction`, `salary_deduction_components`, `show_in_payslip`, `document_medical_certificate_upload`, `min_day_upload`, `leave_count_employee_panel`, `sub_type_leave`, `negative_leave_apply_permission`, `salary_deduction_negative_leave`, `leave_apply_limit`, `max_leave_apply`, `is_annual_leave`, `exclude_weekend`, `exclude_holiday`, `visible_portal`, `show_app_dashboard`, `leave_increment_hold_on_leave`, `ticket_increment_hold_on_leave`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 0, 'Annual leave', 'AL', 180, 2, 0, 0, '3,2', 30.00, 30.00, 30.00, 30.00, 0.00, 'Y', 'N', 'N', 0, 'Y', 'N', '', 'N', 'N', 0, 'Y', 'N', 'N', 'N', 'N', 0, 'Y', 'N', 'N', 'Y', 'Y', 'N', 'N', 8, '2025-06-18 02:37:27', 1, '2025-06-25 08:16:24', 'Y'),
(2, 1, 0, 'Paternal Leave', 'PL', 0, 2, 1, 0, '3,1', 5.00, 5.00, 5.00, 5.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'N', 0, 'Y', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 1, '2025-06-27 04:26:52', 0, '0000-00-00 00:00:00', 'Y'),
(3, 1, 0, 'Maternity Leave', 'ML', 0, 2, 2, 0, '2', 5.00, 5.00, 5.00, 5.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'N', 0, 'Y', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 1, '2025-06-27 04:28:14', 0, '0000-00-00 00:00:00', 'Y'),
(4, 1, 0, 'Sick Leave', 'SL', 0, 2, 0, 0, '3,2,1', 10.00, 10.00, 10.00, 10.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'Y', 2, 'Y', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 1, '2025-06-27 04:29:20', 0, '0000-00-00 00:00:00', 'Y'),
(5, 1, 1, 'Short Leave', 'SHL', 0, 3, 0, 0, '', 30.00, 30.00, 30.00, 30.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'N', 0, 'Y', 'Y', 'N', 'N', 'Y', 2, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 8, '2025-06-28 06:58:00', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_noticeperiod`
--

CREATE TABLE `erp_hr_mas_noticeperiod` (
  `id` int(11) NOT NULL,
  `period_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_mas_noticeperiod`
--

INSERT INTO `erp_hr_mas_noticeperiod` (`id`, `period_name`, `isActive`) VALUES
(1, '1 Month', 'Y'),
(2, '2 Months', 'Y'),
(3, '3 Months', 'Y');

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

--
-- Table structure for table `erp_hr_mas_notification`
--

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

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

--
-- Table structure for table `erp_hr_mas_offboarding`
--

CREATE TABLE `erp_hr_mas_offboarding` (
  `id` int(11) NOT NULL,
  `task_description` 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;

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

--
-- Table structure for table `erp_hr_mas_onboarding`
--

CREATE TABLE `erp_hr_mas_onboarding` (
  `id` int(11) NOT NULL,
  `task_description` 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;

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

--
-- Table structure for table `erp_hr_mas_over_time`
--

CREATE TABLE `erp_hr_mas_over_time` (
  `id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  `salary` varchar(50) NOT NULL,
  `times` float 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_mas_over_time`
--

INSERT INTO `erp_hr_mas_over_time` (`id`, `type`, `salary`, `times`, `isActive`) VALUES
(1, 'NOT - Normal Overtime', '1', 1.25, 'Y'),
(2, 'HOT - Holiday Over Time', '1,2', 1.5, 'Y'),
(3, 'WKD-Weekend Overtime', '1,2,3,4', 1.5, 'Y'),
(4, 'NGT-Night Shift Overtime', '1,2,3,4', 1.5, 'Y');

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

--
-- Table structure for table `erp_hr_mas_pension`
--

CREATE TABLE `erp_hr_mas_pension` (
  `id` int(11) NOT NULL,
  `scheme_name` varchar(255) NOT NULL,
  `company_percent` decimal(11,2) NOT NULL,
  `employee_percent` decimal(11,2) NOT NULL,
  `salary_type` varchar(255) NOT NULL,
  `nationality` varchar(255) NOT NULL,
  `sex` int(11) NOT NULL,
  `min_amount` decimal(15,2) NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_id` int(11) NOT NULL,
  `updated_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_pension`
--

INSERT INTO `erp_hr_mas_pension` (`id`, `scheme_name`, `company_percent`, `employee_percent`, `salary_type`, `nationality`, `sex`, `min_amount`, `isActive`, `created_date`, `updated_date`, `created_id`, `updated_id`) VALUES
(1, 'Scheme I', 12.50, 5.00, '1', '143', 0, 0.00, 'Y', '2025-06-16 05:49:39', '2025-06-25 07:51:54', 1, 1),
(2, 'Scheme II', 10.00, 11.00, '1,5,12,13', '', 0, 0.00, 'Y', '2025-06-16 05:50:10', '2025-06-16 05:47:50', 1, 1);

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

--
-- Table structure for table `erp_hr_mas_product`
--

CREATE TABLE `erp_hr_mas_product` (
  `id` int(11) NOT NULL,
  `product_code` varchar(255) NOT NULL,
  `product_name` varchar(700) NOT NULL,
  `cost_price` decimal(15,2) NOT NULL,
  `selling_price` 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_mas_product`
--

INSERT INTO `erp_hr_mas_product` (`id`, `product_code`, `product_name`, `cost_price`, `selling_price`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'P1', 'book', 100.00, 120.00, 8, '2025-06-24 11:57:50', 8, '2025-06-25 08:23:35', 'Y');

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

--
-- Table structure for table `erp_hr_mas_project_work`
--

CREATE TABLE `erp_hr_mas_project_work` (
  `id` int(11) NOT NULL,
  `project_code` varchar(150) NOT NULL,
  `project_name` varchar(500) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_date_time` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `isActive` enum('Y','N') DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_relation`
--

CREATE TABLE `erp_hr_mas_relation` (
  `id` int(11) NOT NULL,
  `relation_name` 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;

--
-- Dumping data for table `erp_hr_mas_relation`
--

INSERT INTO `erp_hr_mas_relation` (`id`, `relation_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Father', 197, '2019-10-10 06:22:10', 197, '2019-10-10 06:24:49', 'Y'),
(2, 'Mother', 197, '2019-10-10 06:23:05', 1, '2025-06-25 10:00:13', 'Y'),
(3, 'Wife', 197, '2019-10-10 06:24:58', 1, '2022-02-06 19:46:22', 'Y'),
(4, 'Husband', 197, '2019-10-10 06:25:27', 1, '2023-09-14 05:47:08', 'Y'),
(5, 'Son', 197, '2019-10-10 06:25:39', 0, '0000-00-00 00:00:00', 'Y'),
(6, 'Daughter', 197, '2019-10-10 06:25:53', 0, '0000-00-00 00:00:00', 'Y'),
(7, 'Niece', 1, '2022-02-06 19:46:15', 0, '0000-00-00 00:00:00', 'Y'),
(8, 'Cousin', 1, '2022-02-14 13:29:40', 1, '2022-02-14 13:29:47', 'Y'),
(9, 'Brother', 1, '2023-09-11 21:21:20', 1, '2025-06-25 09:39:54', 'Y'),
(10, 'Grand Mother', 1, '2023-09-25 15:48:09', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_religion`
--

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

--
-- Dumping data for table `erp_hr_mas_religion`
--

INSERT INTO `erp_hr_mas_religion` (`id`, `religion`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Christian', NULL, NULL, NULL, NULL, 'Y'),
(2, 'Hindu', NULL, NULL, NULL, NULL, 'Y'),
(3, 'Islam', NULL, NULL, NULL, NULL, 'Y');

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

--
-- Table structure for table `erp_hr_mas_salarytype`
--

CREATE TABLE `erp_hr_mas_salarytype` (
  `id` int(11) NOT NULL,
  `salary_name` varchar(255) NOT NULL,
  `salary_type` tinyint(4) NOT NULL,
  `salary_occurence` tinyint(4) NOT NULL,
  `consider_deduction` enum('Y','N') NOT NULL DEFAULT 'Y',
  `consider_leave_settlement` enum('Y','N') NOT NULL DEFAULT 'N',
  `editable` int(11) NOT NULL DEFAULT 1 COMMENT '1-Not Editable,2-Editable',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_salarytype`
--

INSERT INTO `erp_hr_mas_salarytype` (`id`, `salary_name`, `salary_type`, `salary_occurence`, `consider_deduction`, `consider_leave_settlement`, `editable`, `isActive`) VALUES
(1, 'Basic', 1, 2, 'Y', 'Y', 1, 'Y'),
(2, 'Bonus', 1, 1, 'Y', 'N', 1, 'Y');

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

--
-- Table structure for table `erp_hr_mas_shift`
--

CREATE TABLE `erp_hr_mas_shift` (
  `id` int(11) NOT NULL,
  `shift_name` varchar(255) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `shift_type` enum('D','N') NOT NULL DEFAULT 'D',
  `color_code` varchar(100) NOT NULL,
  `isActive` 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;

--
-- Dumping data for table `erp_hr_mas_shift`
--

INSERT INTO `erp_hr_mas_shift` (`id`, `shift_name`, `start_time`, `end_time`, `shift_type`, `color_code`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Morning', '06:00:00', '12:00:00', 'D', '#8080ff', 'Y', 8, '2025-06-19 10:50:56', 1, '2025-06-25 10:20:26');

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

--
-- Table structure for table `erp_hr_mas_team_name`
--

CREATE TABLE `erp_hr_mas_team_name` (
  `id` int(11) NOT NULL,
  `team_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_mas_team_name`
--

INSERT INTO `erp_hr_mas_team_name` (`id`, `team_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Team 2', 8, '2025-06-25 08:50:43', 8, '2025-06-25 08:55:08', 'Y');

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

--
-- Table structure for table `erp_hr_mas_training_course`
--

CREATE TABLE `erp_hr_mas_training_course` (
  `id` int(11) NOT NULL,
  `course_name` varchar(700) NOT NULL,
  `training_days` 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_mas_training_course`
--

INSERT INTO `erp_hr_mas_training_course` (`id`, `course_name`, `training_days`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'First Aid', 2, 8, '2025-06-23 10:48:39', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_training_course_detail`
--

CREATE TABLE `erp_hr_mas_training_course_detail` (
  `id` int(11) NOT NULL,
  `master_id` int(11) NOT NULL,
  `training_course` varchar(700) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_training_course_detail`
--

INSERT INTO `erp_hr_mas_training_course_detail` (`id`, `master_id`, `training_course`) VALUES
(1, 1, 'First AID');

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

--
-- Table structure for table `erp_hr_modules`
--

CREATE TABLE `erp_hr_modules` (
  `id` int(11) NOT NULL,
  `hr_module_name` varchar(700) NOT NULL,
  `grant_access` tinyint(4) NOT NULL DEFAULT 0,
  `display_functionality` 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,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_modules`
--

INSERT INTO `erp_hr_modules` (`id`, `hr_module_name`, `grant_access`, `display_functionality`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(3, 'Leave', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(6, 'Loan', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(2, 'Attendance', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(5, 'Salary Advance', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(7, 'Payroll', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(4, 'Leave Encashment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(8, 'Ticket', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(9, 'Ticket Encashment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(14, 'Resignation', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(13, 'Recruitment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(12, 'Appraisal', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(11, 'Expense', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(10, 'Document Request', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(1, 'Employee', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(15, 'Training', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(16, 'Purchase', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(17, 'EOS', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(18, 'Circular', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(19, 'Company Expense', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(20, 'Room Management', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(21, 'Catalogue', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(22, 'Staff Board', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(23, 'Notes', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(24, 'Notice of Conduct', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(25, 'Calendar Notification', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(26, 'Templates', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(27, 'PDF Settings', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(28, 'Mail Settings', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(29, 'Mobile Application', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(30, 'Asset', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(31, 'Service', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(36, 'Company', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(32, 'Flexitime Request', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(34, 'Snapshot', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(35, 'Organization Chart', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(33, 'ESS Portal', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(37, 'Admin', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y');

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

--
-- Table structure for table `erp_hr_monthly_gratuity`
--

CREATE TABLE `erp_hr_monthly_gratuity` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `gratuity_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_monthly_salary_component`
--

CREATE TABLE `erp_hr_monthly_salary_component` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_month` int(11) NOT NULL,
  `salary_year` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `lock_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `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_monthly_salary_sif`
--

CREATE TABLE `erp_hr_monthly_salary_sif` (
  `id` int(11) NOT NULL,
  `wpscompany_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `salary_payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-WPS,4-Exchange',
  `date` date NOT NULL,
  `salary_month` varchar(50) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `legder_id` int(11) NOT NULL,
  `sublegder_id` int(11) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted_on` date NOT NULL,
  `voucher_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_monthly_salary_sif`
--

INSERT INTO `erp_hr_monthly_salary_sif` (`id`, `wpscompany_id`, `branch_id`, `salary_processing_id`, `salary_payment_mode`, `date`, `salary_month`, `total_amount`, `legder_id`, `sublegder_id`, `posted`, `posted_on`, `voucher_id`, `created_by`, `created_date`) VALUES
(4, 1, 0, 5, 4, '2025-06-30', 'June', 4500.00, 0, 0, 'N', '0000-00-00', 0, 1, '2025-06-24'),
(5, 0, 0, 5, 5, '2025-06-30', 'June', 3000.00, 0, 0, 'N', '0000-00-00', 0, 1, '2025-06-24');

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

--
-- Table structure for table `erp_hr_notification`
--

CREATE TABLE `erp_hr_notification` (
  `id` int(11) NOT NULL,
  `from_user` int(11) NOT NULL,
  `branch` varchar(200) NOT NULL,
  `department_id` varchar(200) NOT NULL,
  `employee_id` text NOT NULL,
  `title` varchar(500) NOT NULL,
  `content` varchar(2500) NOT NULL,
  `date` datetime NOT NULL,
  `designation` varchar(200) NOT NULL,
  `type` int(11) NOT NULL,
  `displaydate` datetime NOT NULL,
  `read_status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_notification`
--

INSERT INTO `erp_hr_notification` (`id`, `from_user`, `branch`, `department_id`, `employee_id`, `title`, `content`, `date`, `designation`, `type`, `displaydate`, `read_status`) VALUES
(2, 8, '1', '', '3,2,1', 'Testing Staffboard For Long sentence issues in HR application', '<p>\n	Testing Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR application</p>\n', '2025-06-24 10:23:03', '', 0, '0000-00-00 00:00:00', '');

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

--
-- Table structure for table `erp_hr_outsource_overtime`
--

CREATE TABLE `erp_hr_outsource_overtime` (
  `id` int(11) NOT NULL,
  `overtime_month` int(11) NOT NULL,
  `overtime_year` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `total_working_day` int(11) NOT NULL,
  `normal_working_day` decimal(10,2) NOT NULL,
  `normal_overtime` decimal(10,2) NOT NULL,
  `night_shift` decimal(10,2) NOT NULL,
  `night_overtime` decimal(10,2) NOT NULL,
  `week_off` decimal(10,2) NOT NULL,
  `absent_with_deduction` decimal(10,2) NOT NULL,
  `absent_without_deduction` decimal(10,2) NOT NULL,
  `holiday_count` int(11) NOT NULL,
  `holiday_overtime` decimal(10,2) NOT NULL,
  `weekend_overtime` 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_outsource_overtime`
--

INSERT INTO `erp_hr_outsource_overtime` (`id`, `overtime_month`, `overtime_year`, `employee_id`, `total_working_day`, `normal_working_day`, `normal_overtime`, `night_shift`, `night_overtime`, `week_off`, `absent_with_deduction`, `absent_without_deduction`, `holiday_count`, `holiday_overtime`, `weekend_overtime`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 6, 2025, 1, 0, 0.00, 2.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0.00, 8, '2025-06-23 15:11:18', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_panel_permission`
--

CREATE TABLE `erp_hr_panel_permission` (
  `id` int(11) NOT NULL,
  `employee_category` int(11) NOT NULL,
  `employee_panel_permission` 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_panel_permission`
--

INSERT INTO `erp_hr_panel_permission` (`id`, `employee_category`, `employee_panel_permission`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, '{\"staff_board_view\":1,\"holiday_calendar_view\":1,\"attendance_analysis_view\":1,\"attendance_punch_view\":1,\"change_photo_view\":1,\"calendar_view\":1,\"contact_details_view\":1,\"dependant_view\":1,\"leave_view\":1,\"circular_view\":1,\"catalogue_view\":1,\"loan_view\":1,\"loan_approval_view\":1,\"salary_advance_view\":1,\"attendance_view\":1,\"appraisal_view\":1,\"expense_view\":1,\"excuse_meeting_view\":1,\"salary_slip_view\":1,\"document_view\":1,\"family_ticket_view\":1,\"ticket_encashment_view\":1,\"notice_conduct_view\":1,\"organization_chart_view\":1,\"subordinates_excuse_view\":1,\"applied_leave_view\":1,\"product_request_view\":1,\"document_notification\":1,\"certificate_view\":1,\"resignation_view\":1,\"eos_clearance_view\":1,\"complaint_suggestion_view\":1}', 0, '0000-00-00 00:00:00', 1, '2025-05-30 07:57:14', 'Y'),
(2, 2, '{\"attendance_punch_view\":1}', 0, '0000-00-00 00:00:00', 756, '2022-10-20 16:15:05', 'Y'),
(3, 3, '{\"attendance_punch_view\":1}', 0, '0000-00-00 00:00:00', 1, '2023-09-13 13:26:27', 'Y');

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

--
-- Table structure for table `erp_hr_pdf_settings`
--

CREATE TABLE `erp_hr_pdf_settings` (
  `id` int(11) NOT NULL,
  `company_name` text NOT NULL,
  `company_address` text NOT NULL,
  `company_phno` varchar(25) NOT NULL,
  `company_web_address` varchar(200) NOT NULL,
  `company_logo` varchar(500) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_pdf_settings`
--

INSERT INTO `erp_hr_pdf_settings` (`id`, `company_name`, `company_address`, `company_phno`, `company_web_address`, `company_logo`) VALUES
(1, 'Bluesky Technologies', 'Block C1, Office # 208, AJMAN FREE ZONE, UAE', '+971 4  297 3005', 'http://www.bluesky.ae', 'logo.png');

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

--
-- Table structure for table `erp_hr_questions`
--

CREATE TABLE `erp_hr_questions` (
  `id` int(11) NOT NULL,
  `question_type_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `answer` 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_questions`
--

INSERT INTO `erp_hr_questions` (`id`, `question_type_id`, `question`, `answer`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 'Q1', '', 8, '2025-06-25 08:39:12', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 'Q1', '', 8, '2025-06-25 08:47:34', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_question_type`
--

CREATE TABLE `erp_hr_question_type` (
  `id` int(11) NOT NULL,
  `question_for` 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_question_type`
--

INSERT INTO `erp_hr_question_type` (`id`, `question_for`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Accounts', 8, '2025-06-25 08:33:27', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_recruitment`
--

CREATE TABLE `erp_hr_recruitment` (
  `id` int(11) NOT NULL,
  `first_name` varchar(700) NOT NULL,
  `middle_name` varchar(700) NOT NULL,
  `last_name` varchar(700) NOT NULL,
  `gender` enum('1','2') NOT NULL,
  `date_of_birth` date NOT NULL,
  `email_id` varchar(700) NOT NULL,
  `mobile_no` varchar(200) NOT NULL,
  `post_applied` varchar(700) NOT NULL,
  `expected_salary` int(11) NOT NULL,
  `employee_description` text NOT NULL,
  `years_experience` int(11) NOT NULL,
  `interview_call` tinyint(4) DEFAULT 0 COMMENT '0=>Not Selected, 1=>selected',
  `interview_date` datetime NOT NULL,
  `interview_letter` text NOT NULL,
  `offer_letter_date` date NOT NULL,
  `offer_letter` text NOT NULL,
  `employee_rating` int(11) NOT NULL,
  `convert_status` enum('N','Y') NOT NULL DEFAULT 'N',
  `branch_id` int(11) NOT NULL,
  `reference_no` int(11) NOT NULL,
  `monthly_sales_target` decimal(15,2) NOT NULL,
  `minimum_target_cards` int(11) NOT NULL,
  `incentive_card` varchar(50) NOT NULL,
  `mail_notifying_employee` varchar(700) NOT NULL,
  `notifying_status` 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=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_recruitment`
--

INSERT INTO `erp_hr_recruitment` (`id`, `first_name`, `middle_name`, `last_name`, `gender`, `date_of_birth`, `email_id`, `mobile_no`, `post_applied`, `expected_salary`, `employee_description`, `years_experience`, `interview_call`, `interview_date`, `interview_letter`, `offer_letter_date`, `offer_letter`, `employee_rating`, `convert_status`, `branch_id`, `reference_no`, `monthly_sales_target`, `minimum_target_cards`, `incentive_card`, `mail_notifying_employee`, `notifying_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'JIya', '', 'Jose', '2', '1995-01-05', 'test@email.com', '050', 'HR assistant', 2700, 'tests', 1, 1, '2025-06-19 14:00:00', '<p>\n	<b>Subject:</b> Invitation to Interview<br />\n	<br />\n	Dear JIya Jose,<br />\n	<br />\n	Thank you for applying for the position of HR assistant with Bluesky Technologies.<br />\n	<br />\n	We would like to invite you to come to our office to interview for the position.Your interview has been scheduled for 19/06/2025 14:00.<br />\n	<br />\n	Please call me at <span style=\"color:red\">[Mobile No]</span> or email me at <span style=\"color:red\">[Email ID]</span>,if you have any questions or need to reschedule.<br />\n	<br />\n	<br />\n	Sincerely,<br />\n	<br />\n	<span style=\"color:red\">[HR Department]</span></p>\n', '2025-06-24', '', 0, 'N', 1, 1, 0.00, 0, '', '', 0, 8, '2025-06-19 14:12:41', 8, '2025-06-19 15:37:27');

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

--
-- Table structure for table `erp_hr_recruitment_analysis`
--

CREATE TABLE `erp_hr_recruitment_analysis` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `answer` text NOT NULL,
  `max_score` decimal(10,2) NOT NULL,
  `score_secured` 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;

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

--
-- Table structure for table `erp_hr_recruitment_documents`
--

CREATE TABLE `erp_hr_recruitment_documents` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `document_no` varchar(700) NOT NULL,
  `document_file` 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;

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

--
-- Table structure for table `erp_hr_recruitment_note`
--

CREATE TABLE `erp_hr_recruitment_note` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `recruitment_note` varchar(550) 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_recruitment_onboard`
--

CREATE TABLE `erp_hr_recruitment_onboard` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `onboard_id` int(11) NOT NULL,
  `task` text NOT NULL,
  `task_status` enum('N','Y') NOT NULL DEFAULT 'N',
  `task_done_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_recruitment_onboard`
--

INSERT INTO `erp_hr_recruitment_onboard` (`id`, `recruit_id`, `onboard_id`, `task`, `task_status`, `task_done_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 4, 1, 'Task1', 'N', '0000-00-00', 1, '2023-09-26 10:17:43', 1, '2023-09-26 10:18:05'),
(2, 4, 2, 'Task2', 'N', '0000-00-00', 1, '2023-09-26 10:17:43', 1, '2023-09-26 10:18:05'),
(3, 6, 1, 'Task1', 'Y', '2023-10-05', 1, '2023-10-05 07:50:34', 1, '2023-10-05 07:53:01'),
(4, 6, 2, 'Task2', 'Y', '2023-10-05', 1, '2023-10-05 07:50:34', 1, '2023-10-05 07:53:01'),
(5, 3, 1, 'Task1', 'N', '0000-00-00', 2, '2023-10-06 07:31:15', 1, '2025-06-18 09:13:41'),
(6, 3, 2, 'Task2', 'N', '0000-00-00', 2, '2023-10-06 07:31:15', 1, '2025-06-18 09:13:41'),
(7, 5, 1, 'Task1', 'N', '0000-00-00', 1, '2023-11-07 03:10:50', 1, '2023-12-07 11:47:37'),
(8, 5, 2, 'Task2', 'N', '0000-00-00', 1, '2023-11-07 03:10:50', 1, '2023-12-07 11:47:37'),
(9, 7, 1, 'Task1', 'N', '0000-00-00', 1, '2023-12-12 10:43:56', 1, '2025-03-03 10:31:24'),
(10, 7, 2, 'Task2', 'N', '0000-00-00', 1, '2023-12-12 10:43:56', 1, '2025-03-03 10:31:24'),
(11, 8, 1, 'Task1', 'N', '0000-00-00', 1, '2025-03-03 11:03:15', 0, '0000-00-00 00:00:00'),
(12, 8, 2, 'Task2', 'N', '0000-00-00', 1, '2025-03-03 11:03:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_recruitment_salary`
--

CREATE TABLE `erp_hr_recruitment_salary` (
  `id` int(11) NOT NULL,
  `recruitment_id` int(11) NOT NULL,
  `salary_type` 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;

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

--
-- Table structure for table `erp_hr_reporting_manager`
--

CREATE TABLE `erp_hr_reporting_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_reporting_manager`
--

INSERT INTO `erp_hr_reporting_manager` (`id`, `branch`, `employee_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 8, '2025-07-22 09:57:04', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 2, 8, '2025-07-22 09:57:04', 0, '0000-00-00 00:00:00', 'Y'),
(3, 1, 3, 8, '2025-07-22 09:57:04', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_allocation`
--

CREATE TABLE `erp_hr_room_allocation` (
  `id` int(11) NOT NULL,
  `building_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `bedspace_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_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,
  `isActive` enum('Y','N') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_room_allocation`
--

INSERT INTO `erp_hr_room_allocation` (`id`, `building_id`, `room_id`, `bedspace_id`, `employee_id`, `start_date`, `end_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 1, 1, '2025-06-24', '0000-00-00', 8, '2025-06-24 01:51:49', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_bedspace`
--

CREATE TABLE `erp_hr_room_bedspace` (
  `id` int(11) NOT NULL,
  `building_floor_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `bed_space_name` 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;

--
-- Dumping data for table `erp_hr_room_bedspace`
--

INSERT INTO `erp_hr_room_bedspace` (`id`, `building_floor_id`, `room_id`, `bed_space_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, '1', 8, '2025-06-24 01:40:22', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_setting`
--

CREATE TABLE `erp_hr_room_setting` (
  `id` int(11) NOT NULL,
  `building_name` varchar(500) NOT NULL,
  `country_id` int(11) NOT NULL,
  `location_name` varchar(500) NOT NULL,
  `address` text NOT NULL,
  `no_rooms` int(11) NOT NULL COMMENT 'Total Number of rooms',
  `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_room_setting`
--

INSERT INTO `erp_hr_room_setting` (`id`, `building_name`, `country_id`, `location_name`, `address`, `no_rooms`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, '1111', 130, 'Dubai', 'Dubai', 2, 8, '2025-06-24 01:29:50', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_setting_details`
--

CREATE TABLE `erp_hr_room_setting_details` (
  `id` int(11) NOT NULL,
  `room_setting_id` int(11) NOT NULL,
  `room_name` varchar(500) NOT NULL,
  `room_bedspace` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_room_setting_details`
--

INSERT INTO `erp_hr_room_setting_details` (`id`, `room_setting_id`, `room_name`, `room_bedspace`) VALUES
(1, 1, '1', 1),
(2, 1, '2', 1);

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

--
-- Table structure for table `erp_hr_salary_processing`
--

CREATE TABLE `erp_hr_salary_processing` (
  `id` int(11) NOT NULL,
  `payroll_branch_or_sponsor_id` int(11) NOT NULL,
  `payroll_startdate` date NOT NULL,
  `payroll_enddate` date NOT NULL,
  `payroll_month` varchar(255) NOT NULL,
  `payroll_status` int(11) NOT NULL COMMENT '1-unlock,2-lock',
  `salary_lock_date` date NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted_date` date NOT NULL,
  `voucher_id` int(11) NOT NULL,
  `show_pay_slip_employee` 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=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_salary_processing`
--

INSERT INTO `erp_hr_salary_processing` (`id`, `payroll_branch_or_sponsor_id`, `payroll_startdate`, `payroll_enddate`, `payroll_month`, `payroll_status`, `salary_lock_date`, `posted`, `posted_date`, `voucher_id`, `show_pay_slip_employee`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(6, 1, '2025-07-01', '2025-07-31', 'July', 2, '2025-09-03', 'N', '0000-00-00', 0, 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00', 'Y'),
(5, 1, '2025-06-01', '2025-06-30', 'June', 2, '2025-06-24', 'N', '0000-00-00', 0, 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_salary_slip`
--

CREATE TABLE `erp_hr_salary_slip` (
  `id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `total_working_days` decimal(10,2) NOT NULL,
  `absent_working_days` decimal(10,2) NOT NULL,
  `ticket_increment_excluded_days` decimal(10,2) NOT NULL,
  `leave_increment_excluded_days` decimal(10,2) NOT NULL,
  `current_leave_balance` decimal(10,2) NOT NULL,
  `ticket_entitlement_balance` decimal(10,2) NOT NULL,
  `salary_advance_amount` decimal(15,2) NOT NULL,
  `leave_amount` decimal(15,2) NOT NULL,
  `loan_amount` decimal(15,2) NOT NULL,
  `normal_ot_amount` decimal(10,2) NOT NULL,
  `night_ot_amount` decimal(10,2) NOT NULL,
  `holiday_ot_amount` decimal(10,2) NOT NULL,
  `weekend_ot_amount` decimal(10,2) NOT NULL,
  `onsite_overtime` time NOT NULL,
  `onsite_overtime_amount` decimal(10,2) NOT NULL,
  `office_ot` time NOT NULL,
  `office_ot_amount` decimal(10,2) NOT NULL,
  `overtime_hour` time NOT NULL,
  `overtime_amount` decimal(15,2) NOT NULL,
  `pension_amount_employee` decimal(15,2) NOT NULL,
  `pension_amount_company` decimal(15,2) NOT NULL,
  `pension_amount` decimal(15,2) NOT NULL,
  `gratuity_amount` decimal(15,2) NOT NULL,
  `leave_salary_provision` decimal(15,2) NOT NULL,
  `before_joining_salary` decimal(10,2) NOT NULL,
  `employee_salary_amount` decimal(15,2) NOT NULL,
  `leave_settlement` decimal(15,2) NOT NULL,
  `annual_leave_addition` decimal(15,2) NOT NULL,
  `annual_leave_deduction` decimal(15,2) NOT NULL,
  `incentive` decimal(10,2) NOT NULL,
  `public_holiday` int(11) NOT NULL,
  `public_holiday_allowance` decimal(10,2) NOT NULL,
  `night_shift_days` int(11) NOT NULL,
  `night_shift_allowance` decimal(10,2) NOT NULL,
  `other_addition` decimal(10,2) NOT NULL,
  `other_deduction` decimal(10,2) NOT NULL,
  `total_addition_amount` decimal(15,2) NOT NULL,
  `total_deduction_amount` decimal(15,2) NOT NULL,
  `total_salary_amount` decimal(15,2) NOT NULL,
  `threshold_salary` decimal(10,2) NOT NULL,
  `sif_transfer_salary` decimal(10,2) NOT NULL,
  `sif_untransfer_salary` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `salary_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `wps_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_salary_slip`
--

INSERT INTO `erp_hr_salary_slip` (`id`, `salary_processing_id`, `employee_id`, `total_working_days`, `absent_working_days`, `ticket_increment_excluded_days`, `leave_increment_excluded_days`, `current_leave_balance`, `ticket_entitlement_balance`, `salary_advance_amount`, `leave_amount`, `loan_amount`, `normal_ot_amount`, `night_ot_amount`, `holiday_ot_amount`, `weekend_ot_amount`, `onsite_overtime`, `onsite_overtime_amount`, `office_ot`, `office_ot_amount`, `overtime_hour`, `overtime_amount`, `pension_amount_employee`, `pension_amount_company`, `pension_amount`, `gratuity_amount`, `leave_salary_provision`, `before_joining_salary`, `employee_salary_amount`, `leave_settlement`, `annual_leave_addition`, `annual_leave_deduction`, `incentive`, `public_holiday`, `public_holiday_allowance`, `night_shift_days`, `night_shift_allowance`, `other_addition`, `other_deduction`, `total_addition_amount`, `total_deduction_amount`, `total_salary_amount`, `threshold_salary`, `sif_transfer_salary`, `sif_untransfer_salary`, `remarks`, `salary_posted`, `wps_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(14, 5, 3, 30.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 4500.00, 0.00, '', 'N', 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(15, 5, 2, 30.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 3000.00, 0.00, '', 'N', 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(16, 5, 1, 30.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 58.33, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 58.33, '00:00:00', 58.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 5600.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 58.33, 0.00, 5658.33, 0.00, 5658.33, 0.00, '', 'N', 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(17, 6, 3, 31.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 4500.00, 0.00, '', 'N', 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(18, 6, 2, 31.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 3000.00, 0.00, '', 'N', 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(19, 6, 1, 31.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 5600.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 5600.00, 0.00, 5600.00, 0.00, '', 'N', 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_salary_slip_details`
--

CREATE TABLE `erp_hr_salary_slip_details` (
  `id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `salary_id` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `salary_name` varchar(255) NOT NULL,
  `salary_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_salary_slip_details`
--

INSERT INTO `erp_hr_salary_slip_details` (`id`, `salary_processing_id`, `salary_slip_id`, `salary_id`, `salary_type`, `salary_name`, `salary_amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(14, 5, 14, 1, 1, 'Basic', 4500.00, 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(15, 5, 15, 1, 1, 'Basic', 3000.00, 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(16, 5, 16, 1, 1, 'Basic', 5600.00, 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(17, 6, 17, 1, 1, 'Basic', 4500.00, 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(18, 6, 18, 1, 1, 'Basic', 3000.00, 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(19, 6, 19, 1, 1, 'Basic', 5600.00, 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_salary_slip_leavedetails`
--

CREATE TABLE `erp_hr_salary_slip_leavedetails` (
  `id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_id` int(11) NOT NULL,
  `leave_name` varchar(500) NOT NULL,
  `leave_count` 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_sale_target`
--

CREATE TABLE `erp_hr_sale_target` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `incentive_per_card` decimal(10,2) NOT NULL,
  `month` int(11) NOT NULL,
  `year` int(11) NOT NULL,
  `target_type` enum('B','C') NOT NULL DEFAULT 'C' COMMENT 'B-Booking,C-Card',
  `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_sale_target_details`
--

CREATE TABLE `erp_hr_sale_target_details` (
  `id` int(11) NOT NULL,
  `target_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `target_card_count` decimal(10,2) NOT NULL,
  `sold_card_count` decimal(10,2) NOT NULL,
  `incentive_card_count` decimal(10,2) NOT NULL,
  `incentive_amount` decimal(10,2) NOT NULL,
  `total_team_leader_amount` decimal(10,2) NOT NULL,
  `target_bonus_amount` decimal(10,2) NOT NULL,
  `days_promotion_15` decimal(10,2) NOT NULL,
  `login_promotion` decimal(10,2) NOT NULL,
  `total_incentive` decimal(10,2) NOT NULL,
  `incentive_claw_back` decimal(10,2) NOT NULL,
  `total_incentive_hold` decimal(10,2) NOT NULL,
  `deduction_amount` decimal(10,2) NOT NULL,
  `net_incentive_amount` decimal(10,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_scheme_approve_level`
--

CREATE TABLE `erp_hr_scheme_approve_level` (
  `id` int(11) NOT NULL,
  `functionality_id` int(11) NOT NULL,
  `scheme_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_software_package`
--

CREATE TABLE `erp_hr_software_package` (
  `id` int(11) NOT NULL,
  `package_name` varchar(700) NOT NULL,
  `description` text NOT NULL,
  `package_type` set('1','2','3') NOT NULL COMMENT '1-Basic,2-Standard,3-Premium',
  `package_details` text NOT NULL,
  `package_cost` 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,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_software_package`
--

INSERT INTO `erp_hr_software_package` (`id`, `package_name`, `description`, `package_type`, `package_details`, `package_cost`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Basic', 'test', '1', '2,1,17,3,4,7,8,9', 250.00, 0, '2025-06-04 13:22:37', 1, '2025-06-10 21:29:05', 'Y'),
(2, 'Standard', '', '2', '2,25,10,1,17,3,4,6,7,31,22,8,9,15', 0.00, 0, '2025-06-04 13:22:37', 1, '2025-06-10 21:31:56', 'Y'),
(3, 'Premium', '', '3', '37,12,30,2,25,21,18,36,19,10,1,17,33,11,32,3,4,6,28,29,23,24,35,7,27,16,13,14,20,5,31,34,22,26,8,9,15', 0.00, 0, '2025-06-04 13:22:37', 1, '2025-06-13 13:13:26', 'Y');

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

--
-- Table structure for table `erp_hr_todolist`
--

CREATE TABLE `erp_hr_todolist` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `todo_date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `activity` 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','C','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_training`
--

CREATE TABLE `erp_hr_training` (
  `id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL,
  `sub_course_id` int(11) NOT NULL,
  `provider_name` varchar(700) NOT NULL,
  `course_date` date NOT NULL,
  `location` varchar(700) NOT NULL,
  `fee_per_head` decimal(10,2) NOT NULL,
  `mail_sent_ids` 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_training`
--

INSERT INTO `erp_hr_training` (`id`, `course_id`, `sub_course_id`, `provider_name`, `course_date`, `location`, `fee_per_head`, `mail_sent_ids`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 1, 1, 'P1', '2025-06-23', 'dubai', 1000.00, '', 8, '2025-06-23 11:00:34', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_training_details`
--

CREATE TABLE `erp_hr_training_details` (
  `id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `days_attended` int(11) NOT NULL,
  `training_status` enum('A','N') NOT NULL COMMENT 'A-Attended,N-Not Attended',
  `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_training_details`
--

INSERT INTO `erp_hr_training_details` (`id`, `training_id`, `employee_id`, `days_attended`, `training_status`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(2, 2, 1, 1, 'N', '2025-06-23 11:00:34', 8, '0000-00-00 00:00:00', 0);

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

--
-- Table structure for table `erp_hr_workinghours`
--

CREATE TABLE `erp_hr_workinghours` (
  `id` int(11) NOT NULL,
  `company_branch_or_sponsor_id` int(11) NOT NULL,
  `week_id` int(11) NOT NULL,
  `start_time` varchar(100) NOT NULL,
  `end_time` varchar(100) NOT NULL,
  `weekend` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_workinghours`
--

INSERT INTO `erp_hr_workinghours` (`id`, `company_branch_or_sponsor_id`, `week_id`, `start_time`, `end_time`, `weekend`) VALUES
(1, 1, 1, '', '', 0),
(2, 1, 2, '', '', 1),
(3, 1, 3, '', '', 1),
(4, 1, 4, '', '', 1),
(5, 1, 5, '', '', 1),
(6, 1, 6, '', '', 1),
(7, 1, 7, '', '', 1);

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

--
-- Table structure for table `erp_incentive_calculation`
--

CREATE TABLE `erp_incentive_calculation` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `insurance` double(5,2) NOT NULL DEFAULT 0.00,
  `frieght_charges` double(5,2) NOT NULL DEFAULT 0.00,
  `entry_tax` double(5,2) NOT NULL DEFAULT 0.00,
  `less_discount` double(5,2) NOT NULL DEFAULT 0.00,
  `advance` double(5,2) NOT NULL DEFAULT 0.00,
  `commission` double(5,2) NOT NULL DEFAULT 0.00,
  `min_sale_profit` double(5,2) NOT NULL DEFAULT 0.00,
  `sale_interest` double(5,2) NOT NULL DEFAULT 0.00,
  `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_inventory_batch_split_history`
--

CREATE TABLE `erp_inventory_batch_split_history` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `batch_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_batch_split_history_detail`
--

CREATE TABLE `erp_inventory_batch_split_history_detail` (
  `id` int(11) NOT NULL,
  `batch_split_history_id` int(11) NOT NULL,
  `batch_name` varchar(255) NOT NULL,
  `status` enum('O_UPD','N_ADD') NOT NULL COMMENT 'O_UPD->update ProLoc id,N_ADD->Add Pro Loc id',
  `product_location_id` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_direct_transfer`
--

CREATE TABLE `erp_inventory_direct_transfer` (
  `id` bigint(20) NOT NULL,
  `from_warehouse_id` bigint(20) NOT NULL,
  `to_warehouse_id` bigint(20) NOT NULL,
  `direct_transfer_description` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `transfer_date` date NOT NULL,
  `status` enum('T','P','C') NOT NULL DEFAULT 'T' COMMENT 'T - in transit, P - Packing, C- Completed',
  `added_from` enum('DT','ST') NOT NULL DEFAULT 'DT' COMMENT 'DT = direct transfer , ST -Sample ',
  `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;

--
-- Dumping data for table `erp_inventory_direct_transfer`
--

INSERT INTO `erp_inventory_direct_transfer` (`id`, `from_warehouse_id`, `to_warehouse_id`, `direct_transfer_description`, `reference`, `transfer_date`, `status`, `added_from`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 1, 2, '', 'T1', '2025-05-06', 'C', 'DT', 8, 0, '2025-05-06 12:05:51', '0000-00-00 00:00:00'),
(2, 1, 4, '', 'ref1', '2025-06-23', 'C', 'DT', 8, 0, '2025-06-23 05:06:11', '0000-00-00 00:00:00'),
(3, 3, 2, 'esc', '12345', '2025-06-24', 'T', 'DT', 8, 0, '2025-06-24 09:06:05', '0000-00-00 00:00:00'),
(4, 1, 4, '', '-', '2025-06-30', 'C', 'DT', 8, 0, '2025-06-30 09:06:21', '0000-00-00 00:00:00'),
(5, 1, 4, 'New refernce', 'New ref', '2025-08-26', 'C', 'DT', 1, 0, '2025-08-26 01:08:02', '0000-00-00 00:00:00'),
(6, 1, 5, '', '-', '2025-10-03', 'C', 'DT', 1, 0, '2025-10-03 03:10:38', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_inventory_direct_transfer_item`
--

CREATE TABLE `erp_inventory_direct_transfer_item` (
  `id` int(11) NOT NULL,
  `direct_transfer_id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `item_name` varchar(255) NOT NULL,
  `item_description` text NOT NULL,
  `transfer_qty` decimal(15,3) NOT NULL,
  `sample_qty` decimal(15,3) NOT NULL,
  `available_qty` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `transferred` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_direct_transfer_item`
--

INSERT INTO `erp_inventory_direct_transfer_item` (`id`, `direct_transfer_id`, `item_id`, `item_name`, `item_description`, `transfer_qty`, `sample_qty`, `available_qty`, `unit`, `transferred`) VALUES
(1, 1, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 1.000, 0.000, 0.000, 2, 'N'),
(2, 2, 672, '1001', 'Test Item', 5.000, 0.000, 0.000, 672, 'N'),
(3, 3, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 0.000, 0.000, 0.000, 2, 'N'),
(4, 4, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 1.000, 0.000, 0.000, 245, 'N'),
(5, 5, 672, '1001', 'Test Item', 5.000, 0.000, 0.000, 672, 'N'),
(6, 6, 681, 'A1001', 'Test Item for A100', 5.000, 0.000, 0.000, 681, 'N');

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

--
-- Table structure for table `erp_inventory_generic_name`
--

CREATE TABLE `erp_inventory_generic_name` (
  `id` int(11) NOT NULL,
  `generic_name` varchar(255) NOT NULL,
  `generic_description` text NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `generic_image` varchar(255) NOT NULL,
  `inventory_ledger_id` int(11) NOT NULL,
  `cost_of_sales_ledger_id` int(11) NOT NULL,
  `sales_ledger_id` int(11) NOT NULL,
  `cost_of_gift_ledger_id` 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;

--
-- Dumping data for table `erp_inventory_generic_name`
--

INSERT INTO `erp_inventory_generic_name` (`id`, `generic_name`, `generic_description`, `isDefault`, `generic_image`, `inventory_ledger_id`, `cost_of_sales_ledger_id`, `sales_ledger_id`, `cost_of_gift_ledger_id`, `is_Active`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Accessories', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(2, 'Braces', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(3, 'Case', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-06-01 00:00:00'),
(4, 'Castors', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(5, 'Corners', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(6, 'Dishes', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(7, 'Extrusion', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(8, 'Feet', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(9, 'Flightpanel', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(10, 'Foams', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(11, 'Halcon', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(12, 'Handles', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(13, 'Hinges', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(14, 'Industrial', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(15, 'Laminates', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(16, 'Latches', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(17, 'Lidstay', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(18, 'Music Mixers', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 8, '2025-05-26 00:00:00'),
(19, 'Others', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 8, '2025-06-23 00:00:00'),
(20, 'Plywood', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(21, 'Rack Drawers', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(22, 'Rivets', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(23, 'SKB Case', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(24, 'SKB Cases', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(25, 'Sports', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(26, 'Table Legs', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(27, 'Tooling', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(28, 'None', '', 'Y', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 8, '2025-06-27 00:00:00'),
(29, 'Road Bikes', '', 'N', '', 0, 0, 0, 0, 'Y', 8, '2025-05-26 00:00:00', 0, '0000-00-00 00:00:00'),
(30, 'Vt1', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-07-16 16:46:20', 1, '2025-07-16 16:46:20');

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

--
-- Table structure for table `erp_inventory_goods_issue`
--

CREATE TABLE `erp_inventory_goods_issue` (
  `id` int(11) NOT NULL,
  `goods_issue_date` date NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `ticket_id` int(11) NOT NULL,
  `ledger_id` int(11) NOT NULL,
  `subledger_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL COMMENT 'planned_maintenance',
  `warehouse_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `issue_notification` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `issue_type` enum('D','E','M','L','N','S','PR','WI') NOT NULL DEFAULT 'N' COMMENT 'Damage,Near Expiry, Missing, Loss,None',
  `unit_id` int(11) NOT NULL,
  `reference_id` int(11) NOT NULL COMMENT 'production_order_id',
  `production_order_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_goods_issue`
--

INSERT INTO `erp_inventory_goods_issue` (`id`, `goods_issue_date`, `file_id`, `ticket_id`, `ledger_id`, `subledger_id`, `customer_id`, `project_id`, `project_classification_id`, `contract_id`, `warehouse_id`, `notes`, `terms_and_conditions`, `remarks`, `reference`, `issue_notification`, `isActive`, `stock_updated`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `posted`, `issue_type`, `unit_id`, `reference_id`, `production_order_id`) VALUES
(20001, '2025-05-06', 0, 0, 0, 0, 0, 10001, 0, 0, 1, '', '', '', '101', '', 'Y', 'Y', 1, 0, '2025-05-06 11:23:59', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20002, '2025-05-19', 0, 0, 0, 0, 1004, 0, 0, 0, 1, '', '', '', 'RAM25-PRO5896', '', 'Y', 'Y', 8, 0, '2025-05-19 03:56:05', '0000-00-00 00:00:00', 'N', 'N', 0, 2147483647, 0),
(20003, '2025-05-20', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 8, 0, '2025-05-20 04:35:33', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20004, '2025-05-20', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '--', '', 'Y', 'Y', 8, 8, '2025-05-20 04:51:51', '2025-05-21 07:28:01', 'N', 'N', 0, 1, 0),
(20005, '2025-05-21', 0, 1, 0, 0, 0, 0, 1, 0, 1, '', '', '', 'PGI', '', 'Y', 'Y', 8, 8, '2025-05-21 07:26:40', '0000-00-00 00:00:00', 'N', '', 0, 20001, 0),
(20006, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '--', '', 'Y', 'Y', 8, 0, '2025-05-21 10:21:58', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20007, '2025-05-21', 0, 0, 0, 0, 0, 10001, 0, 0, 1, '', '', '', '1001', '', 'Y', 'Y', 1, 0, '2025-05-21 03:21:54', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20008, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 1, '2025-05-21 03:40:20', '2025-06-11 01:54:56', 'N', 'N', 0, 1003, 0),
(20009, '2025-05-21', 0, 0, 0, 0, 1019, 10001, 0, 0, 1, '', '', '', 'Ref01', '', 'Y', 'Y', 1, 0, '2025-05-21 04:03:34', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20010, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 0, '2025-05-21 04:17:35', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20011, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 0, '2025-05-21 04:20:57', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20012, '2025-05-21', 0, 0, 0, 0, 1002, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 8, '2025-05-21 04:26:57', '2025-05-21 04:56:08', 'N', 'N', 0, 0, 0),
(20013, '2025-05-21', 0, 0, 0, 0, 1019, 10003, 0, 0, 1, '', '', '', 'Ref01', '', 'Y', 'Y', 8, 0, '2025-05-21 04:39:32', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20014, '2025-05-23', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-05-23 07:48:38', '0000-00-00 00:00:00', 'N', '', 0, 20002, 0),
(20015, '2025-06-10', 0, 0, 0, 0, 1092, 0, 0, 0, 1, '', '', '', '20023', '', 'Y', 'Y', 1, 0, '2025-06-10 03:40:29', '0000-00-00 00:00:00', 'N', 'N', 0, 20023, 0),
(20016, '2025-06-11', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Test', '', 'Y', 'Y', 1, 0, '2025-06-11 11:52:34', '0000-00-00 00:00:00', 'N', '', 0, 20002, 0),
(20017, '2025-06-12', 0, 0, 0, 0, 1089, 0, 0, 0, 1, '', '', '', 'Test', '', 'Y', 'Y', 1, 1, '2025-06-12 01:59:46', '2025-06-12 03:30:26', 'N', 'N', 0, 2001, 0),
(20018, '2025-06-13', 0, 0, 0, 0, 1089, 0, 0, 0, 1, '', '', '', '123', '', 'Y', 'Y', 1, 0, '2025-06-13 09:47:08', '0000-00-00 00:00:00', 'N', '', 0, 2002, 0),
(20019, '2025-06-23', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-23 05:11:43', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20020, '2025-06-24', 0, 0, 0, 0, 1001, 10001, 0, 0, 1, '', '', '', '7896666', '', 'Y', 'Y', 8, 0, '2025-06-24 08:46:12', '0000-00-00 00:00:00', 'N', 'N', 0, 2001, 0),
(20021, '2025-06-24', 0, 0, 0, 0, 1002, 10001, 0, 0, 1, '', '', '', 'ref 123', '', 'Y', 'Y', 8, 0, '2025-06-24 08:48:04', '0000-00-00 00:00:00', 'N', 'N', 0, 2002, 0),
(20022, '2025-06-24', 0, 0, 0, 0, 1092, 10001, 0, 0, 1, '', '', '', 'REFI1111', '', 'Y', 'Y', 8, 0, '2025-06-24 17:10:41', '0000-00-00 00:00:00', 'N', '', 0, 0, 0),
(20023, '2025-06-27', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '2007', '', 'Y', 'Y', 1, 0, '2025-06-27 18:19:52', '0000-00-00 00:00:00', 'N', '', 0, 2007, 0),
(20024, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 09:01:59', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20025, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 09:05:18', '0000-00-00 00:00:00', 'N', 'PR', 0, 2010, 0),
(20026, '2025-06-30', 0, 0, 0, 0, 0, 10002, 0, 0, 1, '', '', '', 'REF-M-1001', '', 'Y', 'Y', 8, 0, '2025-06-30 09:54:09', '0000-00-00 00:00:00', 'N', 'PR', 0, 2010, 0),
(20027, '2025-06-30', 0, 0, 0, 0, 0, 10007, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 10:07:32', '0000-00-00 00:00:00', 'N', 'PR', 0, 2011, 0),
(20028, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1001', '', 'Y', 'Y', 8, 0, '2025-06-30 10:32:50', '0000-00-00 00:00:00', 'N', 'PR', 0, 2010, 0),
(20029, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 10:35:43', '0000-00-00 00:00:00', 'N', 'PR', 0, 2012, 0),
(20030, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 10:45:21', '0000-00-00 00:00:00', 'N', 'PR', 0, 2012, 0),
(20031, '2025-06-30', 0, 0, 0, 0, 1010, 10007, 0, 0, 1, '', '', '', 'JUNE PROJECT 2017', '', 'Y', 'Y', 1, 0, '2025-06-30 10:59:24', '0000-00-00 00:00:00', 'N', 'PR', 0, 0, 0),
(20032, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1005', '', 'Y', 'Y', 8, 0, '2025-06-30 14:04:18', '0000-00-00 00:00:00', 'N', 'PR', 0, 2014, 0),
(20033, '2025-06-30', 0, 0, 0, 0, 1001, 0, 0, 0, 1, '', '', '', '20026', '', 'Y', 'Y', 8, 0, '2025-06-30 15:12:09', '0000-00-00 00:00:00', 'N', 'PR', 0, 2015, 0),
(20034, '2025-06-30', 0, 0, 0, 0, 1028, 0, 0, 0, 1, '', '', '', '20003', '', 'Y', 'Y', 8, 0, '2025-06-30 15:30:44', '0000-00-00 00:00:00', 'N', 'PR', 0, 2009, 0),
(20035, '2025-09-22', 0, 0, 0, 0, 1002, 10001, 0, 0, 1, '', '', '', 'test athulya edit', '', 'Y', 'Y', 1, 13, '2025-09-22 12:31:19', '2025-09-22 12:31:45', 'N', 'PR', 0, 0, 0),
(20036, '2025-09-29', 0, 0, 0, 0, 1002, 10001, 0, 0, 1, '', '', '', '10001', '', 'Y', 'Y', 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20037, '2025-10-03', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'N', 1, 0, '2025-10-03 15:18:35', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20038, '2025-10-03', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'N', 1, 0, '2025-10-03 16:48:52', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20039, '2025-10-03', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '2', '', 'Y', 'Y', 1, 0, '2025-10-03 16:53:27', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20040, '2025-10-16', 0, 0, 0, 0, 1004, 0, 0, 0, 1, '', '', '', 'test athulya', '', 'Y', 'Y', 1, 0, '2025-10-16 08:44:56', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0);

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

--
-- Table structure for table `erp_inventory_goods_issue_item`
--

CREATE TABLE `erp_inventory_goods_issue_item` (
  `id` int(11) NOT NULL,
  `inventory_goods_issue_id` int(11) NOT NULL COMMENT 'foreign key to material receipt table',
  `product_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `picked_qty` decimal(15,2) DEFAULT NULL,
  `product_location_id` int(11) 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;

--
-- Dumping data for table `erp_inventory_goods_issue_item`
--

INSERT INTO `erp_inventory_goods_issue_item` (`id`, `inventory_goods_issue_id`, `product_id`, `product_name`, `description`, `unit`, `rate`, `picked_qty`, `product_location_id`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 20001, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 2.00, 0, 1, 0, '2025-05-06 11:23:59', '0000-00-00 00:00:00'),
(2, 20002, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 40.00, 0, 8, 0, '2025-05-19 15:56:05', '0000-00-00 00:00:00'),
(3, 20002, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 15.336, 34.00, 0, 8, 0, '2025-05-19 15:56:05', '0000-00-00 00:00:00'),
(4, 20003, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 139.000, 20.00, 0, 8, 0, '2025-05-20 16:35:33', '0000-00-00 00:00:00'),
(5, 20003, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 77.000, 25.00, 0, 8, 0, '2025-05-20 16:35:33', '0000-00-00 00:00:00'),
(9, 20004, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 77.000, 1.00, 0, 8, 0, '2025-05-21 07:28:01', '0000-00-00 00:00:00'),
(7, 20005, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 1.00, 1, 8, 0, '2025-05-21 07:26:40', '0000-00-00 00:00:00'),
(10, 20006, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 3.200, 2.00, 0, 8, 0, '2025-05-21 10:21:58', '0000-00-00 00:00:00'),
(11, 20006, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 5.380, 2.00, 0, 8, 0, '2025-05-21 10:21:58', '0000-00-00 00:00:00'),
(12, 20007, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 1.00, 0, 1, 0, '2025-05-21 15:21:54', '0000-00-00 00:00:00'),
(26, 20008, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 5.00, 0, 1, 0, '2025-06-11 13:54:56', '0000-00-00 00:00:00'),
(14, 20009, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 11.000, 1.00, 0, 1, 0, '2025-05-21 16:03:34', '0000-00-00 00:00:00'),
(15, 20010, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 4.00, 0, 1, 0, '2025-05-21 16:17:35', '0000-00-00 00:00:00'),
(16, 20011, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 5.00, 0, 1, 0, '2025-05-21 16:20:57', '0000-00-00 00:00:00'),
(19, 20012, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 1.00, 0, 8, 0, '2025-05-21 16:56:08', '0000-00-00 00:00:00'),
(18, 20013, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 11.000, 1.00, 0, 8, 0, '2025-05-21 16:39:32', '0000-00-00 00:00:00'),
(20, 20014, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 3.00, 0, 8, 0, '2025-05-23 07:48:38', '0000-00-00 00:00:00'),
(21, 20014, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 5.00, 0, 8, 0, '2025-05-23 07:48:38', '0000-00-00 00:00:00'),
(22, 20015, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', '349', 25.000, 1.00, 0, 1, 0, '2025-06-10 15:40:29', '0000-00-00 00:00:00'),
(23, 20016, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 3.00, 0, 1, 0, '2025-06-11 11:52:34', '0000-00-00 00:00:00'),
(24, 20016, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 5.00, 0, 1, 0, '2025-06-11 11:52:34', '0000-00-00 00:00:00'),
(30, 20017, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 6.00, 0, 1, 0, '2025-06-12 15:30:26', '0000-00-00 00:00:00'),
(29, 20017, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 4.00, 0, 1, 0, '2025-06-12 15:30:26', '0000-00-00 00:00:00'),
(31, 20018, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 1.00, 0, 1, 0, '2025-06-13 09:47:08', '0000-00-00 00:00:00'),
(32, 20018, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 2.00, 0, 1, 0, '2025-06-13 09:47:08', '0000-00-00 00:00:00'),
(33, 20019, 672, '1001', 'Test Item', '672', 10.000, 10.00, 0, 8, 0, '2025-06-23 17:11:43', '0000-00-00 00:00:00'),
(34, 20020, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 4.00, 0, 8, 0, '2025-06-24 08:46:12', '0000-00-00 00:00:00'),
(35, 20020, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 6.00, 0, 8, 0, '2025-06-24 08:46:12', '0000-00-00 00:00:00'),
(36, 20021, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 2.00, 0, 8, 0, '2025-06-24 08:48:04', '0000-00-00 00:00:00'),
(37, 20021, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 3.00, 0, 8, 0, '2025-06-24 08:48:04', '0000-00-00 00:00:00'),
(38, 20022, 668, 'A10001', 'Test Item A10001', '668', 28.561, 10.00, 0, 8, 0, '2025-06-24 17:10:41', '0000-00-00 00:00:00'),
(39, 20023, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 2.00, 0, 1, 0, '2025-06-27 18:19:52', '0000-00-00 00:00:00'),
(40, 20023, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 3.00, 0, 1, 0, '2025-06-27 18:19:52', '0000-00-00 00:00:00'),
(41, 20024, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 70.133, 1.00, 0, 8, 0, '2025-06-30 09:01:59', '0000-00-00 00:00:00'),
(42, 20025, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:05:18', '0000-00-00 00:00:00'),
(43, 20025, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:05:18', '0000-00-00 00:00:00'),
(44, 20026, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:54:09', '0000-00-00 00:00:00'),
(45, 20026, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:54:09', '0000-00-00 00:00:00'),
(46, 20027, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 2.00, 0, 8, 0, '2025-06-30 10:07:32', '0000-00-00 00:00:00'),
(47, 20027, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 3.00, 0, 8, 0, '2025-06-30 10:07:32', '0000-00-00 00:00:00'),
(48, 20028, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:32:50', '0000-00-00 00:00:00'),
(49, 20028, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:32:50', '0000-00-00 00:00:00'),
(50, 20029, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:35:43', '0000-00-00 00:00:00'),
(51, 20029, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:35:43', '0000-00-00 00:00:00'),
(52, 20030, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 0.000, 5.00, 0, 8, 0, '2025-06-30 10:45:21', '0000-00-00 00:00:00'),
(53, 20030, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 0.000, 5.00, 0, 8, 0, '2025-06-30 10:45:21', '0000-00-00 00:00:00'),
(54, 20031, 667, 'IMP001', 'Shipping Charges', '667', 0.000, 1.00, 0, 1, 0, '2025-06-30 10:59:24', '0000-00-00 00:00:00'),
(55, 20031, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 0.000, 10.00, 0, 1, 0, '2025-06-30 10:59:24', '0000-00-00 00:00:00'),
(56, 20032, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 1.00, 0, 8, 0, '2025-06-30 14:04:18', '0000-00-00 00:00:00'),
(57, 20032, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 1.00, 0, 8, 0, '2025-06-30 14:04:18', '0000-00-00 00:00:00'),
(58, 20033, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 2.00, 0, 8, 0, '2025-06-30 15:12:09', '0000-00-00 00:00:00'),
(59, 20033, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 3.00, 0, 8, 0, '2025-06-30 15:12:09', '0000-00-00 00:00:00'),
(60, 20034, 664, 'D100001', 'Dummy Item', '664', 0.000, 1.00, 0, 8, 0, '2025-06-30 15:30:44', '0000-00-00 00:00:00'),
(74, 20035, 212, 'B1130', '4 Hole Brace - Rounded', '212', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(72, 20035, 20, 'B1131', '6 Hole Brace', '20', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(73, 20035, 22, 'B1631', '3-Way Divider Brace for 9.2mm / 3/8 panels', '22', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(71, 20035, 185, 'W0975-V6', 'Castor 4- Fixed', '185', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(70, 20035, 156, 'W8675', 'Die-Cast Corner Castor with Heavy Duty 75mm / 3 Diameter Wheel - Recommended Load Capacity per Wheel: 150kg/330.69lb', '156', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(69, 20035, 154, 'W2065Z', 'Steel Recessed Castor with 64mm / 2.52 Diameter Black Wheel', '154', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(75, 20035, 153, 'W0964Z', 'Recess Castor Dish - Square', '153', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(76, 20035, 60, 'G1570', 'G1570 Fan Grill/Guard', '60', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(77, 20036, 154, 'W2065Z', 'Steel Recessed Castor with 64mm / 2.52 Diameter Black Wheel', '154', 0.000, 3.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(78, 20036, 156, 'W8675', 'Die-Cast Corner Castor with Heavy Duty 75mm / 3 Diameter Wheel - Recommended Load Capacity per Wheel: 150kg/330.69lb', '156', 0.000, 4.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(79, 20036, 185, 'W0975-V6', 'Castor 4- Fixed', '185', 0.000, 7.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(80, 20036, 20, 'B1131', '6 Hole Brace', '20', 0.000, 2.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(81, 20036, 153, 'W0964Z', 'Recess Castor Dish - Square', '153', 0.000, 3.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(82, 20036, 60, 'G1570', 'G1570 Fan Grill/Guard', '60', 0.000, 3.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(83, 20037, 681, 'A1001', 'Test Item for A100', '681', 10.000, 2.00, 0, 1, 0, '2025-10-03 15:18:35', '0000-00-00 00:00:00'),
(84, 20038, 681, 'A1001', 'Test Item for A100', '681', 10.000, 2.00, 0, 1, 0, '2025-10-03 16:48:52', '0000-00-00 00:00:00'),
(85, 20039, 681, 'A1001', 'Test Item for A100', '681', 10.000, 2.00, 0, 1, 0, '2025-10-03 16:53:27', '0000-00-00 00:00:00'),
(86, 20040, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 132.382, 10.00, 0, 1, 0, '2025-10-16 08:44:56', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_inventory_goods_receipt`
--

CREATE TABLE `erp_inventory_goods_receipt` (
  `id` int(11) NOT NULL,
  `goods_receipt_date` date NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `customer_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `reference` varchar(5000) NOT NULL,
  `receipt_notification` varchar(500) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `receipt_type` varchar(25) NOT NULL,
  `stock_updated` 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_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `reference_id` int(11) NOT NULL COMMENT 'production_order_id'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_goods_receipt`
--

INSERT INTO `erp_inventory_goods_receipt` (`id`, `goods_receipt_date`, `file_id`, `customer_id`, `project_id`, `ticket_id`, `contract_id`, `project_classification_id`, `warehouse_id`, `notes`, `terms_and_conditions`, `remarks`, `reference`, `receipt_notification`, `posted`, `receipt_type`, `stock_updated`, `isActive`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `reference_id`) VALUES
(10008, '2025-06-13', 0, 1089, 0, 0, 0, 0, 1, '', '', '', '123', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-13 09:48:25', '0000-00-00 00:00:00', 0),
(10007, '2025-06-12', 0, 1089, 0, 0, 0, 0, 1, '', '', '', 'New Test', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-12 04:00:39', '0000-00-00 00:00:00', 0),
(10006, '2025-06-12', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Test', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-12 09:47:58', '0000-00-00 00:00:00', 0),
(10009, '2025-06-23', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'ref', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-23 05:11:19', '0000-00-00 00:00:00', 0),
(10010, '2025-06-24', 0, 1001, 0, 0, 0, 0, 4, '', '', '', 'REF2003', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-24 17:18:29', '0000-00-00 00:00:00', 0),
(10011, '2025-06-25', 0, 1019, 0, 0, 0, 0, 1, '', '', '', '12', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-25 17:10:13', '0000-00-00 00:00:00', 0),
(10012, '2025-06-27', 0, 0, 0, 0, 0, 0, 1, '', '', '', '2007', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-27 18:21:49', '0000-00-00 00:00:00', 0),
(10014, '2025-06-30', 0, 1089, 0, 0, 0, 0, 1, '', '', '', '2001-test', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-30 08:37:46', '0000-00-00 00:00:00', 2001),
(10015, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-30 09:03:01', '0000-00-00 00:00:00', 0),
(10016, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF-M-1001', '', 'N', 'PRO', 'Y', 'Y', 8, 0, '2025-06-30 10:05:42', '0000-00-00 00:00:00', 2010),
(10017, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'PRO', 'Y', 'Y', 8, 0, '2025-06-30 10:12:09', '0000-00-00 00:00:00', 2011),
(10018, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'PRO', 'Y', 'Y', 8, 0, '2025-06-30 10:36:27', '0000-00-00 00:00:00', 2012),
(10019, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 10:46:58', '0000-00-00 00:00:00', 2012),
(10020, '2025-06-30', 0, 1001, 0, 0, 0, 0, 1, '', '', '', '20027', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 11:58:02', '0000-00-00 00:00:00', 2013),
(10021, '2025-06-30', 0, 1001, 0, 0, 0, 0, 1, '', '', '', '20026', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 15:16:49', '0000-00-00 00:00:00', 2015),
(10022, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1001', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-30 15:30:06', '0000-00-00 00:00:00', 0),
(10023, '2025-06-30', 0, 1001, 0, 0, 0, 0, 1, '', '', '', '20026', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 15:34:19', '0000-00-00 00:00:00', 2015),
(10024, '2025-07-01', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1001', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-07-01 13:46:50', '0000-00-00 00:00:00', 0),
(10025, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'N', 'Y', 1, 0, '2025-07-03 12:09:32', '0000-00-00 00:00:00', 0),
(10026, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'N', 'Y', 1, 0, '2025-07-03 12:14:34', '0000-00-00 00:00:00', 0),
(10027, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 1, 0, '2025-07-03 12:14:53', '0000-00-00 00:00:00', 0),
(10028, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 1, 0, '2025-07-03 12:16:56', '0000-00-00 00:00:00', 0),
(10029, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 1, 0, '2025-07-03 04:05:15', '0000-00-00 00:00:00', 0),
(10030, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00', 0),
(10031, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00', 0),
(10032, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00', 0),
(10033, '2025-07-16', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', 'N', 'N', 'Y', 1, 13, '2025-07-16 04:27:23', '2025-09-22 12:40:38', 0),
(10034, '2025-09-22', 0, 1028, 0, 0, 0, 0, 1, '', '', '', 'Testting', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-09-22 12:33:06', '0000-00-00 00:00:00', 11),
(10035, '2025-10-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-10-03 15:14:52', '0000-00-00 00:00:00', 0),
(10036, '2025-10-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-10-03 15:19:15', '0000-00-00 00:00:00', 0),
(10037, '2025-10-06', 0, 0, 0, 0, 0, 0, 1, '', '', '', '	03-DD-B-30063/ISS2', '', 'N', 'N', 'N', 'Y', 1, 0, '2025-10-06 10:26:51', '0000-00-00 00:00:00', 3),
(10038, '2025-10-06', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Product 003', '', 'N', 'N', 'N', 'Y', 1, 0, '2025-10-06 10:50:26', '0000-00-00 00:00:00', 0),
(10039, '2025-10-06', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'pro01', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-10-06 10:55:00', '0000-00-00 00:00:00', 0);

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

--
-- Table structure for table `erp_inventory_goods_receipt_item`
--

CREATE TABLE `erp_inventory_goods_receipt_item` (
  `id` int(11) NOT NULL,
  `inventory_goods_receipt_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `product_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `product_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `old_rate` decimal(15,6) NOT NULL,
  `picked_qty` decimal(15,2) DEFAULT NULL,
  `po_item_id` int(11) 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;

--
-- Dumping data for table `erp_inventory_goods_receipt_item`
--

INSERT INTO `erp_inventory_goods_receipt_item` (`id`, `inventory_goods_receipt_id`, `product_id`, `product_name`, `description`, `unit`, `rate`, `old_rate`, `picked_qty`, `po_item_id`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 10001, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 25.000000, 0.000000, 1.00, 20001, 8, 0, '2025-05-21 07:26:40', '0000-00-00 00:00:00'),
(2, 10002, 449, '3i-1914-8B-E', 'iSeries 1914-8 Waterproof Utility Case with Wheels', '449', 455.650000, 0.000000, 100.00, 0, 8, 0, '2025-05-22 11:06:26', '0000-00-00 00:00:00'),
(3, 10003, 668, 'A10001', 'Test Item A10001', '668', 394.600000, 0.000000, 1.00, 0, 8, 0, '2025-05-23 09:10:43', '0000-00-00 00:00:00'),
(4, 10004, 668, 'A10001', 'Test Item A10001', '668', 394.600000, 0.000000, 1.00, 0, 8, 0, '2025-05-23 09:17:05', '0000-00-00 00:00:00'),
(5, 10005, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 15.430000, 0.000000, 20.00, 0, 8, 0, '2025-06-01 21:30:16', '0000-00-00 00:00:00'),
(6, 10006, 27, 'BPLY-004', '9mm Russian Birch Ply Local (2400x1200mm)', '27', 1.345000, 0.000000, 4.00, 0, 1, 0, '2025-06-12 09:47:58', '0000-00-00 00:00:00'),
(7, 10007, 27, 'BPLY-004', '9mm Russian Birch Ply Local (2400x1200mm)', '27', 10.000000, 0.000000, 5.00, 0, 1, 0, '2025-06-12 16:00:39', '0000-00-00 00:00:00'),
(8, 10007, 28, 'BPLY-005', '9mm Russian Pine Ply Local (2400x1200mm)', '28', 20.000000, 0.000000, 3.00, 0, 1, 0, '2025-06-12 16:00:39', '0000-00-00 00:00:00'),
(9, 10008, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 3.200000, 0.000000, 1.00, 0, 1, 0, '2025-06-13 09:48:25', '0000-00-00 00:00:00'),
(10, 10008, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 5.380000, 0.000000, 2.00, 0, 1, 0, '2025-06-13 09:48:25', '0000-00-00 00:00:00'),
(11, 10009, 672, '1001', 'Test Item', '672', 10.000000, 0.000000, 100.00, 0, 8, 0, '2025-06-23 17:11:19', '0000-00-00 00:00:00'),
(12, 10010, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 15.430000, 0.000000, 1.00, 0, 8, 0, '2025-06-24 17:18:29', '0000-00-00 00:00:00'),
(13, 10011, 668, 'A10001', 'Test Item A10001', '668', 28.560000, 0.000000, 5.00, 0, 8, 0, '2025-06-25 17:10:13', '0000-00-00 00:00:00'),
(14, 10012, 668, 'A10001', 'Test Item A10001', '668', 27.290000, 0.000000, 1.00, 0, 1, 0, '2025-06-27 18:21:49', '0000-00-00 00:00:00'),
(15, 10013, 668, 'A10001', 'Test Item A10001', '668', 22.540000, 0.000000, 2.00, 0, 8, 0, '2025-06-30 08:32:44', '0000-00-00 00:00:00'),
(16, 10014, 668, 'A10001', 'Test Item A10001', '668', 22.540000, 0.000000, 2.00, 0, 8, 0, '2025-06-30 08:37:46', '0000-00-00 00:00:00'),
(17, 10015, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 70.130000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 09:03:01', '0000-00-00 00:00:00'),
(18, 10016, 675, 'A10002', 'Test Item', '675', 143.580000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 10:05:42', '0000-00-00 00:00:00'),
(19, 10017, 675, 'A10002', 'Test Item', '675', 360.610000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 10:12:09', '0000-00-00 00:00:00'),
(20, 10018, 6, '1908', 'Strap Hinges', '6', 35.000000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 10:36:27', '0000-00-00 00:00:00'),
(21, 10019, 6, '1908', 'Strap Hinges', '6', 35.000000, 0.000000, 4.00, 0, 8, 0, '2025-06-30 10:46:58', '0000-00-00 00:00:00'),
(22, 10020, 675, 'A10002', 'Test Item', '675', 20.440000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 11:58:02', '0000-00-00 00:00:00'),
(23, 10021, 668, 'A10001', 'Test Item A10001', '668', 22.840000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 15:16:49', '0000-00-00 00:00:00'),
(24, 10022, 664, 'D100001', 'Dummy Item', '664', 10.000000, 0.000000, 100.00, 0, 8, 0, '2025-06-30 15:30:06', '0000-00-00 00:00:00'),
(25, 10023, 668, 'A10001', 'Test Item A10001', '668', 22.840000, 0.000000, 1.00, 0, 8, 0, '2025-06-30 15:34:19', '0000-00-00 00:00:00'),
(26, 10024, 668, 'A10001', 'Test Item A10001', '668', 26.840000, 0.000000, 1000.00, 0, 8, 0, '2025-07-01 13:46:50', '0000-00-00 00:00:00'),
(27, 10027, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 150.000000, 0.000000, 100.00, 0, 1, 0, '2025-07-03 12:14:53', '0000-00-00 00:00:00'),
(28, 10028, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 150.000000, 0.000000, 100.00, 0, 1, 0, '2025-07-03 12:16:56', '0000-00-00 00:00:00'),
(29, 10029, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 150.000000, 0.000000, 100.00, 0, 1, 0, '2025-07-03 04:05:15', '0000-00-00 00:00:00'),
(30, 10030, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 52.000000, 0.000000, 14.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(31, 10030, 6, '1908', 'Strap Hinges', '6', 8.090000, 0.000000, 179.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(32, 10030, 11, '33646SF', 'Black Laminate 4  x 8 x 0.9mm', '11', 43.370000, 0.000000, 114.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(33, 10030, 13, '4440-99-224-6993', 'Desiccant Silica Gel 100gms', '13', 7.320000, 0.000000, 20000.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(34, 10030, 15, '5-02201-94', 'GT2200 Smart Padlock Silver S-Shackle', '15', 163.710000, 0.000000, 86.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(35, 10030, 18, 'B1121', '4 Hole Brace', '18', 0.480000, 0.000000, 2988.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(36, 10030, 20, 'B1131', '6 Hole Brace', '20', 0.910000, 0.000000, 10784.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(37, 10030, 21, 'B1141', 'L-Brace. Both Legs 20mm / 13/16', '21', 1.070000, 0.000000, 902.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(38, 10030, 22, 'B1631', '3-Way Divider Brace for 9.2mm / 3/8 panels', '22', 0.890000, 0.000000, 3003.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(39, 10030, 23, 'B1641', '4-Way Divider Brace for 9.2mm / 3/8 panels', '23', 1.280000, 0.000000, 2980.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(40, 10030, 30, 'C0675Z', 'Medium Flat Corner', '30', 1.410000, 0.000000, 1614.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(41, 10030, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 1.620000, 0.000000, 1946.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(42, 10030, 32, 'C1340Z', '3-Leg Large Ball Corner-Male', '32', 2.500000, 0.000000, 8045.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(43, 10030, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', '34', 2.290000, 0.000000, 4940.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(44, 10030, 35, 'C1373/01', '2Leg Brace Ball Corner with 67mm / 2.64 Leg-Female', '35', 1.910000, 0.000000, 1334.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(45, 10030, 37, 'C1384Z', '3-LegLarge Ball Corner- Stackable/Female', '37', 0.960000, 0.000000, 2474.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(46, 10030, 38, 'C1935Z', 'Medium Flat Corners- Female Stacking', '38', 1.710000, 0.000000, 1959.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(47, 10030, 39, 'CNC000161', 'Top Insert 283x153x85 LD33 BKPF05858', '39', 22.140000, 0.000000, 1992.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(48, 10030, 40, 'CNC000162', 'Bottom Insert 272x177x85 LD33 BKPF05859', '40', 22.140000, 0.000000, 1536.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(49, 10030, 41, 'D0553Z', 'Lid Stays Top 17.1mm / 11/16 & Bottom 19.7mm / 3/4', '41', 9.110000, 0.000000, 2140.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(50, 10030, 42, 'D0553Z-SD', 'Large Lidstay with Anti-Slam System', '42', 11.990000, 0.000000, 524.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(51, 10030, 43, 'D0593K', 'Medium Lid Stay in 10mm / 3/8 Deep Dish-Black', '43', 8.810000, 0.000000, 200.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(52, 10030, 44, 'D0597Z', 'Medium Lid Stay in 10mm / 3/8 Deep Dish', '44', 8.450000, 0.000000, 3294.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(53, 10030, 47, 'D0941Z', 'Rectangular Plain Dish', '47', 3.030000, 0.000000, 5139.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(54, 10030, 48, 'D2101Z', 'Large Plain Dish', '48', 5.240000, 0.000000, 62.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(55, 10030, 49, 'D2115Z', 'Recessed Label Dish for Self-Adhesive Tour Labels', '49', 9.440000, 0.000000, 923.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(56, 10030, 50, 'D2116Z', 'Recessed Label Dish for Self-Adhesive Tour Labels', '50', 9.240000, 0.000000, 1181.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(57, 10030, 54, 'F0615', 'Stacking Feet - Male', '54', 3.440000, 0.000000, 227.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(58, 10030, 55, 'F0620', 'Stacking Feet - Female', '55', 3.440000, 0.000000, 56.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(59, 10030, 56, 'F1687', 'Rubber Feet', '56', 0.830000, 0.000000, 954.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(60, 10030, 57, 'FMD-A-2', 'Rubber Shockmount-RED', '57', 20.000000, 0.000000, 64.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(61, 10030, 58, 'FRD601', 'M6 T-Nut with 4points- Round basis- Zinc', '58', 0.090000, 0.000000, 7255.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(62, 10030, 59, 'FRD801', 'M8 T-Nut with 4points- Round basis- Zinc', '59', 0.180000, 0.000000, 5396.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(63, 10030, 60, 'G1570', 'G1570 Fan Grill/Guard', '60', 11.000000, 0.000000, 55.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(64, 10030, 65, 'GR5*8', '5x8mm Aluminum Steel Grooved Rivets', '65', 0.040000, 0.000000, 144000.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(65, 10030, 66, 'H1009', 'Strap Handle with Metal End Caps and Plastic Covers', '66', 2.720000, 0.000000, 115.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(66, 10030, 67, 'H1026Z', 'Corner Handle', '67', 19.580000, 0.000000, 1148.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(67, 10030, 68, 'H1052Z', 'Sprung Surface Handle', '68', 4.930000, 0.000000, 1124.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(68, 10030, 69, 'H1190', 'PVC Covered Spring Handle', '69', 11.300000, 0.000000, 62.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(69, 10030, 70, 'H1425', 'Briefcase Swivel Handle', '70', 3.520000, 0.000000, 41.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(70, 10030, 71, 'H2000', 'Recessed Pull-Out Handle', '71', 47.260000, 0.000000, 19.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(71, 10030, 73, 'H2017/DC', 'Recessed Pull-Out Handle- Die Cast Dish', '73', 79.450000, 0.000000, 12.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(72, 10030, 74, 'H7151K', 'Medium Recessed Handles- Black', '74', 9.470000, 0.000000, 287.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(73, 10030, 75, 'H7151Z', 'Medium Recessed Handle', '75', 7.940000, 0.000000, 8279.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(74, 10030, 76, 'L0350', 'Black Lever Latch', '76', 11.870000, 0.000000, 157.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(75, 10030, 78, 'L0565Z', 'Large Draw Bolt- Padlockable.', '78', 2.570000, 0.000000, 66.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(76, 10030, 79, 'L0968Z', 'Valance Spanning Overlatch in plain dish', '79', 16.630000, 0.000000, 537.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(77, 10030, 80, 'L1068Z', 'Slam Latch', '80', 29.350000, 0.000000, 90.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(78, 10030, 81, 'L903/7336Z', '2 Unit Rack Lid Latch in Narrow and Very Shallow Plain Dish', '81', 6.440000, 0.000000, 314.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(79, 10030, 82, 'L904/914PBZ', 'Small Latch in Plain Dish Padlockable', '82', 7.250000, 0.000000, 688.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(80, 10030, 83, 'L905/55/915Z', 'Crating Latch', '83', 17.480000, 0.000000, 811.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(81, 10030, 85, 'L907/927', 'Medium MOL Latch in 27mm / 1 1/16 Offset Dish with Key Lock', '85', 32.010000, 0.000000, 16.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(82, 10030, 86, 'L907/928K', 'Medium MOL Latch- Black', '86', 14.920000, 0.000000, 194.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(83, 10030, 87, 'L907/928PBZ', 'Medium MOL Latch in 27mm / 1 1/16 Offset Dish with Padlock Bracket', '87', 13.030000, 0.000000, 920.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(84, 10030, 88, 'L907/928', 'Medium MOL Latch in 27mm / 1 1/16 Offset Dish', '88', 11.220000, 0.000000, 5109.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(85, 10030, 90, 'L944/527/10PBZ', 'Large MOL Latch in 27mm / 1 1/16 Offset Dish with Padlock Bracket', '90', 21.940000, 0.000000, 7499.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(86, 10030, 92, 'L944/537/10', 'Large MOL Latch in Offset Dish', '92', 18.480000, 0.000000, 40.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(87, 10030, 93, 'M865007', 'FLight Panel - Light Weight Polypropylene Board- Black 7mm', '93', 283.910000, 0.000000, 93.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(88, 10030, 95, 'M865107', 'FLight Panel - BLUE - 7mm / 1/4', '95', 319.700000, 0.000000, 21.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(89, 10030, 96, 'M865207', 'FLight Panel - GREY - 7mm / 1/4', '96', 401.410000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(90, 10030, 97, 'M865307', 'FLight Panel - RED - 7mm / 1/4', '97', 355.850000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(91, 10030, 98, 'P0620', 'Hinge Zinc 70mm x 38.5mm Open', '98', 1.790000, 0.000000, 1814.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(92, 10030, 99, 'P0625Z', 'Lift-Off Hinge', '99', 3.240000, 0.000000, 84.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(93, 10030, 100, 'P1240', '200mm / 7.87 Locking Lid Stay', '100', 5.320000, 0.000000, 56.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(94, 10030, 101, 'P1350P', 'Lightweight Aluminium Piano Hinges- Punched', '101', 51.130000, 0.000000, 283.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(95, 10030, 104, 'P1995', 'Strut Hinge', '104', 3.430000, 0.000000, 448.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(96, 10030, 105, 'P2597Z', 'Hinge with Lid Stay in 7mm / 1/4 Shallow Dish- From Split to Hole Centre: 10mm / 3/8', '105', 8.020000, 0.000000, 13.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(97, 10030, 107, 'PK-886MF', 'Edging Extrusion - Mill Finish', '107', 16.800000, 0.000000, 912.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(98, 10030, 108, 'PK-887MF', 'Locating Extrusion 11mm - Mill Finish', '108', 14.400000, 0.000000, 908.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(99, 10030, 109, 'PK-888MF', 'Locating Extrusion 7mm - Mill Finish', '109', 11.040000, 0.000000, 373.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(100, 10030, 110, 'R0863/2MM', 'Full Hole Rack Rail - Single', '110', 25.120000, 0.000000, 739.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(101, 10030, 111, 'R0883', 'DOUBLE RACK RAIL 2 MTRS', '111', 44.370000, 0.000000, 398.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(102, 10030, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 86.920000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(103, 10030, 115, 'R129LD-50-BK', 'LD29 - 2000 x 1000 x 50mm-Black', '115', 126.890000, 0.000000, 926.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(104, 10030, 117, 'R133LD-30-BK-2M', 'LD33 - 2000 x 1000 x 30mm-Black', '117', 120.100000, 0.000000, 825.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(105, 10030, 118, 'R133LD-30-BL', 'LD33 - 2000 x 1000 x 30mm-Blue', '118', 96.740000, 0.000000, 141.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(106, 10030, 119, 'R133LD-30-BN', 'LD33 - 2000 x 1000 x 30mm-Brown', '119', 126.480000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(107, 10030, 120, 'R133LD-30-GN', 'LD33 - 2000 x 1000 x 30mm-Green', '120', 126.480000, 0.000000, 35.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(108, 10030, 122, 'R133LD-30-OR', 'LD33 - 2000 x 1000 x 30mm-Orange', '122', 121.710000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(109, 10030, 123, 'R133LD-30-PN', 'LD33 - 2000 x 1000 x 30mm-Pink', '123', 126.480000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(110, 10030, 124, 'R133LD-30-RD', 'LD33 - 2000 x 1000 x 30mm-Red', '124', 98.050000, 0.000000, 61.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(111, 10030, 125, 'R133LD-30-VT', 'LD33 - 2000 x 1000 x 30mm-Violet', '125', 126.480000, 0.000000, 7.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(112, 10030, 126, 'R133LD-30-WT', 'LD33 - 2000 x 1000 x 30mm-White', '126', 126.480000, 0.000000, 17.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(113, 10030, 127, 'R133LD-30-YL', 'LD33 - 2000 x 1000 x 30mm-Yellow', '127', 101.370000, 0.000000, 136.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(114, 10030, 128, 'R135VA-30-RD', 'EVA R135 - 2000 x 1000 x 30mm-Red', '128', 128.660000, 0.000000, 84.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(115, 10030, 129, 'R1385/1UK', '1U Black 1.5mm Thick Rack Panel', '129', 8.280000, 0.000000, 60.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(116, 10030, 130, 'R1385/2UK', '2U Black 1.5mm Thick Rack Panel', '130', 12.300000, 0.000000, 66.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(117, 10030, 132, 'R145LD-30-BK-2M', 'LD45 - 2000 x 1000 x 30mm-Black', '132', 126.430000, 0.000000, 916.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(118, 10030, 134, 'R145LD-30-FL', 'LD45 - 2000 x 1000 x 30mm-Flesh', '134', 160.880000, 0.000000, 7.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(119, 10030, 136, 'R1600', 'Folding Table Legs', '136', 244.170000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(120, 10030, 137, 'R1606F', 'Table Mounting Latch - Female', '137', 4.880000, 0.000000, 65.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(121, 10030, 138, 'R1606M', 'Table Mounting Latch - Male', '138', 13.640000, 0.000000, 66.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(122, 10030, 142, 'R305/2-50-BK', 'Etha220 - 2750 x 1200 x 50mm-Black', '142', 159.320000, 0.000000, 40.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(123, 10030, 143, 'R541/2-100-EST', 'Ester R541/2 - 2000 x 1100 x 100mm', '143', 156.110000, 0.000000, 11.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(124, 10030, 144, 'R541/2-EGG-BK', 'Eggbox R541/2 - 2040 x 1190 x 20mm', '144', 145.860000, 0.000000, 14.00, 0, 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00'),
(125, 10030, 148, 'S1160K', 'Pozidriv Pan Head Screws M6 - Black', '148', 0.210000, 0.000000, 5039.00, 0, 8, 0, '2025-07-03 04:34:27', '0000-00-00 00:00:00'),
(126, 10030, 149, 'S1172', 'Cage Nuts', '149', 0.210000, 0.000000, 5564.00, 0, 8, 0, '2025-07-03 04:34:27', '0000-00-00 00:00:00'),
(127, 10030, 150, 'S1940', 'Slim M6 Cup Washer', '150', 0.180000, 0.000000, 4428.00, 0, 8, 0, '2025-07-03 04:34:27', '0000-00-00 00:00:00'),
(128, 10030, 153, 'W0964Z', 'Recess Castor Dish - Square', '153', 3.040000, 0.000000, 400.00, 0, 8, 0, '2025-07-03 04:34:27', '0000-00-00 00:00:00'),
(129, 10030, 154, 'W2065Z', 'Steel Recessed Castor with 64mm / 2.52 Diameter Black Wheel', '154', 18.690000, 0.000000, 83.00, 0, 8, 0, '2025-07-03 04:34:27', '0000-00-00 00:00:00'),
(130, 10031, 155, 'W2100', 'Recessed Castor with 100mm / 4 Diameter Blue Wheel', '155', 30.330000, 0.000000, 116.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(131, 10031, 156, 'W8675', 'Die-Cast Corner Castor with Heavy Duty 75mm / 3 Diameter Wheel - Recommended Load Capacity per Wheel: 150kg/330.69lb', '156', 17.980000, 0.000000, 123.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(132, 10031, 158, '3i-4411-12T-01', 'Tan Case-2/10 Deep-Empty', '158', 763.640000, 0.000000, 6.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(133, 10031, 166, 'PN028ST', 'HP Laminate 4 x 8 x 0.7mm- Naranja Nieve Yellow', '166', 47.000000, 0.000000, 45.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(134, 10031, 170, '1904', 'Strap Hinges 4', '170', 4.520000, 0.000000, 385.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(135, 10031, 171, 'R50335', 'Slider for Rack Door 555mm', '171', 64.770000, 0.000000, 7.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(136, 10031, 172, 'R50338', 'Slider for Rack Door 610mm', '172', 73.000000, 0.000000, 22.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(137, 10031, 175, 'SFM-A-Y-40', 'Rubber Shockmount- Yellow', '175', 30.000000, 0.000000, 137.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(138, 10031, 182, '2129N-5', 'Locking Lid Stay 280mm / 11.02', '182', 3.950000, 0.000000, 31.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(139, 10031, 183, 'W0985-V6', 'Castor 4- Braked', '183', 26.960000, 0.000000, 2117.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(140, 10031, 184, 'W0990-V6', 'Castor 4- Swiveled', '184', 22.970000, 0.000000, 2060.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(141, 10031, 185, 'W0975-V6', 'Castor 4- Fixed', '185', 20.940000, 0.000000, 88.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(142, 10031, 187, 'R678', 'Anthracite Foam R678 45kg 2000x1000x100mm', '187', 478.180000, 0.000000, 25.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(143, 10031, 188, 'R590', 'Class O Fireseal Foam R590 2000x1000x50mm', '188', 149.270000, 0.000000, 28.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(144, 10031, 189, 'GR4.8*10', '4.8x10mm Aluminum Steel Grooved Rivets', '189', 0.050000, 0.000000, 183000.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(145, 10031, 190, 'L1037Z', 'Slam Latch Small', '190', 15.810000, 0.000000, 101.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(146, 10031, 191, 'NC2HE', 'N-Case 2 Extrusion Hybrid', '191', 10.470000, 0.000000, 16.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(147, 10031, 192, 'R2295-2UK', 'Rack Drawer Ali US 14 2U Black', '192', 164.310000, 0.000000, 49.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(148, 10031, 193, 'R2295-3UK', 'Rack Drawer Ali US 14 3U Black', '193', 166.600000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(149, 10031, 194, 'R2860-SET', 'Rack Tilt Frame', '194', 63.750000, 0.000000, 21.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(150, 10031, 196, 'NC2C3K', 'N-Case 2 Corner 3 legged', '196', 2.110000, 0.000000, 32.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(151, 10031, 197, 'NC2DAE', 'NC2 Extrusion Double Angle', '197', 19.200000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(152, 10031, 198, 'NC2HCBK', 'N-Case 2 Corner Hybrid base', '198', 2.110000, 0.000000, 32.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(153, 10031, 199, 'NC2HCLK', 'N-Case 2 Corner Hybrid', '199', 2.110000, 0.000000, 32.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(154, 10031, 200, 'NC2LC54K', 'N-Case 2 Lidmaker Corner', '200', 2.210000, 0.000000, 24.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(155, 10031, 201, 'NC2LE54', 'N-C2 Lidmaker Extrusion 54mm', '201', 17.670000, 0.000000, 6.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(156, 10031, 202, 'P1250-05', 'Adjustable Ratchet Stay with 5 stops', '202', 11.780000, 0.000000, 12.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(157, 10031, 203, 'P1250-10', 'Adjustable Ratchet Stay with 10 stops', '203', 17.150000, 0.000000, 12.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(158, 10031, 205, 'L2473', 'Slam Latch for Slam Lid System', '205', 13.500000, 0.000000, 20.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(159, 10031, 212, 'B1130', '4 Hole Brace - Rounded', '212', 0.350000, 0.000000, 1280.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(160, 10031, 213, '2204SF', 'Laminates (264) Red Dynasty 4x8x0.8mm', '213', 57.000000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(161, 10031, 215, 'GR5*14', '5x14mm Aluminum Steel Grooved Rivets', '215', 0.050000, 0.000000, 315000.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(162, 10031, 219, '9274F', 'Panel Lock Female', '219', 6.750000, 0.000000, 26.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(163, 10031, 220, '9274M', 'Panel Lock Male', '220', 27.280000, 0.000000, 26.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(164, 10031, 222, 'H2433K', 'Briefcase Swivel Handle', '222', 18.630000, 0.000000, 8.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(165, 10031, 223, 'L0571K', 'Die-Cast Latch Black', '223', 47.210000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(166, 10031, 224, 'L0575K', 'Lockable Die-Cast Latch Black', '224', 47.210000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(167, 10031, 227, 'HLB22', 'Egg Foam HLB22 1220x2030x9.5Base/28.5Rise', '227', 64.300000, 0.000000, 89.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(168, 10031, 235, 'CNC000669', 'Quad Pack P3 LD33/LD45 Foam Fitment including Case', '235', 3789.590000, 0.000000, 1050.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(169, 10031, 237, 'R130AE30BKSD-S/S', 'Pln R130 LD SD Black 1900x1000x30mm S/S', '237', 290.070000, 0.000000, 53.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(170, 10031, 238, 'R140AF29BKS', 'Pln R140 LD SD Black 1650x900x29mm S/S', '238', 282.730000, 0.000000, 41.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(171, 10031, 243, 'BPLY-017', '18mm BB/CP Russian Birch Ply [2400x1200mm]', '243', 139.000000, 0.000000, 31.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(172, 10031, 244, 'BPLY-018', '6mm BB/CP Birch Ply [2400x1200mm]', '244', 100.000000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(173, 10031, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 77.000000, 0.000000, 205.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(174, 10031, 247, 'R129LD-50-BK-1.2M', 'LD29 - 2000 x 1000 x 50mm-Black- 2x1.2m', '247', 188.530000, 0.000000, 95.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(175, 10031, 252, 'F1691', 'Rubber Foot 25.4x25.4mm', '252', 0.900000, 0.000000, 926.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(176, 10031, 253, 'L0560Z', 'Small Zinc Draw Bolt', '253', 2.800000, 0.000000, 96.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(177, 10031, 254, 'R2295-4UK', 'Aluminium Rack Drawers 4U 14', '254', 226.710000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(178, 10031, 676, 'SCP-LBL', 'Halcon P2 Case Labels', '676', 2.280000, 0.000000, 32800.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(179, 10031, 677, 'R133LD-50-BK-2M', 'LD33 - 2000 x 1230 x 50mm,Black', '677', 231.560000, 0.000000, 450.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(180, 10031, 256, '1RMM32-DHW', 'Rolling Mixer CS Midas M32', '256', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(181, 10031, 257, '1RMQU32-DHW', 'Roto-molded Allen & Heath QU32 Mixer Case w/ wheels', '257', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(182, 10031, 258, '1RMTF5-DHW', 'Roto-molded Yamaha TF5 Mixer Case w/ Wheels', '258', 0.100000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(183, 10031, 259, '1RMX32-DHW', 'Roto-molded Behringer X32 Mixer Case w/ wheels', '259', 0.100000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(184, 10031, 260, '1SKB-16', 'Shallow Acoustic Roundback Shaped Hardshell Case', '260', 0.100000, 0.000000, 5.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(185, 10031, 261, '1SKB-17', 'Acoustic Roundback Guitar Case', '261', 0.100000, 0.000000, 7.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(186, 10031, 263, '1SKB-1916', 'Shockmount Roto Caster Kit', '263', 0.100000, 0.000000, 5.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(187, 10031, 264, '1SKB19-R1406', 'The Mighty 07 GigRig', '264', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(188, 10031, 266, '1SKB19-RSF4U', 'Roto-Molded 4U Studio Flyer Rack Case', '266', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(189, 10031, 274, '1SKB-58', 'Flying V Hardshell Guitar Case', '274', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(190, 10031, 275, '1SKB-5817W', 'SKB SKB-5817W ATA Slimline Keyboard Case with Wheels (Black)', '275', 0.100000, 0.000000, 6.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(191, 10031, 277, '1SKB-61', 'SG Hardshell Guitar Case', '277', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(192, 10031, 278, '1SKB-62', 'Jaguar/Jazzmaster Type Hardshell Case', '278', 0.100000, 0.000000, 11.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(193, 10031, 279, '1SKB-63', 'Explorer / Firebird Hardshell Guitar Case', '279', 0.100000, 0.000000, 5.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(194, 10031, 283, '1SKB-AV14', 'A/V Shelf for Mighty GigRig', '283', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(195, 10031, 284, '1SKB-AV8', '8 Space Audio Video Shelf', '284', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(196, 10031, 285, '1SKB-CB22', '22 Cymbal Gig Bag', '285', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(197, 10031, 289, '1SKB-D0808', 'Tom Drum Case 8x8', '289', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(198, 10031, 290, '1SKB-D0910', 'Tom Drum Case 9x10', '290', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(199, 10031, 297, '1SKB-DBS2', 'Drum Soft Gig Bag Set 2', '297', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(200, 10031, 298, '1SKB-DBS3', 'Drum Soft Gig Bag Set 3', '298', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(201, 10031, 299, '1SKB-DBS4', 'Drum Soft Gig Bag Set 4', '299', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(202, 10031, 303, '1SKB-DRP3', 'Drum Package 3- Includes: D1620- D1012- D1616', '303', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(203, 10031, 304, '1SKB-DRP4', 'Drum Package 4 -Includes: D1824- D1012- D1616', '304', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(204, 10031, 306, '1SKB-GB18', 'Acoustic Style Gig Bag', '306', 0.100000, 0.000000, 16.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(205, 10031, 307, '1SKB-GB44', 'Bass Gig Bag', '307', 0.100000, 0.000000, 16.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(206, 10031, 308, '1SKB-GB66', 'Electric Guitar Gig Bag', '308', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(207, 10031, 309, '1SKB-GSM', 'Taylor GS Mini Acoustic Hard Case', '309', 0.100000, 0.000000, 41.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(208, 10031, 311, '1SKB-iSF2U', 'Injection Molded 2U Studio Flyer Rack Case', '311', 0.100000, 0.000000, 15.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(209, 10031, 312, '1SKB-iSF4U', 'Injection Molded 4U Studio Flyer Rack Case', '312', 0.100000, 0.000000, 12.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(210, 10031, 313, '1SKB-PDL', 'TSA Combination Padlock', '313', 0.100000, 0.000000, 88.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(211, 10031, 315, '1SKB-R100', 'Roto-molded 10U Top Mixer Rack', '315', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(212, 10031, 316, '1SKB-R102', '10 x 2 Roto Rack/Mixer Console', '316', 0.100000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(213, 10031, 317, '1SKB-R104', 'Audio and DJ Rack Case', '317', 0.100000, 0.000000, 6.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(214, 10031, 318, '1SKB-R106', '10x6 Roto Rack Console', '318', 0.100000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(215, 10031, 319, '1SKB-R10U', '10U Roto Rack', '319', 0.100000, 0.000000, 13.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(216, 10031, 320, '1SKB-R12U', '12U Roto Rack', '320', 0.100000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(217, 10031, 321, '1SKB-R1906', 'Roto Molded Rack Expansion Case (with wheels)', '321', 0.100000, 0.000000, 7.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(218, 10031, 322, '1SKB-R2S', 'Roto-Molded 2U Shallow Rack', '322', 0.100000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(219, 10031, 324, '1SKB-R3411W', 'NEW - Roto-Mold Tripod case (34 x 11) w/wheels', '324', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(220, 10031, 326, '1SKB-R3U', '3U Roto Rack', '326', 0.100000, 0.000000, 16.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(221, 10031, 327, '1SKB-R4S', 'Roto-Molded 4U Shallow Rack', '327', 0.100000, 0.000000, 12.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(222, 10031, 328, '1SKB-R4U', '4U Roto Rack', '328', 0.100000, 0.000000, 12.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(223, 10031, 329, '1SKB-R4UW', '4U Roto Rolling Rack', '329', 0.100000, 0.000000, 21.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(224, 10031, 330, '1SKB-R6S', 'Roto-Molded 6U Shallow Rack', '330', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(225, 10031, 331, '1SKB-R6U', '6U Roto Rack', '331', 0.100000, 0.000000, 22.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(226, 10031, 332, '1SKB-R6UW', '6U ROTO-MOLD RACK CASE W/WHEELS', '332', 0.100000, 0.000000, 51.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(227, 10031, 334, '1SKB-R8U', '8U Roto Rack', '334', 0.100000, 0.000000, 23.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(228, 10031, 335, '1SKB-R8UW', '8U Roto Shockmount Rack Case with Wheels', '335', 0.100000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(229, 10031, 336, '1SKB-R904U20', '20 Deep 4U Roto Shock Rack', '336', 0.100000, 0.000000, 7.00, 0, 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00'),
(230, 10032, 337, '1SKB-R906U20', '20 Deep 6U Roto Shock Rack', '337', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(231, 10032, 338, '1SKB-R908U20', '20 Deep 8U Roto Shock Rack', '338', 0.100000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(232, 10032, 339, '1SKB-R910U20', '20 Deep 10U Roto Shock Rack', '339', 0.100000, 0.000000, 13.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(233, 10032, 340, '1SKB-R912U20', '12U 20-inch Deep rSeries Shock Rack', '340', 0.100000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(234, 10032, 341, '1SKB-R916U20', '16U 20-inch Deep rSeries Shock Rack', '341', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(235, 10032, 342, '1SKB-RCB', 'Roto and Shallow Rack Caster Platform', '342', 0.100000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(236, 10032, 343, '1SKB-SB100', 'Standard Stick Bag', '343', 0.100000, 0.000000, 29.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(237, 10032, 344, '1SKB-SB300', 'Deluxe Stick Gig Bag', '344', 0.100000, 0.000000, 30.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(238, 10032, 346, '1SKB-SC1913', 'Controller Soft Case 19 x 13 x 3 (VMS4- Torq Xponent- Axiom 25)', '346', 0.100000, 0.000000, 10.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(239, 10032, 347, '1SKB-SC191U', '1U Soft Case Rack', '347', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(240, 10032, 348, '1SKB-SC192U', '2U Soft Rack Case', '348', 0.100000, 0.000000, 3.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(241, 10032, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', '349', 0.100000, 0.000000, 4.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(242, 10032, 350, '1SKB-SC2311', 'Controller Soft Case 23 x 11 x 3.75 (MINIAK- microKORG Vocoder)', '350', 0.100000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(243, 10032, 351, '1SKB-SC2316', '23 x 16 x 5.75 Soft Case for PS-8 and PS-15 Pedalboards', '351', 0.100000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(244, 10032, 352, '1SKB-SC2414', 'DJ/Keyboard Controller Soft Case 24 X 14 4', '352', 0.100000, 0.000000, 11.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(245, 10032, 353, '1SKB-SC2709', 'MIDI Foot Controller Soft Case (For FCB1010- MFC10- FC200- CyberFoot)', '353', 0.100000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(246, 10032, 354, '1SKB-SC2714', 'DJ/Keyboard Controller Soft Case 27 X 14 4', '354', 0.100000, 0.000000, 9.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(247, 10032, 356, '1SKB-SC3212', 'Controller Soft Case 32 X 12 3.5', '356', 0.100000, 0.000000, 11.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(248, 10032, 357, '1SKB-SC56', 'Les Paul Guitar Soft Case', '357', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(249, 10032, 359, '1SKB-SC88KW', 'Soft Case for 88-Note Keyboards', '359', 0.100000, 0.000000, 8.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(250, 10032, 361, '1SKB-SCFS6', 'Universal Shaped Electric Guitar Soft Case', '361', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(251, 10032, 362, '1SKB-SCPM1', 'Small Rolling Powered Speaker/Mixer Soft Case', '362', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(252, 10032, 363, '1SKB-UB0909', 'Universal Equipment/Mixer Bag 9 x 9 x 2.5', '363', 0.100000, 0.000000, 18.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(253, 10032, 364, '1SKB-UB1212', 'Universal Equipment/Mixer Bag 12 x 12 x 4', '364', 0.100000, 0.000000, 19.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(254, 10032, 365, '1SKB-UB1515', 'Universal Equipment/Mixer Bag 15 x 15 x 5', '365', 0.100000, 0.000000, 20.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(255, 10032, 366, '1SKB-UB1818', 'Universal Equipment/Mixer Bag 18 x 18 x 5', '366', 0.100000, 0.000000, 18.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(256, 10032, 367, '1SKB-UB2020', 'Universal Equipment/Mixer Bag 20 x 20 x 5', '367', 0.100000, 0.000000, 16.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(257, 10032, 369, '2SFR-5013', 'SFR 5013 Double Rifle Case', '369', 0.100000, 0.000000, 22.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(258, 10032, 371, '2SKB-4009', 'ATA Short Double Rifle Case 4009', '371', 0.100000, 0.000000, 15.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(259, 10032, 373, '2SKB-4117-H', 'Hoyt Hunter Series Bow Case', '373', 0.100000, 0.000000, 39.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(260, 10032, 375, '2SKB-4206-B', '4206 Archery Bag', '375', 0.100000, 0.000000, 25.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(261, 10032, 376, '2SKB-4814W', 'Deluxe Standard ATA Golf Travel Case', '376', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(262, 10032, 377, '2SKB-5009', 'Double Rifle Transport Case 5009', '377', 0.100000, 0.000000, 18.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(263, 10032, 380, '2SKB-HG15-BK', 'Dry-Tek 15 Handgun Bag', '380', 0.100000, 0.000000, 1.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(264, 10032, 382, '2SKB-SC3409', 'Hybrid Breakdown Shotgun Case 3409', '382', 0.100000, 0.000000, 2.00, 0, 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00'),
(265, 10033, 17, '9967', 'Telescopic Table Leg Assembly', '17', 0.000000, 0.000000, 13.00, 0, 1, 13, '2025-07-16 04:27:23', '2025-09-22 12:40:38'),
(266, 10034, 17, '9967', 'Telescopic Table Leg Assembly', '17', 0.000000, 0.000000, 10.00, 0, 1, 0, '2025-09-22 12:33:06', '0000-00-00 00:00:00'),
(267, 10035, 681, 'A1001', 'Test Item for A100', '681', 10.000000, 0.000000, 10.00, 0, 1, 0, '2025-10-03 15:14:52', '0000-00-00 00:00:00'),
(268, 10036, 681, 'A1001', 'Test Item for A100', '681', 10.000000, 0.000000, 5.00, 0, 1, 0, '2025-10-03 15:19:15', '0000-00-00 00:00:00'),
(269, 10037, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 15.430000, 0.000000, 10.00, 0, 1, 0, '2025-10-06 10:26:51', '0000-00-00 00:00:00'),
(270, 10038, 668, 'A10001', 'Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Description', '668', 26.830000, 0.000000, 10.00, 0, 1, 0, '2025-10-06 10:50:26', '0000-00-00 00:00:00'),
(271, 10039, 683, 'product 0001', 'test', '683', 0.000000, 0.000000, 10.00, 0, 1, 0, '2025-10-06 10:55:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_inventory_indirect_transfer`
--

CREATE TABLE `erp_inventory_indirect_transfer` (
  `id` bigint(20) NOT NULL,
  `from_warehouse_id` bigint(20) NOT NULL,
  `to_warehouse_id` bigint(20) NOT NULL,
  `intermediate_location` varchar(255) NOT NULL,
  `indirect_transfer_description` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `transfer_date` date NOT NULL,
  `is_complete` enum('Y','N','P') DEFAULT 'N',
  `status` enum('P','TO','C','TI') 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;

--
-- Dumping data for table `erp_inventory_indirect_transfer`
--

INSERT INTO `erp_inventory_indirect_transfer` (`id`, `from_warehouse_id`, `to_warehouse_id`, `intermediate_location`, `indirect_transfer_description`, `reference`, `transfer_date`, `is_complete`, `status`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 1, 5, '6', 'passing 10 qty to hirirng', 'AB01', '2025-10-06', 'P', 'C', 1, 0, '2025-10-06 00:00:00', '0000-00-00 00:00:00'),
(2, 1, 5, '6', '', 'AB01', '2025-10-06', 'P', 'C', 1, 0, '2025-10-06 00:00:00', '0000-00-00 00:00:00'),
(3, 1, 5, '6', '', '', '2025-10-06', 'Y', 'TI', 1, 0, '2025-10-06 00:00:00', '0000-00-00 00:00:00'),
(4, 1, 5, '6', '', '', '2025-10-06', 'Y', 'TI', 1, 0, '2025-10-06 00:00:00', '0000-00-00 00:00:00'),
(5, 1, 5, '6', '', '', '2025-10-06', 'Y', 'TI', 1, 0, '2025-10-06 00:00:00', '0000-00-00 00:00:00'),
(6, 1, 5, '6', '', '', '2025-10-06', 'Y', 'TI', 1, 0, '2025-10-06 00:00:00', '0000-00-00 00:00:00'),
(7, 1, 4, '6', '', 'A11', '2025-10-07', 'Y', 'TI', 1, 0, '2025-10-07 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_inventory_indirect_transfer_item`
--

CREATE TABLE `erp_inventory_indirect_transfer_item` (
  `id` int(11) NOT NULL,
  `indirect_transfer_id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `item_name` varchar(255) NOT NULL,
  `item_description` text NOT NULL,
  `transfer_qty` decimal(15,3) NOT NULL,
  `available_qty` decimal(15,3) NOT NULL,
  `damaged_qty` decimal(15,3) NOT NULL,
  `missing_qty` decimal(15,3) NOT NULL,
  `transferred_qty` decimal(15,3) NOT NULL,
  `balance_qty` decimal(15,3) DEFAULT NULL,
  `to_warehouse_id` int(11) NOT NULL,
  `unit` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_indirect_transfer_item`
--

INSERT INTO `erp_inventory_indirect_transfer_item` (`id`, `indirect_transfer_id`, `item_id`, `item_name`, `item_description`, `transfer_qty`, `available_qty`, `damaged_qty`, `missing_qty`, `transferred_qty`, `balance_qty`, `to_warehouse_id`, `unit`) VALUES
(1, 1, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 10.000, 96.000, 1.000, 1.000, 8.000, NULL, 5, 1),
(2, 2, 672, '1001', 'Test Item', 10.000, 80.000, 1.000, 1.000, 8.000, NULL, 5, 672),
(3, 3, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 10.000, 86.000, 0.000, 1.000, 9.000, NULL, 5, 1),
(4, 4, 668, 'A10001', 'Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Test Item A10001 Description', 10.000, 998.000, 1.000, 1.000, 8.000, NULL, 5, 668),
(5, 5, 683, 'product 0001', 'test', 10.000, 10.000, 1.000, 1.000, 8.000, NULL, 5, 683),
(6, 6, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 10.000, 76.000, 1.000, 1.000, 8.000, NULL, 5, 1),
(7, 7, 681, 'A1001', 'Test Item for A100', 2.000, 8.000, 0.000, 0.000, 2.000, NULL, 4, 681);

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

--
-- Table structure for table `erp_inventory_kit`
--

CREATE TABLE `erp_inventory_kit` (
  `id` int(11) NOT NULL,
  `kit_name` varchar(255) NOT NULL,
  `alias_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci NOT NULL,
  `isActive` enum('Y','N') 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_inventory_kit_items`
--

CREATE TABLE `erp_inventory_kit_items` (
  `id` int(11) NOT NULL,
  `kit_id` int(11) NOT NULL,
  `item` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_serialno_change_history`
--

CREATE TABLE `erp_inventory_serialno_change_history` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `process` enum('SNO','EXP') NOT NULL,
  `status_from` enum('Y','N') NOT NULL,
  `status_to` enum('Y','N') NOT NULL,
  `old_product_location_ids` text NOT NULL,
  `new_product_location_ids` text NOT NULL,
  `old_stock_ledger_ids` text NOT NULL,
  `new_stock_ledger_ids` text 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_inventory_uploaded_stock`
--

CREATE TABLE `erp_inventory_uploaded_stock` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `rate` decimal(15,3) 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_invoice`
--

CREATE TABLE `erp_invoice` (
  `id` bigint(20) NOT NULL,
  `delivery_ids` varchar(255) NOT NULL,
  `file_id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `project_id` int(11) NOT NULL,
  `invoice_no` varchar(255) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `billing_address` text NOT NULL,
  `invoice_date` date NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `reference` enum('ITEM_DISCOUNT','FOOTER_DISCOUNT','NONE') NOT NULL DEFAULT 'NONE',
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `payment_terms_id` int(11) NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `remarks` text NOT NULL,
  `terms_id` int(11) NOT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `is_direct_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `invoice_status` enum('Y','C') NOT NULL DEFAULT 'Y' COMMENT 'Y-Active,C-Cancelled',
  `invoice_type` int(11) NOT NULL COMMENT 'Primary key of crmmas_invoice_type id',
  `added_from` enum('W','A') NOT NULL DEFAULT 'W',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `net_amount` decimal(15,6) NOT NULL COMMENT 'item_total - total_discount_amount\r\n',
  `total_tax_amount` decimal(15,2) NOT NULL,
  `grand_total` decimal(15,6) NOT NULL,
  `round_off_amount` decimal(15,6) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `sales_inv_type` enum('sales','service') NOT NULL DEFAULT 'sales',
  `total_discount_percentage` decimal(15,2) NOT NULL,
  `total_discount_amount` decimal(15,2) NOT NULL,
  `paymentmode_id` int(11) NOT NULL COMMENT 'Primary key of erp_acc_payment_mode id	',
  `received_amount` decimal(15,6) NOT NULL COMMENT 'used in accounts RV receipt',
  `inco_term_id` 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,
  `advance_invoice` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_invoice`
--

INSERT INTO `erp_invoice` (`id`, `delivery_ids`, `file_id`, `quotes_id`, `order_id`, `project_id`, `invoice_no`, `customer_id`, `contact_id`, `lead_owner_id`, `billing_address`, `invoice_date`, `sales_group_id`, `reference`, `currency_id`, `exchange_rate`, `payment_terms_id`, `shipping_by`, `notes`, `remarks`, `terms_id`, `terms_and_conditions`, `is_direct_invoice`, `invoice_status`, `invoice_type`, `added_from`, `posted`, `net_amount`, `total_tax_amount`, `grand_total`, `round_off_amount`, `warehouse_id`, `isActive`, `sales_inv_type`, `total_discount_percentage`, `total_discount_amount`, `paymentmode_id`, `received_amount`, `inco_term_id`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `advance_invoice`) VALUES
(40001, '30001', 10001, 10001, 20001, 0, '40001', 1001, 1, 8, 'Tawazun Industrial Park,\r\nAl Ajban\r\nP.O Box 109667\r\nAbu Dhabi , United Arab Emirates', '2025-05-06', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 410.000000, 20.50, 430.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-05-06 09:44:15', '0000-00-00 00:00:00', 'N'),
(40002, '30003', 10006, 10004, 20004, 0, '40002', 1030, 30, 8, 'Building 411, 11th Floor,\r\nMadinat Zayed Office Tower,\r\nSultan Bin Zayed The First Street\r\nP.O Box 41708\r\nAbu Dhabi , United Arab Emirates', '2025-05-06', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 3500.000000, 175.00, 3675.000000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-05-06 15:08:16', '0000-00-00 00:00:00', 'N'),
(40003, '30004', 10017, 10006, 20005, 0, '40003', 1007, 7, 8, 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', '2025-05-09', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 15.000000, 0.75, 15.750000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-05-09 12:57:37', '0000-00-00 00:00:00', 'N'),
(40004, '30005', 10019, 10007, 20006, 0, '40004', 1007, 7, 8, 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', '2025-05-09', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.00, 21.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-05-09 13:00:37', '0000-00-00 00:00:00', 'N'),
(40005, '30008', 10021, 10009, 20009, 0, '40005', 1004, 4, 8, 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', '2025-05-09', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 19.000000, 0.95, 19.950000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-05-09 14:29:49', '0000-00-00 00:00:00', 'N'),
(40006, '30010', 10024, 10011, 20011, 0, '40006', 1004, 4, 8, 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', '2025-05-09', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 300.000000, 15.00, 315.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-05-09 15:07:59', '0000-00-00 00:00:00', 'N'),
(40007, '30011', 10026, 10012, 20014, 0, '40007', 1003, 3, 8, 'Al Fahad Warehouse - 3C 6A St,\r\nBehind Times Square Center,\r\n Al Quoz, Al Quoz Industrial Area 1\r\nP.O Box -\r\nDubai  , United Arab Emirates', '2025-05-22', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 1505.000000, 75.25, 1580.250000, 0.000000, 0, 'Y', 'sales', 5.00, 75.00, 0, 0.000000, 0, 8, 0, '2025-05-22 11:09:45', '0000-00-00 00:00:00', 'N'),
(40008, '30012', 10044, 10015, 20015, 0, '40008', 1007, 7, 8, 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', '2025-05-22', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 290.000000, 14.50, 304.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-05-22 11:57:49', '0000-00-00 00:00:00', 'N'),
(40009, '30020', 10060, 10026, 20023, 0, '40009', 1089, 94, 8, 'Mauritania', '2025-06-01', 5, 'NONE', 3, 4.15, 2, '', '', '', 0, 'Purchase Terms and Conditions come here\r\n', 'N', 'Y', 1, 'W', 'N', 30.000000, 2.40, 32.400000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-01 17:24:42', '0000-00-00 00:00:00', 'N'),
(40010, '30020', 10060, 10026, 20023, 0, '40010', 1089, 94, 8, 'Mauritania', '2025-06-01', 5, 'NONE', 3, 4.15, 2, '', '', '', 0, 'Purchase Terms and Conditions come here\r\n', 'N', 'Y', 1, 'W', 'N', 30.000000, 2.40, 32.400000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-01 17:50:43', '0000-00-00 00:00:00', 'N'),
(40011, '30023', 10062, 10028, 20027, 0, '40011', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-04-01', 5, 'NONE', 3, 4.15, 2, '', '', '', 0, 'Purchase Terms and Conditions come here\r\n', 'N', 'Y', 1, 'W', 'N', 2500.000000, 200.00, 2700.000000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-02 15:22:41', '0000-00-00 00:00:00', 'N'),
(40012, '30025', 10064, 10030, 20028, 0, '40012', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-02-01', 5, 'NONE', 3, 4.15, 2, '', '', '', 0, 'Purchase Terms and Conditions come here\r\n', 'N', 'Y', 1, 'W', 'N', 4410.000000, 352.80, 4762.800000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-02 15:23:19', '0000-00-00 00:00:00', 'N'),
(40013, '30027', 10066, 10032, 20030, 0, '40013', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-05-01', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 2250.000000, 180.00, 2430.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-03 08:55:57', '0000-00-00 00:00:00', 'N'),
(40014, '30028', 10069, 10035, 20031, 0, '40014', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-06-03', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 120.000000, 9.60, 129.600000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-03 09:26:08', '0000-00-00 00:00:00', 'N'),
(40015, '30029', 10076, 10042, 20033, 10001, '40015', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-06-03', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, 'NEW', 'N', 'Y', 1, 'W', 'N', 230.000000, 18.40, 248.400000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-03 15:30:00', '0000-00-00 00:00:00', 'N'),
(40016, '30029', 10076, 10042, 20033, 10001, '40016', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-06-03', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, 'NEW', 'N', 'Y', 1, 'W', 'N', 230.000000, 18.40, 248.400000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-03 15:30:09', '0000-00-00 00:00:00', 'N'),
(40017, '30030', 10070, 10036, 20032, 0, '40017', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2024-10-02', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.60, 21.600000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-04 08:43:23', '0000-00-00 00:00:00', 'N'),
(40018, '30030', 10070, 10036, 20032, 0, '40018', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2023-02-22', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.60, 21.600000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-04 08:47:17', '0000-00-00 00:00:00', 'N'),
(40019, '30031', 10051, 10043, 20034, 0, '40019', 1089, 94, 8, 'P.O Box \r\n , Mauritania', '2025-06-04', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 10.000000, 0.80, 10.800000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-04 16:38:51', '0000-00-00 00:00:00', 'N'),
(40020, '30036', 10088, 10049, 20035, 0, '40020', 1078, 78, 8, 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', '2024-05-16', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 7.000000, 0.56, 7.560000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-05 11:10:07', '0000-00-00 00:00:00', 'N'),
(40021, '30035', 10087, 10048, 20036, 0, '40021', 1070, 70, 8, 'Dubai, P.O Box : -\r\n- - United Arab Emirates', '2025-06-05', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 2925.000000, 234.00, 3159.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-05 11:10:42', '0000-00-00 00:00:00', 'N'),
(40022, '30034', 10086, 10047, 20037, 0, '40022', 1030, 30, 8, 'Abu Dhabi, P.O Box : 41708\r\n- - United Arab Emirates', '2025-06-05', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 585.000000, 46.80, 631.800000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-05 11:10:49', '0000-00-00 00:00:00', 'N'),
(40023, '30033', 10085, 10046, 20038, 0, '40023', 1017, 17, 8, 'Abu Dhabi, P.O Box : 840\r\n- - United Arab Emirates', '2025-06-05', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 224.000000, 17.92, 241.920000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-05 11:10:54', '0000-00-00 00:00:00', 'N'),
(40024, '30032', 10084, 10045, 20039, 0, '40024', 1002, 2, 8, 'Abu Dhabi, P.O Box : 2723\r\n- - United Arab Emirates', '2025-06-05', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 54.000000, 4.32, 58.320000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-05 11:10:58', '0000-00-00 00:00:00', 'N'),
(40025, '30043', 10093, 10054, 20044, 0, '40025', 1001, 1, 8, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2024-07-10', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 1050.000000, 84.00, 1134.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-05 13:36:11', '0000-00-00 00:00:00', 'N'),
(40026, '30044', 10099, 10055, 20045, 0, '40026', 1089, 94, 8, 'Mauritania', '2025-06-09', 5, 'NONE', 1, 1.00, 2, '', '', '', 0, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.60, 21.600000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-09 10:35:30', '0000-00-00 00:00:00', 'N'),
(40027, '30042', 10092, 10053, 20043, 0, '40027', 1094, 101, 8, 'dubi, P.O Box : 689666\r\nuae - Mauritania', '2025-06-09', 5, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 160.000000, 12.80, 172.800000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-09 10:36:26', '0000-00-00 00:00:00', 'N'),
(40028, '30045', 10100, 10056, 20046, 0, '40028', 1089, 94, 8, 'Mauritania', '2025-06-09', 5, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.60, 21.600000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-09 10:40:51', '0000-00-00 00:00:00', 'N'),
(40029, '30046', 10109, 10063, 20048, 0, '40029', 1089, 94, 8, 'Mauritania', '2025-06-09', 5, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.60, 21.600000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-09 13:35:06', '0000-00-00 00:00:00', 'N'),
(40030, '30046', 10109, 10063, 20048, 0, '40030', 1089, 94, 8, 'Mauritania', '2025-06-09', 5, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.60, 21.600000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-09 13:36:49', '0000-00-00 00:00:00', 'N'),
(40031, '30048', 10122, 10066, 20049, 0, '40031', 1096, 103, 4, 'P.O Box \r\n , Mauritania', '2025-06-24', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 30.000000, 1.50, 31.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-24 11:23:57', '0000-00-00 00:00:00', 'N'),
(40032, '30049', 10127, 10069, 20051, 0, '40032', 1086, 86, 4, 'PBU-A01,\r\nDubai Production City\r\nP.O Box 485004\r\nDubai , United Arab Emirates', '2025-06-26', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1050.000000, 52.50, 1102.500000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-26 10:01:14', '0000-00-00 00:00:00', 'N'),
(40033, '30041', 10022, 10010, 20010, 0, '40033', 1007, 7, 8, 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', '2025-06-27', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 40.000000, 2.00, 42.000000, 0.000000, 0, 'Y', 'sales', 150.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-27 16:10:59', '0000-00-00 00:00:00', 'N'),
(40034, '30040', 10091, 10052, 20042, 0, '40034', 1094, 101, 8, 'dubi, P.O Box : 689666\r\nuae - Mauritania', '2025-06-27', 5, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 100.000000, 5.00, 105.000000, 0.000000, 0, 'Y', 'sales', 100.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-27 16:12:51', '0000-00-00 00:00:00', 'N'),
(40035, '30051', 10136, 10071, 20055, 0, '40035', 1089, 94, 4, 'United Arab Emirates', '2025-06-30', 1, 'NONE', 3, 4.15, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 150.000000, 7.50, 157.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-30 08:07:06', '0000-00-00 00:00:00', 'N'),
(40036, '30037', 10089, 10050, 20040, 10002, '40036', 1094, 101, 8, 'address\r\nP.O Box 689666\r\ndubi , Mauritania', '2025-06-30', 5, 'NONE', 1, 1.00, 2, '', '', 'remks', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 10.000000, 0.50, 10.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-30 08:30:27', '0000-00-00 00:00:00', 'N'),
(40037, '', 10007, 0, 20007, 0, '40037', 1020, 20, 8, 'Dubai , P.O Box : 30323 \r\n- - United Arab Emirates', '2025-06-30', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'Y', 'Y', 1, 'W', 'N', 250.000000, 12.50, 262.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-30 08:41:28', '0000-00-00 00:00:00', 'Y'),
(40038, '', 10037, 0, 20012, 0, '40038', 1070, 70, 8, 'Dubai, P.O Box : -\r\n- - United Arab Emirates', '2025-06-30', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'Y', 'Y', 1, 'W', 'N', 350.000000, 17.50, 367.500000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 1, 0, '2025-06-30 08:42:04', '0000-00-00 00:00:00', 'Y'),
(40039, '', 10123, 0, 20050, 0, '40039', 1019, 19, 4, 'The Meydan Hotel Grandstand,\r\n6th Floor Meydan Road,\r\nNad Al Sheba\r\nP.O Box -\r\nDubai , United Arab Emirates', '2025-06-30', 1, 'NONE', 1, 1.00, 2, '', 'notes', 'remarks', 0, 'Sales Terms and Conditions come here', 'Y', 'Y', 1, 'W', 'N', 300.000000, 15.00, 315.000000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-30 08:42:55', '0000-00-00 00:00:00', 'Y'),
(40040, '30054', 10138, 10072, 20057, 0, '40040', 1007, 7, 4, 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', '2025-06-30', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 8635.000000, 431.75, 9066.750000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 0, 8, 0, '2025-06-30 08:51:58', '0000-00-00 00:00:00', 'N'),
(40041, '30052', 10124, 10068, 20056, 0, '40041', 1096, 103, 4, 'United Arab Emirates', '2025-06-30', 1, 'NONE', 3, 4.15, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 66.000000, 3.30, 69.300000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 10, 8, 0, '2025-06-30 10:52:31', '0000-00-00 00:00:00', 'N'),
(40042, '30056', 10107, 10062, 20058, 0, '40042', 1089, 94, 8, 'Mauritania', '2025-06-30', 5, 'NONE', 1, 1.00, 2, '', '', 'Test', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 20.000000, 1.00, 21.000000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 1, 8, 0, '2025-06-30 11:33:43', '0000-00-00 00:00:00', 'N'),
(40043, '30059', 10148, 10073, 20060, 0, '40043', 1001, 1, 4, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-07-01', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1105.000000, 45.50, 1150.500000, 0.000000, 0, 'Y', 'sales', 15.00, 130.00, 0, 0.000000, 1, 8, 0, '2025-07-01 12:14:53', '0000-00-00 00:00:00', 'N'),
(40044, '30061', 10150, 10075, 20062, 0, '40044', 1001, 1, 4, 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', '2025-07-01', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1170.000000, 58.50, 1228.500000, 0.000000, 0, 'Y', 'sales', 10.00, 130.00, 0, 0.000000, 1, 8, 0, '2025-07-01 13:54:09', '0000-00-00 00:00:00', 'N'),
(40045, '30062', 10123, 10067, 20050, 0, '40045', 1019, 19, 4, 'The Meydan Hotel Grandstand,\r\n6th Floor Meydan Road,\r\nNad Al Sheba\r\nP.O Box -\r\nDubai , United Arab Emirates', '2025-07-22', 1, 'NONE', 1, 1.00, 2, '', '', 'remarks', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 25.000000, 1.25, 26.250000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 1, 1, 0, '2025-07-22 14:55:58', '0000-00-00 00:00:00', 'N'),
(40046, '30063', 10154, 10077, 20063, 0, '40046', 1100, 107, 0, 'United Arab Emirates', '2025-09-22', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1000.000000, 50.00, 1050.000000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 1, 13, 0, '2025-09-22 23:24:31', '0000-00-00 00:00:00', 'N'),
(40047, '30064', 10158, 10080, 20066, 0, '40047', 1099, 106, 0, 'United Arab Emirates', '2025-09-24', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1000.000000, 50.00, 1050.000000, 0.000000, 0, 'Y', 'sales', 0.00, 0.00, 0, 0.000000, 1, 13, 0, '2025-09-24 11:35:44', '0000-00-00 00:00:00', 'N'),
(40048, '30067', 10165, 10082, 20069, 0, '40048', 1099, 106, 4, 'United Arab Emirates', '2025-10-07', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1500.000000, 75.00, 1575.000000, 0.000000, 1, 'Y', 'service', 0.00, 0.00, 0, 0.000000, 1, 1, 0, '2025-10-07 15:36:13', '0000-00-00 00:00:00', 'N'),
(40049, '30066', 10163, 10082, 20068, 0, '40049', 1099, 106, 4, 'United Arab Emirates', '2025-10-07', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1500.000000, 75.00, 1575.000000, 0.000000, 1, 'Y', 'service', 0.00, 0.00, 0, 0.000000, 1, 1, 0, '2025-10-07 15:40:23', '0000-00-00 00:00:00', 'N'),
(40050, '30077', 10171, 10083, 20077, 0, '40050', 1099, 106, 4, 'United Arab Emirates', '2025-10-07', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1000.000000, 50.00, 1050.000000, 0.000000, 1, 'Y', 'service', 0.00, 0.00, 0, 0.000000, 1, 1, 0, '2025-10-07 16:48:36', '0000-00-00 00:00:00', 'N');

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

--
