mirror of
https://github.com/dyiop/astute.git
synced 2025-04-05 13:00:16 -04:00
Session login and logout fixes
This commit is contained in:
parent
931f2fd3bc
commit
9f1211e916
|
@ -90,14 +90,18 @@ VALUES (next_po_id, PONum, contractNum, PODate, contractAmt, customerId,astute_p
|
|||
END//
|
||||
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, fee_in double, servicetypeid int(1), remaining_qty double)
|
||||
DROP PROCEDURE IF EXISTS astute.create_po_detail;
|
||||
CREATE PROCEDURE astute.`create_po_detail`(PONum varchar(40), lineItemNo int, servicedesc varchar(500), feetypeid int(11), quantity double, fee_in double, servicetypeid int(1), remaining_qty double)
|
||||
BEGIN
|
||||
declare maxlineItemNo int;
|
||||
if lineItemNo is null or lineItemNo = 0 then
|
||||
select max(lineItemNo) into maxlineItemNo from po_detail where po_num = ponum;
|
||||
else
|
||||
set maxlineItemNo = lineItemNo;
|
||||
end if;
|
||||
INSERT INTO PO_DETAIL (PO_num,line_item_no,service_desc,fee_type_id,qty,fee,service_type_id, remaining_qty)
|
||||
VALUES (POnum,lineitemno,servicedesc,feetypeid,quantity,fee_in, servicetypeid, remaining_qty);
|
||||
END//
|
||||
DELIMITER ;
|
||||
VALUES (POnum,maxlineItemNo,servicedesc,feetypeid,quantity,fee_in, servicetypeid, remaining_qty);
|
||||
END;
|
||||
|
||||
-- Dumping structure for table astute.customer
|
||||
CREATE TABLE IF NOT EXISTS `customer` (
|
||||
|
|
Loading…
Reference in New Issue
Block a user