eas销售出库单与销售订单税率不同步问题修复

eas销售出库单与销售订单税率不同步问题修复,如果销售出库单的税率错了,可以从销售订单带价格和税率过来重新计算一遍,特别是有港澳台组织的,可能会遇到这个问题

--eas销售出库单税率修复
update t_im_saleissueentry t
   set (t.fsaleprice,
        t.FActualPrice,
        t.ftaxprice,
        t.ftaxrate,
        t.fprice,
        t.ftax,
        t.flocaltax,
        t.flocalamount,
        t.famount,
        t.flocalprice) =
       (select x.fprice,
               nvl(x.fprice, 0),
               x.ftaxprice,
               x.ftaxrate,
               x.ftaxprice,
               x.fqty * (x.ftaxprice - x.fprice),
               t.fqty * (x.ftaxprice - x.fprice),
               x.ftaxprice * t.fqty,
               x.ftaxprice * t.fqty,
               x.fprice
          from t_sd_saleorderentry x
         where x.fparentid = t.fsourcebillid
           and x.fmaterialid = t.fmaterialid
           and x.fid = t.fsourcebillentryid
           and x.fseq = t.fsourcebillentryseq)
 where t.fparentid in (select xx.fid
                         from t_im_saleissuebill xx
                        where xx.fnumber in ('xxxx'))
                       )
   and t.fispresent = 0;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值