SET DEFINE OFF

--- SUN CCF No: IT2016-028 Request ID: A16DSUN001.Start --- 

ALTER TABLE DEPARTMENT ADD ITEM_SER CHAR(5);
ALTER TABLE DEPARTMENT ADD CONSTRAINT FK_DEPARTMENT_ITEM_SER FOREIGN KEY ( ITEM_SER ) REFERENCES ITEMSER ;

INSERT INTO OBJ_ITEMCHANGE 
(
	OBJ_NAME,
	FORM_NO,
	FIELD_NAME,
	MANDATORY
)
VALUES 
(
	'dept',
	'1',
	'item_ser',
	'Y'
);
COMMIT;

INSERT INTO MESSAGES 
(MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) 
VALUES ('VMDEPTIS01','Invalid Item Series!','Entered item series does not existing in item series master, please enter item series which is existing in item series master or leave it blank','E','Y',NULL, NULL,NULL,FN_SYSDATE(),'BASE','BASE',NULL,NULL); 

COMMIT;

INSERT INTO POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,SQL_INPUT,DEFAULT_COL) 
VALUES 
('ITEM_SER','W_DEPT','select descr as Description,item_ser as Code from itemser order by descr','Item Series',0,0,FN_SYSDATE(),'BASE','BASE','1',null,2);

COMMIT;

--- SUN CCF No: IT2016-028 Request ID: A16DSUN001.End --- 
