/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_NOREDUCE_BEFO_TAX', 'T_TCCIT_NOREDUCE_BEFO_TAX', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_NOREDUCE_BEFO_TAX') CREATE INDEX IDX_TCCIT_NOREDUCE_BEFO_TAX ON T_TCCIT_NOREDUCE_BEFO_TAX ( FPERIOD );


 EXEC P_ALTERPK 'PK_TCCIT_ADJUST_DETAIL', 'T_TCCIT_ADJUST_DETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_ADJUST_DETAIL') CREATE INDEX IDX_TCCIT_ADJUST_DETAIL ON T_TCCIT_ADJUST_DETAIL ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_BEFORETAX_SUMMARY', 'T_TCCIT_BEFORETAX_SUMMARY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_BEFORETAX_SUMMARY') CREATE INDEX IDX_TCCIT_BEFORETAX_SUMMARY ON T_TCCIT_BEFORETAX_SUMMARY ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_DEDUCT_SUMMARY', 'T_TCCIT_DEDUCT_SUMMARY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEDUCT_SUMMARY') CREATE INDEX IDX_TCCIT_DEDUCT_SUMMARY ON T_TCCIT_DEDUCT_SUMMARY ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_DEDUCT_TZ_DETAIL', 'T_TCCIT_DEDUCT_TZ_DETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEDUCT_TZ_DETAIL') CREATE INDEX IDX_TCCIT_DEDUCT_TZ_DETAIL ON T_TCCIT_DEDUCT_TZ_DETAIL ( FTAXACCOUNTSERIALNO );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
