mirror of
https://github.com/dyiop/astute.git
synced 2025-04-05 21:10:16 -04:00
Add files via upload
This commit is contained in:
parent
7e32e4e8cb
commit
bb4ce51c1c
|
@ -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//
|
||||
|
|
Loading…
Reference in New Issue
Block a user