/** 差旅报销单 核定不含税金额,核定不含税金额本位币修复 **/
update T_ER_ReimburseEntry set fprice = FOriEntryAppAmount - fdeductibletax where fprice = 0;
update T_ER_ReimburseEntry set fcurprice = case when fquotetype != '1' then fprice * FExchangeRate else fprice / FExchangeRate end where fcurprice = 0;

/** 费用报销单 核定不含税金额,核定不含税金额本位币修复 **/
update t_er_expensedetail set fprice = fexpeapproveamount - fdeductibletax where fprice = 0;
update t_er_expensedetail set fcurprice = case when fquotetype != '1' then fprice * FExchangeRate else fprice / FExchangeRate end where fcurprice = 0;

/** 对公报销单 核定不含税金额,核定不含税金额本位币修复 **/
update t_er_pubreimexpdet set fprice = fexpeapproveamount - fdeductibletax where fprice = 0;
update t_er_pubreimexpdet set fcurprice = case when fquotetype != '1' then fprice * FExchangeRate else fprice / FExchangeRate end where fcurprice = 0;