/** 开票单 **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AR_INVOICEENTRY' AND KSQL_INDNAME = 'IDX_AR_INVE_SRCSYS') CREATE INDEX IDX_AR_INVE_SRCSYS ON T_AR_INVOICEENTRY ( FSRCSYSBILLID,FSRCSYSBILLENTRYID );
/** 月末清理单 **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 't_ar_liquidationentry' AND KSQL_INDNAME = 'IDX_AR_LIQUIDENTRY_SRCSYS')
  CREATE INDEX IDX_AR_LIQUIDENTRY_SRCSYS ON t_ar_liquidationentry ( FSRCSYSBILLID,FSRCSYSBILLENTRYID );
/** 坏账损失单 **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 't_ar_lossbillentry' AND KSQL_INDNAME = 'IDX_AR_LBENTRY_SRCSYS')
  CREATE INDEX IDX_AR_LBENTRY_SRCSYS ON t_ar_lossbillentry ( FSRCSYSBILLID,FSRCSYSBILLENTRYID );