USE `sakti`;
DROP TRIGGER IF EXISTS `sakti_header_after_insert`;
SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_ENGINE_SUBSTITUTION';
DELIMITER //
CREATE TRIGGER `sakti_header_after_insert` AFTER INSERT ON `sakti_header` FOR EACH ROW BEGIN
	CALL setDataCoa(NEW.ID, NEW.BAST_REALISASI);
	CALL setDetailBarang(NEW.ID, NEW.BAST_REALISASI);
END//
DELIMITER ;
