Add files via upload

This commit is contained in:
gopi17701 2018-09-23 12:21:24 -04:00 committed by GitHub
parent a502eca930
commit f1cdea1603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,15 +99,10 @@ CREATE TABLE IF NOT EXISTS `customer` (
PRIMARY KEY (`customer_id`) PRIMARY KEY (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.customer: ~5 rows (approximately) -- Dumping data for table astute.customer: ~1 rows (approximately)
/*!40000 ALTER TABLE `customer` DISABLE KEYS */; /*!40000 ALTER TABLE `customer` DISABLE KEYS */;
INSERT INTO `customer` (`customer_id`, `customer_name`, `bill_to_dept`, `add1`, `add2`, `city`, `state`, `zip`, `zip_last_4`, `email`, `phone`, `fax`) VALUES INSERT INTO `customer` (`customer_id`, `customer_name`, `bill_to_dept`, `add1`, `add2`, `city`, `state`, `zip`, `zip_last_4`, `email`, `phone`, `fax`) VALUES
('1', 'test4565', 'test123', 'test123', 'null', 'test123', 'md', 20874, 0, 'null', '123-123-1233', '123-123-1233'), ('VDOT', 'Virginia Depart of Transportation', 'Billing Department', '13134 Saturn Drive', 'Unit 100', 'McLean', 'VA', 22043, 0, 'Billing@vdot.gov', '(703) 122-1234', '(703) 122-1212');
('2', 'test123', 'test123', 'test123', NULL, 'test123', 'md', 20874, 0, NULL, '0', '0'),
('3', 'Hampton Road Transit', 'Accounts Payable', '3400 Victoria Blvd', '', 'Hampton', 'VA', 23661, 0, 'wcollins@hrtransit.org', '7572226000', '7572226000'),
('Gopi', 'Gopi', 'Gopi', '123 Gopi st', '', 'GGG', 'GA', 12345, 0, 'Gopi@Gopi.com', '(123) 123-1233', ''),
('GopiTest', 'GopiTest', 'GopiTest', 'GopiTest', '', 'Germantown', 'MD', 20874, 0, 'abc@abc.com', '(123) 123-1233', '(123) 123-1233'),
('test500', 'test500', 'test500', 'test500', 'test500', 'test500', 'md', 20874, 1234, 'Test@Test.com', '1231231233', '131231233');
/*!40000 ALTER TABLE `customer` ENABLE KEYS */; /*!40000 ALTER TABLE `customer` ENABLE KEYS */;
-- Dumping structure for function astute.duplicate_invoice -- Dumping structure for function astute.duplicate_invoice
@ -263,20 +258,8 @@ CREATE TABLE IF NOT EXISTS `invoice` (
CONSTRAINT `fk_InvMaster_POnum` FOREIGN KEY (`PO_num`) REFERENCES `po` (`PO_num`) CONSTRAINT `fk_InvMaster_POnum` FOREIGN KEY (`PO_num`) REFERENCES `po` (`PO_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.invoice: ~11 rows (approximately) -- Dumping data for table astute.invoice: ~0 rows (approximately)
/*!40000 ALTER TABLE `invoice` DISABLE KEYS */; /*!40000 ALTER TABLE `invoice` DISABLE KEYS */;
INSERT INTO `invoice` (`inv_no`, `inv_date`, `PO_num`, `bill_amt`, `special_notes`, `certification`, `inv_status`, `pmt_status`) VALUES
('1-01_0915_1', '2017-12-28', 'EP2649247', 16854, '1. Completion of Phase 1 - Preliminaries\r\n2. Invoice not submitted to NVCC. For submitted invoice, see Excel copy\r\n', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned.', 2, 1),
('Hamp-01_1808_01', '2018-08-23', 'HRT-16-72046', 8000, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 2, 1),
('Hamp-01_1808_02', '2018-08-23', 'HRT-16-72046', 1500, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('Hamp-01_1808_03', '2018-08-23', 'HRT-16-72046', 1500, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('Hamp-01_1808_04', '2018-08-23', 'HRT-16-72046', 500, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('Hamp-01_1808_05', '2018-08-23', 'HRT-16-72046', 2000, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('Hamp-01_1808_06', '2018-08-23', 'HRT-16-72046', 2000, 'TEST', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('Hamp-01_1808_07', '2018-08-23', 'HRT-16-72046', 1000, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('Hamp-01_1808_08', '2018-08-23', 'HRT-16-72046', 1000, 'Test', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 1),
('test101', '2017-12-28', 'EP2649247', 16854, '1. Completion of Phase 1 - Preliminaries\r\n2. Invoice not submitted to NVCC. For submitted invoice, see Excel copy\r\n', 'Certification: Certified that the above items and rates are in accordnace with the contractual aggrement as verified by the undersigned', 1, 1),
('test500', '2017-12-28', 'EP2649247', 16854, '1. Completion of Phase 1 - Preliminaries\r\n2. Invoice not submitted to NVCC. For submitted invoice, see Excel copy\r\n', 'Certification: Certified that the above items and rates are in accordnace with the contractual aggrement as verified by the undersigned', 1, 1);
/*!40000 ALTER TABLE `invoice` ENABLE KEYS */; /*!40000 ALTER TABLE `invoice` ENABLE KEYS */;
-- Dumping structure for table astute.invoice_detail -- Dumping structure for table astute.invoice_detail
@ -295,25 +278,8 @@ CREATE TABLE IF NOT EXISTS `invoice_detail` (
CONSTRAINT `fk_InvDetail_InvNum` FOREIGN KEY (`inv_num`) REFERENCES `invoice` (`inv_no`) ON DELETE CASCADE ON UPDATE CASCADE CONSTRAINT `fk_InvDetail_InvNum` FOREIGN KEY (`inv_num`) REFERENCES `invoice` (`inv_no`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.invoice_detail: ~16 rows (approximately) -- Dumping data for table astute.invoice_detail: ~0 rows (approximately)
/*!40000 ALTER TABLE `invoice_detail` DISABLE KEYS */; /*!40000 ALTER TABLE `invoice_detail` DISABLE KEYS */;
INSERT INTO `invoice_detail` (`inv_num`, `line_item_num`, `PO_line_item_num`, `service_type_id`, `description`, `qty`, `fee`, `fee_type_id`) VALUES
('1-01_0915_1', 1, 1, NULL, 'test', NULL, 14953, 1),
('1-01_0915_1', 2, 3, NULL, 'Additional Services: Third Party Utility Verification', NULL, 1500, 1),
('1-01_0915_1', 3, 3, NULL, 'Additional Services: Field Investigatoin Travel', NULL, 321, 1),
('1-01_0915_1', 4, 4, NULL, 'Reimbursable Expense: Printing and parking', NULL, 80, 1),
('1-01_0915_1', 10, 1, 0, 'Design Phase Service _Prelimanary', 0, 14953, 1),
('1-01_0915_1', 11, 1, 0, 'Design Phase Service _Prelimanary', 0, 14953, 1),
('Hamp-01_1808_01', 1, 1, 0, 'test', 100, 14953, 1),
('Hamp-01_1808_01', 2, 2, 2, 'Design Phase', 30, 100, 1),
('Hamp-01_1808_01', 3, 3, 4, 'Cost Estimation', 40, 100, 1),
('Hamp-01_1808_02', 1, 1, 1, 'Study existing designs', 30, 50, 1),
('Hamp-01_1808_03', 1, 1, 1, 'Study existing designs', 30, 50, 1),
('Hamp-01_1808_04', 1, 1, 1, 'Study existing designs', 10, 50, 1),
('Hamp-01_1808_05', 1, 2, 2, 'Design Phase', 20, 100, 1),
('Hamp-01_1808_06', 1, 3, 4, 'Cost Estimation', 20, 100, 1),
('Hamp-01_1808_07', 1, 3, 4, 'Cost Estimation', 10, 100, 1),
('Hamp-01_1808_08', 1, 3, 4, 'Cost Estimation', 10, 100, 1);
/*!40000 ALTER TABLE `invoice_detail` ENABLE KEYS */; /*!40000 ALTER TABLE `invoice_detail` ENABLE KEYS */;
-- Dumping structure for table astute.invoice_notes -- Dumping structure for table astute.invoice_notes
@ -410,19 +376,10 @@ CREATE TABLE IF NOT EXISTS `po` (
CONSTRAINT `po_customer_id_fk` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`) CONSTRAINT `po_customer_id_fk` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.po: ~10 rows (approximately) -- Dumping data for table astute.po: ~1 rows (approximately)
/*!40000 ALTER TABLE `po` DISABLE KEYS */; /*!40000 ALTER TABLE `po` DISABLE KEYS */;
INSERT INTO `po` (`PO_num`, `contract_num`, `PO_date`, `contract_amt`, `customer_id`, `astute_project_num`, `po_id`, `title`, `inv_seq`) VALUES INSERT INTO `po` (`PO_num`, `contract_num`, `PO_date`, `contract_amt`, `customer_id`, `astute_project_num`, `po_id`, `title`, `inv_seq`) VALUES
('ABC1234', 'ABC1234', '2018-08-23', 50000.00, '3', 'ABC1234', 2, 'new from HRT', 0), ('VDOT-54321', 'VDOT-54321', '2018-09-22', 10000.00, 'VDOT', 'VDOTProj', 1, 'Supervisor', NULL);
('EP2649247', 'ABC1234', '2018-08-27', 50000000.00, '1', 'ABC1234', 1, 'new from HRT 1234', 1),
('GopiTestPO', 'GopiTestPO', '2018-09-15', 50000.00, 'GopiTest', 'GopiTestPO', 1, 'GopiTestPO', NULL),
('HRT-16-72046', '16-72046', '2018-08-07', 23360.00, '3', 'HRT-01-01', 1, 'SO Dummy Title for 16-72046 ', 1),
('Real PO 123', 'Real PO 123', NULL, 100000.00, '1', 'Real PO 123', 6, 'Real PO 123 PO Tasks', 0),
('test12', 'test', '2018-07-11', 60000.00, '1', 'adf', 2, 'SO Dummy Title for test', 0),
('test3', 'test', '2018-07-12', 60000.00, '1', 'adf', 3, 'SO Dummy Title for test', 0),
('test5', 'test', '2018-07-13', 60000.00, '1', 'adf', 4, 'SO Dummy Title for test', 0),
('test500', 'test', '2018-08-13', 60000.00, 'Test500', 'test', 1, 'SO Dummy Title for test', 0),
('test55', 'test', '2018-01-12', 60000.00, '1', 'test', 5, NULL, 0);
/*!40000 ALTER TABLE `po` ENABLE KEYS */; /*!40000 ALTER TABLE `po` ENABLE KEYS */;
-- Dumping structure for table astute.po_detail -- Dumping structure for table astute.po_detail
@ -441,24 +398,14 @@ CREATE TABLE IF NOT EXISTS `po_detail` (
CONSTRAINT `fk_PODetail_ServType` FOREIGN KEY (`service_type_id`) REFERENCES `service_type` (`service_type_id`) CONSTRAINT `fk_PODetail_ServType` FOREIGN KEY (`service_type_id`) REFERENCES `service_type` (`service_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.po_detail: ~15 rows (approximately) -- Dumping data for table astute.po_detail: ~5 rows (approximately)
/*!40000 ALTER TABLE `po_detail` DISABLE KEYS */; /*!40000 ALTER TABLE `po_detail` DISABLE KEYS */;
INSERT INTO `po_detail` (`PO_num`, `line_item_no`, `service_desc`, `fee_type_id`, `qty`, `service_type_id`, `fee`, `remaining_qty`) VALUES INSERT INTO `po_detail` (`PO_num`, `line_item_no`, `service_desc`, `fee_type_id`, `qty`, `service_type_id`, `fee`, `remaining_qty`) VALUES
('EP2649247', 1, 'test', 2, 1000, 1, 50, 700), ('VDOT-54321', 1, 'Study existing designs', 1, 1, 1, 1000, 1),
('EP2649247', 2, 'test', 2, 1000, 1, 50, NULL), ('VDOT-54321', 2, 'Modify design', 1, 1, 2, 2000, 1),
('EP2649247', 3, 'test', 2, 1000, 2, 50, 800), ('VDOT-54321', 3, 'Cost estimation', 1, 1, 4, 1000, 1),
('EP2649247', 4, 'test', 2, 1000, 4, 50, 900), ('VDOT-54321', 4, 'Peer Review', 2, 100, 3, 100, 100),
('EP2649247', 6, 'test', 2, 1000, 1, 50, NULL), ('VDOT-54321', 5, 'Forensic Investigation', 2, 50, 5, 100, 50);
('EP2649247', 16, 'test', 1, 1000, 1, 50, NULL),
('GopiTestPO', 1, 'Test 1', 1, 10, 1, 5000, 10),
('HRT-16-72046', 1, 'Study existing designs', 1, 100, 1, 50, 30),
('HRT-16-72046', 2, 'Design Phase', 1, 100, 2, 100, 80),
('HRT-16-72046', 3, 'Cost Estimation', 1, 100, 4, 100, 60),
('Real PO 123', 1, 'Real PO 123 lineitem1', 1, 10000, 1, 500, NULL),
('Real PO 123', 2, 'Real PO 123 - lineitem 2', 1, 1000, 1, 50, 1000),
('Real PO 123', 3, 'Real PO 123 - lineitem 3', 1, 1000, 1, 50, 1000),
('Real PO 123', 4, 'Real PO 123 - lineitem 4', 1, 1000, 1, 50, 1000),
('Real PO 123', 5, 'Real PO 123 - lineitem 5', 1, 1000, 1, 50, 1000);
/*!40000 ALTER TABLE `po_detail` ENABLE KEYS */; /*!40000 ALTER TABLE `po_detail` ENABLE KEYS */;
-- Dumping structure for table astute.service_type -- Dumping structure for table astute.service_type
@ -468,14 +415,15 @@ CREATE TABLE IF NOT EXISTS `service_type` (
PRIMARY KEY (`service_type_id`) PRIMARY KEY (`service_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.service_type: ~5 rows (approximately) -- Dumping data for table astute.service_type: ~6 rows (approximately)
/*!40000 ALTER TABLE `service_type` DISABLE KEYS */; /*!40000 ALTER TABLE `service_type` DISABLE KEYS */;
INSERT INTO `service_type` (`service_type_id`, `desc`) VALUES INSERT INTO `service_type` (`service_type_id`, `desc`) VALUES
(1, 'study'), (1, 'study'),
(2, 'design'), (2, 'design'),
(3, 'Peer review'), (3, 'Peer review'),
(4, 'cost estimation'), (4, 'cost estimation'),
(5, 'forensic investigation'); (5, 'forensic investigation'),
(6, 'Out-of-pocket expense');
/*!40000 ALTER TABLE `service_type` ENABLE KEYS */; /*!40000 ALTER TABLE `service_type` ENABLE KEYS */;
-- Dumping structure for table astute.session -- Dumping structure for table astute.session
@ -489,12 +437,8 @@ CREATE TABLE IF NOT EXISTS `session` (
CONSTRAINT `fk_session_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) CONSTRAINT `fk_session_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table astute.session: ~3 rows (approximately) -- Dumping data for table astute.session: ~0 rows (approximately)
/*!40000 ALTER TABLE `session` DISABLE KEYS */; /*!40000 ALTER TABLE `session` DISABLE KEYS */;
INSERT INTO `session` (`session_id`, `user_id`, `session_start_date`, `session_end_date`) VALUES
('745de7a0e6c1480398ca36116512bc06', 1, NULL, NULL),
('985874e08cb74fa08419f8883f3eeff7', 1, NULL, NULL),
('a4b6bde153004b7ba17220f5ba2bb323', 1, NULL, NULL);
/*!40000 ALTER TABLE `session` ENABLE KEYS */; /*!40000 ALTER TABLE `session` ENABLE KEYS */;
-- Dumping structure for procedure astute.submit_invoice -- Dumping structure for procedure astute.submit_invoice