From 1d2925ab75e1012ce0981aeadf48570b2517fd2d Mon Sep 17 00:00:00 2001 From: gopi17701 <41270090+gopi17701@users.noreply.github.com> Date: Wed, 18 Jul 2018 16:11:46 -0400 Subject: [PATCH] Add files via upload --- AstuteSystem/sql/astute.sql | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/AstuteSystem/sql/astute.sql b/AstuteSystem/sql/astute.sql index b7c0df0..cabdc01 100644 --- a/AstuteSystem/sql/astute.sql +++ b/AstuteSystem/sql/astute.sql @@ -73,10 +73,10 @@ DELIMITER ; -- Dumping structure for procedure astute.create_po_detail DELIMITER // -CREATE DEFINER=`root`@`localhost` PROCEDURE `create_po_detail`(PONum varchar(40), lineItemNo int, servicedesc varchar(500), feetypeid int(11), quantity double, servicetypeid int(1), schedule_in varchar(20), deliverby date) +CREATE DEFINER=`root`@`localhost` PROCEDURE `create_po_detail`(PONum varchar(40), lineItemNo int, servicedesc varchar(500), feetypeid int(11), quantity double, servicetypeid int(1)) BEGIN -INSERT INTO PO_DETAIL (PO_num,line_item_no,service_desc,fee_type_id,qty,service_type_id,schedule,deliver_by) -VALUES (POnum,lineitemno,servicedesc,feetypeid,quantity,servicetypeid,schedule_in,deliverby); +INSERT INTO PO_DETAIL (PO_num,line_item_no,service_desc,fee_type_id,qty,service_type_id) +VALUES (POnum,lineitemno,servicedesc,feetypeid,quantity,servicetypeid); END// DELIMITER ; @@ -97,7 +97,7 @@ CREATE TABLE IF NOT EXISTS `customer` ( PRIMARY KEY (`customer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.customer: ~3 rows (approximately) +-- Dumping data for table astute.customer: ~2 rows (approximately) /*!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 (1, 'test1233', 'test123', 'test123', 'null', 'test123', 'md', 20874, 0, 'null', 0, 0), @@ -290,7 +290,7 @@ CREATE TABLE IF NOT EXISTS `payment_status` ( PRIMARY KEY (`payment_status_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.payment_status: ~2 rows (approximately) +-- Dumping data for table astute.payment_status: ~3 rows (approximately) /*!40000 ALTER TABLE `payment_status` DISABLE KEYS */; INSERT INTO `payment_status` (`payment_status_id`, `payment_status_desc`) VALUES (1, 'Outstanding'), @@ -305,7 +305,7 @@ CREATE TABLE IF NOT EXISTS `payment_type` ( PRIMARY KEY (`payment_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.payment_type: ~2 rows (approximately) +-- Dumping data for table astute.payment_type: ~3 rows (approximately) /*!40000 ALTER TABLE `payment_type` DISABLE KEYS */; INSERT INTO `payment_type` (`payment_type_id`, `payment_type_name`) VALUES (1, 'Credit Card'), @@ -327,11 +327,12 @@ CREATE TABLE IF NOT EXISTS `po` ( CONSTRAINT `po_customer_id` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- Dumping data for table astute.po: ~1 rows (approximately) +-- Dumping data for table astute.po: ~3 rows (approximately) /*!40000 ALTER TABLE `po` DISABLE KEYS */; INSERT INTO `po` (`PO_num`, `contract_num`, `PO_date`, `contract_amt`, `customer_id`) VALUES ('EP2649247', 'TEST123', '2017-10-13', 30000.00, 1), - ('test12', 'test', NULL, 60000.00, 1); + ('test12', 'test', NULL, 60000.00, 1), + ('test3', 'test', NULL, 60000.00, 1); /*!40000 ALTER TABLE `po` ENABLE KEYS */; -- Dumping structure for table astute.po_detail @@ -350,14 +351,15 @@ 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: ~6 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`, `schedule`, `deliver_by`) VALUES ('EP2649247', 1, 'test', 2, 38073, 1, NULL, NULL), ('EP2649247', 2, 'test', 2, 16345, 1, NULL, NULL), ('EP2649247', 3, 'test', 2, 4642, 2, NULL, NULL), ('EP2649247', 4, 'test', 2, 880, 4, NULL, NULL), - ('EP2649247', 6, 'test', 2, 456, 1, 'dfgr', NULL); + ('EP2649247', 6, 'test', 2, 456, 1, 'dfgr', NULL), + ('EP2649247', 16, 'test', 1, 1555, 1, NULL, NULL); /*!40000 ALTER TABLE `po_detail` ENABLE KEYS */; -- Dumping structure for table astute.service_type