paramet nGze
private nSds
nSds=0
nGze=nGze-2000
do case case nGze>100000 nSds=nGze*0.45-15375 case nGze>80000 nSds=nGze*0.40-10375 case nGze>60000 nSds=nGze*0.35-6375 case nGze>40000 nSds=nGze*0.30-3375 case nGze>20000 nSds=nGze*0.25-1375 case nGze>5000 nSds=nGze*0.20-375 case nGze>2000 nSds=nGze*0.15-125 case nGze>500 nSds=nGze*0.10-25 other nSds=nGze*0.05
endcase
return nSds
谢谢各位回贴指教!
我的代码是:REPLACE 应扣税额 WITH 工资-扣社保-2000 FOR 合计-扣社保-2000>=0
REPLACE 应扣税额 WITH 0 FOR 工资-扣社保-2000<0
REPLACE 扣所得费 WITH 应扣税额*0.005 FOR 应扣税额>=0
REPLACE 扣所得费 WITH 应扣税额*0.1-25 FOR 应扣税额>=500
REPLACE 扣所得费 WITH 应扣税额*0.15-125 FOR 应扣税额>=2000
REPLACE 扣所得费 WITH 应扣税额*0.2-375 FOR 应扣税额>=5000"
开始的时候我的排列是从5000往下做替换,结果是错误的,后来我从0往上排就行了.
谢谢各位回贴指教!
我的代码是:REPLACE 应扣税额 WITH 工资-扣社保-2000 FOR 合计-扣社保-2000>=0
REPLACE 应扣税额 WITH 0 FOR 工资-扣社保-2000=0
REPLACE 扣所得费 WITH 应扣税额*0.1-25 FOR 应扣税额>=500
R ...