diff --git a/AstuteSystem/sql/astute.sql b/AstuteSystem/sql/astute.sql index db57c73..41b1fc6 100644 --- a/AstuteSystem/sql/astute.sql +++ b/AstuteSystem/sql/astute.sql @@ -258,10 +258,8 @@ CREATE TABLE IF NOT EXISTS `invoice` ( CONSTRAINT `fk_InvMaster_POnum` FOREIGN KEY (`PO_num`) REFERENCES `po` (`PO_num`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.invoice: ~0 rows (approximately) +-- Dumping data for table astute.invoice: ~1 rows (approximately) /*!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 - ('VDO-01_DRAFT_559', '2018-09-23', 'VDOT-54321', 3500, 'First Invoice', 'Certified that the above items and rates are in accordance with the contractual agreement as verified by the undersigned', 1, 0); /*!40000 ALTER TABLE `invoice` ENABLE KEYS */; -- Dumping structure for table astute.invoice_detail @@ -280,13 +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 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.invoice_detail: ~0 rows (approximately) +-- Dumping data for table astute.invoice_detail: ~4 rows (approximately) /*!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 - ('VDO-01_DRAFT_559', 1, 1, 1, 'Study existing designs', 0.25, 1000, 1), - ('VDO-01_DRAFT_559', 2, 2, 2, 'Modify design', 0.25, 2000, 1), - ('VDO-01_DRAFT_559', 3, 3, 4, 'Cost estimation', 0.25, 1000, 1), - ('VDO-01_DRAFT_559', 4, 4, 3, 'Peer Review', 25, 100, 2); /*!40000 ALTER TABLE `invoice_detail` ENABLE KEYS */; -- Dumping structure for table astute.invoice_notes @@ -386,7 +379,8 @@ CREATE TABLE IF NOT EXISTS `po` ( -- Dumping data for table astute.po: ~1 rows (approximately) /*!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 - ('VDOT-54321', 'VDOT-54321', '2018-09-22', 10000.00, 'VDOT', 'VDOTProj', 1, 'Supervisor', NULL); + ('ABC-123', 'ABC-123', '2018-09-23', 5000.00, 'VDOT', 'ABC-123', 2, 'ABC-123', 0), + ('VDOT-54321', 'VDOT-54321', '2018-09-22', 10000.00, 'VDOT', 'VDOTProj', 1, 'Supervisor', 2); /*!40000 ALTER TABLE `po` ENABLE KEYS */; -- Dumping structure for table astute.po_detail @@ -405,10 +399,11 @@ CREATE TABLE IF NOT EXISTS `po_detail` ( CONSTRAINT `fk_PODetail_ServType` FOREIGN KEY (`service_type_id`) REFERENCES `service_type` (`service_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.po_detail: ~5 rows (approximately) +-- Dumping data for table astute.po_detail: ~4 rows (approximately) /*!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 - ('VDOT-54321', 1, 'Study existing designs', 1, 1, 1, 1000, 0.75), + ('ABC-123', 1, 'Design', 1, 1, 2, 5000, 1), + ('VDOT-54321', 1, 'Study existing designs', 1, 1, 1, 1000, 1), ('VDOT-54321', 2, 'Modify design', 1, 1, 2, 2000, 1), ('VDOT-54321', 3, 'Cost estimation', 1, 1, 4, 1000, 1), ('VDOT-54321', 4, 'Peer Review', 2, 100, 3, 100, 100); @@ -424,12 +419,12 @@ CREATE TABLE IF NOT EXISTS `service_type` ( -- Dumping data for table astute.service_type: ~6 rows (approximately) /*!40000 ALTER TABLE `service_type` DISABLE KEYS */; INSERT INTO `service_type` (`service_type_id`, `desc`) VALUES - (1, 'study'), - (2, 'design'), - (3, 'Peer review'), - (4, 'cost estimation'), - (5, 'forensic investigation'), - (6, 'Out-of-pocket expense'); + (1, 'Study'), + (2, 'Design'), + (3, 'Peer Review'), + (4, 'Cost Estimation'), + (5, 'Forensic Investigation'), + (6, 'Out-of-pocket Expense'); /*!40000 ALTER TABLE `service_type` ENABLE KEYS */; -- Dumping structure for table astute.session