|
发表于 2011-9-2 12:34:38
|
显示全部楼层
--变更税率,如果从9月份工资开始计算,将下面的8改成9即可
declare @period int
set @period=8
--基数和附加费用
update [WA_SDS_p] set youtlay=3500,youtpluslay=1300 where period>=@period
--代扣税各税率级次
delete from [WA_SDS_sl] where period>=8 and isl_id>7
update [WA_SDS_SL] set ymin_level=0,ymax_level=1500,isl=3,ysskcs=0 where period>=@period and isl_id=1
update [WA_SDS_SL] set ymin_level=1500,ymax_level=4500,isl=10,ysskcs=105 where period>=@period and isl_id=2
update [WA_SDS_SL] set ymin_level=4500,ymax_level=9000,isl=20,ysskcs=555 where period>=@period and isl_id=3
update [WA_SDS_SL] set ymin_level=9000,ymax_level=35000,isl=25,ysskcs=1005 where period>=@period and isl_id=4
update [WA_SDS_SL] set ymin_level=35000,ymax_level=55000,isl=30,ysskcs=2755 where period>=@period and isl_id=5
update [WA_SDS_SL] set ymin_level=55000,ymax_level=80000,isl=35,ysskcs=5505 where period>=@period and isl_id=6
update [WA_SDS_SL] set ymin_level=80000,ymax_level=0,isl=45,ysskcs=13505 where period>=@period and isl_id=7
--代付税各税率级次
delete from [WA_SDS_SLnew] where period>=@period and isl_id>7
update [WA_SDS_SLnew] set ymin_level=0,ymax_level=1455,isl=3,ysskcs=0 where period>=@period and isl_id=1
update [WA_SDS_SLnew] set ymin_level=1455,ymax_level=4155,isl=10,ysskcs=105 where period>=@period and isl_id=2
update [WA_SDS_SLnew] set ymin_level=4155,ymax_level=7755,isl=20,ysskcs=555 where period>=@period and isl_id=3
update [WA_SDS_SLnew] set ymin_level=7755,ymax_level=27255,isl=25,ysskcs=1005 where period>=@period and isl_id=4
update [WA_SDS_SLnew] set ymin_level=27255,ymax_level=41255,isl=30,ysskcs=2755 where period>=@period and isl_id=5
update [WA_SDS_SLnew] set ymin_level=41255,ymax_level=57505,isl=35,ysskcs=5505 where period>=@period and isl_id=6
update [WA_SDS_SLnew] set ymin_level=57505,ymax_level=0,isl=45,ysskcs=13505 where period>=@period and isl_id=7
|
|