/** 费用报销单/差旅报销单 发票明细 发票抵扣 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEITEM' AND KSQL_COL_NAME ='FINVOICECLOUDOFFSET')
ALTER TABLE T_ER_INVOICEITEM
    ADD (FINVOICECLOUDOFFSET CHAR(1) DEFAULT '1' NOT NULL);

/** 对公报销单 发票明细 发票抵扣 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEITEM' AND KSQL_COL_NAME ='FINVOICECLOUDOFFSET')
ALTER TABLE T_ER_PUBREIMINVOICEITEM
    ADD (FINVOICECLOUDOFFSET CHAR(1) DEFAULT '1' NOT NULL);

/** 商旅付款申请单 发票抵扣 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEITEMCP' AND KSQL_COL_NAME ='FINVOICECLOUDOFFSET')
ALTER TABLE T_ER_INVOICEITEMCP
    ADD (FINVOICECLOUDOFFSET CHAR(1) DEFAULT '1' NOT NULL);

/** 费用池 发票抵扣 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEPOOLITEM' AND KSQL_COL_NAME ='FINVOICECLOUDOFFSET')
ALTER TABLE T_ER_INVOICEPOOLITEM
    ADD (FINVOICECLOUDOFFSET CHAR(1) DEFAULT '1' NOT NULL);