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
b7f9398e26
commit
e709d11673
|
@ -117,7 +117,7 @@ BEGIN
|
|||
FROM invoice
|
||||
WHERE inv_no = inv_no_in;
|
||||
|
||||
IF inv_status_in <> 0 THEN
|
||||
IF inv_status_in <> 1 THEN
|
||||
RETURN 'ERROR - ONLY DRAFT INVOICE CAN BE DELETED';
|
||||
END IF;
|
||||
|
||||
|
@ -471,19 +471,6 @@ CREATE TABLE IF NOT EXISTS `session` (
|
|||
/*!40000 ALTER TABLE `session` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `session` ENABLE KEYS */;
|
||||
|
||||
-- Dumping structure for procedure astute.submit_invoice
|
||||
DELIMITER //
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `submit_invoice`(invNo varchar(20))
|
||||
BEGIN
|
||||
DECLARE po_no varchar(20);
|
||||
SELECT PO_NUM INTO po_no FROM INVOICE WHERE INV_NO = invNo;
|
||||
|
||||
UPDATE INVOICE SET INV_NO = generate_final_inv_number(po_no), INV_STATUS = 2 WHERE INV_NO = invNo;
|
||||
UPDATE PO SET INV_SEQ = INV_SEQ + 1 WHERE PO_NUM = po_no;
|
||||
Commit;
|
||||
END//
|
||||
DELIMITER ;
|
||||
|
||||
-- Dumping structure for procedure astute.update_all_remaining_quantities
|
||||
DELIMITER //
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `update_all_remaining_quantities`(invNo varchar(20))
|
||||
|
|
Loading…
Reference in New Issue
Block a user