Add files via upload

This commit is contained in:
gopi17701 2018-07-25 21:36:48 -04:00 committed by GitHub
parent 7e32e4e8cb
commit bb4ce51c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ DELIMITER //
CREATE DEFINER=`root`@`localhost` PROCEDURE `create_po`(PONum varchar(40), contractNum varchar(20), PODate date, contractAmt double(10,2), customerid int, astute_project_num_in varchar(20))
BEGIN
DECLARE next_po_id int(11);
SELECT MAX(po_id) + 1 INTO next_po_id FROM PO WHERE contract_num = contractNum;
SELECT count(*) + 1 INTO next_po_id FROM PO WHERE customer_id = customerid;
INSERT INTO PO (po_id, PO_num, contract_num, PO_date, contract_amt, customer_id,astute_project_num)
VALUES (next_po_id, PONum, contractNum, PODate, contractAmt, customerId,astute_project_num_in);
END//