USE `sakti`;
DROP TRIGGER IF EXISTS `sakti_bast_realisasi_after_insert`;
SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_ENGINE_SUBSTITUTION';
DELIMITER //
CREATE TRIGGER `sakti_bast_realisasi_after_insert` AFTER INSERT ON `sakti_bast_realisasi` FOR EACH ROW BEGIN
	CALL generateDataAdk(NEW.ID, NEW.REF);
	UPDATE inventory.penerimaan_barang SET STATUS_ADK_SAKTI = 1 WHERE ID = NEW.REF;
END//
DELIMITER ;
