-- Table structure for table `erp_mas_vehicle`
--

CREATE TABLE `erp_mas_vehicle` (
  `id` int(11) NOT NULL,
  `vehicle_id` int(11) NOT NULL,
  `vehicle_make` varchar(150) NOT NULL,
  `vehicle_vin_no` varchar(100) NOT NULL,
  `hasPermit` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `permit_expiry_date` date NOT NULL,
  `pollution_expiry_date` date NOT NULL,
  `registration_expiry_date` date NOT NULL,
  `fuel_type` varchar(50) NOT NULL,
  `insurance_validity_date` date NOT NULL,
  `manufacturing_year` int(11) NOT NULL,
  `vehicle_model` varchar(150) NOT NULL,
  `registered_state` varchar(150) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `lic_plate_no` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_vehicle`
--

INSERT INTO `erp_mas_vehicle` (`id`, `vehicle_id`, `vehicle_make`, `vehicle_vin_no`, `hasPermit`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`, `permit_expiry_date`, `pollution_expiry_date`, `registration_expiry_date`, `fuel_type`, `insurance_validity_date`, `manufacturing_year`, `vehicle_model`, `registered_state`, `isActive`, `lic_plate_no`) VALUES
(1, 103, 'Maruthi', 'AB67YHNFJ8LIUYY', 'Y', '2025-07-31 09:19:17', 1, '2025-08-04 10:20:01', 1, '2025-08-01', '2025-08-01', '2025-08-01', 'Petrol', '2025-09-01', 2014, 'Swift', 'Kerala', 'Y', 'BOM-7254'),
(2, 101, 'Maruthi', 'VR45FGNFJ8J7XC', 'Y', '2025-07-31 09:19:39', 1, '2025-08-04 10:19:05', 1, '2025-08-01', '2025-08-01', '2025-08-01', 'Diesel', '2031-05-02', 2008, 'Baleno', 'New York', 'Y', 'TRV-7254'),
(3, 102, 'Thomas ', 'RS78KK8K67NWQ', 'Y', '2025-07-31 02:31:38', 1, '0000-00-00 00:00:00', 0, '2025-08-01', '2025-08-01', '2025-08-01', 'Diesel', '2026-09-10', 2018, 'Saf-T-Liner C2', 'North Carolina', 'Y', 'ST-78-268'),
(4, 104, 'Jeep', 'MBG78HGFC9MJH', 'Y', '2025-07-31 02:33:58', 1, '0000-00-00 00:00:00', 0, '2025-08-01', '2025-08-01', '2025-08-01', 'Petrol', '2026-07-24', 2021, 'Wrangler', 'Delhi', 'Y', 'DL-07-AV-4569'),
(5, 100, 'Hyundai ', 'VDVN78JTFJH57XC', 'Y', '2025-07-31 03:38:31', 1, '2025-09-23 10:18:04', 13, '2027-04-02', '2026-01-09', '2025-11-06', 'Gas', '2025-08-10', 2010, 'Alcazar', '', 'Y', 'ABY-9048');

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

--
-- Table structure for table `erp_mas_vehicle_service_status`
--

CREATE TABLE `erp_mas_vehicle_service_status` (
  `id` int(11) NOT NULL,
  `status_type` varchar(100) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `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_mas_vehicle_service_status`
--

INSERT INTO `erp_mas_vehicle_service_status` (`id`, `status_type`, `isActive`, `isDefault`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(1, 'Scheduled', 'Y', 'Y', '2025-08-01 15:58:23', 1, '2025-08-01 16:06:36', 1),
(2, 'Called / Notified	', 'Y', 'N', '2025-08-01 15:58:39', 1, '0000-00-00 00:00:00', 0),
(3, 'Vehicle Received', 'Y', 'N', '2025-08-01 15:59:00', 1, '0000-00-00 00:00:00', 0),
(4, 'Inspection Started	', 'Y', 'N', '2025-08-01 15:59:13', 1, '0000-00-00 00:00:00', 0),
(5, 'Waiting for Approval', 'Y', 'N', '2025-08-01 15:59:24', 1, '0000-00-00 00:00:00', 0),
(6, 'Work In Progress', 'Y', 'N', '2025-08-01 15:59:35', 1, '0000-00-00 00:00:00', 0),
(7, 'Parts Pending', 'Y', 'N', '2025-08-01 15:59:54', 1, '0000-00-00 00:00:00', 0),
(8, 'Test Drive / QA', 'Y', 'N', '2025-08-01 16:00:04', 1, '0000-00-00 00:00:00', 0),
(9, 'Ready for Delivery', 'Y', 'N', '2025-08-01 16:00:14', 1, '0000-00-00 00:00:00', 0),
(10, 'Delivered', 'Y', 'N', '2025-08-01 16:00:24', 1, '0000-00-00 00:00:00', 0),
(11, 'On Hold', 'Y', 'N', '2025-08-01 16:00:33', 1, '0000-00-00 00:00:00', 0),
(12, 'Cancelled', 'Y', 'N', '2025-08-01 16:00:43', 1, '2025-08-29 11:55:27', 1),
(13, 'Closed / Completed', 'Y', 'N', '2025-08-01 16:00:53', 1, '0000-00-00 00:00:00', 0);

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

--
-- Table structure for table `erp_meeting`
--

CREATE TABLE `erp_meeting` (
  `id` int(11) NOT NULL,
  `type` varchar(500) NOT NULL,
  `type_id` int(11) NOT NULL,
  `venue` varchar(500) NOT NULL,
  `country_id` varchar(255) NOT NULL,
  `location_id` varchar(255) NOT NULL,
  `meeting_date` date NOT NULL,
  `meeting_time` time NOT NULL,
  `meeting_title` varchar(500) NOT NULL,
  `conducted_by` varchar(255) NOT NULL,
  `notify` varchar(1000) NOT NULL,
  `attendees` varchar(255) NOT NULL,
  `others` text NOT NULL,
  `filename` varchar(100) NOT NULL,
  `isMeeting` enum('Y','N') 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_meeting_activity`
--

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

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

--
-- Table structure for table `erp_meeting_transaction`
--

CREATE TABLE `erp_meeting_transaction` (
  `id` int(11) NOT NULL,
  `meeting_id` int(11) NOT NULL,
  `serial_no` varchar(255) NOT NULL,
  `heading` varchar(500) NOT NULL,
  `meeting_details` text NOT NULL,
  `action_taken` text NOT NULL,
  `closing_date` date NOT NULL,
  `closed_on` date NOT NULL,
  `complete_status` int(11) NOT NULL,
  `person` int(11) NOT NULL,
  `other_email` varchar(500) NOT NULL,
  `filename` 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_meeting_type`
--

CREATE TABLE `erp_meeting_type` (
  `id` int(11) NOT NULL,
  `type_name` varchar(100) 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_messaging`
--

CREATE TABLE `erp_messaging` (
  `id` bigint(20) NOT NULL,
  `message_from` int(11) NOT NULL,
  `send_datetime` datetime NOT NULL,
  `comments` text NOT NULL,
  `type` enum('PO','SO','OT','') NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `message_to` int(11) NOT NULL,
  `received_datetime` datetime NOT NULL,
  `received` enum('Y','N','','') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_models`
--

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

--
-- Dumping data for table `erp_models`
--

INSERT INTO `erp_models` (`id`, `name`, `isActive`) VALUES
(1, 'Activity', 'Y'),
(2, 'ActivityProspects', 'Y'),
(3, 'AdvancePayment', 'Y'),
(4, 'AllocatedMaterial', 'Y'),
(5, 'ApprovalHistory', 'Y'),
(6, 'ApprovalLevelDetails', 'Y'),
(7, 'ApprovalLevelGeneral', 'Y'),
(8, 'AttendanceManager', 'Y'),
(9, 'AuditLog', 'Y'),
(10, 'BiometricExclude', 'Y'),
(11, 'BrandSalesTarget', 'Y'),
(12, 'ChangeRackBin', 'Y'),
(13, 'CheckinList', 'Y'),
(14, 'CompanyCircular', 'Y'),
(15, 'CompanyDocument', 'Y'),
(16, 'CompanyInprocessDocument', 'Y'),
(17, 'ComplaintSuggestion', 'Y'),
(18, 'CoreController', 'Y'),
(19, 'CostPriceGroup', 'Y'),
(20, 'CostPriceGroupName', 'Y'),
(21, 'Creditnote', 'Y'),
(22, 'CreditnoteAddition', 'Y'),
(23, 'CreditnoteDeduction', 'Y'),
(24, 'CreditnoteItem', 'Y'),
(25, 'Customer', 'Y'),
(26, 'Customer02-04-20', 'Y'),
(27, 'CustomerContact', 'Y'),
(28, 'CustomerDocs', 'Y'),
(29, 'CustomerPricingGroup', 'Y'),
(30, 'CustomerShippingDetails', 'Y'),
(31, 'CustomerTemp', 'Y'),
(32, 'CustomerWithoutContacts', 'Y'),
(33, 'CustomerWithoutShipping', 'Y'),
(34, 'DamagedStore', 'Y'),
(35, 'DamagedStoreDetails', 'Y'),
(36, 'DamagedStoreMaterialDetails', 'Y'),
(37, 'Dashboard', 'Y'),
(38, 'DeliveryNote', 'Y'),
(39, 'DeliveryNoteItem', 'Y'),
(40, 'DemoItemDetails', 'Y'),
(41, 'DemoItemDetailsReturn', 'Y'),
(42, 'DemoItemGeneral', 'Y'),
(43, 'DisplayText', 'Y'),
(44, 'Document', 'Y'),
(45, 'DocumentSettings', 'Y'),
(46, 'DocumentpdfSettings', 'Y'),
(47, 'EmiCategory', 'Y'),
(48, 'Employee', 'Y'),
(49, 'EmployeeAsset', 'Y'),
(50, 'EmployeeAttendance', 'Y'),
(51, 'EmployeeAttendanceWarning', 'Y'),
(52, 'EmployeeBranch', 'Y'),
(53, 'EmployeeBrandSalaryPercent', 'Y'),
(54, 'EmployeeCertificate', 'Y'),
(55, 'EmployeeDependants', 'Y'),
(56, 'EmployeeDocuments', 'Y'),
(57, 'EmployeeEOS', 'Y'),
(58, 'EmployeeEOSDetails', 'Y'),
(59, 'EmployeeEosClearanceDetails', 'Y'),
(60, 'EmployeeExpense', 'Y'),
(61, 'EmployeeExpenseDetails', 'Y'),
(62, 'EmployeeInoutDocument', 'Y'),
(63, 'EmployeeLeave', 'Y'),
(64, 'EmployeeLeaveDetail', 'Y'),
(65, 'EmployeeLeaveEncashment', 'Y'),
(66, 'EmployeeLeaveExcuse', 'Y'),
(67, 'EmployeeLeaveLedger', 'Y'),
(68, 'EmployeeLeavesettlement', 'Y'),
(69, 'EmployeeLoan', 'Y'),
(70, 'EmployeeLoanDetail', 'Y'),
(71, 'EmployeeNotes', 'Y'),
(72, 'EmployeeNoticeConduct', 'Y'),
(73, 'EmployeePayment', 'Y'),
(74, 'EmployeePension', 'Y'),
(75, 'EmployeeResignation', 'Y'),
(76, 'EmployeeSalary', 'Y'),
(77, 'EmployeeSalaryAdvance', 'Y'),
(78, 'EmployeeSalaryAdvancePayment', 'Y'),
(79, 'EmployeeShift', 'Y'),
(80, 'EmployeeTicket', 'Y'),
(81, 'EmployeeTicketEncashment', 'Y'),
(82, 'EmployeeTicketEntitlement', 'Y'),
(83, 'EmployeewpsCompany', 'Y'),
(84, 'EosGratuityDetails', 'Y'),
(85, 'FileNotes', 'Y'),
(86, 'FinanceEmi', 'Y'),
(87, 'FinanceEmiInstallment', 'Y'),
(88, 'FinanceEmiType', 'Y'),
(89, 'Grossprofit', 'Y'),
(90, 'HrAppraisal', 'Y'),
(91, 'HrEmployeeDocumentExpiry', 'Y'),
(92, 'HrEmployeeInprocessDocument', 'Y'),
(93, 'HrGenerelSettings', 'Y'),
(94, 'HrMasAppraisal', 'Y'),
(95, 'HrNotification', 'Y'),
(96, 'HrRecruitment', 'Y'),
(97, 'HrRecruitmentNote', 'Y'),
(98, 'InventoryBatchSplitHistory', 'Y'),
(99, 'InventoryBatchSplitHistoryDetail', 'Y'),
(100, 'InventoryDirectTransfer', 'Y'),
(101, 'InventoryDirectTransferItem', 'Y'),
(102, 'InventoryDirectTransferItemDetails', 'Y'),
(103, 'InventoryGoodsIssue', 'Y'),
(104, 'InventoryGoodsIssueItem', 'Y'),
(105, 'InventoryGoodsReceipt', 'Y'),
(106, 'InventoryGoodsReceiptItem', 'Y'),
(107, 'InventoryInDirectTransferItemDetails', 'Y'),
(108, 'InventoryIndirectReceived', 'Y'),
(109, 'InventoryIndirectReceivedItems', 'Y'),
(110, 'InventoryIndirectTransfer', 'Y'),
(111, 'InventoryIndirectTransferItem', 'Y'),
(112, 'InventoryKit', 'Y'),
(113, 'InventoryKitItems', 'Y'),
(114, 'InventoryUploadedStock', 'Y'),
(115, 'Invoice', 'Y'),
(116, 'InvoiceAddition', 'Y'),
(117, 'InvoiceDeduction', 'Y'),
(118, 'InvoiceItem', 'Y'),
(119, 'IssueMaterialDetails', 'Y'),
(120, 'Lead', 'Y'),
(121, 'Lead02-04-2020', 'Y'),
(122, 'LeaveRoaster', 'Y'),
(123, 'Loan', 'Y'),
(124, 'LoginForm', 'Y'),
(125, 'MailEvents', 'Y'),
(126, 'MailSettings', 'Y'),
(127, 'MailStatus', 'Y'),
(128, 'MasApprovalSetting', 'Y'),
(129, 'MasApproveLevel', 'Y'),
(130, 'MasApproveSetting', 'Y'),
(131, 'MasBank', 'Y'),
(132, 'MasCategoryFirstLevel', 'Y'),
(133, 'MasCategorySecondLevel', 'Y'),
(134, 'MasCertificate', 'Y'),
(135, 'MasCompany', 'Y'),
(136, 'MasCompanyBankDetails', 'Y'),
(137, 'MasCompanyBranch', 'Y'),
(138, 'MasCompanyBranchBankDetails', 'Y'),
(139, 'MasCompanyBranchSponsor', 'Y'),
(140, 'MasCompanySettings', 'Y'),
(141, 'MasCompanyTermsConditions', 'Y'),
(142, 'MasCompanyType', 'Y'),
(143, 'MasCompanyWpsDetails', 'Y'),
(144, 'MasCountry', 'Y'),
(145, 'MasCurrency', 'Y'),
(146, 'MasDepartment', 'Y'),
(147, 'MasDesignation', 'Y'),
(148, 'MasDocument', 'Y'),
(149, 'MasEOSClearance', 'Y'),
(150, 'MasEmiratesList', 'Y'),
(151, 'MasExpiryStatus', 'Y'),
(152, 'MasFooterItems', 'Y'),
(153, 'MasGeneric', 'Y'),
(154, 'MasGratuity', 'Y'),
(155, 'MasHoliday', 'Y'),
(156, 'MasIndustry', 'Y'),
(157, 'MasInoutDocument', 'Y'),
(158, 'MasInvBin', 'Y'),
(159, 'MasInvRack', 'Y'),
(160, 'MasInvStatus', 'Y'),
(161, 'MasInvTax', 'Y'),
(162, 'MasInvUnit', 'Y'),
(163, 'MasInventoryWarehouse', 'Y'),
(164, 'MasInvoiceType', 'Y'),
(165, 'MasLandedCostItems', 'Y'),
(166, 'MasLeave', 'Y'),
(167, 'MasNoticeperiod', 'Y'),
(168, 'MasNotification', 'Y'),
(169, 'MasNumberSettings', 'Y'),
(170, 'MasOverTime', 'Y'),
(171, 'MasPaymentTerm', 'Y'),
(172, 'MasPension', 'Y'),
(173, 'MasProbability', 'Y'),
(174, 'MasQuotationCloseReason', 'Y'),
(175, 'MasRelation', 'Y'),
(176, 'MasSalarytype', 'Y'),
(177, 'MasSalesGroup', 'Y'),
(178, 'MasSetting', 'Y'),
(179, 'MasSettingsLogin', 'Y'),
(180, 'MasShift', 'Y'),
(181, 'MasShipping', 'Y'),
(182, 'MasSourceOfLead', 'Y'),
(183, 'MasTermsAndConditions', 'Y'),
(184, 'MasUserGroup', 'Y'),
(185, 'MasterCompanySettings', 'Y'),
(186, 'MasterFile', 'Y'),
(187, 'MasterMailDetail', 'Y'),
(188, 'MasterSalaryLock', 'Y'),
(189, 'MasterSalaryProcedure', 'Y'),
(190, 'MasterSettings', 'Y'),
(191, 'MaterialMovementIssue', 'Y'),
(192, 'Meeting', 'Y'),
(193, 'MeetingActivity', 'Y'),
(194, 'MeetingTransaction', 'Y'),
(195, 'Messaging', 'Y'),
(196, 'MonthlyGratuity', 'Y'),
(197, 'MonthlySalarySif', 'Y'),
(198, 'MonthlySalarySifDetails', 'Y'),
(199, 'MtomTransfer', 'Y'),
(200, 'MtomTransferDetails', 'Y'),
(201, 'Notification', 'Y'),
(202, 'NotificationEvents', 'Y'),
(203, 'OpeningBalance', 'Y'),
(204, 'Order', 'Y'),
(205, 'OrderAddition', 'Y'),
(206, 'OrderDeduction', 'Y'),
(207, 'OrderHistory', 'Y'),
(208, 'OrderItem', 'Y'),
(209, 'OwnerBankDetails', 'Y'),
(210, 'PackagingList', 'Y'),
(211, 'PriceGroupProductRelation', 'Y'),
(212, 'PriceList', 'Y'),
(213, 'PricingGroup', 'Y'),
(214, 'ProLocChangeRackBin', 'Y'),
(215, 'ProductClass', 'Y'),
(216, 'ProductLocation', 'Y'),
(217, 'ProductLocationDetails', 'Y'),
(218, 'ProductLocationDetails31-03-2020', 'Y'),
(219, 'ProductionBillofmaterial', 'Y'),
(220, 'ProductionBillofmaterialItem', 'Y'),
(221, 'ProductionGoodsIssue', 'Y'),
(222, 'ProductionGoodsIssueItem', 'Y'),
(223, 'ProductionGoodsIssueItemDetails', 'Y'),
(224, 'ProductionGoodsIssueReturnItem', 'Y'),
(225, 'ProductionGoodsReceipt', 'Y'),
(226, 'ProductionGoodsReceiptAddition', 'Y'),
(227, 'ProductionGoodsReceiptDeduction', 'Y'),
(228, 'ProductionGoodsReceiptItem', 'Y'),
(229, 'ProductionOrder', 'Y'),
(230, 'ProductionOrderItem', 'Y'),
(231, 'ProfitCalc', 'Y'),
(232, 'ProfitCalcExtra', 'Y'),
(233, 'ProfitCalcInternal', 'Y'),
(234, 'ProfitCalcItem', 'Y'),
(235, 'ProfitCalcItemInternal', 'Y'),
(236, 'ProfitSettings', 'Y'),
(237, 'Project', 'Y'),
(238, 'ProspectContact', 'Y'),
(239, 'ProspectDocs', 'Y'),
(240, 'ProspectShippingDetails', 'Y'),
(241, 'Prospects', 'Y'),
(242, 'ProspectsActivityMaster', 'Y'),
(243, 'PurchasingAnalysis', 'Y'),
(244, 'PurchasingDebitNoteAddition', 'Y'),
(245, 'PurchasingDebitNoteDeduction', 'Y'),
(246, 'PurchasingDebitNoteIssueItem', 'Y'),
(247, 'PurchasingEnquiry', 'Y'),
(248, 'PurchasingEnquiryItem', 'Y'),
(249, 'PurchasingEnquiryItemDetails', 'Y'),
(250, 'PurchasingEnquiryNonStockItem', 'Y'),
(251, 'PurchasingEnquiryNonStockItemtemp', 'Y'),
(252, 'PurchasingEnquiryStockItem', 'Y'),
(253, 'PurchasingEnquiryStockItemtemp', 'Y'),
(254, 'PurchasingEnquirytemp', 'Y'),
(255, 'PurchasingInvoice', 'Y'),
(256, 'PurchasingInvoiceAddition', 'Y'),
(257, 'PurchasingInvoiceDeduction', 'Y'),
(258, 'PurchasingInvoiceItem', 'Y'),
(259, 'PurchasingInvoiceLandedCost', 'Y'),
(260, 'PurchasingMaterialreceipt', 'Y'),
(261, 'PurchasingMaterialreceiptItem', 'Y'),
(262, 'PurchasingOrder', 'Y'),
(263, 'PurchasingOrderAddition', 'Y'),
(264, 'PurchasingOrderDeduction', 'Y'),
(265, 'PurchasingOrderNonStockItem', 'Y'),
(266, 'PurchasingOrderNonstockAdditions', 'Y'),
(267, 'PurchasingOrderNonstockDeductions', 'Y'),
(268, 'PurchasingOrderStockItem', 'Y'),
(269, 'PurchasingOrderStockItemtemp', 'Y'),
(270, 'PurchasingOrdertemp', 'Y'),
(271, 'PurchasingRequisition', 'Y'),
(272, 'PurchasingRequisitionNonStockItem', 'Y'),
(273, 'PurchasingRequisitionStockItem', 'Y'),
(274, 'Purchasingdebitnote', 'Y'),
(275, 'PurchasingdebitnoteItem', 'Y'),
(276, 'Quotes', 'Y'),
(277, 'QuotesAddition', 'Y'),
(278, 'QuotesDeduction', 'Y'),
(279, 'QuotesItem', 'Y'),
(280, 'RME_Repair', 'Y'),
(281, 'ReportingManager', 'Y'),
(282, 'RoomAllocation', 'Y'),
(283, 'RoomBedspace', 'Y'),
(284, 'RoomSetting', 'Y'),
(285, 'RoomSettingDetails', 'Y'),
(286, 'SalaryProcessing', 'Y'),
(287, 'SalarySlip', 'Y'),
(288, 'SalarySlipDetails', 'Y'),
(289, 'SalarySlipLeavedetails', 'Y'),
(290, 'SalesManTarget', 'Y'),
(291, 'SalesPriceGroup', 'Y'),
(292, 'SalesPriceGroupBrandClassMaster', 'Y'),
(293, 'SalesPriceGroupBrandclass', 'Y'),
(294, 'SalesPriceGroupBrandorclassMaster', 'Y'),
(295, 'SalesPriceGroupName', 'Y'),
(296, 'SalesSettings', 'Y'),
(297, 'SalesTargetMaster', 'Y'),
(298, 'SerialnoChangeHistory', 'Y'),
(299, 'SerialnoChangeHistoryDetails', 'Y'),
(300, 'ServiceStore', 'Y'),
(301, 'ServiceStoreDetails', 'Y'),
(302, 'ServiceStoreMaterialDetails', 'Y'),
(303, 'StockBalancingTable', 'Y'),
(304, 'StockDiff', 'Y'),
(305, 'StockLedger', 'Y'),
(306, 'StockUpdater', 'Y'),
(307, 'Store', 'Y'),
(308, 'Subledger', 'Y'),
(309, 'TitleMaster', 'Y'),
(310, 'TrackingDetails', 'Y'),
(311, 'TrackingFile', 'Y'),
(312, 'TriggerDetails', 'Y'),
(313, 'Triggerpoints', 'Y'),
(314, 'Triggers', 'Y'),
(315, 'Unit', 'Y'),
(316, 'UnitOfMeasurement', 'Y'),
(317, 'UploadInventory', 'Y'),
(318, 'UploadPriceList', 'Y'),
(319, 'UploadPriceListHeader', 'Y'),
(320, 'User', 'Y'),
(321, 'UsergroupPermission', 'Y'),
(322, 'Vendor', 'Y'),
(323, 'VendorContact', 'Y'),
(324, 'VendorShippingDetails', 'Y'),
(325, 'VouchersController', 'Y'),
(326, 'WorkingHours', 'Y'),
(327, 'events', 'Y'),
(328, 'token\n', 'Y');

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

--
-- Table structure for table `erp_opening_balance`
--

CREATE TABLE `erp_opening_balance` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `rack` int(11) NOT NULL,
  `bin` int(11) NOT NULL,
  `opening_quantity` decimal(15,3) NOT NULL,
  `serial_no` varchar(255) NOT NULL,
  `batch_no` varchar(255) NOT NULL,
  `expiry` date NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `total_value` decimal(15,2) NOT NULL,
  `updated` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_opening_cash`
--

CREATE TABLE `erp_opening_cash` (
  `id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `opening_date` date NOT NULL,
  `opening_cash` decimal(10,2) 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_order`
--

CREATE TABLE `erp_order` (
  `id` bigint(20) NOT NULL,
  `file_id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `file_title` varchar(255) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `order_date` date NOT NULL,
  `delivery_date` date NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `payment_terms_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `lpo` varchar(255) NOT NULL,
  `lpo_date` date NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `billing_address` text NOT NULL,
  `shipping_city` int(11) NOT NULL,
  `shipping_address` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `others` varchar(255) NOT NULL,
  `convert_status` enum('Y','N') NOT NULL,
  `status` int(11) NOT NULL,
  `terms_id` int(11) NOT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `grand_total` decimal(15,2) NOT NULL,
  `total_tax_amount` decimal(15,2) NOT NULL,
  `invoice_type_id` int(11) NOT NULL COMMENT 'refer from crm_mas_invoice_type id',
  `remarks` text NOT NULL,
  `level1_approved_by` int(11) NOT NULL,
  `level1_approved_time` datetime NOT NULL,
  `level2_approved_by` int(11) NOT NULL,
  `level2_approved_time` datetime NOT NULL,
  `level3_approved_by` int(11) NOT NULL,
  `level3_approved_time` datetime NOT NULL,
  `total_discount_percentage` decimal(15,2) NOT NULL,
  `total_discount_amount` decimal(15,2) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `order_type` enum('sales','service') NOT NULL DEFAULT 'sales',
  `project_id` int(11) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `job_order_id` int(11) NOT NULL,
  `inco_term_id` int(11) NOT NULL,
  `production_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_order`
--

INSERT INTO `erp_order` (`id`, `file_id`, `quotes_id`, `file_title`, `customer_id`, `contact_id`, `lead_owner_id`, `order_date`, `delivery_date`, `sales_group_id`, `payment_terms_id`, `currency_id`, `exchange_rate`, `lpo`, `lpo_date`, `shipping_by`, `billing_address`, `shipping_city`, `shipping_address`, `reference`, `notes`, `others`, `convert_status`, `status`, `terms_id`, `terms_and_conditions`, `grand_total`, `total_tax_amount`, `invoice_type_id`, `remarks`, `level1_approved_by`, `level1_approved_time`, `level2_approved_by`, `level2_approved_time`, `level3_approved_by`, `level3_approved_time`, `total_discount_percentage`, `total_discount_amount`, `isActive`, `order_type`, `project_id`, `ticket_id`, `job_order_id`, `inco_term_id`, `production_status`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(20001, 10001, 10001, '', 1001, 1, 8, '2025-05-06', '2025-05-09', 1, 2, 1, 1.00, 'LPO1', '2025-05-06', '6', 'Tawazun Industrial Park,\r\nAl Ajban\r\nP.O Box 109667\r\nAbu Dhabi , United Arab Emirates', 1, 'Abu Dhabi Autonomous Systems Investments LLC\r\nTawazun Industrial Park,\r\nAl Ajban, Abu Dhabi\r\nUnited Arab Emirates', '', '', '', 'Y', 0, 0, 'Sales Terms and Conditions come here', 430.50, 20.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-05-06 09:19:02', '0000-00-00 00:00:00'),
(20002, 10003, 10002, '', 1069, 69, 8, '2025-05-06', '2025-05-09', 1, 1, 1, 1.00, '45554', '2025-05-06', '6', '-, P.O Box : -\r\n- - United Arab Emirates', 67, 'Saab Middle East LLC\r\nAl Tomooh Investments LLC,\r\nAl Reem Tamouh 3~0,\r\nAl Reem Island\r\nAbu Dhabi\r\nPO Box : -\r\nUnited Arab Emirates', '', '', '', 'Y', 0, 0, 'Sales Terms and Conditions come here', 645.75, 30.75, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-05-06 11:12:00', '0000-00-00 00:00:00'),
(20003, 10005, 10003, '', 1028, 28, 8, '2025-05-06', '2025-05-09', 1, 1, 1, 1.00, 'LPO 111', '2025-05-06', '6', 'Dubai, P.O Box : 9292\r\n- - United Arab Emirates', 28, 'Dubai World Trade Centre\r\nBur Dubai, Dubai\r\nUnited Arab Emirates', '', '', '', 'Y', 0, 0, '', 273.00, 13.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 10001, 0, 0, 0, 'N', 1, 1, '2025-05-06 11:22:39', '2025-05-08 06:12:53'),
(20004, 10006, 10004, '', 1030, 30, 8, '2025-05-06', '2025-05-09', 1, 2, 1, 1.00, 'LPO 12345', '2025-05-06', '6', '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', 30, 'Emirates Electrical & Instrumentation Company\r\nBuilding 411, 11th Floor,\r\nMadinat Zayed Office Tower,\r\nSultan Bin Zayed The First Street\r\nAbu Dhabi, United Arab Emirates', '', '', '', 'Y', 0, 0, '', 3675.00, 175.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-05-06 14:55:11', '0000-00-00 00:00:00'),
(20005, 10017, 10006, '', 1007, 7, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '12345', '2025-05-09', '6', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 15.75, 0.75, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 12:57:02', '0000-00-00 00:00:00'),
(20006, 10019, 10007, '', 1007, 7, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '1234', '2025-05-09', '6', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 21.00, 1.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 12:59:34', '0000-00-00 00:00:00'),
(20007, 10007, 10005, '', 1020, 20, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '1234', '2025-05-09', '6', 'Dubai , P.O Box : 30323 \r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 885.15, 42.15, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 13:04:13', '0000-00-00 00:00:00'),
(20008, 10020, 10008, '', 1070, 70, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '1234', '2025-05-09', '6', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 42.00, 2.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 13:05:36', '0000-00-00 00:00:00'),
(20009, 10021, 10009, '', 1004, 4, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '12345', '2025-05-09', '6', 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 39.90, 1.90, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 14:19:02', '0000-00-00 00:00:00'),
(20010, 10022, 10010, '', 1007, 7, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '1234', '2025-05-09', '6', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 42.00, 2.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 14:22:13', '0000-00-00 00:00:00'),
(20011, 10024, 10011, '', 1004, 4, 8, '2025-05-09', '2025-05-12', 1, 2, 1, 1.00, '0', '2025-05-09', '6', 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 315.00, 15.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-05-09 15:05:24', '0000-00-00 00:00:00'),
(20012, 10037, 10013, '', 1070, 70, 8, '2025-05-20', '2025-05-23', 1, 2, 1, 1.00, 'LPO 1111', '2025-05-20', '6', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 530.25, 25.25, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 10003, 0, 0, 0, 'N', 8, 0, '2025-05-20 16:39:43', '0000-00-00 00:00:00'),
(20013, 10040, 10014, '', 1021, 21, 8, '2025-05-21', '2025-05-24', 1, 2, 1, 1.00, '11', '2025-05-21', '6', 'Abu Dhabi, P.O Box : 9549\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 598.50, 28.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-05-21 10:19:42', '0000-00-00 00:00:00'),
(20014, 10026, 10012, '', 1003, 3, 8, '2025-05-22', '2025-05-25', 1, 2, 1, 1.00, '45554', '2025-05-22', '6', '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', 0, '', '', '', '', 'Y', 0, 0, '', 1580.25, 75.25, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 5.00, 75.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-05-22 11:05:28', '0000-00-00 00:00:00'),
(20015, 10044, 10015, '', 1007, 7, 8, '2025-05-22', '2025-05-25', 1, 2, 1, 1.00, 'A101', '2025-05-22', '6', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 304.50, 14.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-05-22 11:56:39', '0000-00-00 00:00:00'),
(20016, 10059, 10025, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '300', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', 'n', '', 'Y', 0, 0, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 1, 're', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 10002, 0, 0, 0, 'N', 8, 8, '2025-06-01 14:44:18', '2025-06-01 14:59:29'),
(20017, 10056, 10022, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '300', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 0, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 8, '2025-06-01 14:53:15', '2025-06-01 15:01:45'),
(20018, 10058, 10024, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '600', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 8, '2025-06-01 15:09:03', '2025-06-01 15:18:21'),
(20019, 10057, 10023, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '633', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 15:32:04', '0000-00-00 00:00:00'),
(20020, 10055, 10021, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '900', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 54.00, 4.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 16:05:43', '0000-00-00 00:00:00'),
(20021, 10054, 10020, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '900', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 54.00, 4.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 16:15:53', '0000-00-00 00:00:00'),
(20022, 10053, 10019, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '85', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 54.00, 4.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 16:19:08', '0000-00-00 00:00:00'),
(20023, 10060, 10026, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '320', '2025-06-01', '4', 'Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 32.40, 2.40, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 16:21:26', '0000-00-00 00:00:00'),
(20024, 10050, 10018, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '89', '2025-06-01', '4', 'Mauritania', 0, '', '', 'ntes', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 32.40, 2.40, 1, 'remk', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 16:54:24', '0000-00-00 00:00:00'),
(20025, 10052, 10027, '', 1089, 94, 8, '2025-06-01', '2025-06-04', 5, 2, 3, 4.15, '567', '2025-06-01', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 64.80, 4.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-01 17:32:26', '0000-00-00 00:00:00'),
(20026, 10063, 10029, '', 1001, 1, 8, '2025-06-02', '2025-06-05', 5, 2, 3, 4.15, '1', '2025-06-02', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 4762.80, 352.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-02 15:02:31', '0000-00-00 00:00:00'),
(20027, 10062, 10028, '', 1001, 1, 8, '2025-06-02', '2025-06-05', 5, 2, 3, 4.15, '1', '2025-06-02', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 2700.00, 200.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-02 15:02:42', '0000-00-00 00:00:00'),
(20028, 10064, 10030, '', 1001, 1, 8, '2025-06-02', '2025-06-05', 5, 2, 3, 4.15, '545', '2025-06-02', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 4762.80, 352.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-02 15:10:55', '0000-00-00 00:00:00'),
(20029, 10065, 10031, '', 1019, 19, 8, '2025-06-02', '2025-06-05', 5, 2, 3, 4.15, 'A101', '2025-06-02', '4', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 2, 'Purchase Terms and Conditions come here\r\n', 21.60, 1.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-02 15:15:48', '0000-00-00 00:00:00'),
(20030, 10066, 10032, '', 1001, 1, 8, '2025-06-03', '2025-06-06', 1, 2, 1, 1.00, '3', '2025-06-03', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 2430.00, 180.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-03 08:55:23', '0000-00-00 00:00:00'),
(20031, 10069, 10035, '', 1001, 1, 8, '2025-06-03', '2025-06-06', 5, 2, 1, 1.00, '123', '2025-06-03', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 129.60, 9.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-03 09:25:43', '0000-00-00 00:00:00'),
(20032, 10070, 10036, '', 1001, 1, 8, '2024-08-28', '2025-06-05', 5, 2, 1, 1.00, '123', '2025-06-03', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 21.60, 1.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 8, '2025-06-03 14:57:50', '2025-06-04 08:42:42'),
(20033, 10076, 10042, '', 1001, 1, 8, '2025-06-03', '2025-06-06', 5, 2, 1, 1.00, '123456', '2025-06-03', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 'NEW', '', 'Y', 0, 3, 'NEW', 248.40, 18.40, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 10001, 0, 0, 0, 'N', 8, 8, '2025-06-03 15:28:52', '2025-06-03 15:29:09'),
(20034, 10051, 10043, '', 1089, 94, 8, '2025-06-04', '2025-06-07', 5, 2, 1, 1.00, '563', '2025-06-04', '4', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 11, 'Sales Terms and Conditions come here', 10.80, 0.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 8, '2025-06-04 16:36:39', '2025-06-04 16:37:33'),
(20035, 10088, 10049, '', 1078, 78, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '22', '2025-06-05', '4', 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 7.56, 0.56, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-05 11:07:53', '0000-00-00 00:00:00'),
(20036, 10087, 10048, '', 1070, 70, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '22', '2025-06-05', '4', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 3159.00, 234.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-05 11:08:03', '0000-00-00 00:00:00'),
(20037, 10086, 10047, '', 1030, 30, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '33', '2025-06-05', '4', 'Abu Dhabi, P.O Box : 41708\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 631.80, 46.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-05 11:08:17', '0000-00-00 00:00:00'),
(20038, 10085, 10046, '', 1017, 17, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '456', '2025-06-05', '4', 'Abu Dhabi, P.O Box : 840\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 241.92, 17.92, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-05 11:08:30', '0000-00-00 00:00:00'),
(20039, 10084, 10045, '', 1002, 2, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '435', '2025-06-05', '4', 'Abu Dhabi, P.O Box : 2723\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 58.32, 4.32, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-05 11:08:43', '0000-00-00 00:00:00'),
(20040, 10089, 10050, '', 1094, 101, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '300', '2025-06-05', '4', 'address\r\nP.O Box 689666\r\ndubi , Mauritania', 0, '', '', 'notes3', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 10.80, 0.80, 1, 'remks', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 10002, 0, 0, 0, 'N', 8, 8, '2025-06-05 12:31:09', '2025-06-05 12:36:23'),
(20041, 10090, 10051, '', 1094, 101, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '32', '2025-06-05', '4', 'dubi, P.O Box : 689666\r\nuae - Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 108.00, 8.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 8, '2025-06-05 12:47:13', '2025-06-05 12:47:23'),
(20042, 10091, 10052, '', 1094, 101, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '7', '2025-06-05', '4', 'dubi, P.O Box : 689666\r\nuae - Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 108.00, 8.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-05 12:49:25', '0000-00-00 00:00:00'),
(20043, 10092, 10053, '', 1094, 101, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, '88', '2025-06-05', '4', 'dubi, P.O Box : 689666\r\nuae - Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 172.80, 12.80, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-05 12:54:22', '0000-00-00 00:00:00'),
(20044, 10093, 10054, '', 1001, 1, 8, '2025-06-05', '2025-06-08', 5, 2, 1, 1.00, 'e4rwe', '2025-06-05', '4', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 0, '', 1134.00, 84.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-05 13:35:47', '0000-00-00 00:00:00'),
(20045, 10099, 10055, '', 1089, 94, 8, '2025-06-09', '2025-06-12', 5, 2, 1, 1.00, '98', '2025-06-09', '4', 'Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-09 10:27:34', '0000-00-00 00:00:00'),
(20046, 10100, 10056, '', 1089, 94, 8, '2025-06-09', '2025-06-12', 5, 2, 1, 1.00, '520', '2025-06-09', '4', 'Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-09 10:40:24', '0000-00-00 00:00:00'),
(20047, 10108, 10063, '', 1089, 94, 8, '2025-06-09', '2025-06-12', 5, 2, 1, 1.00, '56', '2025-06-09', '4', 'Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 1, '2025-06-09 13:33:36', '2025-06-09 13:34:07'),
(20048, 10109, 10063, '', 1089, 94, 8, '2025-06-09', '2025-06-12', 5, 2, 1, 1.00, '56', '2025-06-09', '4', 'Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-09 13:34:15', '0000-00-00 00:00:00'),
(20049, 10122, 10066, '', 1096, 103, 4, '2025-06-24', '2025-06-27', 1, 2, 1, 1.00, '12', '2025-06-24', '2', 'P.O Box \r\n , Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 31.50, 1.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-24 11:23:25', '0000-00-00 00:00:00'),
(20050, 10123, 10067, '', 1019, 19, 4, '2025-06-24', '2025-06-27', 1, 2, 1, 1.00, 'O10067', '2025-06-24', '2', 'The Meydan Hotel Grandstand,\r\n6th Floor Meydan Road,\r\nNad Al Sheba\r\nP.O Box -\r\nDubai , United Arab Emirates', 0, '', '', 'notes', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 73.50, 3.50, 1, 'remarks', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 8, '2025-06-24 12:02:47', '2025-06-27 15:38:18'),
(20051, 10127, 10069, '', 1086, 86, 4, '2025-06-26', '2025-06-29', 1, 2, 1, 1.00, '12', '2025-06-26', '2', 'PBU-A01,\r\nDubai Production City\r\nP.O Box 485004\r\nDubai , United Arab Emirates', 81, 'Wise Concepts Fz LLC\r\nPBU-A01,\r\nDubai Production City\r\nDubai, United Arab Emirates', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1102.50, 52.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 1, '2025-06-26 09:59:18', '2025-06-26 09:59:48'),
(20052, 10120, 10065, '', 1002, 2, 8, '2025-06-27', '2025-06-30', 5, 2, 1, 1.00, '1', '2025-06-27', '2', 'Abu Dhabi, P.O Box : 2723\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 22436.40, 1068.40, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-27 14:55:14', '0000-00-00 00:00:00'),
(20053, 10134, 10070, '', 1001, 1, 4, '2025-06-27', '2025-06-30', 1, 2, 1, 1.00, '1001', '2025-06-27', '2', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1181.25, 56.25, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 10.00, 125.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-27 15:18:04', '0000-00-00 00:00:00'),
(20054, 10075, 10041, '', 1001, 1, 8, '2025-06-27', '2025-06-30', 1, 2, 1, 1.00, '111', '2025-06-27', '2', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 1, 'Abu Dhabi Autonomous Systems Investments LLC\r\nTawazun Industrial Park,\r\nAl Ajban\r\nAbu Dhabi\r\nPO Box : -\r\nUnited Arab Emirates', '', '12333', '', 'Y', 0, 0, '123', 49.88, 2.38, 1, '45345', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 5.00, 2.50, 'Y', 'sales', 0, 0, 0, 10, 'N', 8, 8, '2025-06-27 15:53:01', '2025-07-01 10:51:38'),
(20055, 10136, 10071, '', 1089, 94, 4, '2025-06-27', '2025-06-30', 1, 2, 3, 4.15, '1234', '2025-06-27', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 157.50, 7.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 0, '2025-06-27 16:18:04', '0000-00-00 00:00:00'),
(20056, 10124, 10068, '', 1096, 103, 4, '2025-06-27', '2025-06-30', 1, 2, 3, 4.15, '12345', '2025-06-27', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 69.30, 3.30, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 1, 0, '2025-06-27 16:37:25', '0000-00-00 00:00:00'),
(20057, 10138, 10072, '', 1007, 7, 4, '2025-06-30', '2025-07-03', 1, 2, 1, 1.00, '1234', '2025-06-30', '2', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 7, 'AK Flightcases LLC\r\nIndustrial Area 4\r\nSharjah\r\nPO Box : -\r\nUnited Arab Emirates', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 9066.75, 431.75, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 0, 'N', 8, 8, '2025-06-30 08:50:29', '2025-06-30 08:50:50'),
(20058, 10107, 10062, '', 1089, 94, 8, '2025-06-30', '2025-07-03', 5, 2, 1, 1.00, '123', '2025-06-30', '2', 'Mauritania', 0, '', '', 'Test', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 21.00, 1.00, 1, 'Test', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 10, 'N', 8, 8, '2025-06-30 11:01:36', '2025-06-30 11:23:47'),
(20059, 10106, 10061, '', 1089, 94, 8, '2025-06-30', '2025-07-03', 5, 2, 3, 4.15, '112', '2025-06-30', '2', 'Mauritania', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 105.00, 5.00, 1, 'Test', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 1, 'Y', 8, 0, '2025-06-30 11:31:40', '0000-00-00 00:00:00'),
(20060, 10148, 10073, '', 1001, 1, 4, '2025-07-01', '2025-07-04', 1, 2, 1, 1.00, '444', '2025-07-01', '2', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1228.50, 58.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 10.00, 130.00, 'Y', 'sales', 0, 0, 0, 1, 'N', 8, 0, '2025-07-01 11:40:22', '0000-00-00 00:00:00'),
(20061, 10149, 10074, '', 1001, 1, 4, '2025-07-01', '2025-07-04', 1, 2, 1, 1.00, '545445', '2025-07-01', '2', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1228.50, 58.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 10.00, 130.00, 'Y', 'sales', 0, 0, 0, 1, 'Y', 8, 0, '2025-07-01 13:41:51', '0000-00-00 00:00:00'),
(20062, 10150, 10075, '', 1001, 1, 4, '2025-07-01', '2025-07-04', 1, 2, 1, 1.00, '45554', '2025-07-01', '2', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1228.50, 58.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 10.00, 130.00, 'Y', 'sales', 0, 0, 0, 1, 'N', 8, 0, '2025-07-01 13:45:47', '0000-00-00 00:00:00'),
(20063, 10154, 10077, '', 1100, 107, 13, '2025-09-22', '2025-09-25', 1, 2, 1, 1.00, '1', '2025-09-22', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 1, 'N', 13, 0, '2025-09-22 23:06:06', '0000-00-00 00:00:00'),
(20064, 10155, 10078, '', 1099, 106, 13, '2025-09-24', '2025-09-27', 1, 2, 1, 1.00, 'AB02', '2025-09-24', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 1, 'Y', 13, 0, '2025-09-24 11:11:07', '0000-00-00 00:00:00'),
(20065, 10156, 10078, '', 1099, 106, 13, '2025-09-24', '2025-09-27', 1, 2, 1, 1.00, 'AB02', '2025-09-24', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 1, 'N', 13, 0, '2025-09-24 11:20:57', '0000-00-00 00:00:00'),
(20066, 10158, 10080, '', 1099, 106, 13, '2025-09-24', '2025-09-27', 1, 2, 1, 1.00, 'Ab002', '2025-09-24', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'sales', 0, 0, 0, 1, 'N', 13, 0, '2025-09-24 11:29:57', '0000-00-00 00:00:00'),
(20067, 10162, 10081, '', 1099, 106, 4, '2025-10-06', '2025-10-09', 1, 2, 1, 1.00, 'service', '2025-10-06', '2', 'P.O Box \r\n , United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 0.00, 0.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-06 17:02:39', '0000-00-00 00:00:00'),
(20068, 10163, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 1, '2025-10-07 14:17:15', '2025-10-07 14:56:58'),
(20069, 10165, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 15:25:37', '0000-00-00 00:00:00'),
(20070, 10166, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 15:41:13', '0000-00-00 00:00:00'),
(20071, 10167, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 15:42:00', '0000-00-00 00:00:00'),
(20072, 10168, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 15:45:50', '0000-00-00 00:00:00'),
(20073, 10169, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 15:49:14', '0000-00-00 00:00:00'),
(20074, 10170, 10082, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1575.00, 75.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 15:58:03', '0000-00-00 00:00:00'),
(20075, 10164, 10083, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1111', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 16:01:33', '0000-00-00 00:00:00'),
(20076, 10164, 10083, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1111', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 16:01:43', '0000-00-00 00:00:00'),
(20077, 10171, 10083, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1111', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 16:03:15', '0000-00-00 00:00:00'),
(20078, 10172, 10083, '', 1099, 106, 4, '2025-10-07', '2025-10-10', 1, 2, 1, 1.00, '1111', '2025-10-07', '2', 'United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-07 16:22:52', '0000-00-00 00:00:00'),
(20079, 10173, 10084, '', 1028, 28, 4, '2025-10-15', '2025-10-18', 1, 2, 1, 1.00, '1', '2025-10-15', '2', 'Dubai, P.O Box : 9292\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 10.50, 0.50, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 0, '2025-10-15 11:48:52', '0000-00-00 00:00:00'),
(20080, 10174, 10085, '', 1031, 31, 4, '2025-10-15', '2025-10-18', 1, 2, 1, 1.00, '1', '2025-10-15', '2', 'Dubai, P.O Box : 686\r\n- - United Arab Emirates', 0, '', '', '', '', 'Y', 0, 1, 'Sales Terms and Conditions come here', 2100.00, 100.00, 1, '', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0.00, 0.00, 'Y', 'service', 0, 0, 0, 1, 'N', 1, 1, '2025-10-15 11:59:20', '2025-10-15 12:04:32');

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

--
-- Table structure for table `erp_order_addition`
--

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

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

--
-- Table structure for table `erp_order_contract_item`
--

CREATE TABLE `erp_order_contract_item` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `quantity` decimal(15,6) NOT NULL,
  `contract_month` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_order_contract_item`
--

INSERT INTO `erp_order_contract_item` (`id`, `order_id`, `product_id`, `part_number`, `description`, `brand_class_id`, `unit_id`, `quantity`, `contract_month`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(2, 20079, 667, 'IMP001', 'Shipping Charges', 0, 2, 10.000000, '1', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 20079, 666, 'IMP002', 'Duty Charges', 0, 2, 110.000000, '2', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 20080, 667, 'IMP001', 'Shipping Charges', 0, 2, 100.000000, '1', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 20080, 666, 'IMP002', 'Duty Charges', 0, 2, 150.000000, '2', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_order_deduction`
--

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

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

--
-- Table structure for table `erp_order_invoice_advance`
--

CREATE TABLE `erp_order_invoice_advance` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `amount_without_tax` decimal(15,3) NOT NULL,
  `tax_amount` decimal(15,3) NOT NULL,
  `balance_amount_without_tax` decimal(15,3) NOT NULL,
  `balance_tax_amount` decimal(15,3) NOT NULL,
  `advance_amount` decimal(15,6) NOT NULL,
  `balance_amount` decimal(15,6) NOT NULL,
  `invoiced_amount` decimal(15,6) 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_order_item`
--

CREATE TABLE `erp_order_item` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `quotes_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `addition_percentage` varchar(50) NOT NULL DEFAULT '0',
  `addition_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `deduction_percentage` varchar(50) NOT NULL DEFAULT '0',
  `deduction_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,2) NOT NULL,
  `net_amount` decimal(15,2) NOT NULL,
  `actual_cost_rate` decimal(15,2) NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `checked` 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,
  `alternate_id` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_order_item`
--

INSERT INTO `erp_order_item` (`id`, `order_id`, `quotes_item_id`, `product_id`, `part_number`, `description`, `brand_class_id`, `quantity`, `unit_id`, `rate`, `amount`, `addition_percentage`, `addition_amount`, `deduction_percentage`, `deduction_amount`, `tax_vat_percentage`, `tax_vat_amount`, `net_amount`, `actual_cost_rate`, `expected_delivery_date`, `checked`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `alternate_id`) VALUES
(1, 20001, 11, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 0, 2.000, 2, 75.000, 150.00, '0', 0.00, '0', 0.00, 5.00, 7.50, 150.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(2, 20001, 12, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 0, 2.000, 349, 130.000, 260.00, '', 0.00, '', 0.00, 5.00, 13.00, 260.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(3, 20002, 13, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 0, 3.000, 2, 75.000, 225.00, '0', 0.00, '0', 0.00, 5.00, 11.25, 225.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(4, 20002, 14, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 0, 3.000, 349, 130.000, 390.00, '', 0.00, '', 0.00, 5.00, 19.50, 390.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(10, 20003, 36, 398, '3i-0907-4M-L', 'iSeries 0907 Mil-Spec Pistol Case- (Olive Drab Green)', 0, 2.000, 398, 72.000, 144.00, '', 0.00, '', 0.00, 5.00, 7.20, 144.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(9, 20003, 35, 238, 'R140AF29BKS', 'Pln R140 LD SD Black 1650x900x29mm S/S', 0, 2.000, 238, 58.000, 116.00, '0', 0.00, '0', 0.00, 5.00, 5.80, 116.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(7, 20004, 45, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm and 10 mm', 0, 5.000, 2, 75.000, 375.00, '0', 0.00, '0', 0.00, 5.00, 18.75, 375.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(8, 20004, 46, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616\r\n\r\n', 0, 25.000, 302, 125.000, 3125.00, '', 0.00, '', 0.00, 5.00, 156.25, 3125.00, 0.00, '2025-05-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(11, 20005, 146, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 1.000, 1, 15.000, 15.00, '0', 0.00, '0', 0.00, 5.00, 0.75, 15.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(12, 20006, 148, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 1.000, 1, 20.000, 20.00, '0', 0.00, '0', 0.00, 5.00, 1.00, 20.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(13, 20007, 149, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm and 10 mm', 0, 3.000, 2, 51.000, 153.00, '0', 0.00, '0', 0.00, 5.00, 7.65, 153.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(14, 20007, 150, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616\r\n\r\n', 0, 2.000, 302, 100.000, 200.00, '', 0.00, '', 0.00, 5.00, 10.00, 200.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(15, 20007, 151, 260, '1SKB-16', 'Shallow Acoustic Roundback Shaped Hardshell Case', 0, 5.000, 260, 98.000, 490.00, '', 0.00, '', 0.00, 5.00, 24.50, 490.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(16, 20008, 153, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 2.000, 1, 20.000, 40.00, '0', 0.00, '0', 0.00, 5.00, 2.00, 40.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(17, 20009, 155, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 2.000, 1, 19.000, 38.00, '0', 0.00, '0', 0.00, 5.00, 1.90, 38.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(18, 20010, 157, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 2.000, 1, 20.000, 40.00, '0', 0.00, '0', 0.00, 5.00, 2.00, 40.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(19, 20011, 159, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 10.000, 1, 30.000, 300.00, '0', 0.00, '0', 0.00, 5.00, 15.00, 300.00, 0.00, '2025-05-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(20, 20012, 162, 664, 'D100001', 'Dummy Item', 0, 1.000, 664, 5.000, 5.00, '500', 500.00, '0', 0.00, 5.00, 25.25, 505.00, 0.00, '2025-05-23', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(21, 20013, 165, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 0, 10.000, 24, 25.000, 250.00, '0', 0.00, '0', 0.00, 5.00, 12.50, 250.00, 0.00, '2025-05-24', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(22, 20013, 166, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 0, 10.000, 25, 32.000, 320.00, '', 0.00, '', 0.00, 5.00, 16.00, 320.00, 0.00, '2025-05-24', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(23, 20014, 170, 449, '3i-1914-8B-E', 'iSeries 1914-8B with Custom Foam Insert for Atera X8', 0, 1.000, 449, 1500.000, 1500.00, '0', 0.00, '5%', 75.00, 5.00, 71.25, 1425.00, 0.00, '2025-05-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(24, 20014, 171, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 10.000, 20.00, '', 0.00, '', 0.00, 5.00, 1.00, 20.00, 0.00, '2025-05-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(25, 20014, 172, 666, 'IMP002', 'Duty Charges', 0, 3.000, 666, 20.000, 60.00, '', 0.00, '', 0.00, 5.00, 3.00, 60.00, 0.00, '2025-05-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(26, 20015, 176, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 1.000, 1, 15.000, 15.00, '0', 0.00, '0', 0.00, 5.00, 0.75, 15.00, 0.00, '2025-05-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(27, 20015, 177, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 25.000, 50.00, '', 0.00, '', 0.00, 5.00, 2.50, 50.00, 0.00, '2025-05-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(28, 20015, 178, 666, 'IMP002', 'Duty Charges', 0, 3.000, 666, 75.000, 225.00, '', 0.00, '', 0.00, 5.00, 11.25, 225.00, 0.00, '2025-05-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(31, 20016, 217, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(32, 20017, 209, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(34, 20018, 218, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(35, 20019, 219, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(36, 20020, 220, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(37, 20020, 221, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616', 0, 1.000, 302, 30.000, 30.00, '', 0.00, '', 0.00, 8.00, 2.40, 30.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(38, 20021, 224, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(39, 20021, 225, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616', 0, 1.000, 302, 30.000, 30.00, '', 0.00, '', 0.00, 8.00, 2.40, 30.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(40, 20022, 228, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(41, 20022, 229, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616', 0, 1.000, 302, 30.000, 30.00, '', 0.00, '', 0.00, 8.00, 2.40, 30.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(42, 20023, 232, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(43, 20023, 233, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 0, 1.000, 349, 20.000, 20.00, '', 0.00, '', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(44, 20024, 236, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(45, 20024, 237, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 0, 1.000, 349, 20.000, 20.00, '', 0.00, '', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(46, 20025, 240, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 0, 2.000, 349, 10.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(47, 20025, 241, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616', 0, 2.000, 302, 20.000, 40.00, '', 0.00, '', 0.00, 8.00, 3.20, 40.00, 0.00, '2025-06-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(48, 20026, 244, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 6.000, 246, 735.000, 4410.00, '0', 0.00, '0', 0.00, 8.00, 352.80, 4410.00, 0.00, '2025-06-05', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(49, 20027, 245, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 10.000, 245, 250.000, 2500.00, '0', 0.00, '0', 0.00, 8.00, 200.00, 2500.00, 0.00, '2025-06-05', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(50, 20028, 247, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 6.000, 246, 735.000, 4410.00, '0', 0.00, '0', 0.00, 8.00, 352.80, 4410.00, 0.00, '2025-06-05', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(51, 20029, 249, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-05', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(52, 20030, 253, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 3.000, 246, 750.000, 2250.00, '0', 0.00, '0', 0.00, 8.00, 180.00, 2250.00, 0.00, '2025-06-06', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(53, 20031, 257, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 0, 2.000, 2, 60.000, 120.00, '0', 0.00, '0', 0.00, 8.00, 9.60, 120.00, 0.00, '2025-06-06', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(57, 20032, 277, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-05', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(56, 20033, 279, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 230.000, 230.00, '0', 0.00, '0', 0.00, 8.00, 18.40, 230.00, 0.00, '2025-06-06', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(59, 20034, 285, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-07', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(60, 20035, 291, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 1.000, 245, 7.000, 7.00, '0', 0.00, '0', 0.00, 8.00, 0.56, 7.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(61, 20036, 292, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 45.000, 245, 65.000, 2925.00, '0', 0.00, '0', 0.00, 8.00, 234.00, 2925.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(62, 20037, 293, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 13.000, 245, 45.000, 585.00, '0', 0.00, '0', 0.00, 8.00, 46.80, 585.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(63, 20038, 294, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 8.000, 245, 28.000, 224.00, '0', 0.00, '0', 0.00, 8.00, 17.92, 224.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(64, 20039, 295, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 2.000, 245, 27.000, 54.00, '0', 0.00, '0', 0.00, 8.00, 4.32, 54.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(66, 20040, 301, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 10.000, 10.00, '0', 0.00, '0', 0.00, 8.00, 0.80, 10.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(68, 20041, 303, 668, 'A10001', 'Test Item A10001', 0, 5.000, 668, 20.000, 100.00, '0', 0.00, '0', 0.00, 8.00, 8.00, 100.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(69, 20042, 305, 668, 'A10001', 'Test Item A10001', 0, 5.000, 668, 20.000, 100.00, '0', 0.00, '0', 0.00, 8.00, 8.00, 100.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(70, 20043, 308, 668, 'A10001', 'Test Item A10001', 0, 2.000, 668, 30.000, 60.00, '0', 0.00, '0', 0.00, 8.00, 4.80, 60.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(71, 20043, 309, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 0, 5.000, 2, 20.000, 100.00, '', 0.00, '', 0.00, 8.00, 8.00, 100.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(72, 20044, 311, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 30.000, 245, 35.000, 1050.00, '0', 0.00, '0', 0.00, 8.00, 84.00, 1050.00, 0.00, '2025-06-08', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(73, 20045, 313, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(74, 20046, 315, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(76, 20047, 327, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(77, 20048, 0, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 8.00, 1.60, 20.00, 0.00, '2025-06-12', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(78, 20049, 364, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 1.000, 245, 15.000, 15.00, '0', 0.00, '0', 0.00, 5.00, 0.75, 15.00, 0.00, '2025-06-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(79, 20049, 365, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 1.000, 246, 15.000, 15.00, '', 0.00, '', 0.00, 5.00, 0.75, 15.00, 0.00, '2025-06-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(118, 20050, 368, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 1.000, 245, 25.000, 25.00, '0', 0.00, '0', 0.00, 5.00, 1.25, 25.00, 0.00, '2025-06-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(119, 20050, 369, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 1.000, 246, 45.000, 45.00, '', 0.00, '', 0.00, 5.00, 2.25, 45.00, 0.00, '2025-06-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(85, 20051, 375, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 3.000, 246, 150.000, 450.00, '', 0.00, '', 0.00, 5.00, 22.50, 450.00, 0.00, '2025-06-29', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(84, 20051, 374, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 5.000, 245, 120.000, 600.00, '0', 0.00, '0', 0.00, 5.00, 30.00, 600.00, 0.00, '2025-06-29', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(136, 20054, 276, 668, 'A10001', 'Test Item A10001', 0, 5.000, 668, 10.000, 50.00, '0', 0.00, '5%', 2.50, 5.00, 2.38, 47.50, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(108, 20052, 354, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 10.000, 245, 15.000, 150.00, '0', 0.00, '0', 0.00, 5.00, 7.50, 150.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(109, 20052, 355, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 7.000, 246, 35.000, 245.00, '', 0.00, '', 0.00, 5.00, 12.25, 245.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(110, 20052, 356, 624, '3R-RL12-001-7', '12-Pack Deployable Rifle Locker', 0, 6.000, 624, 45.000, 270.00, '', 0.00, '', 0.00, 5.00, 13.50, 270.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(111, 20052, 357, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 0, 250.000, 24, 55.000, 13750.00, '', 0.00, '', 0.00, 5.00, 687.50, 13750.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(112, 20052, 358, 343, '1SKB-SB100', 'Standard Stick Bag', 0, 45.000, 343, 25.000, 1125.00, '', 0.00, '', 0.00, 5.00, 56.25, 1125.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(113, 20052, 359, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 0, 56.000, 349, 78.000, 4368.00, '', 0.00, '', 0.00, 5.00, 218.40, 4368.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(114, 20052, 360, 531, '3i-3614-6-003', 'iSeries 3614-6 Baseball Bat Case', 0, 36.000, 531, 33.000, 1188.00, '', 0.00, '', 0.00, 5.00, 59.40, 1188.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(115, 20052, 361, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 0, 17.000, 246, 16.000, 272.00, '', 0.00, '', 0.00, 5.00, 13.60, 272.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(116, 20053, 394, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', 0, 10.000, 34, 25.000, 250.00, '0', 0.00, '10%', 25.00, 5.00, 11.25, 225.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(117, 20053, 395, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', 0, 20.000, 36, 50.000, 1000.00, '', 0.00, '10%', 100.00, 5.00, 45.00, 900.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(124, 20055, 415, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 100.000, 100.00, '0', 0.00, '0', 0.00, 5.00, 5.00, 100.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(125, 20055, 416, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 1.000, 1, 50.000, 50.00, '', 0.00, '', 0.00, 5.00, 2.50, 50.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(126, 20056, 417, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 2.000, 245, 33.000, 66.00, '0', 0.00, '0', 0.00, 5.00, 3.30, 66.00, 0.00, '2025-06-30', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(131, 20057, 421, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 0, 3.000, 245, 45.000, 135.00, '', 0.00, '', 0.00, 5.00, 6.75, 135.00, 0.00, '2025-07-03', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(130, 20057, 420, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 8500.000, 8500.00, '0', 0.00, '0', 0.00, 5.00, 425.00, 8500.00, 0.00, '2025-07-03', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(134, 20058, 431, 668, 'A10001', 'Test Item A10001', 0, 1.000, 668, 20.000, 20.00, '0', 0.00, '0', 0.00, 5.00, 1.00, 20.00, 0.00, '2025-07-03', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(135, 20059, 433, 668, 'A10001', 'Test Item A10001', 0, 10.000, 668, 10.000, 100.00, '0', 0.00, '0', 0.00, 5.00, 5.00, 100.00, 0.00, '2025-07-03', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(137, 20060, 444, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', 0, 10.000, 34, 25.000, 250.00, '0', 0.00, '10%', 25.00, 5.00, 11.25, 225.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(138, 20060, 445, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', 0, 20.000, 36, 50.000, 1000.00, '', 0.00, '10%', 100.00, 5.00, 45.00, 900.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(139, 20060, 446, 668, 'A10001', 'Test Item A10001', 0, 5.000, 668, 10.000, 50.00, '', 0.00, '10%', 5.00, 5.00, 2.25, 45.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(140, 20061, 450, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', 0, 10.000, 34, 25.000, 250.00, '0', 0.00, '10%', 25.00, 5.00, 11.25, 225.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(141, 20061, 451, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', 0, 20.000, 36, 50.000, 1000.00, '', 0.00, '10%', 100.00, 5.00, 45.00, 900.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(142, 20061, 452, 668, 'A10001', 'Test Item A10001', 0, 5.000, 668, 10.000, 50.00, '', 0.00, '10%', 5.00, 5.00, 2.25, 45.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(143, 20062, 456, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', 0, 10.000, 34, 25.000, 250.00, '0', 0.00, '10%', 25.00, 5.00, 11.25, 225.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(144, 20062, 457, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', 0, 20.000, 36, 50.000, 1000.00, '', 0.00, '10%', 100.00, 5.00, 45.00, 900.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(145, 20062, 458, 668, 'A10001', 'Test Item A10001', 0, 5.000, 668, 10.000, 50.00, '', 0.00, '10%', 5.00, 5.00, 2.25, 45.00, 0.00, '2025-07-04', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(146, 20063, 567, 346, '1SKB-SC1913', 'Controller Soft Case 19 x 13 x 3 (VMS4- Torq Xponent- Axiom 25)', 0, 1.000, 346, 1000.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-09-25', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(147, 20064, 571, 345, '1SKB-SC18', 'Acoustic Dreadnought Guitar Soft Case', 0, 1.000, 345, 1000.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-09-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(148, 20065, 0, 345, '1SKB-SC18', 'Acoustic Dreadnought Guitar Soft Case', 0, 1.000, 345, 1000.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-09-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(149, 20066, 576, 346, '1SKB-SC1913', 'Controller Soft Case 19 x 13 x 3 (VMS4- Torq Xponent- Axiom 25)', 0, 1.000, 346, 1000.000, 1000.00, '', 0.00, '', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-09-27', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(150, 20067, 580, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 0, 100.000, 1, 0.000, 0.00, '0', 0.00, '0', 0.00, 5.00, 0.00, 0.00, 0.00, '2025-10-09', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(155, 20068, 583, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(156, 20068, 584, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(157, 20069, 0, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(158, 20069, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(159, 20070, 0, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(160, 20070, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(161, 20071, 0, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(162, 20071, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(163, 20072, 0, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(164, 20072, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(165, 20073, 0, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(166, 20073, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(167, 20074, 0, 667, 'IMP001', 'Shipping Charges', 0, 2.000, 667, 500.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(168, 20074, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(169, 20075, 587, 667, 'IMP001', 'Shipping Charges', 0, 1.000, 667, 500.000, 500.00, '0', 0.00, '0', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(170, 20075, 588, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(171, 20076, 587, 667, 'IMP001', 'Shipping Charges', 0, 1.000, 667, 500.000, 500.00, '0', 0.00, '0', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(172, 20076, 588, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(173, 20077, 0, 667, 'IMP001', 'Shipping Charges', 0, 1.000, 667, 500.000, 500.00, '0', 0.00, '0', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(174, 20077, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(175, 20078, 0, 667, 'IMP001', 'Shipping Charges', 0, 1.000, 667, 500.000, 500.00, '0', 0.00, '0', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(176, 20078, 0, 666, 'IMP002', 'Duty Charges', 0, 1.000, 666, 500.000, 500.00, '', 0.00, '', 0.00, 5.00, 25.00, 500.00, 0.00, '2025-10-10', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(177, 20079, 596, 667, 'IMP001', 'Shipping Charges', 0, 1.000, 667, 10.000, 10.00, '0', 0.00, '0', 0.00, 5.00, 0.50, 10.00, 0.00, '2025-10-18', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', ''),
(179, 20080, 602, 667, 'IMP001', 'Shipping Charges', 0, 1.000, 667, 2000.000, 2000.00, '0', 0.00, '0', 0.00, 5.00, 100.00, 2000.00, 0.00, '2025-10-18', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '');

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

--
-- Table structure for table `erp_order_item_colour`
--

CREATE TABLE `erp_order_item_colour` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `order_item_id` int(11) NOT NULL,
  `inventory_color_id` int(11) NOT NULL,
  `quantity` decimal(15,3) 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_order_proforma_invoice`
--

CREATE TABLE `erp_order_proforma_invoice` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `performa_number` varchar(255) NOT NULL,
  `quantity` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `amount` decimal(15,3) 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_pricing_group`
--

CREATE TABLE `erp_pricing_group` (
  `id` int(11) NOT NULL,
  `pricing_group` varchar(255) NOT NULL,
  `parent_id` int(11) NOT NULL,
  `type` enum('S','I') NOT NULL COMMENT 'sales/internal pricing',
  `description` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isBasePricingGroup` enum('Y','N') NOT NULL DEFAULT 'N',
  `default_pricing_group` enum('Y','N') NOT NULL DEFAULT 'N',
  `price_list_file_name` varchar(255) NOT NULL,
  `show_in_price_list` enum('Y','N') NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_pricing_group`
--

INSERT INTO `erp_pricing_group` (`id`, `pricing_group`, `parent_id`, `type`, `description`, `isActive`, `isBasePricingGroup`, `default_pricing_group`, `price_list_file_name`, `show_in_price_list`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(5, 'Bluesky', 0, 'S', 'Price Group 3', 'Y', 'N', 'Y', 'SALES PRICE BRANDCLASS  2 .csv', 'Y', 1, 1, '2025-08-26 04:14:00', '2025-08-26 04:51:38'),
(4, 'Pricing Group 1', 0, 'S', 'Pricing Group Desc', 'Y', 'N', 'N', 'SALES PRICE BRANDCLASS  1 31.csv', 'Y', 1, 0, '2025-08-26 04:11:21', '0000-00-00 00:00:00'),
(3, 'Default', 0, 'S', 'Pricing Group 2', 'Y', 'N', 'N', 'SALES PRICE BRANDCLASS  1 70.csv', 'Y', 1, 1, '2025-08-26 02:16:32', '2025-08-26 04:51:55'),
(6, 'New one', 0, 'S', 'New one', 'Y', 'N', 'N', 'SALES PRICE BRANDCLASS  4 .csv', 'Y', 1, 0, '2025-08-27 08:09:10', '0000-00-00 00:00:00'),
(7, 'New one', 0, 'S', 'New one', 'Y', 'N', 'N', 'SALES PRICE BRANDCLASS  4 .csv', 'Y', 1, 0, '2025-08-27 08:27:55', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_pricing_group_product_relation`
--

CREATE TABLE `erp_pricing_group_product_relation` (
  `id` bigint(20) NOT NULL,
  `store_id` bigint(20) NOT NULL,
  `pricing_product_class_id` int(11) NOT NULL COMMENT 'class or brand',
  `price_group_id` bigint(20) NOT NULL,
  `percentage` decimal(5,2) 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_production_billofmaterial`
--

CREATE TABLE `erp_production_billofmaterial` (
  `id` int(11) NOT NULL,
  `bm_date` date NOT NULL,
  `file_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL DEFAULT 1.000,
  `unit` varchar(255) NOT NULL,
  `unit_factor` decimal(15,6) NOT NULL,
  `notes` varchar(255) NOT NULL,
  `terms_and_conditions` varchar(255) NOT NULL,
  `remarks` varchar(255) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `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=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_production_billofmaterial`
--

INSERT INTO `erp_production_billofmaterial` (`id`, `bm_date`, `file_id`, `product_id`, `part_number`, `description`, `quantity`, `unit`, `unit_factor`, `notes`, `terms_and_conditions`, `remarks`, `crm_user_id`, `isActive`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`) VALUES
(10001, '2025-05-20', 0, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 1.000, '1', 1.000000, '', '', '', 8, 'Y', 8, '2025-05-20 04:15:39', 13, '2025-09-23 10:01:57'),
(10002, '2025-06-12', 0, 668, 'A10001', 'Test Item A10001', 1.000, '668', 1.000000, '', '', '', 1, 'Y', 1, '2025-06-12 01:49:35', 1, '2025-06-12 01:50:24'),
(10003, '2025-06-24', 0, 674, '08092019', 'Issue 4 Bag', 1.000, '674', 1.000000, '', '', '', 8, 'Y', 8, '2025-06-24 16:40:44', 8, '2025-06-24 04:40:44');

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

--
-- Table structure for table `erp_production_billofmaterial_item`
--

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

--
-- Dumping data for table `erp_production_billofmaterial_item`
--

INSERT INTO `erp_production_billofmaterial_item` (`id`, `production_billofmaterial_id`, `product_id`, `product_name`, `description`, `unit`, `quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 10001, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 8, 13, '2025-05-20 04:15:39', '2025-09-23 10:01:57'),
(3, 10002, 24, 'BPLY-001:6.5mm Russian Birch Ply [2400x1200mm]', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 2.000, 1, 1, '2025-06-12 01:49:35', '2025-06-12 01:50:24'),
(4, 10002, 25, 'BPLY-002:9mm Russian Birch Ply [2400x1200mm]', '9mm Russian Birch Ply [2400x1200mm]', 25, 3.000, 1, 1, '2025-06-12 01:50:24', '2025-06-12 01:50:24'),
(5, 10003, 26, 'BPLY-003:18mm Russian Birch Ply [2400x1200mm]', '18mm Russian Birch Ply [2400x1200mm]', 26, 1.000, 8, 8, '2025-06-24 04:40:44', '2025-06-24 04:40:44');

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

--
-- Table structure for table `erp_production_goods_issue`
--

CREATE TABLE `erp_production_goods_issue` (
  `id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `production_order_id` int(11) NOT NULL,
  `goods_issue_date` date NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `product_id` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL DEFAULT 1.000,
  `reference` varchar(255) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `connected_file` int(11) NOT NULL,
  `project` int(11) NOT NULL,
  `grand_total` decimal(15,2) NOT NULL,
  `is_goods_issued` enum('Y','N') NOT NULL DEFAULT 'N',
  `status` enum('CM','PE') NOT NULL DEFAULT 'PE',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `warehouse_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_goods_issues_return_item`
--

CREATE TABLE `erp_production_goods_issues_return_item` (
  `id` int(11) NOT NULL,
  `production_goods_receipt_id` int(11) NOT NULL,
  `po_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `return_qty` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `rate` decimal(15,2) NOT NULL,
  `amount` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_goods_issue_item`
--

CREATE TABLE `erp_production_goods_issue_item` (
  `id` int(11) NOT NULL,
  `production_goods_issue_id` int(11) NOT NULL COMMENT 'foreign key to material receipt table',
  `po_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `picked_qty` decimal(15,4) NOT NULL,
  `rate` decimal(15,2) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_goods_receipt`
--

CREATE TABLE `erp_production_goods_receipt` (
  `id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `production_order_id` int(11) NOT NULL,
  `goods_receipt_date` date NOT NULL,
  `product_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `reference` varchar(255) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `grand_total` float NOT NULL,
  `variants` decimal(15,2) NOT NULL,
  `is_updated_store` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_goods_receipt_addition`
--

CREATE TABLE `erp_production_goods_receipt_addition` (
  `id` int(11) NOT NULL,
  `production_goods_receipt_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_goods_receipt_deduction`
--

CREATE TABLE `erp_production_goods_receipt_deduction` (
  `id` int(11) NOT NULL,
  `production_goods_receipt_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_goods_receipt_item`
--

CREATE TABLE `erp_production_goods_receipt_item` (
  `id` int(11) NOT NULL,
  `production_goods_receipt_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `po_id` int(11) NOT NULL,
  `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,2) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `warehouse` 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
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_production_order`
--

CREATE TABLE `erp_production_order` (
  `id` int(11) NOT NULL,
  `billofmaterial_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL DEFAULT 1.000,
  `unit` int(11) NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `productionorder_date` date NOT NULL,
  `end_date` date NOT NULL,
  `customer_id` int(11) NOT NULL,
  `variance` decimal(15,3) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `grand_total` decimal(12,2) NOT NULL,
  `reference` varchar(255) NOT NULL,
  `project` int(11) NOT NULL,
  `connected_file` int(11) NOT NULL,
  `goods_issue_status` enum('C','P') NOT NULL DEFAULT 'P',
  `crm_user_id` int(11) NOT NULL,
  `po_row` int(11) NOT NULL,
  `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,
  `tolerence` decimal(15,6) NOT NULL,
  `goods_issue_total_rate` decimal(15,6) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `have_service_item` enum('Y','N') NOT NULL DEFAULT 'N',
  `isApproved` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_production_order`
--

INSERT INTO `erp_production_order` (`id`, `billofmaterial_id`, `product_id`, `description`, `quantity`, `unit`, `file_id`, `productionorder_date`, `end_date`, `customer_id`, `variance`, `vendor_id`, `notes`, `terms_and_conditions`, `remarks`, `grand_total`, `reference`, `project`, `connected_file`, `goods_issue_status`, `crm_user_id`, `po_row`, `isActive`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`, `tolerence`, `goods_issue_total_rate`, `posted`, `have_service_item`, `isApproved`) VALUES
(2001, 10002, 668, 'Test Item A10001', 2.000, 668, 0, '2025-06-26', '2025-06-26', 1089, 0.000, 0, '', '', '', 45.08, '', 0, 0, 'P', 1, 0, 'Y', 1, '2025-06-12 01:54:40', 8, '2025-06-26 10:29:47', 0.000000, 0.000000, 'N', 'N', 'N'),
(2002, 10002, 668, 'Test Item A10001', 1.000, 668, 0, '2025-06-26', '2025-06-26', 0, 0.000, 0, '', '', '', 22.54, '', 0, 0, 'P', 1, 0, 'Y', 1, '2025-06-13 09:46:39', 1, '2025-06-26 09:49:42', 0.000000, 0.000000, 'N', 'N', 'N'),
(2003, 0, 25, '9mm Russian Birch Ply [2400x1200mm]', 1.000, 25, 0, '2025-06-24', '2025-06-24', 0, 10.000, 0, '', '', '', 15.43, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-24 17:07:15', 8, '2025-06-24 05:07:15', 0.000000, 0.000000, 'N', 'N', 'N'),
(2004, 0, 27, '9mm Russian Birch Ply Local (2400x1200mm)', 1.000, 27, 0, '2025-06-24', '2025-06-24', 0, 10.000, 0, '', '', '', 0.00, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-24 17:08:51', 8, '2025-06-24 05:08:51', 0.000000, 0.000000, 'N', 'N', 'N'),
(2005, 0, 12, 'Fin Protector made from Black LD33 Plastazote foam', 1.000, 12, 10128, '2025-06-26', '2025-06-26', 0, 0.000, 0, '', '', '', 15.43, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-26 10:23:40', 8, '2025-06-26 11:56:22', 0.000000, 0.000000, 'N', 'N', 'N'),
(2006, 0, 12, 'Fin Protector made from Black LD33 Plastazote foam', 1.000, 12, 10132, '2025-06-27', '2025-06-27', 0, 10.000, 0, '', '', '', 7636.40, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-27 08:31:52', 8, '2025-06-27 08:31:52', 0.000000, 0.000000, 'N', 'N', 'N'),
(2007, 10002, 668, 'Test Item A10001', 1.000, 668, 10137, '2025-06-27', '2025-06-27', 0, 10.000, 0, '', '', '', 22.84, '', 0, 0, 'P', 1, 0, 'Y', 1, '2025-06-27 18:19:31', 1, '2025-06-27 06:19:31', 0.000000, 0.000000, 'N', 'N', 'N'),
(2008, 0, 245, '18mm BB/BB Birch Ply [2400x1200mm]', 10.000, 245, 0, '2025-06-30', '2025-06-30', 1002, 0.000, 0, '', '', '', 0.00, '20052', 0, 0, 'P', 1, 0, 'Y', 1, '2025-06-30 08:12:51', 1, '2025-06-30 08:13:09', 0.000000, 0.000000, 'N', 'N', 'N'),
(2009, 0, 398, 'iSeries 0907 Mil-Spec Pistol Case- (Olive Drab Green)', 2.000, 398, 0, '2025-06-30', '2025-06-30', 1028, 0.000, 0, '', '', '', 0.00, '20003', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 08:27:35', 0, '0000-00-00 00:00:00', 0.000000, 0.000000, 'N', 'N', 'N'),
(2010, 0, 675, 'Test Item', 1.000, 675, 10141, '2025-06-30', '2025-06-30', 0, 10.000, 0, '', '', '', 143.58, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 09:05:02', 8, '2025-06-30 09:05:02', 0.000000, 0.000000, 'N', 'N', 'N'),
(2011, 0, 675, 'Test Item', 1.000, 675, 10143, '2025-06-30', '2025-06-30', 0, 10.000, 0, '', '', '', 360.61, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 10:07:11', 8, '2025-06-30 10:07:11', 0.000000, 0.000000, 'N', 'N', 'N'),
(2012, 0, 6, 'Strap Hinges', 5.000, 6, 10144, '2025-06-30', '2025-06-30', 0, 0.000, 0, '', '', '', 175.00, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 10:33:40', 8, '2025-06-30 10:35:23', 0.000000, 0.000000, 'N', 'N', 'N'),
(2013, 0, 675, 'Test Item', 1.000, 675, 10145, '2025-06-30', '2025-06-30', 1001, 0.000, 0, '', '', '', 20.44, '20027', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 11:56:59', 8, '2025-06-30 11:57:30', 0.000000, 0.000000, 'N', 'N', 'Y'),
(2014, 10002, 668, 'Test Item A10001', 5.000, 668, 10146, '2025-06-30', '2025-06-30', 0, 10.000, 0, '', '', '', 114.20, '', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 13:50:09', 8, '2025-06-30 01:50:09', 0.000000, 0.000000, 'N', 'N', 'Y'),
(2015, 10002, 668, 'Test Item A10001', 1.000, 668, 10147, '2025-06-30', '2025-06-30', 1001, 10.000, 0, '', '', '', 22.84, '20026', 0, 0, 'P', 8, 0, 'Y', 8, '2025-06-30 14:05:25', 8, '2025-06-30 02:05:25', 0.000000, 0.000000, 'N', 'N', 'Y'),
(2016, 0, 668, 'Test Item A10001', 10.000, 668, 0, '2025-07-04', '2025-07-04', 1089, 0.000, 0, '', '', '', 0.00, '20059', 0, 0, 'P', 1, 0, 'Y', 1, '2025-07-04 15:31:37', 0, '0000-00-00 00:00:00', 0.000000, 0.000000, 'N', 'N', 'N'),
(2017, 0, 668, 'Test Item A10001', 10.000, 668, 0, '2025-07-04', '2025-07-04', 1089, 0.000, 0, '', '', '', 0.00, '20059', 0, 0, 'P', 1, 0, 'Y', 1, '2025-07-07 10:06:12', 1, '2025-07-04 04:41:21', 0.000000, 0.000000, 'N', 'N', 'Y'),
(2018, 0, 668, 'Test Item A10001', 10.000, 668, 0, '2025-09-23', '2025-09-23', 1089, 0.000, 0, '', '', '', 0.00, '20059', 0, 0, 'P', 1, 0, 'Y', 1, '2025-07-04 15:48:04', 13, '2025-09-23 10:02:03', 0.000000, 0.000000, 'N', 'N', 'Y'),
(2019, 0, 345, 'Acoustic Dreadnought Guitar Soft Case', 1.000, 345, 0, '2025-09-24', '2025-09-24', 1099, 0.000, 0, '', '', '', 0.00, '20064', 0, 0, 'P', 13, 0, 'Y', 1, '2025-09-29 16:02:54', 0, '0000-00-00 00:00:00', 0.000000, 0.000000, 'N', 'N', 'Y');

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

--
-- Table structure for table `erp_production_order_item`
--

CREATE TABLE `erp_production_order_item` (
  `id` int(11) NOT NULL,
  `production_order_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `bom_item_id` int(11) NOT NULL,
  `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` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `bom_qty` decimal(15,3) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `converison_qty` int(13) NOT NULL,
  `goods_issue_cost_rate` decimal(15,6) NOT NULL,
  `wastage_qty` decimal(15,6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_production_order_item`
--

INSERT INTO `erp_production_order_item` (`id`, `production_order_id`, `bom_item_id`, `product_id`, `product_name`, `description`, `unit`, `quantity`, `bom_qty`, `rate`, `amount`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `converison_qty`, `goods_issue_cost_rate`, `wastage_qty`) VALUES
(1, 20001, 1, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 25.000, 25.00, 8, 0, '2025-05-21 07:26:40', '0000-00-00 00:00:00', 0, 25.000000, 0.000000),
(2, 20002, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 3.000, 0.000, 3.200, 9.60, 8, 8, '2025-05-23 07:43:14', '2025-05-23 08:58:07', 0, 0.000000, 0.000000),
(3, 20002, 0, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 5.000, 0.000, 77.000, 385.00, 8, 8, '2025-05-23 07:43:14', '2025-05-23 08:58:07', 0, 0.000000, 0.000000),
(4, 20003, 0, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 5.000, 0.000, 139.000, 695.00, 8, 8, '2025-05-23 07:45:01', '2025-05-23 07:45:01', 0, 0.000000, 0.000000),
(5, 20003, 0, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 7.000, 0.000, 77.000, 539.00, 8, 8, '2025-05-23 07:45:01', '2025-05-23 07:45:01', 0, 0.000000, 0.000000),
(6, 20004, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 10.000, 1.000, 23.630, 236.30, 1, 1, '2025-06-09 11:16:24', '2025-06-09 11:16:24', 0, 0.000000, 0.000000),
(7, 20005, 0, 210, 'BPLY-015', '18mm B/BB Russian Birch Ply [2400x1200mm]', 210, 1.000, 0.000, 10.000, 10.00, 1, 1, '2025-06-09 11:28:04', '2025-06-09 11:28:04', 0, 0.000000, 0.000000),
(8, 20006, 0, 29, 'BPLY-006', '18mm Russian Film Face Ply Local (2400x1200mm)', 29, 1.000, 0.000, 20.000, 20.00, 1, 1, '2025-06-09 11:30:24', '2025-06-09 11:30:24', 0, 0.000000, 0.000000),
(9, 20007, 0, 26, 'BPLY-003', '18mm Russian Birch Ply [2400x1200mm]', 26, 1.000, 0.000, 10.000, 10.00, 1, 1, '2025-06-09 11:33:21', '2025-06-09 11:33:21', 0, 0.000000, 0.000000),
(10, 20008, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 1.000, 0.000, 5.380, 5.38, 1, 1, '2025-06-09 11:43:28', '2025-06-09 11:43:28', 0, 0.000000, 0.000000),
(11, 20009, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:23:47', '2025-06-10 12:23:47', 0, 0.000000, 0.000000),
(12, 20010, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:24:30', '2025-06-10 12:24:30', 0, 0.000000, 0.000000),
(13, 20011, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:27:00', '2025-06-10 12:27:00', 0, 0.000000, 0.000000),
(14, 20012, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:28:24', '2025-06-10 12:28:24', 0, 0.000000, 0.000000),
(15, 20013, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:35:04', '2025-06-10 12:35:04', 0, 0.000000, 0.000000),
(16, 20014, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:35:38', '2025-06-10 03:13:32', 0, 0.000000, 0.000000),
(17, 20015, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:36:27', '2025-06-10 12:36:27', 0, 0.000000, 0.000000),
(18, 20016, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:37:07', '2025-06-10 12:37:07', 0, 0.000000, 0.000000),
(19, 20017, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:37:10', '2025-06-10 12:37:10', 0, 0.000000, 0.000000),
(20, 20018, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 12:38:41', '2025-06-10 03:13:50', 0, 0.000000, 0.000000),
(21, 20019, 0, 7, '2129N', '280mm / 11.02 Locking Lid Stay', 7, 1.000, 0.000, 0.000, 0.00, 1, 1, '2025-06-10 01:20:15', '2025-06-10 01:20:15', 0, 0.000000, 0.000000),
(22, 20020, 0, 7, '2129N', '280mm / 11.02 Locking Lid Stay', 7, 1.000, 0.000, 0.000, 0.00, 1, 1, '2025-06-10 01:22:34', '2025-06-10 03:14:49', 0, 0.000000, 0.000000),
(23, 20021, 0, 7, '2129N', '280mm / 11.02 Locking Lid Stay', 7, 1.000, 0.000, 0.000, 0.00, 1, 1, '2025-06-10 01:22:50', '2025-06-10 01:22:50', 0, 0.000000, 0.000000),
(24, 20022, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 03:34:34', '2025-06-10 03:34:34', 0, 0.000000, 0.000000),
(25, 20023, 0, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 1.000, 1.000, 23.630, 23.63, 1, 1, '2025-06-10 03:38:01', '2025-06-10 03:38:01', 0, 0.000000, 0.000000),
(26, 20024, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 4.000, 2.000, 3.200, 12.80, 1, 1, '2025-06-12 01:51:21', '2025-06-12 01:51:21', 0, 0.000000, 0.000000),
(27, 20024, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 6.000, 3.000, 5.380, 32.28, 1, 1, '2025-06-12 01:51:21', '2025-06-12 01:51:21', 0, 0.000000, 0.000000),
(28, 2001, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 4.000, 2.000, 3.200, 12.80, 1, 8, '2025-06-12 01:54:40', '2025-06-26 10:29:47', 0, 0.000000, 0.000000),
(29, 2001, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 6.000, 3.000, 5.380, 32.28, 1, 8, '2025-06-12 01:54:40', '2025-06-26 10:29:47', 0, 0.000000, 0.000000),
(30, 2002, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 2.000, 2.000, 3.200, 6.40, 1, 1, '2025-06-13 09:46:39', '2025-06-26 09:49:42', 0, 0.000000, 0.000000),
(31, 2002, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 3.000, 3.000, 5.380, 16.14, 1, 1, '2025-06-13 09:46:39', '2025-06-26 09:49:42', 0, 0.000000, 0.000000),
(32, 2003, 0, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 1, 1.000, 0.000, 15.430, 15.43, 8, 8, '2025-06-24 05:07:15', '2025-06-24 05:07:15', 0, 0.000000, 0.000000),
(33, 2004, 0, 674, '08092019', 'Issue 4 Bag', 674, 1.000, 0.000, 0.000, 0.00, 8, 8, '2025-06-24 05:08:51', '2025-06-24 05:08:51', 0, 0.000000, 0.000000),
(34, 2005, 0, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 1, 1.000, 0.000, 15.430, 15.43, 8, 8, '2025-06-26 10:23:40', '2025-06-26 11:56:22', 0, 0.000000, 0.000000),
(35, 2006, 0, 158, '3i-4411-12T-01', 'Tan Case-2/10 Deep-Empty', 158, 10.000, 0.000, 763.640, 7636.40, 8, 8, '2025-06-27 08:31:52', '2025-06-27 08:31:52', 0, 0.000000, 0.000000),
(36, 2007, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 2.000, 2.000, 3.200, 6.40, 1, 1, '2025-06-27 06:19:31', '2025-06-27 06:19:31', 0, 0.000000, 0.000000),
(37, 2007, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 3.000, 3.000, 5.480, 16.44, 1, 1, '2025-06-27 06:19:31', '2025-06-27 06:19:31', 0, 0.000000, 0.000000),
(38, 2008, 0, 664, 'D100001', 'Dummy Item', 2, 1.000, 0.000, 0.000, 0.00, 0, 1, '0000-00-00 00:00:00', '2025-06-30 08:13:09', 0, 0.000000, 0.000000),
(39, 2009, 0, 664, 'D100001', 'Dummy Item', 2, 1.000, 0.000, 0.000, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0.000000, 0.000000),
(40, 2010, 0, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 1.000, 0.000, 70.130, 70.13, 8, 8, '2025-06-30 09:05:02', '2025-06-30 09:05:02', 0, 0.000000, 0.000000),
(41, 2010, 0, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 1.000, 0.000, 73.450, 73.45, 8, 8, '2025-06-30 09:05:02', '2025-06-30 09:05:02', 0, 0.000000, 0.000000),
(42, 2011, 0, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 2.000, 0.000, 70.130, 140.26, 8, 8, '2025-06-30 10:07:11', '2025-06-30 10:07:11', 0, 0.000000, 0.000000),
(43, 2011, 0, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 3.000, 0.000, 73.450, 220.35, 8, 8, '2025-06-30 10:07:11', '2025-06-30 10:07:11', 0, 0.000000, 0.000000),
(44, 2012, 0, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', 31, 5.000, 0.000, 23.000, 115.00, 8, 8, '2025-06-30 10:33:40', '2025-06-30 10:35:23', 0, 0.000000, 0.000000),
(45, 2012, 0, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', 36, 5.000, 0.000, 12.000, 60.00, 8, 8, '2025-06-30 10:33:40', '2025-06-30 10:35:23', 0, 0.000000, 0.000000),
(46, 2013, 0, 44, 'D0597Z', 'Medium Lid Stay in 10mm / 3/8 Deep Dish', 44, 1.000, 0.000, 8.450, 8.45, 8, 8, '2025-06-30 11:56:59', '2025-06-30 11:57:30', 0, 0.000000, 0.000000),
(47, 2013, 0, 42, 'D0553Z-SD', 'Large Lidstay with Anti-Slam System', 42, 1.000, 0.000, 11.990, 11.99, 8, 8, '2025-06-30 11:56:59', '2025-06-30 11:57:30', 0, 0.000000, 0.000000),
(48, 2014, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 10.000, 2.000, 3.200, 32.00, 8, 8, '2025-06-30 01:50:09', '2025-06-30 01:50:09', 0, 0.000000, 0.000000),
(49, 2014, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 15.000, 3.000, 5.480, 82.20, 8, 8, '2025-06-30 01:50:09', '2025-06-30 01:50:09', 0, 0.000000, 0.000000),
(50, 2015, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 24, 2.000, 2.000, 3.200, 6.40, 8, 8, '2025-06-30 02:05:25', '2025-06-30 02:05:25', 0, 0.000000, 0.000000),
(51, 2015, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 25, 3.000, 3.000, 5.480, 16.44, 8, 8, '2025-06-30 02:05:25', '2025-06-30 02:05:25', 0, 0.000000, 0.000000),
(52, 2016, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 2, 1.000, 0.000, 0.000, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0.000000, 0.000000),
(53, 2016, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 2, 1.000, 0.000, 0.000, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0.000000, 0.000000),
(54, 2017, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 2, 1.000, 0.000, 0.000, 0.00, 0, 1, '0000-00-00 00:00:00', '2025-07-04 04:41:21', 0, 0.000000, 0.000000),
(55, 2017, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 2, 1.000, 0.000, 0.000, 0.00, 0, 1, '0000-00-00 00:00:00', '2025-07-04 04:41:21', 0, 0.000000, 0.000000),
(56, 2018, 0, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 2, 1.000, 0.000, 0.000, 0.00, 0, 13, '0000-00-00 00:00:00', '2025-09-23 10:02:03', 0, 0.000000, 0.000000),
(57, 2018, 0, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 2, 1.000, 0.000, 0.000, 0.00, 0, 13, '0000-00-00 00:00:00', '2025-09-23 10:02:03', 0, 0.000000, 0.000000),
(58, 2019, 0, 664, 'D100001', 'Dummy Item', 2, 1.000, 0.000, 0.000, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0.000000, 0.000000);

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

--
-- Table structure for table `erp_product_class`
--

CREATE TABLE `erp_product_class` (
  `id` int(11) NOT NULL,
  `product_class` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `is_default` enum('Y','N') NOT NULL DEFAULT 'N',
  `restricted` enum('Y','N') NOT NULL DEFAULT 'N',
  `type` enum('FP','SE') NOT NULL DEFAULT 'FP',
  `auto_generated_no` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_product_cost_new`
--

CREATE TABLE `erp_product_cost_new` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `cost_in_erp` decimal(15,2) NOT NULL,
  `actual_cost` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_product_location_change_rackbin`
--

CREATE TABLE `erp_product_location_change_rackbin` (
  `id` int(11) NOT NULL,
  `old_pdt_location_id` int(11) NOT NULL COMMENT 'Old Product Location Primary Key',
  `product_location_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `quantity` decimal(14,2) NOT NULL DEFAULT 0.00,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=FIXED;

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

--
-- Table structure for table `erp_product_location_details`
--

CREATE TABLE `erp_product_location_details` (
  `id` int(11) NOT NULL,
  `header_id` int(11) NOT NULL,
  `header_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `bill_of_entry` varchar(255) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `rack_id` int(11) NOT NULL,
  `bin_id` int(11) NOT NULL,
  `batch_no` varchar(255) NOT NULL,
  `serial_no` varchar(255) NOT NULL,
  `manufacturing_date` date NOT NULL,
  `expiry_date` date NOT NULL,
  `quantity` decimal(15,3) NOT NULL COMMENT 'sale from this qty',
  `transaction_type` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_project`
--

CREATE TABLE `erp_project` (
  `id` int(11) NOT NULL,
  `project_estimation_id` int(11) NOT NULL,
  `project_proposal_id` int(11) NOT NULL,
  `project_name` varchar(500) NOT NULL,
  `location` varchar(500) NOT NULL,
  `project_date` date NOT NULL,
  `manager_name` varchar(50) NOT NULL,
  `notes` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `engineer_notes` text NOT NULL,
  `project_manager_notes` text NOT NULL,
  `project_type` 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 ROW_FORMAT=DYNAMIC;

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

--
-- Table structure for table `erp_project_external_company`
--

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

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

--
-- Table structure for table `erp_project_external_labour`
--

CREATE TABLE `erp_project_external_labour` (
  `id` int(11) NOT NULL,
  `company_name` varchar(500) NOT NULL,
  `employee_name` varchar(500) NOT NULL,
  `designation` varchar(500) NOT NULL,
  `emirated_id` 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_project_external_labour`
--

INSERT INTO `erp_project_external_labour` (`id`, `company_name`, `employee_name`, `designation`, `emirated_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, '2019', 'Employee 1', '', '', 8, '2025-05-06 08:42:57', 0, '0000-00-00 00:00:00', 'Y'),
(2, '2019', 'Employee 2', '', '', 8, '2025-05-06 08:42:57', 0, '0000-00-00 00:00:00', 'Y'),
(3, '2001', 'Akbar', '', '', 8, '2025-05-26 10:22:18', 8, '2025-05-26 10:22:37', 'Y'),
(4, '2001', 'Antony', '', '', 8, '2025-05-26 10:22:37', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_prospects_activity_master`
--

CREATE TABLE `erp_prospects_activity_master` (
  `id` int(11) NOT NULL,
  `activity` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `activity_type` enum('CALLS','TASKS','MEETINGS','VISITS','NOTES','OTHERS') NOT NULL DEFAULT 'OTHERS',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `colour` varchar(100) NOT NULL,
  `f_colour` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchase_analysis_items`
--

CREATE TABLE `erp_purchase_analysis_items` (
  `id` int(11) NOT NULL,
  `enq_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `stock_available` decimal(15,3) NOT NULL,
  `stock_rate` decimal(15,3) NOT NULL,
  `description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchase_analysis_items`
--

INSERT INTO `erp_purchase_analysis_items` (`id`, `enq_id`, `vendor_id`, `stock_item_id`, `stock_item_quantity`, `stock_available`, `stock_rate`, `description`, `created_by`, `created_datetime`) VALUES
(1, 10001, 2001, 240, 10.000, 10.000, 20.000, 'AD325 Humidity Indicator 30/50%', 8, '2025-05-06 11:04:39'),
(2, 10001, 2002, 240, 10.000, 10.000, 30.000, 'AD325 Humidity Indicator 30/50%', 8, '2025-05-06 11:04:58'),
(3, 10002, 2002, 162, 250.000, 250.000, 300.000, 'Laminates 2281SF Navy Blue 4x8x0.8mm', 8, '2025-05-06 02:59:29'),
(4, 10002, 2001, 162, 250.000, 250.000, 150.000, 'Laminates 2281SF Navy Blue 4x8x0.8mm', 8, '2025-05-06 02:59:44'),
(5, 10008, 2100, 668, 20.000, 1.000, 10.000, 'Test Item A10001', 1, '2025-06-09 01:54:24'),
(6, 10036, 2001, 245, 100.000, 100.000, 50.000, '18mm BB/BB Birch Ply [2400x1200mm]', 8, '2025-06-30 08:55:17'),
(7, 10036, 2001, 367, 1.000, 1.000, 15.000, 'Universal Equipment/Mixer Bag 20 x 20 x 5', 8, '2025-06-30 08:55:17'),
(8, 10025, 2022, 668, 10.000, 10.000, 10.000, 'Test Item A10001', 1, '2025-09-29 03:18:25'),
(9, 10025, 2022, 2, 15.000, 15.000, 25.000, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 1, '2025-09-29 03:18:25'),
(10, 10037, 2001, 245, 100.000, 100.000, 75.000, '18mm BB/BB Birch Ply [2400x1200mm]', 1, '2025-10-07 11:20:31'),
(11, 10037, 2001, 367, 1.000, 1.000, 35.000, 'Universal Equipment/Mixer Bag 20 x 20 x 5', 1, '2025-10-07 11:20:31');

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

--
-- Table structure for table `erp_purchase_movement_analysis`
--

CREATE TABLE `erp_purchase_movement_analysis` (
  `id` int(11) NOT NULL,
  `analysis_date` date NOT NULL,
  `generic_ids` varchar(500) NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` datetime NOT NULL,
  `is_converted` 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;

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

--
-- Table structure for table `erp_purchase_movement_analysis_details`
--

CREATE TABLE `erp_purchase_movement_analysis_details` (
  `id` int(11) NOT NULL,
  `analysis_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `unit_id` int(11) NOT NULL,
  `current_stock` decimal(10,2) NOT NULL,
  `approval_current_stock` decimal(10,2) NOT NULL,
  `days_365` decimal(10,2) NOT NULL,
  `days_180` decimal(10,2) NOT NULL,
  `days_90` decimal(10,2) NOT NULL,
  `days_30` decimal(10,2) NOT NULL,
  `upcoming_shipment_qty` decimal(10,2) NOT NULL,
  `average_movement` decimal(10,2) NOT NULL,
  `expected_2_months_movement` decimal(10,2) NOT NULL,
  `expected_closing_stock_after_2_months` decimal(10,2) NOT NULL,
  `proposal_qty` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasinginvoice`
--

CREATE TABLE `erp_purchasinginvoice` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key to purchase order table',
  `crm_user_id` int(11) NOT NULL,
  `po_id` int(11) NOT NULL COMMENT 'foreign key to company table',
  `ticket_id` int(11) NOT NULL,
  `invoice_no` varchar(255) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `vendor_name` varchar(255) NOT NULL,
  `dly_no` varchar(255) NOT NULL,
  `dly_date` date NOT NULL,
  `shipped_by` varchar(255) NOT NULL,
  `awb_no` varchar(255) NOT NULL,
  `materialreceived` varchar(255) NOT NULL COMMENT 'material receipt number(foreign key to material receipt table)',
  `tracking_no` int(11) NOT NULL,
  `others` varchar(255) NOT NULL,
  `storekeeper_notes` text NOT NULL,
  `qc_check` enum('Y','N') NOT NULL,
  `qc_check_notes` text NOT NULL,
  `qc_check_date` date NOT NULL,
  `mtl_receipt_date` date NOT NULL,
  `invoice_date` date NOT NULL,
  `payment_date` date NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `grand_total` decimal(15,4) NOT NULL,
  `tax_type` int(11) NOT NULL COMMENT '1- Vat',
  `invoice_type` int(11) NOT NULL,
  `total_tax_amount` decimal(15,4) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `qc_checked_employee` int(11) NOT NULL,
  `qc_checked_employee_name` varchar(255) NOT NULL,
  `currency` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `paid` enum('Y','N') NOT NULL DEFAULT 'N',
  `payment_terms` varchar(255) NOT NULL,
  `is_direct_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `purchase_invoice` enum('MR','QC','DP','LC') NOT NULL COMMENT 'MR->Material Receipt,QC->Quality check,DP-Direct Purchase,LC->Landing Cost',
  `invoice_notification` varchar(500) NOT NULL,
  `total_discount` decimal(15,6) NOT NULL,
  `round_off_amount` decimal(15,6) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `purchase_invoice_id` text NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `lock_status` enum('Y','N') NOT NULL DEFAULT 'N' COMMENT '	y= locked, N =unlocked	',
  `lc_calulation` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasinginvoice`
--

INSERT INTO `erp_purchasinginvoice` (`id`, `file_id`, `crm_user_id`, `po_id`, `ticket_id`, `invoice_no`, `vendor_id`, `project_id`, `contract_id`, `project_classification_id`, `vendor_name`, `dly_no`, `dly_date`, `shipped_by`, `awb_no`, `materialreceived`, `tracking_no`, `others`, `storekeeper_notes`, `qc_check`, `qc_check_notes`, `qc_check_date`, `mtl_receipt_date`, `invoice_date`, `payment_date`, `notes`, `terms_and_conditions`, `remarks`, `grand_total`, `tax_type`, `invoice_type`, `total_tax_amount`, `isActive`, `qc_checked_employee`, `qc_checked_employee_name`, `currency`, `exchange_rate`, `paid`, `payment_terms`, `is_direct_invoice`, `purchase_invoice`, `invoice_notification`, `total_discount`, `round_off_amount`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `posted`, `purchase_invoice_id`, `warehouse_id`, `lock_status`, `lc_calulation`) VALUES
(70001, 10004, 8, 60001, 0, 'A1', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10001', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-06', '2025-05-06', '', '', '', 5250.0000, 0, 4, 250.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70002, 10008, 8, 60002, 0, 'Inv 1234', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10002', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-06', '2025-05-06', '', '', '', 3937.5000, 0, 4, 187.5000, 'Y', 0, '', 1, 1, 'N', '2', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70003, 10009, 8, 60003, 0, 'R1', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10003', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-06', '2025-05-06', '', '', '', 1575.0000, 0, 4, 75.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70004, 10016, 1, 60004, 0, '1234', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10004', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-09', '2025-05-09', '', '', '', 525.0000, 0, 4, 25.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70005, 10018, 1, 60005, 0, '123', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10005', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-09', '2025-05-09', '', '', '', 787.5000, 0, 4, 37.5000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70006, 10023, 1, 60006, 0, '12345', 2002, 0, 0, 0, 'Access Key Automatic Gates Trading LLC', '', '0000-00-00', '', '', '10006,10007', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-09', '2025-05-09', '', '', '', 1050.0000, 0, 4, 50.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70007, 10028, 8, 60007, 0, '1589856', 2038, 0, 0, 0, 'Emirates Trading Enterprises LLC', '', '0000-00-00', '', '', '10008', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-19', '2025-05-19', '', '', '', 113400.0000, 0, 4, 5400.0000, 'Y', 0, '', 1, 1, 'N', '2', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70008, 10028, 8, 60007, 0, '1589856', 2038, 0, 0, 0, 'Emirates Trading Enterprises LLC', '', '0000-00-00', '', '', '10009', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-19', '2025-05-19', '', '', '', 40425.0000, 0, 4, 1925.0000, 'Y', 0, '', 1, 1, 'N', '2', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70009, 10036, 8, 60011, 0, 'T1111', 2004, 0, 0, 0, 'Al Danube Building Materials Trading Co LLC', '', '0000-00-00', '', '', '10010', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-20', '2025-07-04', '', '', '', 932.4000, 0, 4, 44.4000, 'Y', 0, '', 1, 1, 'N', '9', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70010, 10041, 8, 60014, 0, 'ee', 2004, 0, 0, 0, 'Al Danube Building Materials Trading Co LLC', '', '0000-00-00', '', '', '10013', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-05-21', '2025-07-05', '', '', '', 900.9000, 0, 4, 42.9000, 'Y', 0, '', 1, 1, 'N', '9', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70011, 10061, 8, 60017, 0, '5000', 2101, 0, 0, 0, 'Bluesky Vendor', '', '0000-00-00', '', '', '10014', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-01', '2025-07-01', '', '', '', 432.0000, 0, 4, 32.0000, 'Y', 0, '', 3, 4.15, 'N', '1', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'Y', 'N'),
(70012, 10079, 1, 60020, 0, '10001', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10016', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-04', '2025-06-04', '', '', '', 54.0000, 0, 4, 4.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70013, 10080, 1, 60021, 0, 'erew', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10017', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2023-05-17', '2023-05-17', '', '', '', 2484.0000, 0, 4, 184.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70014, 10097, 1, 60025, 0, 'qq', 2004, 0, 0, 0, 'Al Danube Building Materials Trading Co LLC', '', '0000-00-00', '', '', '10020', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-09', '2025-07-24', '', '', '', 1350.0000, 0, 4, 100.0000, 'Y', 0, '', 1, 1, 'N', '9', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70015, 10098, 1, 60026, 0, '111', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10021', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-09', '2025-06-09', '', '', '', 43.2000, 0, 4, 3.2000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70016, 10101, 8, 60027, 0, '63', 2100, 0, 0, 0, 'Bluesky-supplier', '', '0000-00-00', '', '', '10022', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-09', '2025-07-09', '', 'Purchase Terms and Conditions come here\r\n', '', 108.0000, 0, 4, 8.0000, 'Y', 0, '', 1, 1, 'N', '1', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70017, 10110, 1, 60028, 0, '89', 2100, 0, 0, 0, 'Bluesky-supplier', '', '0000-00-00', '', '', '10023', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-09', '2025-07-09', '', 'Purchase Terms and Conditions come here\r\n', '', 10.8000, 0, 4, 0.8000, 'Y', 0, '', 1, 1, 'N', '1', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'N', 'N'),
(70018, 10121, 8, 60030, 0, '12345', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10025', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-24', '2025-06-24', '', 'Purchase Terms and Conditions come here\r\n', '', 105.0000, 0, 4, 5.0000, 'Y', 0, '', 1, 1, 'N', '2', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70019, 10130, 1, 60032, 0, '34', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10026', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-26', '2025-06-26', '', 'Purchase Terms and Conditions come here\r\n', '', 12.6000, 0, 4, 0.6000, 'Y', 0, '', 1, 1, 'N', '2', 'N', 'MR', '', 0.000000, 0.000000, 0, 8, '0000-00-00 00:00:00', '2025-06-27 09:37:03', 'N', '', 1, 'N', 'N'),
(70020, 10131, 1, 0, 0, '10001', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-26', '2025-06-26', '', '', '', 78.7500, 0, 4, 3.7500, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'LC', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '70001', 0, 'N', 'N'),
(70021, 10133, 8, 60033, 0, '6001', 2014, 0, 0, 0, 'Arabian Extrusions Factory', '', '0000-00-00', '', '', '10027', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-27', '2025-07-27', '', 'Purchase Terms and Conditions come here\r\n', '', 15225.0000, 0, 4, 725.0000, 'Y', 0, '', 1, 1, 'N', '1', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70022, 10135, 8, 60034, 0, '11', 2002, 0, 0, 0, 'Access Key Automatic Gates Trading LLC', '', '0000-00-00', '', '', '10028', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-27', '2025-06-27', '', 'Purchase Terms and Conditions come here\r\n', '', 682.5000, 0, 4, 32.5000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70023, 10140, 8, 60035, 0, 'R1', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10030', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-06-30', '2025-06-30', '', 'Purchase Terms and Conditions come here\r\n', '', 1590.7500, 0, 4, 75.7500, 'Y', 0, '', 1, 1, 'N', '2', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 0, 'N', 'N'),
(70024, 10039, 1, 60013, 0, '12345', 2002, 0, 0, 0, 'Access Key Automatic Gates Trading LLC', '', '0000-00-00', '', '', '10012', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-07-22', '2025-07-22', '', '', '', 367.5000, 0, 4, 17.5000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'Y', 'N'),
(70025, 10159, 1, 60038, 0, '1010', 2001, 0, 0, 0, 'ABBA Printing Press LLC', '', '0000-00-00', '', '', '10035', 0, '', '', 'Y', '', '0000-00-00', '0000-00-00', '2025-09-29', '2025-09-29', '', '', '', 105.0000, 0, 4, 5.0000, 'Y', 0, '', 1, 1, 'N', '6', 'N', 'MR', '', 0.000000, 0.000000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', '', 1, 'Y', 'N');

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

--
-- Table structure for table `erp_purchasinginvoice_item`
--

CREATE TABLE `erp_purchasinginvoice_item` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `amount` decimal(15,4) NOT NULL,
  `addition_percentage` varchar(50) NOT NULL DEFAULT '0',
  `addition_amount` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `deduction_percentage` varchar(50) NOT NULL DEFAULT '0',
  `deduction_amount` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `net_amount` decimal(15,4) NOT NULL,
  `tax_percentage` decimal(15,2) NOT NULL,
  `tax_amount` decimal(15,4) NOT NULL,
  `order_item_id` int(11) NOT NULL,
  `mr_id` int(11) NOT NULL,
  `mr_item_id` int(11) NOT NULL,
  `warehouse` int(11) NOT NULL,
  `fin_account_id` int(11) NOT NULL,
  `fin_subledger` int(11) NOT NULL,
  `previous_quantity` decimal(10,0) NOT NULL,
  `previous_cost_rate` decimal(15,6) NOT NULL,
  `foc_checked` tinyint(4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasinginvoice_item`
--

INSERT INTO `erp_purchasinginvoice_item` (`id`, `product_id`, `purchasing_invoice_id`, `description`, `quantity`, `unit`, `rate`, `amount`, `addition_percentage`, `addition_amount`, `deduction_percentage`, `deduction_amount`, `net_amount`, `tax_percentage`, `tax_amount`, `order_item_id`, `mr_id`, `mr_item_id`, `warehouse`, `fin_account_id`, `fin_subledger`, `previous_quantity`, `previous_cost_rate`, `foc_checked`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 2, 70001, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 100.000, '2', 25.000000, 2500.0000, '', 0.0000, '', 0.0000, 2500.0000, 5.00, 125.0000, 3, 10001, 1, 0, 0, 0, 0, 52.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 349, 70001, 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 100.000, '349', 25.000000, 2500.0000, '', 0.0000, '', 0.0000, 2500.0000, 5.00, 125.0000, 4, 10001, 2, 0, 0, 0, 0, 156.670000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 162, 70002, 'Laminates 2281SF Navy Blue 4x8x0.8mm', 250.000, '162', 15.000000, 3750.0000, '', 0.0000, '', 0.0000, 3750.0000, 5.00, 187.5000, 6, 10002, 3, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 302, 70003, 'Drum Package 2- Includes: D1822- D1012- D1616', 100.000, '302', 15.000000, 1500.0000, '', 0.0000, '', 0.0000, 1500.0000, 5.00, 75.0000, 8, 10003, 4, 0, 0, 0, 0, 1020.040000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 1, 70004, 'Issue 2 Bag', 50.000, '1', 10.000000, 500.0000, '', 0.0000, '', 0.0000, 500.0000, 5.00, 25.0000, 10, 10004, 5, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 1, 70005, 'Issue 2 Bag', 50.000, '1', 15.000000, 750.0000, '', 0.0000, '', 0.0000, 750.0000, 5.00, 37.5000, 12, 10005, 6, 0, 0, 0, 49, 10.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 1, 70006, 'Issue 2 Bag', 25.000, '1', 20.000000, 500.0000, '', 0.0000, '', 0.0000, 500.0000, 5.00, 25.0000, 14, 10006, 7, 0, 0, 0, 94, 12.525253, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 1, 70006, 'Issue 2 Bag', 25.000, '1', 20.000000, 500.0000, '', 0.0000, '', 0.0000, 500.0000, 5.00, 25.0000, 14, 10007, 8, 0, 0, 0, 94, 14.095578, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 246, 70007, '9mm BB/BB Birch Ply [2400x1200mm]', 500.000, '246', 77.000000, 38500.0000, '', 0.0000, '', 0.0000, 38500.0000, 5.00, 1925.0000, 19, 10008, 9, 0, 0, 0, 0, 77.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 245, 70007, '18mm BB/BB Birch Ply [2400x1200mm]', 500.000, '245', 139.000000, 69500.0000, '', 0.0000, '', 0.0000, 69500.0000, 5.00, 3475.0000, 20, 10008, 10, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 246, 70008, '9mm BB/BB Birch Ply [2400x1200mm]', 500.000, '246', 77.000000, 38500.0000, '', 0.0000, '', 0.0000, 38500.0000, 5.00, 1925.0000, 19, 10009, 11, 0, 0, 0, 500, 77.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 114, 70009, '1U Rack Drawer with 2 Slam Locks', 5.000, '114', 11.000000, 55.0000, '', 0.0000, '', 0.0000, 55.0000, 5.00, 2.7500, 32, 10010, 12, 0, 0, 0, 0, 86.920000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, 31, 70009, 'Medium Flat Corners- Male Stacking', 7.000, '31', 23.000000, 161.0000, '', 0.0000, '', 0.0000, 161.0000, 5.00, 8.0500, 33, 10010, 13, 0, 0, 0, 0, 1.620000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 33, 70009, 'Medium Ball Corner suitable for 22mm / 7/8 Extrusion E0815', 12.000, '33', 56.000000, 672.0000, '', 0.0000, '', 0.0000, 672.0000, 5.00, 33.6000, 34, 10010, 14, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, 24, 70010, '6.5mm Russian Birch Ply [2400x1200mm]', 100.000, '24', 3.200000, 320.0000, '', 0.0000, '', 0.0000, 320.0000, 5.00, 16.0000, 49, 10013, 19, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(16, 25, 70010, '9mm Russian Birch Ply [2400x1200mm]', 100.000, '25', 5.380000, 538.0000, '', 0.0000, '', 0.0000, 538.0000, 5.00, 26.9000, 50, 10013, 20, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(17, 668, 70011, 'Test Item A10001', 20.000, '668', 10.000000, 200.0000, '', 0.0000, '', 0.0000, 200.0000, 8.00, 16.0000, 63, 10014, 21, 0, 0, 0, 1, 394.600000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(18, 671, 70011, 'T300', 10.000, '671', 20.000000, 200.0000, '', 0.0000, '', 0.0000, 200.0000, 8.00, 16.0000, 64, 10014, 22, 0, 0, 0, 0, 200.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(19, 2, 70012, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2.000, '2', 25.000000, 50.0000, '', 0.0000, '', 0.0000, 50.0000, 8.00, 4.0000, 75, 10016, 24, 0, 0, 0, 44, 25.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(20, 2, 70013, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 100.000, '2', 23.000000, 2300.0000, '', 0.0000, '', 0.0000, 2300.0000, 8.00, 184.0000, 79, 10017, 25, 0, 0, 0, 46, 25.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(21, 245, 70014, '18mm BB/BB Birch Ply [2400x1200mm]', 250.000, '245', 5.000000, 1250.0000, '', 0.0000, '', 0.0000, 1250.0000, 8.00, 100.0000, 95, 10020, 30, 0, 0, 0, 371, 139.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(22, 245, 70015, '18mm BB/BB Birch Ply [2400x1200mm]', 10.000, '245', 4.000000, 40.0000, '', 0.0000, '', 0.0000, 40.0000, 8.00, 3.2000, 97, 10021, 31, 0, 0, 0, 621, 85.054750, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(23, 668, 70016, 'Test Item A10001', 10.000, '668', 10.000000, 100.0000, '', 0.0000, '', 0.0000, 100.0000, 8.00, 8.0000, 99, 10022, 32, 0, 0, 0, 8, 54.373438, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(24, 668, 70017, 'Test Item A10001', 1.000, '668', 10.000000, 10.0000, '', 0.0000, '', 0.0000, 10.0000, 8.00, 0.8000, 104, 10023, 33, 0, 0, 0, 16, 29.721528, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(25, 240, 70018, 'AD325 Humidity Indicator 30/50%', 10.000, '240', 10.000000, 100.0000, '', 0.0000, '', 0.0000, 100.0000, 5.00, 5.0000, 110, 10025, 36, 0, 0, 0, 0, 81.310000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(26, 668, 70019, 'Test Item A10001', 1.000, '668', 12.000000, 12.0000, '', 0.0000, '', 0.0000, 12.0000, 5.00, 0.6000, 125, 10026, 37, 0, 0, 0, 12, 28.561438, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(27, 667, 70020, 'Shipping Charges', 3.000, '667', 25.000000, 75.0000, '0', 0.0000, '0', 0.0000, 75.0000, 5.00, 3.7500, 0, 0, 0, 0, 0, 0, 0, 25.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(28, 34, 70021, '2Leg Brace Ball Corner with 67mm / 2.64 Leg', 500.000, '34', 5.000000, 2500.0000, '', 0.0000, '', 0.0000, 2500.0000, 5.00, 125.0000, 128, 10027, 38, 0, 0, 0, 0, 2.290000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(29, 36, 70021, 'Brace Ball Corner 81mm / 3.19', 1000.000, '36', 12.000000, 12000.0000, '', 0.0000, '', 0.0000, 12000.0000, 5.00, 600.0000, 129, 10027, 39, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, 245, 70022, '18mm BB/BB Birch Ply [2400x1200mm]', 50.000, '245', 7.000000, 350.0000, '', 0.0000, '', 0.0000, 350.0000, 5.00, 17.5000, 132, 10028, 40, 0, 0, 0, 624, 83.857733, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(31, 246, 70022, '9mm BB/BB Birch Ply [2400x1200mm]', 50.000, '246', 6.000000, 300.0000, '', 0.0000, '', 0.0000, 300.0000, 5.00, 15.0000, 133, 10028, 41, 0, 0, 0, 951, 77.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(32, 245, 70023, '18mm BB/BB Birch Ply [2400x1200mm]', 100.000, '245', 15.000000, 1500.0000, '', 0.0000, '', 0.0000, 1500.0000, 5.00, 75.0000, 137, 10030, 43, 0, 0, 0, 672, 78.337069, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(33, 367, 70023, 'Universal Equipment/Mixer Bag 20 x 20 x 5', 1.000, '367', 15.000000, 15.0000, '', 0.0000, '', 0.0000, 15.0000, 5.00, 0.7500, 138, 10030, 44, 0, 0, 0, 0, 146.680000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(34, 229, 70024, 'Laminates Popping Ruby 4x8x0.8mm', 5.000, '229', 50.000000, 250.0000, '', 0.0000, '', 0.0000, 250.0000, 5.00, 12.5000, 45, 10012, 17, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(35, 647, 70024, 'Shipping Label Plate', 5.000, '647', 20.000000, 100.0000, '', 0.0000, '', 0.0000, 100.0000, 5.00, 5.0000, 46, 10012, 18, 0, 0, 0, 0, 63.390000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(36, 3, 70025, 'GP Laminate 1301ASF (101) 4x8x0.8mm White', 10.000, '3', 10.000000, 100.0000, '', 0.0000, '', 0.0000, 100.0000, 5.00, 5.0000, 169, 10035, 49, 0, 0, 0, 0, 0.000000, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_debit_note`
--

CREATE TABLE `erp_purchasing_debit_note` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `debit_note_no` varchar(255) NOT NULL,
  `vendor_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `reference` varchar(255) NOT NULL,
  `currency` varchar(255) NOT NULL,
  `debited_amount` decimal(15,4) NOT NULL,
  `debited_date` date NOT NULL,
  `reason` text NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `total_tax_amount` decimal(15,4) NOT NULL,
  `tax_type` int(11) NOT NULL COMMENT '1-VAT',
  `invoice_type` int(11) NOT NULL,
  `Isdebitnote_or_goodsreturn` enum('Y','N') NOT NULL,
  `debitnote_notification` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `is_goods_returned` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `warehouse_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_debit_note`
--

INSERT INTO `erp_purchasing_debit_note` (`id`, `file_id`, `crm_user_id`, `purchasing_invoice_id`, `debit_note_no`, `vendor_id`, `contact_id`, `exchange_rate`, `reference`, `currency`, `debited_amount`, `debited_date`, `reason`, `notes`, `terms_and_conditions`, `remarks`, `total_tax_amount`, `tax_type`, `invoice_type`, `Isdebitnote_or_goodsreturn`, `debitnote_notification`, `isActive`, `is_goods_returned`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`, `posted`, `warehouse_id`) VALUES
(80001, 10004, 8, 70001, 'PL800068', 2001, 0, 1, '', '1', 26.2500, '2025-05-06', 'Test 1', '', '', '', 1.2500, 1, 4, 'Y', '', 'Y', 'Y', 8, '2025-05-06 12:29:42', 0, '0000-00-00 00:00:00', 'N', 0),
(80002, 10061, 8, 70011, 'PL800069', 2101, 0, 4.15, '', '3', 32.4000, '2025-06-01', 'rn', '', '', '', 2.4000, 1, 4, 'Y', '', 'Y', 'Y', 8, '2025-06-01 22:08:58', 0, '0000-00-00 00:00:00', 'N', 0),
(80003, 10101, 8, 70016, 'PL800070', 2100, 0, 1, '', '1', 10.8000, '2025-06-09', 'rn', '', 'Purchase Terms and Conditions come here\r\n', '', 0.8000, 1, 4, 'Y', '', 'Y', 'Y', 8, '2025-06-09 11:28:23', 0, '0000-00-00 00:00:00', 'N', 0),
(80004, 10004, 8, 70001, 'PL800071', 2001, 0, 1, 'DN0010', '1', 78.7500, '2025-06-24', '.', '', '', '', 3.7500, 1, 4, 'Y', '', 'Y', 'Y', 8, '2025-06-24 16:29:51', 0, '0000-00-00 00:00:00', 'N', 0),
(80005, 10004, 8, 70001, 'PL800072', 2001, 0, 1, '', '1', 78.7500, '2025-06-26', 'rea1', '', '', '', 3.7500, 1, 4, 'Y', '', 'Y', 'Y', 8, '2025-06-26 14:05:07', 0, '0000-00-00 00:00:00', 'N', 0),
(80006, 10080, 1, 70013, 'PL800073', 2001, 0, 1, '', '1', 74.5200, '2025-06-26', 'zczc', '', '', '', 5.5200, 1, 4, 'Y', '', 'Y', 'N', 1, '2025-06-26 14:19:05', 0, '0000-00-00 00:00:00', 'N', 1),
(80007, 10140, 8, 70023, 'PL800074', 2001, 0, 1, '', '1', 15.7500, '2025-06-30', 'aswda', '', '', '', 0.7500, 1, 4, 'Y', '', 'Y', 'Y', 8, '2025-06-30 08:58:20', 0, '0000-00-00 00:00:00', 'N', 0);

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

--
-- Table structure for table `erp_purchasing_debit_note_addition`
--

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

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

--
-- Table structure for table `erp_purchasing_debit_note_deduction`
--

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

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

--
-- Table structure for table `erp_purchasing_debit_note_item`
--

CREATE TABLE `erp_purchasing_debit_note_item` (
  `id` int(11) NOT NULL,
  `purchasing_debitnote_id` varchar(255) NOT NULL,
  `product_id` int(11) NOT NULL,
  `purchased_quantity` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `returned_quantity` decimal(15,3) NOT NULL,
  `net_amount` decimal(15,4) NOT NULL,
  `purchasing_materialreceipt_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `returned_unit_id` int(11) NOT NULL,
  `unit_factor` decimal(10,6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_debit_note_item`
--

INSERT INTO `erp_purchasing_debit_note_item` (`id`, `purchasing_debitnote_id`, `product_id`, `purchased_quantity`, `unit`, `description`, `rate`, `returned_quantity`, `net_amount`, `purchasing_materialreceipt_id`, `warehouse_id`, `tax_vat_percentage`, `tax_vat_amount`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`, `returned_unit_id`, `unit_factor`) VALUES
(1, '80001', 2, 100.000, 2, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 25.000000, 1.000, 25.0000, 10001, 0, 5.00, 1.2500, 8, '2025-05-06 12:29:42', 0, '0000-00-00 00:00:00', 2, 1.000000),
(2, '80002', 668, 20.000, 668, 'Test Item A10001', 10.000000, 1.000, 10.0000, 10014, 0, 8.00, 0.8000, 8, '2025-06-01 22:08:58', 0, '0000-00-00 00:00:00', 668, 1.000000),
(3, '80002', 671, 10.000, 671, 'T300', 20.000000, 1.000, 20.0000, 10014, 0, 8.00, 1.6000, 8, '2025-06-01 22:08:58', 0, '0000-00-00 00:00:00', 671, 1.000000),
(4, '80003', 668, 10.000, 668, 'Test Item A10001', 10.000000, 1.000, 10.0000, 10022, 0, 8.00, 0.8000, 8, '2025-06-09 11:28:23', 0, '0000-00-00 00:00:00', 668, 1.000000),
(5, '80004', 2, 99.000, 2, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 25.000000, 1.000, 25.0000, 10001, 0, 5.00, 1.2500, 8, '2025-06-24 16:29:51', 0, '0000-00-00 00:00:00', 2, 1.000000),
(6, '80004', 349, 100.000, 349, 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 25.000000, 2.000, 50.0000, 10001, 0, 5.00, 2.5000, 8, '2025-06-24 16:29:51', 0, '0000-00-00 00:00:00', 349, 1.000000),
(7, '80005', 2, 98.000, 2, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 25.000000, 1.000, 25.0000, 10001, 0, 5.00, 1.2500, 8, '2025-06-26 14:05:07', 0, '0000-00-00 00:00:00', 2, 1.000000),
(8, '80005', 349, 98.000, 349, 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 25.000000, 2.000, 50.0000, 10001, 0, 5.00, 2.5000, 8, '2025-06-26 14:05:07', 0, '0000-00-00 00:00:00', 349, 1.000000),
(9, '80006', 2, 100.000, 2, 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 23.000000, 3.000, 69.0000, 10017, 0, 8.00, 5.5200, 1, '2025-06-26 14:19:05', 0, '0000-00-00 00:00:00', 2, 1.000000),
(10, '80007', 367, 1.000, 367, 'Universal Equipment/Mixer Bag 20 x 20 x 5', 15.000000, 1.000, 15.0000, 10030, 0, 5.00, 0.7500, 8, '2025-06-30 08:58:20', 0, '0000-00-00 00:00:00', 367, 1.000000);

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

--
-- Table structure for table `erp_purchasing_enquiry`
--

CREATE TABLE `erp_purchasing_enquiry` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `vendor_id` varchar(500) NOT NULL,
  `send_email` enum('Y','N') NOT NULL,
  `requisition_id` varchar(255) NOT NULL COMMENT 'foreign key reference to requisition',
  `enquiry_date` date NOT NULL,
  `required_date` datetime NOT NULL,
  `title` varchar(255) NOT NULL,
  `note` varchar(255) NOT NULL,
  `start_text` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `remarks` text NOT NULL,
  `convert_status` enum('Y','N') NOT NULL,
  `enquiry_notification` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `movement_analysis_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_enquiry`
--

INSERT INTO `erp_purchasing_enquiry` (`id`, `file_id`, `crm_user_id`, `vendor_id`, `send_email`, `requisition_id`, `enquiry_date`, `required_date`, `title`, `note`, `start_text`, `reference`, `remarks`, `convert_status`, `enquiry_notification`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `movement_analysis_id`) VALUES
(10001, 10001, 8, '2001,2002', 'Y', '10001', '2025-05-07', '2025-05-13 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 8, 8, '2025-05-06 10:44:12', '2025-05-07 07:43:57', 0),
(10002, 10002, 8, '2001,2002,2003', 'Y', '10001', '2025-05-06', '2025-05-13 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 8, 8, '2025-05-06 02:58:49', '2025-05-06 05:20:17', 0),
(10003, 0, 8, '2001', 'Y', '10001', '2025-05-07', '2025-05-14 12:00:00', '', '', '', '', 'Test', 'Y', '', 'Y', 8, 8, '2025-05-07 08:10:49', '2025-05-07 08:10:49', 0),
(10004, 0, 8, '2038', 'Y', '10003', '2025-05-16', '2025-05-23 12:00:00', '', '', '', 'Q012586', '', 'Y', '', 'Y', 8, 8, '2025-05-16 05:09:48', '2025-05-16 05:09:48', 0),
(10005, 10005, 8, '2062', 'Y', '10004', '2025-05-19', '2025-05-26 12:00:00', '', '', '', '87597-QT', '', 'Y', '', 'Y', 8, 8, '2025-05-19 12:03:45', '2025-05-19 12:05:39', 0),
(10006, 10006, 8, '2104', 'Y', '10006', '2025-06-05', '2025-06-12 12:00:00', '', '', '', 'ref', 'remk', 'Y', '', 'Y', 8, 8, '2025-06-05 01:54:59', '2025-06-05 02:01:41', 0),
(10007, 0, 8, '2104', 'Y', '10009', '2025-06-05', '2025-06-12 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 8, 8, '2025-06-05 02:06:47', '2025-06-05 02:06:47', 0),
(10008, 0, 1, '2100', 'Y', '10008', '2025-06-09', '2025-06-16 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 1, 1, '2025-06-09 01:52:23', '2025-06-09 01:52:23', 0),
(10009, 0, 1, '2001', 'Y', '10009', '2025-06-10', '2025-06-17 12:00:00', '', '', '', 'firsr wsp', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-10 03:33:55', '2025-06-10 03:33:55', 0),
(10010, 0, 1, '2001', 'Y', '10009', '2025-06-10', '2025-06-17 12:00:00', '', '', '', 'firsr wsp', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-10 03:34:47', '2025-06-10 03:34:47', 0),
(10011, 0, 1, '2001', 'Y', '10009', '2025-06-10', '2025-06-17 12:00:00', '', '', '', 'firsr ', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-10 03:35:36', '2025-06-10 03:35:36', 0),
(10012, 0, 1, '2001', 'Y', '10003', '2025-06-10', '2025-06-17 12:00:00', '', '', '', 'firsr ', '', 'Y', '', 'Y', 1, 1, '2025-06-10 03:36:21', '2025-06-10 03:36:21', 0),
(10013, 0, 1, '2002', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', 'test', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:20:40', '2025-06-11 03:20:40', 0),
(10014, 0, 1, '2003', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:23:38', '2025-06-11 03:23:38', 0),
(10015, 0, 1, '2005', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:26:09', '2025-06-11 03:26:09', 0),
(10016, 0, 1, '2029', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:34:33', '2025-06-11 03:34:33', 0),
(10017, 0, 1, '2054', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:36:17', '2025-06-11 03:36:17', 0),
(10018, 0, 1, '2030', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:48:19', '2025-06-11 03:48:19', 0),
(10019, 0, 1, '2047', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:50:24', '2025-06-11 03:50:24', 0),
(10020, 0, 1, '2084', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:51:09', '2025-06-11 03:51:09', 0),
(10021, 0, 1, '2027', 'Y', '10009', '2025-06-11', '2025-06-18 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-11 03:51:54', '2025-06-11 03:51:54', 0),
(10022, 0, 1, '2042', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:02:02', '2025-06-12 10:02:02', 0),
(10023, 0, 1, '2029', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:05:35', '2025-06-12 10:05:35', 0),
(10024, 0, 1, '2020', 'Y', '10005', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 1, 1, '2025-06-12 10:07:10', '2025-06-12 10:07:10', 0),
(10025, 0, 1, '2022', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:12:09', '2025-06-12 10:12:09', 0),
(10026, 0, 1, '2024', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:13:47', '2025-06-12 10:13:47', 0),
(10027, 0, 1, '2054', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:16:12', '2025-06-12 10:16:12', 0),
(10028, 0, 1, '2046', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:17:42', '2025-06-12 10:17:42', 0),
(10029, 0, 1, '2031', 'Y', '10009', '2025-06-12', '2025-06-19 12:00:00', '', '', '', '', 'rem', 'Y', '', 'Y', 1, 1, '2025-06-12 10:33:23', '2025-06-12 10:33:23', 0),
(10030, 0, 8, '2002', 'Y', '', '2025-06-24', '2025-07-01 12:00:00', '', '', '', 'ENQ001', '', 'Y', '', 'Y', 8, 8, '2025-06-24 15:18:48', '2025-06-24 03:18:48', 0),
(10031, 0, 8, '2005', 'Y', '', '2025-06-24', '2025-07-01 12:00:00', '', '', '', 'ENQ008', '', 'Y', '', 'Y', 8, 8, '2025-06-24 15:24:21', '2025-06-24 03:24:21', 0),
(10032, 0, 1, '2002,2003', 'Y', '', '2025-06-26', '2025-07-03 12:00:00', '', '', '', 'qqq', 're', 'Y', '', 'Y', 1, 1, '2025-06-26 13:48:04', '2025-06-26 01:48:04', 0),
(10033, 0, 1, '2004,2005', 'Y', '', '2025-06-26', '2025-07-03 12:00:00', '', '', '', 'rr', '', 'Y', '', 'Y', 1, 1, '2025-06-26 13:49:26', '2025-06-26 01:49:26', 0),
(10034, 10034, 1, '2001,2015', 'Y', '', '2025-06-26', '2025-07-03 12:00:00', '', '', '', 'REF111', '', 'Y', '', 'Y', 1, 8, '2025-06-26 13:53:27', '2025-06-26 02:02:11', 0),
(10035, 0, 1, '2001,2002', 'Y', '10012', '2025-06-26', '2025-07-03 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 1, 1, '2025-06-26 14:16:41', '2025-06-26 02:16:41', 0),
(10036, 0, 8, '2001,2002', 'Y', '10013', '2025-06-30', '2025-07-07 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 8, 8, '2025-06-30 08:54:23', '2025-06-30 08:54:23', 0),
(10037, 0, 13, '2001', 'Y', '10013', '2025-09-23', '2025-09-30 12:00:00', '', '', '', '', '', 'Y', '', 'Y', 13, 13, '2025-09-23 00:07:49', '2025-09-23 12:07:49', 0);

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

--
-- Table structure for table `erp_purchasing_enquiry_non_stock_item`
--

CREATE TABLE `erp_purchasing_enquiry_non_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_enquiry_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `non_stock_item_name` varchar(255) NOT NULL,
  `non_stock_item_description` varchar(255) NOT NULL,
  `non_stock_item_unit` varchar(255) NOT NULL,
  `non_stock_item_quantity` 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=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_enquiry_stock_item`
--

CREATE TABLE `erp_purchasing_enquiry_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_enquiry_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` int(11) NOT NULL,
  `stock_item_quantity` 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=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_enquiry_stock_item`
--

INSERT INTO `erp_purchasing_enquiry_stock_item` (`id`, `purchasing_enquiry_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(10, 10002, 162, '2281SF', 'Laminates 2281SF Navy Blue 4x8x0.8mm', 162, 250.000, 8, 8, '2025-05-06 05:20:17', '2025-05-06 05:20:17'),
(12, 10001, 240, 'AD325', 'AD325 Humidity Indicator 30/50%', 240, 10.000, 8, 8, '2025-05-07 07:43:57', '2025-05-07 07:43:57'),
(13, 10003, 162, '2281SF', 'Laminates 2281SF Navy Blue 4x8x0.8mm', 162, 250.000, 8, 8, '2025-05-07 08:10:49', '2025-05-07 08:10:49'),
(14, 10004, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 1000.000, 8, 8, '2025-05-16 05:09:48', '2025-05-16 05:09:48'),
(15, 10004, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 500.000, 8, 8, '2025-05-16 05:09:48', '2025-05-16 05:09:48'),
(18, 10005, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', 229, 100.000, 8, 8, '2025-05-19 12:05:39', '2025-05-19 12:05:39'),
(19, 10005, 647, '3SKB-SLP', 'Shipping Label Plate', 647, 1.000, 8, 8, '2025-05-19 12:05:39', '2025-05-19 12:05:39'),
(22, 10006, 668, 'A10001', 'Test Item A10001', 668, 12.000, 8, 8, '2025-06-05 02:01:41', '2025-06-05 02:01:41'),
(23, 10006, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 8, 8, '2025-06-05 02:01:41', '2025-06-05 02:01:41'),
(24, 10007, 668, 'A10001', 'Test Item A10001', 668, 10.000, 8, 8, '2025-06-05 02:06:47', '2025-06-05 02:06:47'),
(25, 10007, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 8, 8, '2025-06-05 02:06:47', '2025-06-05 02:06:47'),
(26, 10008, 668, 'A10001', 'Test Item A10001', 668, 20.000, 1, 1, '2025-06-09 01:52:23', '2025-06-09 01:52:23'),
(27, 10009, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-10 03:33:55', '2025-06-10 03:33:55'),
(28, 10009, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-10 03:33:55', '2025-06-10 03:33:55'),
(29, 10010, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-10 03:34:47', '2025-06-10 03:34:47'),
(30, 10010, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-10 03:34:47', '2025-06-10 03:34:47'),
(31, 10011, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-10 03:35:36', '2025-06-10 03:35:36'),
(32, 10011, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-10 03:35:36', '2025-06-10 03:35:36'),
(33, 10012, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 1000.000, 1, 1, '2025-06-10 03:36:21', '2025-06-10 03:36:21'),
(34, 10012, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 500.000, 1, 1, '2025-06-10 03:36:21', '2025-06-10 03:36:21'),
(35, 10013, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:20:40', '2025-06-11 03:20:40'),
(36, 10013, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:20:40', '2025-06-11 03:20:40'),
(37, 10014, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:23:38', '2025-06-11 03:23:38'),
(38, 10014, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:23:38', '2025-06-11 03:23:38'),
(39, 10015, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:26:09', '2025-06-11 03:26:09'),
(40, 10015, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:26:09', '2025-06-11 03:26:09'),
(41, 10016, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:34:33', '2025-06-11 03:34:33'),
(42, 10016, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:34:33', '2025-06-11 03:34:33'),
(43, 10017, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:36:17', '2025-06-11 03:36:17'),
(44, 10017, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:36:17', '2025-06-11 03:36:17'),
(45, 10018, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:48:19', '2025-06-11 03:48:19'),
(46, 10018, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:48:19', '2025-06-11 03:48:19'),
(47, 10019, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:50:24', '2025-06-11 03:50:24'),
(48, 10019, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:50:24', '2025-06-11 03:50:24'),
(49, 10020, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:51:09', '2025-06-11 03:51:09'),
(50, 10020, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:51:09', '2025-06-11 03:51:09'),
(51, 10021, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-11 03:51:54', '2025-06-11 03:51:54'),
(52, 10021, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-11 03:51:54', '2025-06-11 03:51:54'),
(53, 10022, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:02:02', '2025-06-12 10:02:02'),
(54, 10022, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:02:02', '2025-06-12 10:02:02'),
(55, 10023, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:05:35', '2025-06-12 10:05:35'),
(56, 10023, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:05:35', '2025-06-12 10:05:35'),
(57, 10024, 107, 'PK-886MF', 'Edging Extrusion - Mill Finish', 107, 1800.000, 1, 1, '2025-06-12 10:07:10', '2025-06-12 10:07:10'),
(58, 10025, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:12:09', '2025-06-12 10:12:09'),
(59, 10025, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:12:09', '2025-06-12 10:12:09'),
(60, 10026, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:13:47', '2025-06-12 10:13:47'),
(61, 10026, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:13:47', '2025-06-12 10:13:47'),
(62, 10027, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:16:12', '2025-06-12 10:16:12'),
(63, 10027, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:16:12', '2025-06-12 10:16:12'),
(64, 10028, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:17:42', '2025-06-12 10:17:42'),
(65, 10028, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:17:42', '2025-06-12 10:17:42'),
(66, 10029, 668, 'A10001', 'Test Item A10001', 668, 10.000, 1, 1, '2025-06-12 10:33:23', '2025-06-12 10:33:23'),
(67, 10029, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 1, 1, '2025-06-12 10:33:23', '2025-06-12 10:33:23'),
(69, 10034, 668, 'A10001', 'Test Item A10001', 668, 1.000, 8, 8, '2025-06-26 02:02:11', '2025-06-26 02:02:11'),
(70, 10035, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 100.000, 1, 1, '2025-06-26 02:16:41', '2025-06-26 02:16:41'),
(71, 10036, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 100.000, 8, 8, '2025-06-30 08:54:23', '2025-06-30 08:54:23'),
(72, 10036, 367, '1SKB-UB2020', 'Universal Equipment/Mixer Bag 20 x 20 x 5', 367, 1.000, 8, 8, '2025-06-30 08:54:23', '2025-06-30 08:54:23'),
(73, 10037, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 100.000, 13, 13, '2025-09-23 12:07:49', '2025-09-23 12:07:49'),
(74, 10037, 367, '1SKB-UB2020', 'Universal Equipment/Mixer Bag 20 x 20 x 5', 367, 1.000, 13, 13, '2025-09-23 12:07:49', '2025-09-23 12:07:49');

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

--
-- Table structure for table `erp_purchasing_invoice_addition`
--

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

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

--
-- Table structure for table `erp_purchasing_invoice_deduction`
--

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

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

--
-- Table structure for table `erp_purchasing_invoice_landed_cost`
--

CREATE TABLE `erp_purchasing_invoice_landed_cost` (
  `id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,6) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` decimal(15,2) NOT NULL,
  `landed_cost_type` int(11) NOT NULL COMMENT '1-Addition,2-Deduction',
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_material_receipt`
--

CREATE TABLE `erp_purchasing_material_receipt` (
  `id` int(11) NOT NULL COMMENT '(MRV number)',
  `file_id` int(11) NOT NULL COMMENT 'foreign key to master file',
  `po_id` int(11) NOT NULL COMMENT 'purchaseorder no(foreign key reference to order table)',
  `ticket_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL COMMENT 'foreign key reference to company table',
  `batch_no` varchar(255) NOT NULL COMMENT 'batch no',
  `dly_no` varchar(255) NOT NULL COMMENT 'delivery number',
  `dly_date` date NOT NULL,
  `shipped_by` varchar(255) NOT NULL,
  `awb_no` varchar(255) NOT NULL,
  `bill_no` varchar(225) NOT NULL,
  `tracking_no` varchar(255) NOT NULL,
  `others` varchar(255) NOT NULL,
  `bill_type` int(11) NOT NULL,
  `storekeeper_notes` varchar(255) NOT NULL,
  `qc_checked_employee` int(11) NOT NULL,
  `qc_check_notes` text NOT NULL,
  `qc_check_date` varchar(255) NOT NULL,
  `lot_no` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `mrv_receipt_date` date NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `invoiced` enum('Y','N') NOT NULL DEFAULT 'N',
  `qcchecked` enum('Y','N') NOT NULL DEFAULT 'N',
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `qc_checked_employee_name` varchar(255) NOT NULL,
  `is_convertable` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isSerialupdated` enum('Y','N') NOT NULL DEFAULT 'Y',
  `mr_notification` varchar(500) NOT NULL,
  `qc_notification` varchar(500) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_material_receipt`
--

INSERT INTO `erp_purchasing_material_receipt` (`id`, `file_id`, `po_id`, `ticket_id`, `project_classification_id`, `contract_id`, `vendor_id`, `batch_no`, `dly_no`, `dly_date`, `shipped_by`, `awb_no`, `bill_no`, `tracking_no`, `others`, `bill_type`, `storekeeper_notes`, `qc_checked_employee`, `qc_check_notes`, `qc_check_date`, `lot_no`, `notes`, `terms_and_conditions`, `remarks`, `mrv_receipt_date`, `crm_user_id`, `invoiced`, `qcchecked`, `stock_updated`, `qc_checked_employee_name`, `is_convertable`, `isSerialupdated`, `mr_notification`, `qc_notification`, `posted`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(10001, 10004, 60001, 0, 0, 0, 2001, '10001', 'DL123', '2025-05-06', '', '', '', '10001', '', 1, '', 0, '', '2025-05-06', 0, '', '', '', '2025-05-06', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-06 09:33:34', '2025-05-06 09:34:03'),
(10002, 10008, 60002, 0, 0, 0, 2001, '10002', 'DN1234', '2025-05-06', '', '', '', '10002', '', 1, '', 0, '', '2025-05-06', 0, '', '', '', '2025-05-06', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-06 03:02:13', '2025-05-06 03:02:32'),
(10003, 10009, 60003, 0, 0, 0, 2001, '10003', '123', '2025-05-06', '', '', '', '10003', '', 1, '', 0, '', '2025-05-06', 0, '', '', '', '2025-05-06', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-06 03:06:17', '2025-05-06 03:06:32'),
(10004, 10016, 60004, 0, 0, 0, 2001, '10004', '1234', '2025-05-09', '', '', '', '10004', '', 1, '', 0, '', '2025-05-09', 0, '', '', '', '2025-05-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-05-09 12:48:18', '2025-05-09 12:48:52'),
(10005, 10018, 60005, 0, 0, 0, 2001, '10005', '123', '2025-05-09', '', '', '', '10005', '', 1, '', 0, '', '2025-05-09', 0, '', '', '', '2025-05-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-05-09 12:58:22', '2025-05-09 12:58:28'),
(10006, 10023, 60006, 0, 0, 0, 2002, '10006', '', '2025-05-09', '', '', '', '10006', '', 1, '', 0, '', '2025-05-09', 0, '', '', '', '2025-05-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-05-09 03:00:10', '2025-05-09 03:02:49'),
(10007, 10023, 60006, 0, 0, 0, 2002, '10007', '', '2025-05-09', '', '', '', '10007', '', 1, '', 0, '', '2025-05-09', 0, '', '', '', '2025-05-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-05-09 03:01:50', '2025-05-09 03:02:55'),
(10008, 10028, 60007, 0, 0, 0, 2038, '10008', 'DN852982', '2025-05-19', '', '', '', 'INVOICE # INV112569', '', 1, '', 0, '', '2025-05-19', 0, '', '', '', '2025-05-19', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-19 10:03:01', '2025-05-19 10:11:22'),
(10009, 10028, 60007, 0, 0, 0, 2038, '10009', '', '2025-05-19', '', '', '', '10009', '', 1, '', 0, 'QC Done', '2025-05-19', 0, '', '', '', '2025-05-19', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-19 10:21:18', '2025-05-19 10:30:19'),
(10010, 10036, 60011, 0, 0, 0, 2004, '10010', 'D111', '2025-05-20', '', '', '', '10010', '', 1, '', 0, 'QC Pass', '2025-05-20', 0, '', '', '', '2025-05-20', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-20 04:28:49', '2025-05-20 04:57:21'),
(10011, 10038, 60012, 0, 0, 0, 2003, '10011', 'D11', '2025-05-20', '', '', '', '10011', '', 1, '', 0, 'QC Pass', '2025-05-20', 0, '', '', '', '2025-05-20', 8, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 8, 8, '2025-05-20 04:47:08', '2025-05-20 04:49:08'),
(10012, 10039, 60013, 0, 0, 0, 2002, '10012', '', '2025-05-20', '', '', '', '10012', '', 1, '', 0, '', '2025-06-24', 0, '', '', '', '2025-05-20', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 8, '2025-05-20 05:16:34', '2025-06-24 16:05:53'),
(10013, 10041, 60014, 0, 0, 0, 2004, '10013', 'ee', '2025-05-21', '', '', '', '10013', '', 1, '', 0, '', '2025-05-21', 0, '', '', '', '2025-05-21', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-05-21 10:20:54', '2025-05-21 10:21:05'),
(10014, 10061, 60017, 0, 0, 0, 2101, '10014', '', '2025-06-01', '', '', '', '10014', '', 1, '', 0, '', '2025-06-01', 0, '', '', '', '2025-06-01', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-06-01 10:01:06', '2025-06-01 10:01:33'),
(10015, 10078, 60019, 0, 0, 0, 2001, '10015', '', '2025-06-03', '', '', '', '10015', '', 1, '', 0, '', '2025-06-03', 0, '', '', '', '2025-06-03', 1, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 1, 1, '2025-06-03 04:12:16', '2025-06-03 04:16:13'),
(10016, 10079, 60020, 0, 0, 0, 2001, '10016', '', '2025-06-04', '', '', '', '10016', '', 1, '', 0, '', '2025-06-04', 0, '', '', '', '2025-06-04', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-06-04 11:16:04', '2025-06-04 11:16:14'),
(10017, 10080, 60021, 0, 0, 0, 2001, '10017', 'dd', '2023-05-17', '', '', '', '10017', '', 1, '', 0, '', '2023-05-17', 0, '', '', '', '2025-06-04', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-06-04 01:03:14', '2025-06-04 01:03:26'),
(10018, 10096, 60024, 0, 0, 0, 2104, '10018', '', '2025-06-05', '', '', '', 'ref', '', 1, '', 0, 'qc notes', '2025-06-05', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-05', 8, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 8, 8, '2025-06-05 02:22:28', '2025-06-05 02:38:08'),
(10019, 10095, 60023, 0, 0, 0, 2104, '10019', '32', '2025-06-05', '', '', '', '10019', '', 1, 'nte', 0, '', '2025-06-24', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-05', 8, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 8, 8, '2025-06-05 02:25:32', '2025-06-24 03:58:49'),
(10020, 10097, 60025, 0, 0, 0, 2004, '10020', 'dd', '2025-06-09', '', '', '', '10020', '', 1, '', 0, '', '2025-06-09', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-06-09 09:18:34', '2025-06-09 09:18:44'),
(10021, 10098, 60026, 0, 0, 0, 2001, '10021', '', '2025-06-09', '', '', '', '10021', '', 1, '', 0, '', '2025-06-09', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-06-09 09:48:00', '2025-06-09 09:48:25'),
(10022, 10101, 60027, 0, 0, 0, 2100, '10022', '', '2025-06-09', '', '', '', '10022', '', 1, '', 0, '', '2025-06-09', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-09', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-06-09 11:05:59', '2025-06-09 11:09:03'),
(10023, 10110, 60028, 0, 0, 0, 2100, '10023', '63', '2025-06-09', '', '', '', '10023', '', 1, '', 0, '', '2025-06-09', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-09', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-06-09 01:59:57', '2025-06-09 02:00:30'),
(10024, 10126, 60031, 0, 0, 0, 2005, '10024', '', '2025-06-24', '', '', '', '10024', '', 1, '', 0, '..', '2025-06-24', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-24', 8, 'Y', 'N', 'Y', '', 'Y', 'Y', '', '', 'N', 8, 8, '2025-06-24 15:50:09', '2025-06-24 03:59:17'),
(10025, 10121, 60030, 0, 0, 0, 2001, '10025', '', '2025-06-24', '', '', '', '10025', '', 1, '', 0, '', '2025-06-24', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-24', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-06-24 15:54:41', '2025-06-24 16:03:35'),
(10026, 10130, 60032, 0, 0, 0, 2001, '10026', '', '2025-06-26', '', '', '', '10026', '', 1, '', 0, '', '2025-06-26', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-26', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-06-26 14:18:08', '2025-06-26 14:18:21'),
(10027, 10133, 60033, 0, 0, 0, 2014, '10027', '5001', '2025-06-27', '', '', '', '10027', '', 1, '', 0, '', '2025-06-27', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-27', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-06-27 14:33:37', '2025-06-27 14:38:19'),
(10028, 10135, 60034, 0, 0, 0, 2002, '10028', 'D1', '2025-06-27', '', '', '', '10028', '', 1, '', 0, '', '2025-06-27', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-27', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-06-27 16:50:19', '2025-06-27 16:50:37'),
(10029, 10077, 60018, 0, 0, 0, 2102, '10029', '', '2025-06-27', '', '', '', '10029', '', 1, '', 0, '', '', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-27', 8, 'N', 'N', 'N', '', 'Y', 'Y', '', '', 'N', 8, 8, '2025-06-27 16:55:22', '2025-06-27 16:55:22'),
(10030, 10140, 60035, 0, 0, 0, 2001, '10030', 'D1', '2025-06-30', '', '', '', '10030', '', 1, '', 0, '', '2025-06-30', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-30', 8, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 8, 8, '2025-06-30 08:56:06', '2025-06-30 08:56:51'),
(10031, 10142, 60036, 0, 0, 0, 2003, '10031', '', '2025-06-30', '', '', '', '10031', '', 1, '', 0, '', '2025-06-30', 0, '', 'Purchase Terms and Conditions come here\r\n', '', '2025-06-30', 8, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 8, 1, '2025-06-30 09:11:16', '2025-06-30 09:26:19'),
(10032, 10043, 60016, 0, 0, 0, 2019, '10032', '', '2025-07-22', '', '', '', '10032', '', 1, '', 0, '', '2025-07-22', 0, '', 'Purchase Terms an\r\n\r\n\r\nd Conditions come here only\r\n', '', '2025-07-22', 1, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 1, 1, '2025-07-22 15:08:10', '2025-07-22 15:08:48'),
(10033, 10151, 60037, 0, 0, 0, 2001, '10033', '', '2025-08-13', '', '', '', '10033', '', 1, '', 0, '', '2025-08-13', 0, '', '', '', '2025-08-13', 1, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 1, 1, '2025-08-13 12:33:17', '2025-08-13 12:34:15'),
(10034, 10151, 60037, 0, 0, 0, 2001, '10034', '', '2025-08-13', '', '', '', '10034', '', 1, '', 0, '', '2025-08-13', 0, '', '', '', '2025-08-13', 1, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 1, 1, '2025-08-13 12:38:27', '2025-08-13 12:39:21'),
(10035, 10159, 60038, 0, 0, 0, 2001, '10035', '', '2025-09-29', '', '', '', '10035', '', 1, '', 0, '', '2025-09-29', 0, '', '', '', '2025-09-29', 1, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 1, 1, '2025-09-29 11:55:23', '2025-09-29 11:55:32'),
(10036, 10033, 60009, 0, 0, 0, 2062, '10036', 'er5', '2025-09-29', '', '', '', '10036', '', 1, '', 0, '', '', 0, '', '', '', '2025-09-29', 1, 'N', 'N', 'N', '', 'Y', 'Y', '', '', 'N', 1, 1, '2025-09-29 15:20:31', '2025-09-29 15:20:31');

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

--
-- Table structure for table `erp_purchasing_material_receipt_item`
--

CREATE TABLE `erp_purchasing_material_receipt_item` (
  `id` int(11) NOT NULL,
  `purchasing_materialreceipt_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` text NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `max_quantity` decimal(15,3) NOT NULL,
  `remaining_quantity` decimal(15,3) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `received_quantity` decimal(15,3) NOT NULL,
  `damaged_quantity` decimal(15,3) NOT NULL,
  `qc_checked_quantity` decimal(15,3) NOT NULL,
  `hsir_code` varchar(255) NOT NULL,
  `order_item_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,
  `unit_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_material_receipt_item`
--

INSERT INTO `erp_purchasing_material_receipt_item` (`id`, `purchasing_materialreceipt_id`, `product_id`, `product_name`, `description`, `quantity`, `max_quantity`, `remaining_quantity`, `unit`, `rate`, `received_quantity`, `damaged_quantity`, `qc_checked_quantity`, `hsir_code`, `order_item_id`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `unit_id`) VALUES
(1, 10001, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 100.000, 100.000, 100.000, 'Ea', 25.000000, 100.000, 0.000, 100.000, '', 3, 8, 8, '2025-05-06 09:33:34', '2025-05-06 09:33:34', 2),
(2, 10001, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', 100.000, 100.000, 100.000, 'Ea', 25.000000, 100.000, 0.000, 100.000, '', 4, 8, 8, '2025-05-06 09:33:34', '2025-05-06 09:33:34', 349),
(3, 10002, 162, '2281SF', 'Laminates 2281SF Navy Blue 4x8x0.8mm', 250.000, 250.000, 250.000, 'Ea', 15.000000, 250.000, 0.000, 250.000, '', 6, 8, 8, '2025-05-06 03:02:13', '2025-05-06 03:02:13', 162),
(4, 10003, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616', 100.000, 100.000, 100.000, 'Ea', 15.000000, 100.000, 0.000, 100.000, '', 8, 8, 8, '2025-05-06 03:06:17', '2025-05-06 03:06:17', 302),
(5, 10004, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 50.000, 50.000, 50.000, 'ea', 10.000000, 50.000, 0.000, 50.000, '', 10, 1, 1, '2025-05-09 12:48:18', '2025-05-09 12:48:18', 1),
(6, 10005, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 50.000, 50.000, 50.000, 'ea', 15.000000, 50.000, 0.000, 50.000, '', 12, 1, 1, '2025-05-09 12:58:22', '2025-05-09 12:58:22', 1),
(7, 10006, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 50.000, 50.000, 50.000, 'ea', 20.000000, 25.000, 0.000, 25.000, '', 14, 1, 1, '2025-05-09 03:00:10', '2025-05-09 03:00:10', 1),
(8, 10007, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 50.000, 50.000, 25.000, 'ea', 20.000000, 25.000, 0.000, 25.000, '', 14, 1, 1, '2025-05-09 03:01:50', '2025-05-09 03:01:50', 1),
(9, 10008, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 1000.000, 1000.000, 1000.000, 'Ea', 77.000000, 500.000, 0.000, 500.000, '', 19, 8, 8, '2025-05-19 10:03:01', '2025-05-19 10:03:01', 246),
(10, 10008, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 500.000, 500.000, 500.000, 'Ea', 139.000000, 500.000, 0.000, 500.000, '', 20, 8, 8, '2025-05-19 10:03:01', '2025-05-19 10:03:01', 245),
(11, 10009, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 1000.000, 1000.000, 500.000, 'Ea', 77.000000, 500.000, 0.000, 500.000, '', 19, 8, 8, '2025-05-19 10:21:18', '2025-05-19 10:21:18', 246),
(12, 10010, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', 5.000, 5.000, 5.000, 'Ea', 11.000000, 5.000, 0.000, 5.000, '', 32, 8, 8, '2025-05-20 04:28:49', '2025-05-20 04:28:49', 114),
(13, 10010, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', 7.000, 7.000, 7.000, 'Ea', 23.000000, 7.000, 0.000, 7.000, '', 33, 8, 8, '2025-05-20 04:28:49', '2025-05-20 04:28:49', 31),
(14, 10010, 33, 'C1343Z', 'Medium Ball Corner suitable for 22mm / 7/8 Extrusion E0815', 12.000, 12.000, 12.000, 'Ea', 56.000000, 12.000, 0.000, 12.000, '', 34, 8, 8, '2025-05-20 04:28:49', '2025-05-20 04:28:49', 33),
(15, 10011, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', 100.000, 100.000, 100.000, 'Ea', 50.000000, 100.000, 0.000, 100.000, '', 39, 8, 8, '2025-05-20 04:47:08', '2025-05-20 04:47:08', 114),
(16, 10011, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', 50.000, 50.000, 50.000, 'Ea', 250.000000, 50.000, 0.000, 50.000, '', 40, 8, 8, '2025-05-20 04:47:08', '2025-05-20 04:47:08', 31),
(17, 10012, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', 5.000, 5.000, 5.000, 'Ea', 50.000000, 5.000, 0.000, 5.000, '', 45, 1, 1, '2025-05-20 05:16:34', '2025-05-20 05:16:34', 229),
(18, 10012, 647, '3SKB-SLP', 'Shipping Label Plate', 5.000, 5.000, 5.000, 'Ea', 20.000000, 5.000, 0.000, 5.000, '', 46, 1, 1, '2025-05-20 05:16:34', '2025-05-20 05:16:34', 647),
(19, 10013, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 100.000, 100.000, 100.000, 'Ea', 3.200000, 100.000, 0.000, 100.000, '', 49, 8, 8, '2025-05-21 10:20:54', '2025-05-21 10:20:54', 24),
(20, 10013, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', 100.000, 100.000, 100.000, 'Ea', 5.380000, 100.000, 0.000, 100.000, '', 50, 8, 8, '2025-05-21 10:20:54', '2025-05-21 10:20:54', 25),
(21, 10014, 668, 'A10001', 'Test Item A10001', 20.000, 20.000, 20.000, 'ea', 10.000000, 20.000, 0.000, 20.000, '', 63, 8, 8, '2025-06-01 10:01:06', '2025-06-01 10:01:06', 668),
(22, 10014, 671, 'T300', 'T300', 10.000, 10.000, 10.000, 'L', 20.000000, 10.000, 0.000, 10.000, '', 64, 8, 8, '2025-06-01 10:01:06', '2025-06-01 10:01:06', 671),
(23, 10015, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', 100.000, 100.000, 100.000, 'Ea', 5.000000, 100.000, 0.000, 100.000, '', 73, 1, 1, '2025-06-03 04:12:16', '2025-06-03 04:12:16', 24),
(24, 10016, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2.000, 2.000, 2.000, 'ea', 25.000000, 2.000, 0.000, 2.000, '', 75, 1, 1, '2025-06-04 11:16:04', '2025-06-04 11:16:04', 2),
(25, 10017, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 100.000, 100.000, 100.000, 'ea', 23.000000, 100.000, 0.000, 100.000, '', 79, 1, 1, '2025-06-04 01:03:14', '2025-06-04 01:03:14', 2),
(26, 10018, 668, 'A10001', 'Test Item A10001', 5.000, 5.000, 5.000, 'ea', 10.000000, 5.000, 0.000, 5.000, '', 90, 8, 8, '2025-06-05 02:22:28', '2025-06-05 02:22:28', 668),
(27, 10018, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 1.000, 1.000, 1.000, 'ea', 20.000000, 1.000, 0.000, 1.000, '', 91, 8, 8, '2025-06-05 02:22:28', '2025-06-05 02:22:28', 2),
(28, 10019, 668, 'A10001', 'Test Item A10001', 10.000, 10.000, 10.000, 'ea', 10.000000, 10.000, 0.000, 10.000, '', 92, 8, 8, '2025-06-05 02:25:32', '2025-06-05 02:25:32', 668),
(29, 10019, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 15.000, 15.000, 15.000, 'ea', 20.000000, 15.000, 0.000, 15.000, '', 93, 8, 8, '2025-06-05 02:25:32', '2025-06-05 02:25:32', 2),
(30, 10020, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 250.000, 250.000, 250.000, 'ea', 5.000000, 250.000, 0.000, 250.000, '', 95, 1, 1, '2025-06-09 09:18:34', '2025-06-09 09:18:34', 245),
(31, 10021, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 10.000, 10.000, 10.000, 'ea', 4.000000, 10.000, 0.000, 10.000, '', 97, 1, 1, '2025-06-09 09:48:00', '2025-06-09 09:48:00', 245),
(32, 10022, 668, 'A10001', 'Test Item A10001', 10.000, 10.000, 10.000, 'ea', 10.000000, 10.000, 0.000, 10.000, '', 99, 8, 8, '2025-06-09 11:05:59', '2025-06-09 11:05:59', 668),
(33, 10023, 668, 'A10001', 'Test Item A10001', 1.000, 1.000, 1.000, 'ea', 10.000000, 1.000, 0.000, 1.000, '', 104, 1, 1, '2025-06-09 01:59:57', '2025-06-09 01:59:57', 668),
(34, 10024, 26, 'BPLY-003', '18mm Russian Birch Ply [2400x1200mm]', 11.000, 11.000, 11.000, 'Ea', 50.000000, 11.000, 0.000, 11.000, '', 108, 8, 8, '2025-06-24 03:50:09', '2025-06-24 03:50:09', 26),
(35, 10024, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', 1.000, 1.000, 1.000, 'ea', 40.000000, 1.000, 0.000, 1.000, '', 109, 8, 8, '2025-06-24 03:50:09', '2025-06-24 03:50:09', 1),
(36, 10025, 240, 'AD325', 'AD325 Humidity Indicator 30/50%', 10.000, 10.000, 10.000, 'Ea', 10.000000, 10.000, 0.000, 10.000, '', 110, 8, 8, '2025-06-24 03:54:41', '2025-06-24 03:54:41', 240),
(37, 10026, 668, 'A10001', 'Test Item A10001', 1.000, 1.000, 1.000, 'ea', 12.000000, 1.000, 0.000, 1.000, '', 125, 1, 1, '2025-06-26 02:18:08', '2025-06-26 02:18:08', 668),
(38, 10027, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', 500.000, 500.000, 500.000, 'ea', 5.000000, 500.000, 0.000, 500.000, '', 128, 8, 8, '2025-06-27 02:33:37', '2025-06-27 02:33:37', 34),
(39, 10027, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', 1000.000, 1000.000, 1000.000, 'Ea', 12.000000, 1000.000, 0.000, 1000.000, '', 129, 8, 8, '2025-06-27 02:33:37', '2025-06-27 02:33:37', 36),
(40, 10028, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 50.000, 50.000, 50.000, 'ea', 7.000000, 50.000, 0.000, 50.000, '', 132, 8, 8, '2025-06-27 04:50:19', '2025-06-27 04:50:19', 245),
(41, 10028, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 50.000, 50.000, 50.000, 'Ea', 6.000000, 50.000, 0.000, 50.000, '', 133, 8, 8, '2025-06-27 04:50:19', '2025-06-27 04:50:19', 246),
(42, 10029, 668, 'A10001', 'Test Item A10001', 2.000, 2.000, 2.000, 'ea', 110.000000, 2.000, 0.000, 0.000, '', 134, 8, 8, '2025-06-27 04:55:22', '2025-06-27 04:55:22', 668),
(43, 10030, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 100.000, 100.000, 100.000, 'ea', 15.000000, 100.000, 0.000, 100.000, '', 137, 8, 8, '2025-06-30 08:56:06', '2025-06-30 08:56:06', 245),
(44, 10030, 367, '1SKB-UB2020', 'Universal Equipment/Mixer Bag 20 x 20 x 5', 1.000, 1.000, 1.000, 'Ea', 15.000000, 1.000, 0.000, 1.000, '', 138, 8, 8, '2025-06-30 08:56:06', '2025-06-30 08:56:06', 367),
(45, 10031, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 25.000, 25.000, 25.000, 'ea', 13.500000, 25.000, 0.000, 25.000, '', 140, 8, 8, '2025-06-30 09:11:16', '2025-06-30 09:11:16', 245),
(46, 10032, 130, 'R1385/2UK', '2U Black 1.5mm Thick Rack Panel', 3.000, 3.000, 3.000, 'Ea', 10.000000, 3.000, 0.000, 3.000, '', 155, 1, 1, '2025-07-22 03:08:10', '2025-07-22 03:08:10', 130),
(47, 10033, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', 10.000, 10.000, 10.000, 'ea', 10.000000, 5.000, 1.000, 4.000, '', 157, 1, 1, '2025-08-13 12:33:17', '2025-08-13 12:33:17', 3),
(48, 10034, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', 10.000, 10.000, 6.000, 'ea', 10.000000, 6.000, 0.000, 6.000, '', 157, 1, 1, '2025-08-13 12:38:27', '2025-08-13 12:38:27', 3),
(49, 10035, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', 10.000, 10.000, 10.000, 'ea', 10.000000, 10.000, 0.000, 10.000, '', 169, 1, 1, '2025-09-29 11:55:23', '2025-09-29 11:55:23', 3),
(50, 10036, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', 100.000, 100.000, 100.000, 'Ea', 57.000000, 100.000, 0.000, 0.000, '', 170, 1, 1, '2025-09-29 03:20:31', '2025-09-29 03:20:31', 229),
(51, 10036, 647, '3SKB-SLP', 'Shipping Label Plate', 1.000, 1.000, 1.000, 'Ea', 200.000000, 1.000, 0.000, 0.000, '', 171, 1, 1, '2025-09-29 03:20:31', '2025-09-29 03:20:31', 647);

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

--
-- Table structure for table `erp_purchasing_order`
--

CREATE TABLE `erp_purchasing_order` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `supplier_type` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL COMMENT 'foreign key relation to company table',
  `vendor_contact_id` int(11) NOT NULL,
  `enquiry_id` int(11) NOT NULL,
  `req_id` int(11) NOT NULL,
  `order_date` date NOT NULL COMMENT 'current date',
  `required_date` date NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `currency` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `reference` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `terms_id` int(11) NOT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `payment_terms` int(11) NOT NULL,
  `stock_grand_total` decimal(15,4) NOT NULL,
  `nonstock_grandtotal` float NOT NULL,
  `total_tax_amount` decimal(15,4) NOT NULL,
  `shipping_address` text NOT NULL,
  `billing_address` text NOT NULL,
  `pricing_conditions` varchar(255) NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `start_text` text NOT NULL,
  `template_text` text NOT NULL,
  `template_file_name` varchar(255) NOT NULL,
  `convert_status` enum('Y','N') NOT NULL,
  `completed` enum('Y','N','C','P') NOT NULL DEFAULT 'N' COMMENT 'Y- completed,N-not completed,C-canceled,P-paritaly',
  `invoice_type` int(11) NOT NULL,
  `service_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `order_notification` varchar(500) NOT NULL,
  `order_approve_notification` varchar(500) NOT NULL,
  `approved_level` int(11) NOT NULL DEFAULT 0,
  `level1_approved_by` int(11) NOT NULL,
  `level1_approved_time` datetime NOT NULL,
  `level2_approved_by` int(11) NOT NULL,
  `level2_approved_time` datetime NOT NULL,
  `level3_approved_by` int(11) NOT NULL,
  `level3_approved_time` datetime NOT NULL,
  `project_ids` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order`
--

INSERT INTO `erp_purchasing_order` (`id`, `file_id`, `title`, `ticket_id`, `project_classification_id`, `contract_id`, `crm_user_id`, `supplier_type`, `vendor_id`, `vendor_contact_id`, `enquiry_id`, `req_id`, `order_date`, `required_date`, `expected_delivery_date`, `currency`, `exchange_rate`, `reference`, `notes`, `terms_id`, `terms_and_conditions`, `remarks`, `payment_terms`, `stock_grand_total`, `nonstock_grandtotal`, `total_tax_amount`, `shipping_address`, `billing_address`, `pricing_conditions`, `shipping_by`, `start_text`, `template_text`, `template_file_name`, `convert_status`, `completed`, `invoice_type`, `service_invoice`, `order_notification`, `order_approve_notification`, `approved_level`, `level1_approved_by`, `level1_approved_time`, `level2_approved_by`, `level2_approved_time`, `level3_approved_by`, `level3_approved_time`, `project_ids`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(60001, 10004, '', 0, 0, 0, 8, 1, 2001, 1, 0, 0, '2025-05-06', '2025-05-13', '2025-05-13', 1, 1, '', '', 0, '', '', 6, 5250.0000, 0, 250.0000, ', PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10001', 8, 8, '2025-05-06 09:33:15', '2025-05-06 09:33:19'),
(60002, 10008, '', 0, 0, 0, 8, 1, 2001, 1, 10002, 0, '2025-05-06', '2025-05-13', '2025-05-13', 1, 1, '', '', 0, '', '', 2, 3937.5000, 0, 187.5000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-05-06 03:00:26', '2025-05-06 03:00:40'),
(60003, 10009, '', 0, 0, 0, 8, 1, 2001, 1, 0, 0, '2025-05-06', '2025-05-13', '2025-05-13', 1, 1, '', '', 0, '', '', 6, 1575.0000, 0, 75.0000, ', PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-05-06 03:06:06', '2025-05-06 03:06:11'),
(60004, 10016, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-05-09', '2025-05-16', '2025-05-16', 1, 1, '', '', 0, '', '', 6, 525.0000, 0, 25.0000, ', PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-05-09 12:48:07', '', 1, 1, '2025-05-09 12:47:58', '2025-05-09 12:48:07'),
(60005, 10018, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-05-09', '2025-05-16', '2025-05-16', 1, 1, '', '', 0, '', '', 6, 787.5000, 0, 37.5000, ', PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-05-09 12:58:14', '', 1, 1, '2025-05-09 12:58:11', '2025-05-09 12:58:14'),
(60006, 10023, '', 0, 0, 0, 1, 1, 2002, 2, 0, 0, '2025-05-09', '2025-05-16', '2025-05-16', 1, 1, '', '', 0, '', '', 6, 1050.0000, 0, 50.0000, 'The Kanoo group building,\r\nBur Dubai,\r\nOffice 12, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-05-09 14:59:29', '', 1, 1, '2025-05-09 02:59:22', '2025-05-09 02:59:29'),
(60007, 10028, '', 0, 0, 0, 8, 1, 2038, 38, 10004, 0, '2025-05-17', '2025-05-24', '2025-05-24', 1, 1, '', '', 0, '', '', 2, 153825.0000, 0, 7325.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10001', 8, 8, '2025-05-17 07:56:49', '2025-05-19 10:01:02'),
(60008, 10030, '', 0, 0, 0, 13, 1, 2062, 62, 10005, 0, '2025-05-19', '2025-05-26', '2025-05-26', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here\r\n', '', 2, 6300.0000, 0, 300.0000, '', 'Al Quoz Industrial Area', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10001', 8, 13, '2025-05-19 12:13:17', '2025-09-25 01:03:53'),
(60009, 10033, '', 0, 0, 0, 1, 1, 2062, 62, 10005, 0, '2025-05-19', '2025-05-26', '2025-05-26', 1, 1, '', '', 0, '', '', 2, 6195.0000, 0, 295.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-09-29 15:20:04', '10001', 8, 1, '2025-05-19 12:59:24', '2025-09-29 03:20:04'),
(60010, 10034, '', 0, 0, 0, 8, 1, 2062, 62, 10005, 0, '2025-05-19', '2025-05-26', '2025-05-26', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here\r\n', '', 2, 6195.0000, 0, 295.0000, '', 'Al Quoz Industrial Area', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10001', 8, 8, '2025-05-19 01:00:06', '2025-07-02 09:15:36'),
(60011, 10036, '', 0, 0, 0, 8, 1, 2004, 4, 0, 0, '2025-05-20', '2025-05-27', '2025-05-27', 1, 1, '', '', 0, '', '', 9, 932.4000, 0, 44.4000, 'Dubai Investment Park 1, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10003', 8, 8, '2025-05-20 04:28:01', '2025-05-20 04:28:07'),
(60012, 10038, '', 0, 0, 0, 8, 1, 2003, 3, 0, 0, '2025-05-20', '2025-05-27', '2025-05-27', 1, 1, '', '', 0, '', '', 1, 18375.0000, 0, 875.0000, 'Jebel Ali Industrial Area 2, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10003', 8, 8, '2025-05-20 04:46:47', '2025-05-20 04:46:59'),
(60013, 10039, '', 0, 0, 0, 1, 1, 2002, 2, 0, 0, '2025-05-20', '2025-05-27', '2025-05-27', 1, 1, '', '', 0, '', '', 6, 367.5000, 0, 17.5000, 'The Kanoo group building,\r\nBur Dubai,\r\nOffice 12, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-05-20 17:16:26', '', 1, 1, '2025-05-20 05:16:18', '2025-05-20 05:16:26'),
(60014, 10041, '', 0, 0, 0, 8, 1, 2004, 4, 0, 0, '2025-05-21', '2025-05-28', '2025-05-28', 1, 1, '', '', 0, '', '', 9, 900.9000, 0, 42.9000, 'Dubai Investment Park 1, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10003', 8, 8, '2025-05-21 10:20:37', '2025-05-21 10:20:45'),
(60015, 10042, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-05-18', '2025-05-28', '2025-05-28', 1, 1, '', 'This is a test entry from project by athulya', 0, 'Purchase Terms and Conditions come here\r\n', '', 6, 36.7500, 0, 1.7500, ', PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-10-04 11:14:18', '10003', 1, 1, '2025-05-21 01:21:42', '2025-10-04 11:14:18'),
(60016, 10043, '', 0, 0, 0, 1, 1, 2019, 19, 0, 0, '2025-05-21', '2025-05-28', '2025-05-28', 2, 3.685, '', '', 2, 'Purchase Terms an\r\n\r\n\r\nd Conditions come here only\r\n', '', 6, 31.5000, 0, 1.5000, 'Unit 904,\r\n9th Floor DSC Tower, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-07-22 15:07:59', '10003', 8, 1, '2025-05-21 03:17:30', '2025-07-22 03:07:59'),
(60017, 10061, '', 0, 0, 0, 8, 1, 2101, 101, 0, 0, '2025-06-01', '2025-06-08', '2025-06-08', 3, 4.15, '', '', 0, '', '', 1, 432.0000, 0, 32.0000, ', PO Box : ,,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10002', 8, 8, '2025-06-01 09:59:36', '2025-06-01 10:00:42'),
(60018, 10077, '', 0, 0, 0, 8, 1, 2102, 103, 0, 0, '2025-06-03', '2025-06-10', '2025-06-10', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 1, 231.0000, 0, 11.0000, 'Ajman,Dubai, PO Box : ,Trivandram,India', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10001', 8, 8, '2025-06-03 03:34:16', '2025-06-27 04:53:41'),
(60019, 10078, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-06-03', '2025-06-10', '2025-06-10', 1, 1, '', '', 0, '', '', 6, 540.0000, 0, 40.0000, 'Somewhere in Sharjah, PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-03 16:10:18', '', 1, 1, '2025-06-03 04:10:10', '2025-06-03 04:10:18'),
(60020, 10079, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-06-04', '2025-06-11', '2025-06-11', 1, 1, '', '', 0, '', '', 6, 54.0000, 0, 4.0000, 'Somewhere in Sharjah, PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-04 11:15:59', '', 1, 1, '2025-06-04 11:15:54', '2025-06-04 11:15:59'),
(60021, 10080, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2023-05-17', '2023-05-17', '2025-06-11', 1, 1, '', '', 0, '', '', 6, 2484.0000, 0, 184.0000, 'Somewhere in Sharjah, PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-04 13:03:01', '', 1, 1, '2025-06-04 01:02:19', '2025-06-04 01:03:01'),
(60022, 10083, '', 0, 0, 0, 8, 1, 2001, 1, 0, 0, '2025-06-04', '2025-06-11', '2025-06-11', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here\r\n', '', 6, 10.5000, 0, 0.5000, 'Somewhere in Sharjah', 'Somewhere in Sharjah', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-06-04 05:11:43', '2025-07-02 09:41:25'),
(60023, 10095, '', 0, 0, 0, 1, 1, 2104, 105, 0, 10009, '2025-06-05', '2025-06-12', '2025-06-12', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here\r\n', '', 1, 432.0000, 0, 32.0000, 'addre, PO Box : 87777,uae,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-05 14:22:00', '10003', 8, 1, '2025-06-05 02:08:48', '2025-06-05 02:22:00'),
(60024, 10096, '', 0, 0, 0, 1, 1, 2104, 105, 0, 0, '2025-06-05', '2025-06-12', '2025-06-12', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here\r\n', '', 1, 75.6000, 0, 5.6000, 'addre, PO Box : 87777,uae,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-05 14:21:53', '10001', 8, 1, '2025-06-05 02:10:16', '2025-06-05 02:21:53'),
(60025, 10097, '', 0, 0, 0, 1, 1, 2004, 4, 0, 0, '2025-06-09', '2025-06-16', '2025-06-16', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 9, 1350.0000, 0, 100.0000, 'Dubai Investment Park 1, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-09 09:18:26', '', 1, 1, '2025-06-09 09:18:20', '2025-06-09 09:18:26'),
(60026, 10098, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-06-09', '2025-06-16', '2025-06-16', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 6, 43.2000, 0, 3.2000, 'Somewhere in Sharjah, PO Box : -,Sharjah ,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-09 09:47:50', '', 1, 1, '2025-06-09 09:47:35', '2025-06-09 09:47:50'),
(60027, 10101, '', 0, 0, 0, 1, 1, 2100, 100, 0, 0, '2025-06-09', '2025-06-16', '2025-06-16', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here\r\n', '', 1, 108.0000, 0, 8.0000, ', PO Box : ,,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-09 11:05:29', '', 8, 1, '2025-06-09 11:04:48', '2025-06-09 11:05:29'),
(60028, 10110, '', 0, 0, 0, 1, 1, 2100, 100, 0, 0, '2025-06-09', '2025-06-16', '2025-06-16', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 1, 10.8000, 0, 0.8000, ', PO Box : ,,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-09 13:59:35', '', 8, 1, '2025-06-09 01:43:30', '2025-06-09 01:59:35'),
(60029, 10112, '', 0, 0, 0, 1, 1, 2100, 100, 10008, 0, '2025-06-09', '2025-06-16', '2025-06-16', 1, 1, '', '', 0, '', '', 2, 216.0000, 0, 16.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'C', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-09 13:58:37', '', 1, 1, '2025-06-09 01:58:11', '2025-06-09 01:58:37'),
(60030, 10121, '', 0, 0, 0, 8, 1, 2001, 102, 10001, 0, '2025-06-12', '2025-06-19', '2025-06-19', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 2, 105.0000, 0, 5.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 1, 8, '2025-06-12 10:15:14', '2025-06-24 03:54:32'),
(60031, 10126, '', 0, 0, 0, 8, 1, 2005, 5, 0, 0, '2025-06-24', '2025-07-01', '2025-07-01', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 1, 619.5000, 0, 29.5000, ', PO Box : -,Sharjah,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-06-24 15:34:32', '2025-06-24 03:46:02'),
(60032, 10130, '', 0, 0, 0, 1, 1, 2001, 1, 10034, 0, '2025-06-26', '2025-07-03', '2025-07-03', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 2, 12.6000, 0, 0.6000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-06-26 14:17:55', '', 1, 1, '2025-06-26 14:17:44', '2025-06-26 02:17:55'),
(60033, 10133, '', 0, 0, 0, 8, 1, 2014, 14, 0, 0, '2025-06-27', '2025-07-04', '2025-07-04', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 1, 15225.0000, 0, 725.0000, ', PO Box : -,Umm Al Quwain,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-06-27 14:31:06', '2025-06-27 02:32:35'),
(60034, 10135, '', 0, 0, 0, 8, 1, 2002, 2, 0, 0, '2025-06-27', '2025-07-04', '2025-07-04', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 6, 682.5000, 0, 32.5000, 'The Kanoo group building,\r\nBur Dubai,\r\nOffice 12, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-06-27 16:16:35', '2025-06-27 04:50:10'),
(60035, 10140, '', 0, 0, 0, 8, 1, 2001, 1, 10036, 0, '2025-06-30', '2025-07-07', '2025-07-07', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 2, 1590.7500, 0, 75.7500, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 8, 8, '2025-06-30 08:55:43', '2025-06-30 08:55:58'),
(60036, 10142, '', 0, 0, 0, 8, 1, 2003, 3, 0, 0, '2025-06-30', '2025-07-07', '2025-07-07', 1, 1, '', '', 0, 'Purchase Terms and Conditions come here\r\n', '', 1, 354.3800, 0, 16.8800, 'Jebel Ali Industrial Area 2, PO Box : -,Dubai,United Arab Emirates', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 2, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '10007', 8, 8, '2025-06-30 09:10:43', '2025-06-30 09:11:07'),
(60037, 10151, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-08-13', '2025-08-20', '2025-08-20', 1, 1, '', '', 0, '', '', 6, 105.0000, 0, 5.0000, '', 'Somewhere in Sharjah', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-08-13 12:33:10', '', 1, 1, '2025-08-13 12:33:06', '2025-08-13 12:33:10'),
(60038, 10159, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-09-29', '2025-10-06', '2025-10-06', 1, 1, '', '', 0, '', '', 6, 105.0000, 0, 5.0000, '', 'Somewhere in Sharjah', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-09-29 11:55:08', '', 1, 1, '2025-09-29 11:55:05', '2025-09-29 11:55:08'),
(60039, 10160, '', 0, 0, 0, 1, 1, 2001, 1, 0, 0, '2025-10-04', '2025-10-11', '2025-10-11', 2, 3.685, '', '', 0, '', '', 6, 2231.2500, 0, 106.2500, '', 'Somewhere in Sharjah', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 3, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 1, '2025-10-04 11:22:01', '', 1, 1, '2025-10-04 11:19:57', '2025-10-04 11:22:01');

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

--
-- Table structure for table `erp_purchasing_order_addition`
--

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

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

--
-- Table structure for table `erp_purchasing_order_deduction`
--

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

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

--
-- Table structure for table `erp_purchasing_order_shipment_details`
--

CREATE TABLE `erp_purchasing_order_shipment_details` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL,
  `source_id` int(11) NOT NULL,
  `destination_id` int(11) NOT NULL,
  `arrived_date` date NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_order_shipment_document`
--

CREATE TABLE `erp_purchasing_order_shipment_document` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL,
  `shipment_id` int(11) NOT NULL,
  `document_name` text NOT NULL,
  `document_actual_file_name` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_order_stock_item`
--

CREATE TABLE `erp_purchasing_order_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL COMMENT 'foreign key reference to order table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` text NOT NULL,
  `stock_item_unit` varchar(255) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `stock_item_tolerance` varchar(50) NOT NULL DEFAULT '0',
  `stock_item_max_qty` decimal(15,3) NOT NULL,
  `stock_item_rate` decimal(15,6) NOT NULL,
  `stock_item_amount` decimal(15,4) NOT NULL,
  `tax_percentage` decimal(15,2) NOT NULL,
  `tax_amount` decimal(15,4) NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `remaining_qty` decimal(15,3) NOT NULL DEFAULT 0.000,
  `received` decimal(15,2) NOT NULL,
  `notes` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order_stock_item`
--

INSERT INTO `erp_purchasing_order_stock_item` (`id`, `purchasing_order_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `stock_item_tolerance`, `stock_item_max_qty`, `stock_item_rate`, `stock_item_amount`, `tax_percentage`, `tax_amount`, `expected_delivery_date`, `remaining_qty`, `received`, `notes`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(3, 60001, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 100.000, '0', 100.000, 25.000000, 2500.0000, 5.00, 125.0000, '2025-05-11', 0.000, 0.00, '', 8, 8, '2025-05-06 09:33:19', '2025-05-06 09:33:19'),
(4, 60001, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', '349', 100.000, '0', 100.000, 25.000000, 2500.0000, 5.00, 125.0000, '2025-05-11', 0.000, 0.00, '', 8, 8, '2025-05-06 09:33:19', '2025-05-06 09:33:19'),
(6, 60002, 162, '2281SF', 'Laminates 2281SF Navy Blue 4x8x0.8mm', '162', 250.000, '0', 250.000, 15.000000, 3750.0000, 5.00, 187.5000, '2025-05-11', 0.000, 0.00, '', 8, 8, '2025-05-06 03:00:40', '2025-05-06 03:00:40'),
(8, 60003, 302, '1SKB-DRP2', 'Drum Package 2- Includes: D1822- D1012- D1616', '302', 100.000, '0', 100.000, 15.000000, 1500.0000, 5.00, 75.0000, '2025-05-11', 0.000, 0.00, '', 8, 8, '2025-05-06 03:06:11', '2025-05-06 03:06:11'),
(10, 60004, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 50.000, '0', 50.000, 10.000000, 500.0000, 5.00, 25.0000, '2025-05-14', 0.000, 0.00, '', 1, 1, '2025-05-09 12:48:07', '2025-05-09 12:48:07'),
(12, 60005, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 50.000, '0', 50.000, 15.000000, 750.0000, 5.00, 37.5000, '2025-05-14', 0.000, 0.00, '', 1, 1, '2025-05-09 12:58:14', '2025-05-09 12:58:14'),
(14, 60006, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 50.000, '0', 50.000, 20.000000, 1000.0000, 5.00, 50.0000, '2025-05-14', 0.000, 0.00, '', 1, 1, '2025-05-09 02:59:29', '2025-05-09 02:59:29'),
(19, 60007, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 1000.000, '0', 1000.000, 77.000000, 77000.0000, 5.00, 3850.0000, '2025-05-22', 0.000, 0.00, '', 8, 8, '2025-05-19 10:01:02', '2025-05-19 10:01:02'),
(20, 60007, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 500.000, '0', 500.000, 139.000000, 69500.0000, 5.00, 3475.0000, '2025-05-22', 0.000, 0.00, '', 8, 8, '2025-05-19 10:01:02', '2025-05-19 10:01:02'),
(32, 60011, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 5.000, '0', 5.000, 11.000000, 55.0000, 5.00, 2.7500, '2025-05-25', 0.000, 0.00, '', 8, 8, '2025-05-20 04:28:07', '2025-05-20 04:28:07'),
(33, 60011, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 7.000, '0', 7.000, 23.000000, 161.0000, 5.00, 8.0500, '2025-05-25', 0.000, 0.00, '', 8, 8, '2025-05-20 04:28:07', '2025-05-20 04:28:07'),
(34, 60011, 33, 'C1343Z', 'Medium Ball Corner suitable for 22mm / 7/8 Extrusion E0815', '33', 12.000, '0', 12.000, 56.000000, 672.0000, 5.00, 33.6000, '2025-05-25', 0.000, 0.00, '', 8, 8, '2025-05-20 04:28:07', '2025-05-20 04:28:07'),
(39, 60012, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 100.000, '0', 100.000, 50.000000, 5000.0000, 5.00, 250.0000, '2025-05-25', 0.000, 0.00, '', 8, 8, '2025-05-20 04:46:59', '2025-05-20 04:46:59'),
(40, 60012, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 50.000, '0', 50.000, 250.000000, 12500.0000, 5.00, 625.0000, '2025-05-25', 0.000, 0.00, '', 8, 8, '2025-05-20 04:46:59', '2025-05-20 04:46:59'),
(45, 60013, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', '229', 5.000, '0', 5.000, 50.000000, 250.0000, 5.00, 12.5000, '2025-05-25', 0.000, 0.00, '', 1, 1, '2025-05-20 05:16:26', '2025-05-20 05:16:26'),
(46, 60013, 647, '3SKB-SLP', 'Shipping Label Plate', '647', 5.000, '0', 5.000, 20.000000, 100.0000, 5.00, 5.0000, '2025-05-25', 0.000, 0.00, '', 1, 1, '2025-05-20 05:16:26', '2025-05-20 05:16:26'),
(49, 60014, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 100.000, '0', 100.000, 3.200000, 320.0000, 5.00, 16.0000, '2025-05-26', 0.000, 0.00, '', 8, 8, '2025-05-21 10:20:45', '2025-05-21 10:20:45'),
(50, 60014, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 100.000, '0', 100.000, 5.380000, 538.0000, 5.00, 26.9000, '2025-05-26', 0.000, 0.00, '', 8, 8, '2025-05-21 10:20:45', '2025-05-21 10:20:45'),
(63, 60017, 668, 'A10001', 'Test Item A10001', '668', 20.000, '0', 20.000, 10.000000, 200.0000, 8.00, 16.0000, '2025-06-06', 0.000, 0.00, '', 8, 8, '2025-06-01 10:00:42', '2025-06-01 10:00:42'),
(64, 60017, 671, 'T300', 'T300', '671', 10.000, '0', 10.000, 20.000000, 200.0000, 8.00, 16.0000, '2025-06-06', 0.000, 0.00, '', 8, 8, '2025-06-01 10:00:42', '2025-06-01 10:00:42'),
(73, 60019, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 100.000, '0', 100.000, 5.000000, 500.0000, 8.00, 40.0000, '2025-06-08', 0.000, 0.00, '', 1, 1, '2025-06-03 04:10:18', '2025-06-03 04:10:18'),
(75, 60020, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 2.000, '0', 2.000, 25.000000, 50.0000, 8.00, 4.0000, '2025-06-09', 0.000, 0.00, '', 1, 1, '2025-06-04 11:15:59', '2025-06-04 11:15:59'),
(79, 60021, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 100.000, '0', 100.000, 23.000000, 2300.0000, 8.00, 184.0000, '2025-06-09', 0.000, 0.00, '', 1, 1, '2025-06-04 01:03:01', '2025-06-04 01:03:01'),
(90, 60024, 668, 'A10001', 'Test Item A10001', '668', 5.000, '0', 5.000, 10.000000, 50.0000, 8.00, 4.0000, '2025-06-10', 0.000, 0.00, '', 1, 1, '2025-06-05 02:21:53', '2025-06-05 02:21:53'),
(91, 60024, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 1.000, '0', 1.000, 20.000000, 20.0000, 8.00, 1.6000, '2025-06-10', 0.000, 0.00, '', 1, 1, '2025-06-05 02:21:53', '2025-06-05 02:21:53'),
(92, 60023, 668, 'A10001', 'Test Item A10001', '668', 10.000, '0', 10.000, 10.000000, 100.0000, 8.00, 8.0000, '2025-06-10', 0.000, 0.00, '', 1, 1, '2025-06-05 02:22:00', '2025-06-05 02:22:00'),
(93, 60023, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 15.000, '0', 15.000, 20.000000, 300.0000, 8.00, 24.0000, '2025-06-10', 0.000, 0.00, '', 1, 1, '2025-06-05 02:22:00', '2025-06-05 02:22:00'),
(95, 60025, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 250.000, '0', 250.000, 5.000000, 1250.0000, 8.00, 100.0000, '2025-06-14', 0.000, 0.00, '', 1, 1, '2025-06-09 09:18:26', '2025-06-09 09:18:26'),
(97, 60026, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 10.000, '0', 10.000, 4.000000, 40.0000, 8.00, 3.2000, '2025-06-14', 0.000, 0.00, '', 1, 1, '2025-06-09 09:47:50', '2025-06-09 09:47:50'),
(99, 60027, 668, 'A10001', 'Test Item A10001', '668', 10.000, '0', 10.000, 10.000000, 100.0000, 8.00, 8.0000, '2025-06-14', 0.000, 0.00, '', 1, 1, '2025-06-09 11:05:29', '2025-06-09 11:05:29'),
(103, 60029, 668, 'A10001', 'Test Item A10001', '668', 20.000, '0', 20.000, 10.000000, 200.0000, 8.00, 16.0000, '2025-06-14', 20.000, 0.00, '', 1, 1, '2025-06-09 01:58:37', '2025-06-09 01:58:37'),
(104, 60028, 668, 'A10001', 'Test Item A10001', '668', 1.000, '0', 1.000, 10.000000, 10.0000, 8.00, 0.8000, '2025-06-14', 0.000, 0.00, '', 1, 1, '2025-06-09 01:59:35', '2025-06-09 01:59:35'),
(108, 60031, 26, 'BPLY-003', '18mm Russian Birch Ply [2400x1200mm]', '26', 11.000, '0', 11.000, 50.000000, 550.0000, 5.00, 27.5000, '2025-06-29', 0.000, 0.00, '', 8, 8, '2025-06-24 03:46:02', '2025-06-24 03:46:02'),
(109, 60031, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 1.000, '0', 1.000, 40.000000, 40.0000, 5.00, 2.0000, '2025-06-29', 0.000, 0.00, '', 8, 8, '2025-06-24 03:46:02', '2025-06-24 03:46:02'),
(110, 60030, 240, 'AD325', 'AD325 Humidity Indicator 30/50%', '240', 10.000, '0', 10.000, 10.000000, 100.0000, 5.00, 5.0000, '2025-06-17', 0.000, 0.00, '', 8, 8, '2025-06-24 03:54:32', '2025-06-24 03:54:32'),
(125, 60032, 668, 'A10001', 'Test Item A10001', '668', 1.000, '0', 1.000, 12.000000, 12.0000, 5.00, 0.6000, '2025-07-01', 0.000, 0.00, '', 1, 1, '2025-06-26 02:17:55', '2025-06-26 02:17:55'),
(128, 60033, 34, 'C1373', '2Leg Brace Ball Corner with 67mm / 2.64 Leg', '34', 500.000, '0', 500.000, 5.000000, 2500.0000, 5.00, 125.0000, '2025-07-02', 0.000, 0.00, '', 8, 8, '2025-06-27 02:32:35', '2025-06-27 02:32:35'),
(129, 60033, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 1000.000, '0', 1000.000, 12.000000, 12000.0000, 5.00, 600.0000, '2025-07-02', 0.000, 0.00, '', 8, 8, '2025-06-27 02:32:35', '2025-06-27 02:32:35'),
(132, 60034, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 50.000, '0', 50.000, 7.000000, 350.0000, 5.00, 17.5000, '2025-07-02', 0.000, 0.00, '', 8, 8, '2025-06-27 04:50:10', '2025-06-27 04:50:10'),
(133, 60034, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 50.000, '0', 50.000, 6.000000, 300.0000, 5.00, 15.0000, '2025-07-02', 0.000, 0.00, '', 8, 8, '2025-06-27 04:50:10', '2025-06-27 04:50:10'),
(134, 60018, 668, 'A10001', 'Test Item A10001', '668', 2.000, '0', 2.000, 110.000000, 220.0000, 5.00, 11.0000, '2025-06-08', 0.000, 0.00, '', 8, 8, '2025-06-27 04:53:41', '2025-06-27 04:53:41'),
(137, 60035, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 100.000, '0', 100.000, 15.000000, 1500.0000, 5.00, 75.0000, '2025-07-05', 0.000, 0.00, '', 8, 8, '2025-06-30 08:55:58', '2025-06-30 08:55:58'),
(138, 60035, 367, '1SKB-UB2020', 'Universal Equipment/Mixer Bag 20 x 20 x 5', '367', 1.000, '0', 1.000, 15.000000, 15.0000, 5.00, 0.7500, '2025-07-05', 0.000, 0.00, '', 8, 8, '2025-06-30 08:55:58', '2025-06-30 08:55:58'),
(140, 60036, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 25.000, '0', 25.000, 13.500000, 337.5000, 5.00, 16.8800, '2025-07-05', 0.000, 0.00, '', 8, 8, '2025-06-30 09:11:07', '2025-06-30 09:11:07'),
(146, 60010, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', '229', 100.000, '0', 100.000, 57.000000, 5700.0000, 5.00, 285.0000, '2025-05-24', 0.000, 0.00, '', 8, 8, '2025-07-02 09:15:36', '2025-07-02 09:15:36'),
(147, 60010, 647, '3SKB-SLP', 'Shipping Label Plate', '647', 1.000, '0', 1.000, 200.000000, 200.0000, 5.00, 10.0000, '2025-05-24', 0.000, 0.00, '', 8, 8, '2025-07-02 09:15:36', '2025-07-02 09:15:36'),
(149, 60022, 668, 'A10001', 'Test Item A10001', '668', 1.000, '0', 1.000, 10.000000, 10.0000, 5.00, 0.5000, '2025-06-09', 0.000, 0.00, '', 8, 8, '2025-07-02 09:41:25', '2025-07-02 09:41:25'),
(155, 60016, 130, 'R1385/2UK', '2U Black 1.5mm Thick Rack Panel', '130', 3.000, '0', 3.000, 10.000000, 30.0000, 5.00, 1.5000, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-07-22 03:07:59', '2025-07-22 03:07:59'),
(157, 60037, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', '3', 10.000, '0', 10.000, 10.000000, 100.0000, 5.00, 5.0000, '2025-08-18', 0.000, 0.00, '', 1, 1, '2025-08-13 12:33:10', '2025-08-13 12:33:10'),
(166, 60008, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', '229', 100.000, '0', 100.000, 57.000000, 5700.0000, 5.00, 285.0000, '2025-05-24', 0.000, 0.00, '', 13, 13, '2025-09-25 01:03:53', '2025-09-25 01:03:53'),
(167, 60008, 647, '3SKB-SLP', 'Shipping Label Plate', '647', 1.000, '0', 1.000, 300.000000, 300.0000, 5.00, 15.0000, '2025-05-24', 0.000, 0.00, '', 13, 13, '2025-09-25 01:03:53', '2025-09-25 01:03:53'),
(169, 60038, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', '3', 10.000, '0', 10.000, 10.000000, 100.0000, 5.00, 5.0000, '2025-10-04', 0.000, 0.00, '', 1, 1, '2025-09-29 11:55:08', '2025-09-29 11:55:08'),
(170, 60009, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', '229', 100.000, '0', 100.000, 57.000000, 5700.0000, 5.00, 285.0000, '2025-05-24', 0.000, 0.00, '', 1, 1, '2025-09-29 03:20:04', '2025-09-29 03:20:04'),
(171, 60009, 647, '3SKB-SLP', 'Shipping Label Plate', '647', 1.000, '0', 1.000, 200.000000, 200.0000, 5.00, 10.0000, '2025-05-24', 0.000, 0.00, '', 1, 1, '2025-09-29 03:20:04', '2025-09-29 03:20:04'),
(172, 60015, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 5.000, '0', 5.000, 1.000000, 5.0000, 5.00, 0.2500, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-10-04 11:14:18', '2025-10-04 11:14:18'),
(173, 60015, 130, 'R1385/2UK', '2U Black 1.5mm Thick Rack Panel', '130', 3.000, '0', 3.000, 1.000000, 3.0000, 5.00, 0.1500, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-10-04 11:14:18', '2025-10-04 11:14:18'),
(174, 60015, 194, 'R2860-SET', 'Rack Tilt Frame', '194', 2.000, '0', 2.000, 1.000000, 2.0000, 5.00, 0.1000, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-10-04 11:14:18', '2025-10-04 11:14:18'),
(175, 60015, 136, 'R1600', 'Folding Table Legs', '136', 4.000, '0', 4.000, 1.000000, 4.0000, 5.00, 0.2000, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-10-04 11:14:18', '2025-10-04 11:14:18'),
(176, 60015, 664, 'D100001', 'Dummy Item', '664', 20.000, '0', 20.000, 1.000000, 20.0000, 5.00, 1.0000, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-10-04 11:14:18', '2025-10-04 11:14:18'),
(177, 60015, 665, 'S1001', 'Service Item', '665', 1.000, '0', 1.000, 1.000000, 1.0000, 5.00, 0.0500, '2025-05-26', 0.000, 0.00, '', 1, 1, '2025-10-04 11:14:18', '2025-10-04 11:14:18'),
(180, 60039, 682, 'AHK01', '\\pens\r\n\\pencile\r\n\r\nsdf\r\nssdf\r\nsdf\r\ns\r\ndf\r\nsf\r\ns\r\ndf\r\nsd\r\n', '682', 125.000, '0', 125.000, 17.000000, 2125.0000, 5.00, 106.2500, '2025-10-09', 0.000, 0.00, '', 1, 1, '2025-10-04 11:22:01', '2025-10-04 11:22:01');

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

--
-- Table structure for table `erp_purchasing_order_stock_item_temp`
--

CREATE TABLE `erp_purchasing_order_stock_item_temp` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL COMMENT 'foreign key reference to order table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` varchar(255) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `stock_item_rate` decimal(15,3) NOT NULL,
  `stock_item_amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_order_temp`
--

CREATE TABLE `erp_purchasing_order_temp` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL COMMENT 'foreign key relation to company table',
  `project` int(11) NOT NULL,
  `connected_file_id` varchar(255) NOT NULL COMMENT '????',
  `contact_id` int(11) NOT NULL COMMENT 'foreign key reference to contact details table',
  `enquiry_id` int(11) NOT NULL,
  `order_date` date NOT NULL COMMENT 'current date',
  `required_date` date NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `currency` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `reference` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `first_party` int(11) NOT NULL,
  `second_party` int(11) NOT NULL,
  `verified_by` int(11) NOT NULL,
  `payment_terms` int(11) NOT NULL,
  `stock_grand_total` float NOT NULL,
  `nonstock_grandtotal` float NOT NULL,
  `shipping_address` text NOT NULL,
  `pricing_conditions` varchar(255) NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `start_text` text NOT NULL,
  `convert_status` enum('Y','N') 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_purchasing_requisition`
--

CREATE TABLE `erp_purchasing_requisition` (
  `id` int(11) NOT NULL,
  `file_id` bigint(20) NOT NULL,
  `crm_user_id` int(11) NOT NULL COMMENT '(employee id)Logined user id,has foreign key relation to user table',
  `file_title` varchar(255) NOT NULL,
  `requisition_date` date NOT NULL,
  `required_date` date NOT NULL,
  `status` enum('P','C','D','E') NOT NULL DEFAULT 'P' COMMENT 'p-processing,c-cancelled,E-Enquiry',
  `remarks` text NOT NULL,
  `convert_status` enum('0','1','2') NOT NULL COMMENT '0=>closed,1=>new items,3=>stocks',
  `requisition_notification` varchar(500) NOT NULL,
  `project_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `requisition_status` enum('-','O','C') NOT NULL DEFAULT '-',
  `reference` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_requisition`
--

INSERT INTO `erp_purchasing_requisition` (`id`, `file_id`, `crm_user_id`, `file_title`, `requisition_date`, `required_date`, `status`, `remarks`, `convert_status`, `requisition_notification`, `project_id`, `isActive`, `requisition_status`, `reference`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(10001, 0, 8, '', '2025-05-06', '2025-05-13', 'C', '', '0', '', 0, 'Y', '-', 'Test', 8, 8, '2025-05-06 02:57:42', '2025-05-06 02:57:42'),
(10002, 10010, 8, '', '2025-05-07', '2025-05-14', 'C', 'Testing approval', '0', '', 0, 'Y', '-', 'Ref13', 8, 8, '2025-05-07 08:45:12', '2025-05-07 11:01:22'),
(10003, 10027, 8, '', '2025-05-16', '2025-05-23', 'P', '', '1', '', 0, 'Y', '-', '000751', 8, 8, '2025-05-16 04:49:12', '2025-05-16 04:51:26'),
(10004, 10029, 8, '', '2025-05-19', '2025-05-26', 'P', '', '1', '', 0, 'Y', '-', '10005', 8, 8, '2025-05-19 12:00:35', '2025-05-19 12:01:42'),
(10005, 10031, 8, '', '2025-05-19', '2025-05-26', 'P', '', '1', '', 0, 'Y', '-', '', 8, 8, '2025-05-19 12:32:18', '2025-05-19 12:32:47'),
(10006, 10032, 8, '', '2025-05-19', '2025-05-26', 'C', '', '0', '', 0, 'Y', '-', '', 8, 8, '2025-05-19 12:34:11', '2025-05-19 12:34:11'),
(10007, 10035, 8, '', '2025-05-19', '2025-05-26', 'P', '', '1', '', 10002, 'Y', '-', '10002', 8, 8, '2025-05-19 04:29:44', '2025-05-19 04:29:44'),
(10008, 10082, 8, '', '2025-06-04', '2025-06-11', 'P', '', '1', '', 0, 'Y', '-', 'ref', 8, 8, '2025-06-04 05:01:18', '2025-06-05 02:03:56'),
(10009, 10094, 8, '', '2025-06-05', '2025-06-12', 'P', 'rem', '1', '', 0, 'Y', '-', 'ref', 8, 8, '2025-06-05 02:04:25', '2025-06-05 02:06:28'),
(10010, 10111, 8, '', '2025-06-09', '2025-06-16', 'P', 'remk', '1', '', 0, 'Y', '-', 'ref', 8, 1, '2025-06-09 01:50:36', '2025-06-26 09:50:52'),
(10011, 10125, 8, '', '2025-06-24', '2025-07-01', 'P', '', '1', '', 0, 'Y', '-', 'Ref-001', 8, 8, '2025-06-24 15:14:59', '2025-06-24 03:14:59'),
(10012, 10129, 1, '', '2025-06-26', '2025-07-03', 'P', '', '1', '', 0, 'Y', '-', 'Re', 1, 1, '2025-06-26 14:16:29', '2025-06-26 02:16:33'),
(10013, 10139, 8, '', '2025-06-30', '2025-07-07', 'P', '', '1', '', 0, 'Y', '-', 'T1', 8, 8, '2025-06-30 08:53:58', '2025-06-30 08:54:04');

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

--
-- Table structure for table `erp_purchasing_requisition_non_stock_item`
--

CREATE TABLE `erp_purchasing_requisition_non_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_requisition_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `non_stock_item_name` varchar(255) NOT NULL,
  `non_stock_item_description` varchar(255) NOT NULL,
  `non_stock_item_brand` varchar(255) NOT NULL,
  `non_stock_item_unit` varchar(255) NOT NULL,
  `non_stock_item_quantity` 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=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_requisition_non_stock_item`
--

INSERT INTO `erp_purchasing_requisition_non_stock_item` (`id`, `purchasing_requisition_id`, `non_stock_item_name`, `non_stock_item_description`, `non_stock_item_brand`, `non_stock_item_unit`, `non_stock_item_quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 10001, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(18, 10002, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(20, 10003, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(22, 10004, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(24, 10005, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(25, 10006, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(26, 10007, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, 10008, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(33, 10009, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(36, 10011, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(37, 10010, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(39, 10012, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(41, 10013, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_requisition_stock_item`
--

CREATE TABLE `erp_purchasing_requisition_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_requisition_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` int(11) NOT NULL,
  `stock_item_quantity` 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=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_requisition_stock_item`
--

INSERT INTO `erp_purchasing_requisition_stock_item` (`id`, `purchasing_requisition_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 10001, 162, '2281SF', 'Laminates 2281SF Navy Blue 4x8x0.8mm', 162, 250.000, 8, 8, '2025-05-06 02:57:42', '2025-05-06 02:57:42'),
(19, 10002, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', 3, 1.000, 8, 8, '2025-05-07 11:01:22', '2025-05-07 11:01:22'),
(20, 10002, 3, '1301ASF', 'GP Laminate 1301ASF (101) 4x8x0.8mm White', 3, 1.000, 8, 8, '2025-05-07 11:01:22', '2025-05-07 11:01:22'),
(23, 10003, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', 246, 1000.000, 8, 8, '2025-05-16 04:51:26', '2025-05-16 04:51:26'),
(24, 10003, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 500.000, 8, 8, '2025-05-16 04:51:26', '2025-05-16 04:51:26'),
(26, 10004, 229, '3623SUD', 'Laminates Popping Ruby 4x8x0.8mm', 229, 100.000, 8, 8, '2025-05-19 12:01:42', '2025-05-19 12:01:42'),
(28, 10005, 107, 'PK-886MF', 'Edging Extrusion - Mill Finish', 107, 1800.000, 8, 8, '2025-05-19 12:32:47', '2025-05-19 12:32:47'),
(29, 10006, 175, 'SFM-A-Y-40', 'Rubber Shockmount- Yellow', 175, 100.000, 8, 8, '2025-05-19 12:34:11', '2025-05-19 12:34:11'),
(30, 10007, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 25.000, 8, 8, '2025-05-19 04:29:44', '2025-05-19 04:29:44'),
(34, 10008, 668, 'A10001', 'Test Item A10001', 668, 20.000, 8, 8, '2025-06-05 02:03:56', '2025-06-05 02:03:56'),
(39, 10009, 668, 'A10001', 'Test Item A10001', 668, 10.000, 8, 8, '2025-06-05 02:06:28', '2025-06-05 02:06:28'),
(40, 10009, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 2, 15.000, 8, 8, '2025-06-05 02:06:28', '2025-06-05 02:06:28'),
(43, 10011, 26, 'BPLY-003', '18mm Russian Birch Ply [2400x1200mm]', 26, 1.000, 8, 8, '2025-06-24 03:14:59', '2025-06-24 03:14:59'),
(44, 10010, 668, 'A10001', 'Test Item A10001', 668, 20.000, 1, 1, '2025-06-26 09:50:52', '2025-06-26 09:50:52'),
(46, 10012, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 100.000, 1, 1, '2025-06-26 02:16:33', '2025-06-26 02:16:33'),
(49, 10013, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 245, 100.000, 8, 8, '2025-06-30 08:54:04', '2025-06-30 08:54:04'),
(50, 10013, 367, '1SKB-UB2020', 'Universal Equipment/Mixer Bag 20 x 20 x 5', 367, 1.000, 8, 8, '2025-06-30 08:54:04', '2025-06-30 08:54:04');

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

--
-- Table structure for table `erp_quotation_schedules`
--

CREATE TABLE `erp_quotation_schedules` (
  `id` int(11) NOT NULL,
  `quotation_id` bigint(20) NOT NULL,
  `quotation_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `scheduled_date` date NOT NULL,
  `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=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_quotes`
--

CREATE TABLE `erp_quotes` (
  `id` bigint(20) NOT NULL,
  `file_id` int(11) NOT NULL,
  `file_title` varchar(255) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `qtn_start_date` date NOT NULL,
  `qtn_validity` date NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `payment_terms_id` int(11) NOT NULL,
  `shipping_by` int(11) NOT NULL,
  `invoice_type_id` int(11) NOT NULL COMMENT 'refer from crm_mas_invoice_type id',
  `status` int(11) NOT NULL,
  `enq_ref` varchar(255) NOT NULL,
  `revision` varchar(255) NOT NULL,
  `billing_address` text NOT NULL,
  `qtn_close_reason` int(11) NOT NULL,
  `remarks` text NOT NULL,
  `notes` text NOT NULL,
  `terms_id` int(11) DEFAULT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `grand_total` decimal(15,2) NOT NULL,
  `total_tax_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `qtn_type` enum('sales','service','','') NOT NULL,
  `total_discount_percentage` decimal(15,2) NOT NULL DEFAULT 0.00,
  `total_discount_amount` decimal(15,2) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `job_order_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `inco_term_id` int(11) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_date_time` datetime DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_quotes`
--

INSERT INTO `erp_quotes` (`id`, `file_id`, `file_title`, `customer_id`, `contact_id`, `lead_owner_id`, `qtn_start_date`, `qtn_validity`, `sales_group_id`, `currency_id`, `exchange_rate`, `payment_terms_id`, `shipping_by`, `invoice_type_id`, `status`, `enq_ref`, `revision`, `billing_address`, `qtn_close_reason`, `remarks`, `notes`, `terms_id`, `terms_and_conditions`, `grand_total`, `total_tax_amount`, `isActive`, `qtn_type`, `total_discount_percentage`, `total_discount_amount`, `ticket_id`, `job_order_id`, `project_id`, `inco_term_id`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(10001, 10001, '', 1001, 1, 8, '2025-05-06', '2025-06-06', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Tawazun Industrial Park,\r\nAl Ajban\r\nP.O Box 109667\r\nAbu Dhabi , United Arab Emirates', 0, '', '', NULL, 'Sales Terms and Conditions come here', 430.50, 20.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-05-06 08:04:38', '2025-05-06 09:17:53'),
(10002, 10003, '', 1069, 69, 8, '2025-05-06', '2025-06-05', 1, 1, 1.00, 1, 6, 1, 1, '', '', '-, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, 'Sales Terms and Conditions come here', 645.75, 30.75, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, NULL, '2025-05-06 09:18:10', NULL),
(10003, 10005, '', 1028, 28, 8, '2025-05-06', '2025-06-05', 1, 1, 1.00, 1, 6, 1, 1, '', '', 'Dubai, P.O Box : 9292\r\n- - United Arab Emirates', 0, '', '', NULL, '', 273.00, 13.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-05-06 09:47:52', '2025-05-06 11:22:13'),
(10004, 10006, '', 1030, 30, 8, '2025-05-06', '2025-06-05', 1, 1, 1.00, 2, 6, 1, 1, '', '', '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', 0, '', '', NULL, '', 3675.00, 175.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-05-06 14:48:59', '2025-05-06 14:49:52'),
(10005, 10007, '', 1020, 20, 8, '2025-05-06', '2025-06-06', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Dubai , P.O Box : 30323 \r\n- - United Arab Emirates', 0, '', '', NULL, '', 885.15, 42.15, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-05-06 14:54:27', '2025-05-09 13:04:04'),
(10006, 10017, '', 1007, 7, 8, '2025-05-09', '2025-06-08', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 15.75, 0.75, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-05-09 12:55:55', '2025-05-09 12:56:03'),
(10007, 10019, '', 1007, 7, 8, '2025-05-09', '2025-06-08', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 21.00, 1.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-05-09 12:59:12', '2025-05-09 12:59:21'),
(10008, 10020, '', 1070, 70, 8, '2025-05-09', '2025-06-08', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 42.00, 2.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-05-09 13:05:24', '2025-05-09 13:05:29'),
(10009, 10021, '', 1004, 4, 8, '2025-05-09', '2025-06-08', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 42.00, 2.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-05-09 14:18:03', '2025-05-09 14:18:09'),
(10010, 10022, '', 1007, 7, 8, '2025-05-09', '2025-06-08', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 42.00, 2.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-05-09 14:20:42', '2025-05-09 14:20:57'),
(10011, 10024, '', 1004, 4, 8, '2025-05-09', '2025-06-08', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 315.00, 15.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-05-09 15:05:09', '2025-05-09 15:05:14'),
(10012, 10026, '', 1003, 3, 8, '2025-05-12', '2025-06-11', 1, 1, 1.00, 2, 6, 1, 1, '', '', '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', 0, '', '', NULL, '', 1580.25, 75.25, 'Y', 'sales', 5.00, 75.00, 0, 0, 0, 0, 8, 8, '2025-05-12 15:09:50', '2025-05-22 11:05:12'),
(10013, 10037, '', 1070, 70, 8, '2025-05-20', '2025-06-19', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 5.25, 0.25, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-05-20 16:39:06', '2025-05-20 16:39:11'),
(10014, 10040, '', 1021, 21, 8, '2025-05-21', '2025-06-20', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Abu Dhabi, P.O Box : 9549\r\n- - United Arab Emirates', 0, '', '', NULL, '', 598.50, 28.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-05-21 10:19:25', '2025-05-21 10:19:29'),
(10015, 10044, '', 1007, 7, 8, '2025-05-22', '2025-06-21', 1, 1, 1.00, 2, 6, 1, 1, '', '', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 304.50, 14.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-05-22 11:56:20', '2025-05-22 11:56:25'),
(10016, 10046, '', 1019, 19, 8, '2025-05-30', '2025-06-29', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-05-30 08:24:36', '2025-06-01 14:20:45'),
(10018, 10050, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, 'ref', 'revs', 'Mauritania', 0, 'remk', 'ntes', 2, 'Purchase Terms and Conditions come here\r\n', 32.40, 2.40, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 12:04:24', '2025-06-01 16:54:15'),
(10019, 10053, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 54.00, 4.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 13:43:33', '2025-06-01 16:18:56'),
(10020, 10054, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 54.00, 4.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 13:50:16', '2025-06-01 16:15:42'),
(10021, 10055, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 54.00, 4.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 14:24:23', '2025-06-01 16:05:30'),
(10022, 10056, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 14:27:07', '2025-06-01 14:37:35'),
(10023, 10057, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 14:29:02', '2025-06-01 15:31:44'),
(10024, 10058, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 14:40:55', '2025-06-01 15:07:06'),
(10025, 10059, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 14:41:11', '2025-06-01 14:41:28'),
(10026, 10060, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 32.40, 2.40, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 16:21:11', '2025-06-01 16:21:17'),
(10027, 10052, '', 1089, 94, 8, '2025-06-01', '2025-07-01', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 64.80, 4.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-01 17:31:24', '2025-06-01 17:31:35'),
(10028, 10062, '', 1001, 1, 8, '2025-06-02', '2025-07-02', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 2700.00, 200.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-02 14:31:36', '2025-06-02 15:02:18'),
(10029, 10063, '', 1001, 1, 8, '2025-06-02', '2025-07-02', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 4762.80, 352.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-02 14:32:00', '2025-06-02 15:02:14'),
(10030, 10064, '', 1001, 1, 8, '2025-06-02', '2025-07-02', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 4762.80, 352.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-02 15:10:31', '2025-06-02 15:10:35'),
(10031, 10065, '', 1019, 19, 8, '2025-06-02', '2025-07-02', 5, 3, 4.15, 2, 4, 1, 1, '', '', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', 2, 'Purchase Terms and Conditions come here\r\n', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-02 15:15:36', '2025-06-02 15:15:39'),
(10032, 10066, '', 1001, 1, 8, '2025-06-03', '2025-07-03', 1, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', NULL, '', 2430.00, 180.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-06-03 08:27:03', '2025-06-03 08:55:16'),
(10033, 10067, '', 1002, 2, 8, '2025-06-01', '2025-07-03', 1, 1, 1.00, 2, 4, 1, 1, 'ref1001', '', 'Abu Dhabi, P.O Box : 2723\r\n- - United Arab Emirates', 0, '', '', NULL, '', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-06-03 09:04:34', '2025-06-03 14:26:44'),
(10034, 10068, '', 1001, 1, 8, '2025-06-02', '2025-07-03', 1, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', NULL, '', 118.80, 8.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-06-03 09:24:56', '2025-06-03 14:19:56'),
(10035, 10069, '', 1001, 1, 8, '2025-06-03', '2025-07-03', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', NULL, '', 129.60, 9.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-03 09:25:23', '2025-06-03 09:25:33'),
(10036, 10070, '', 1001, 1, 8, '2025-06-03', '2025-07-03', 1, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', NULL, '', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-06-03 09:27:55', '2025-06-03 14:57:38'),
(10042, 10076, '', 1001, 1, 8, '2025-06-03', '2025-07-03', 5, 1, 1.00, 2, 4, 1, 1, 'NEW', 'NEW', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', 'NEW', 3, 'NEW', 248.40, 18.40, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-03 15:27:18', '2025-06-03 15:27:39'),
(10041, 10075, '', 1001, 1, 8, '2025-06-03', '2025-07-03', 1, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', NULL, '', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-03 14:21:47', '2025-06-03 14:41:46'),
(10043, 10051, '', 1089, 94, 8, '2025-06-04', '2025-07-04', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 11, 'Sales Terms and Conditions come here', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-04 16:33:40', '2025-06-04 16:36:02'),
(10044, 10081, '', 1089, 94, 8, '2025-06-04', '2025-07-04', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 11, 'Sales Terms and Conditions come here', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, NULL, '2025-06-04 16:35:28', NULL),
(10045, 10084, '', 1002, 2, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 2723\r\n- - United Arab Emirates', 0, '', '', NULL, '', 58.32, 4.32, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-05 11:06:11', '2025-06-05 11:07:42'),
(10046, 10085, '', 1017, 17, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 840\r\n- - United Arab Emirates', 0, '', '', NULL, '', 241.92, 17.92, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-05 11:06:30', '2025-06-05 11:07:37'),
(10047, 10086, '', 1030, 30, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 41708\r\n- - United Arab Emirates', 0, '', '', NULL, '', 631.80, 46.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-05 11:06:51', '2025-06-05 11:07:34'),
(10048, 10087, '', 1070, 70, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Dubai, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 3159.00, 234.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-05 11:07:07', '2025-06-05 11:07:30'),
(10049, 10088, '', 1078, 78, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', NULL, '', 7.56, 0.56, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-05 11:07:21', '2025-06-05 11:07:26'),
(10050, 10089, '', 1094, 101, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, 'ref', 'revsn', 'address\r\nP.O Box 689666\r\ndubi , Mauritania', 0, 'remks', 'notes', 1, 'Sales Terms and Conditions come here', 10.80, 0.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-05 12:21:41', '2025-06-05 12:28:18'),
(10051, 10090, '', 1094, 101, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'dubi, P.O Box : 689666\r\nuae - Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 108.00, 8.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-05 12:46:55', '2025-06-05 12:47:00'),
(10052, 10091, '', 1094, 101, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'dubi, P.O Box : 689666\r\nuae - Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 108.00, 8.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-05 12:49:11', '2025-06-05 12:49:16'),
(10053, 10092, '', 1094, 101, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'dubi, P.O Box : 689666\r\nuae - Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 172.80, 12.80, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-05 12:54:06', '2025-06-05 12:54:11'),
(10054, 10093, '', 1001, 1, 8, '2025-06-05', '2025-07-05', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', NULL, '', 1134.00, 84.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-05 13:35:34', '2025-06-05 13:35:41'),
(10055, 10099, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-09 10:26:01', '2025-06-09 10:26:53'),
(10056, 10100, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-09 10:40:10', '2025-06-09 10:40:14'),
(10057, 10102, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-09 13:04:49', '2025-06-09 13:11:45'),
(10058, 10103, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 2, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 546.00, 26.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-09 13:11:57', '2025-06-27 15:40:14'),
(10059, 10104, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 4.15, 2, 4, 1, 1, '', '', '\r\nMauritania', 0, '', '', NULL, '', 0.00, 0.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, NULL, '2025-06-09 13:13:19', NULL),
(10060, 10105, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, NULL, '2025-06-09 13:24:03', NULL),
(10061, 10106, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 3, 4.15, 2, 2, 1, 1, '', '', 'Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 10.50, 0.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-06-09 13:27:20', '2025-06-30 11:31:48'),
(10062, 10107, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 2, 1, 1, 'by -', '1', 'Mauritania', 0, 'Test', 'Test', 1, 'Sales Terms and Conditions come here', 21.00, 1.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 1, 8, '2025-06-09 13:32:14', '2025-06-30 11:00:30'),
(10063, 10108, '', 1089, 94, 8, '2025-06-09', '2025-07-09', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 21.60, 1.60, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-09 13:32:28', '2025-06-09 13:33:18'),
(10064, 10116, '', 1001, 1, 8, '2025-06-11', '2025-08-30', 5, 1, 1.00, 2, 2, 1, 1, '', '', 'Tawazun Industrial Park,\r\nAl Ajban\r\nP.O Box 109667\r\nAbu Dhabi , United Arab Emirates', 0, '', '', 1, 'A Terms and Conditions agreement for a business outlines the rules and guidelines for using a website, app, or service, defining the relationship between the business and its users. It\'s a legally binding contract that protects both the business and its customers by clarifying responsibilities and expectations. \r\nHere\'s a breakdown of common clauses and their purposes:\r\n1. Introduction: \r\nClearly states that the document is a Terms and Conditions agreement and identifies the business.\r\nExplains that by using the service, users agree to abide by the terms.\r\nThis establishes \"browsewrap\" consent, meaning continued use implies agreement.\r\n2. Definitions: \r\nClarifies the meaning of key terms used throughout the agreement.\r\nFor example, defining what constitutes \"Service,\" \"User,\" or \"Content\".\r\n3. Identification of the Business: \r\nSpecifies the legal name of the business and its contact information.\r\n4. Description of the Service: \r\nProvides a clear explanation of the services or products offered.\r\nThis includes what users can expect and what the business will provide.', 2887.50, 137.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 10, 8, 1, '2025-06-11 07:40:19', '2025-07-23 18:06:54'),
(10065, 10120, '', 1002, 2, 8, '2025-06-11', '2025-07-11', 5, 1, 1.00, 2, 4, 1, 1, '', '', 'Abu Dhabi, P.O Box : 2723\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 23077.44, 1709.44, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-06-11 13:14:31', '2025-06-13 12:29:51'),
(10066, 10122, '', 1096, 103, 4, '2025-06-24', '2025-07-24', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'P.O Box \r\n , Mauritania', 0, '', '', 1, 'Sales Terms and Conditions come here', 31.50, 1.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-24 11:22:59', '2025-06-24 11:23:13'),
(10067, 10123, '', 1019, 19, 4, '2025-06-24', '2025-07-24', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'The Meydan Hotel Grandstand,\r\n6th Floor Meydan Road,\r\nNad Al Sheba\r\nP.O Box -\r\nDubai , United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 31.50, 1.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-24 12:01:14', '2025-06-24 12:01:45'),
(10068, 10124, '', 1096, 103, 4, '2025-06-24', '2025-07-24', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 69.30, 3.30, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 1, '2025-06-24 13:26:41', '2025-06-27 16:37:11'),
(10069, 10127, '', 1086, 86, 4, '2025-06-26', '2025-07-26', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'PBU-A01,\r\nDubai Production City\r\nP.O Box 485004\r\nDubai , United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1102.50, 52.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 1, 1, '2025-06-26 09:53:18', '2025-06-26 09:53:37'),
(10070, 10134, '', 1001, 1, 4, '2025-06-27', '2025-07-27', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1181.25, 56.25, 'Y', 'sales', 10.00, 125.00, 0, 0, 0, 0, 8, 8, '2025-06-27 14:48:07', '2025-06-27 14:51:21'),
(10071, 10136, '', 1089, 94, 4, '2025-06-27', '2025-07-27', 1, 3, 4.15, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 157.50, 7.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-27 16:16:45', '2025-06-27 16:17:52'),
(10072, 10138, '', 1007, 7, 4, '2025-06-30', '2025-07-30', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Sharjah, P.O Box : -\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 9066.75, 431.75, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 0, 8, 8, '2025-06-30 08:50:08', '2025-06-30 08:50:13'),
(10073, 10148, '', 1001, 1, 4, '2025-07-01', '2025-07-31', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1228.50, 58.50, 'Y', 'sales', 10.00, 130.00, 0, 0, 0, 1, 8, 8, '2025-07-01 11:37:16', '2025-07-01 11:38:44'),
(10074, 10149, '', 1001, 1, 4, '2025-07-01', '2025-07-31', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1228.50, 58.50, 'Y', 'sales', 10.00, 130.00, 0, 0, 0, 1, 8, 8, '2025-07-01 13:41:03', '2025-07-01 13:41:11'),
(10075, 10150, '', 1001, 1, 4, '2025-07-01', '2025-07-31', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Abu Dhabi, P.O Box : 109667\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1228.50, 58.50, 'Y', 'sales', 10.00, 130.00, 0, 0, 0, 1, 8, 8, '2025-07-01 13:44:52', '2025-07-01 13:44:58'),
(10076, 10152, '', 1099, 106, 4, '2025-08-28', '2025-09-27', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'P.O Box \r\n , United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 105.00, 5.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-08-28 08:58:29', '2025-09-24 10:57:12'),
(10077, 10154, '', 1100, 107, 13, '2025-09-22', '2025-10-22', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 1, 13, '2025-09-22 16:08:46', '2025-09-22 17:01:13'),
(10078, 10155, '', 1099, 106, 13, '2025-09-24', '2025-10-24', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 1, 13, '2025-09-24 10:57:59', '2025-09-24 11:09:34'),
(10079, 10157, '', 1099, 106, 13, '2025-09-24', '2025-10-24', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1051050.00, 50050.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 13, 1, '2025-09-24 11:21:39', '2025-10-16 07:48:11'),
(10080, 10158, '', 1099, 106, 13, '2025-09-24', '2025-10-24', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, 13, 13, '2025-09-24 11:29:34', '2025-09-24 11:29:44'),
(10081, 10162, '', 1099, 106, 4, '2025-10-06', '2025-11-05', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'P.O Box \r\n , United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 0.00, 0.00, 'Y', 'service', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-10-06 16:45:14', '2025-10-06 16:48:16'),
(10082, 10163, '', 1099, 106, 4, '2025-10-07', '2025-11-06', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 'Y', 'service', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-10-07 14:14:33', '2025-10-07 14:16:44'),
(10083, 10164, '', 1099, 106, 4, '2025-10-07', '2025-11-06', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1050.00, 50.00, 'Y', 'service', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-10-07 14:49:54', '2025-10-07 16:01:24'),
(10084, 10173, '', 1028, 28, 4, '2025-10-15', '2025-11-14', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Dubai, P.O Box : 9292\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 10.50, 0.50, 'Y', 'service', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-10-15 08:41:13', '2025-10-15 10:47:21'),
(10085, 10174, '', 1031, 31, 4, '2025-10-15', '2025-11-14', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Dubai, P.O Box : 686\r\n- - United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 2100.00, 100.00, 'Y', 'service', 0.00, 0.00, 0, 0, 0, 1, 1, 1, '2025-10-15 11:51:54', '2025-10-15 11:58:51');

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

--
