Add files via upload

This commit is contained in:
gopi17701 2018-09-23 19:07:27 -04:00 committed by GitHub
parent b7f9398e26
commit e709d11673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))