vf之扣稅計算
2005[@more@]clos data
use tt
repl all gs1gs with '',gs3gs with ''
go top
do while .not.eof()
if subs(rq1,1,4)='2005' then
n_js=1000
else
n_js=1600
endif
n_ys1=ze-n_js
if n_ys1>0.and.n_ys1<=500 then
repl gs1 with n_ys1*0.05
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.05'
else
if n_ys1>500.and.n_ys1<=2000 then
repl gs1 with n_ys1*0.1-25
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.1-25'
else
if n_ys1>2000.and.n_ys1<=5000 then
repl gs1 with n_ys1*0.15-125
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.15-125'
else
if n_ys1>5000.and.n_ys1<=20000 then
repl gs1 with n_ys1*0.2-375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.2-375'
else
if n_ys1>20000.and.n_ys1<=40000 then
repl gs1 with n_ys1*0.25-1375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.25-1375'
else
if n_ys1>40000.and.n_ys1<=60000 then
repl gs1 with n_ys1*0.3-3375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.3-3375'
else
if n_ys1>60000.and.n_ys1<=80000 then
repl gs1 with n_ys1*0.35-6375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.35-6375'
else
if n_ys1>80000 then
repl gs1 with n_ys1*0.4-10375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.4-10375'
endif
endif
endif
endif
endif
endif
endif
endif
skip
enddo
go top
do while .not.eof()
if subs(rq1,1,4)='2005' then
n_js=1000
else
n_js=1600
endif
n_ys3=ze+ze2-n_js
if n_ys3>0.and.n_ys3<=500 then
repl gs3 with n_ys3*0.05
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.05'
else
if n_ys3>500.and.n_ys3<=2000 then
repl gs3 with n_ys3*0.1-25
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.1-25'
else
if n_ys3>2000.and.n_ys3<=5000 then
repl gs3 with n_ys3*0.15-125
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.15-125'
else
if n_ys3>5000.and.n_ys3<=20000 then
repl gs3 with n_ys3*0.2-375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.2-375'
else
if n_ys3>20000.and.n_ys3<=40000 then
repl gs3 with n_ys3*0.25-1375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.25-1375'
else
if n_ys3>40000.and.n_ys3<=60000 then
repl gs3 with n_ys3*0.3-3375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.3-3375'
else
if n_ys3>60000.and.n_ys3<=80000 then
repl gs3 with n_ys3*0.35-6375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.35-6375'
else
if n_ys3>80000 then
repl gs3 with n_ys3*0.4-10375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.4-10375'
endif
endif
endif
endif
endif
endif
endif
endif
skip
enddo
repl all gs2 with gs3-gs1
repl all gs2gs with allt(str(gs3,12,3))+'-'+allt(str(gs1,12,3))
use tt
repl all gs1gs with '',gs3gs with ''
go top
do while .not.eof()
if subs(rq1,1,4)='2005' then
n_js=1000
else
n_js=1600
endif
n_ys1=ze-n_js
if n_ys1>0.and.n_ys1<=500 then
repl gs1 with n_ys1*0.05
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.05'
else
if n_ys1>500.and.n_ys1<=2000 then
repl gs1 with n_ys1*0.1-25
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.1-25'
else
if n_ys1>2000.and.n_ys1<=5000 then
repl gs1 with n_ys1*0.15-125
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.15-125'
else
if n_ys1>5000.and.n_ys1<=20000 then
repl gs1 with n_ys1*0.2-375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.2-375'
else
if n_ys1>20000.and.n_ys1<=40000 then
repl gs1 with n_ys1*0.25-1375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.25-1375'
else
if n_ys1>40000.and.n_ys1<=60000 then
repl gs1 with n_ys1*0.3-3375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.3-3375'
else
if n_ys1>60000.and.n_ys1<=80000 then
repl gs1 with n_ys1*0.35-6375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.35-6375'
else
if n_ys1>80000 then
repl gs1 with n_ys1*0.4-10375
repl gs1gs with '('+allt(str(ze,12,2))+'-'+allt(str(n_js))+')'+'*0.4-10375'
endif
endif
endif
endif
endif
endif
endif
endif
skip
enddo
go top
do while .not.eof()
if subs(rq1,1,4)='2005' then
n_js=1000
else
n_js=1600
endif
n_ys3=ze+ze2-n_js
if n_ys3>0.and.n_ys3<=500 then
repl gs3 with n_ys3*0.05
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.05'
else
if n_ys3>500.and.n_ys3<=2000 then
repl gs3 with n_ys3*0.1-25
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.1-25'
else
if n_ys3>2000.and.n_ys3<=5000 then
repl gs3 with n_ys3*0.15-125
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.15-125'
else
if n_ys3>5000.and.n_ys3<=20000 then
repl gs3 with n_ys3*0.2-375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.2-375'
else
if n_ys3>20000.and.n_ys3<=40000 then
repl gs3 with n_ys3*0.25-1375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.25-1375'
else
if n_ys3>40000.and.n_ys3<=60000 then
repl gs3 with n_ys3*0.3-3375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.3-3375'
else
if n_ys3>60000.and.n_ys3<=80000 then
repl gs3 with n_ys3*0.35-6375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.35-6375'
else
if n_ys3>80000 then
repl gs3 with n_ys3*0.4-10375
repl gs3gs with '('+allt(str(ze,12,2))+'+'+allt(str(ze2,12,2))+'-'+allt(str(n_js))+')'+'*0.4-10375'
endif
endif
endif
endif
endif
endif
endif
endif
skip
enddo
repl all gs2 with gs3-gs1
repl all gs2gs with allt(str(gs3,12,3))+'-'+allt(str(gs1,12,3))
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69450/viewspace-1025000/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- c++如何計算增值稅(例如12%的增值稅)C++
- python的個稅計算程式碼Python
- 累計預扣法個稅,怎麼算?(附excel)Excel
- 2019年個稅怎麼報,據說90%的人都員工的個稅計算錯了!
- 力扣之按身高排序力扣排序
- Coinbase發起加密貨幣交易所得稅計算器加密
- 用Excel計算個人工資所得稅的四套方案(轉)Excel
- 網路打賞是否該繳個稅?專家:平臺應代扣代繳
- 力扣之存在重複元素力扣
- Excel函式應用例項:計算員工應繳所得稅(轉)Excel函式
- AP自動計稅設定
- 雲端計算,之我想。
- 計算機面試重難點之計算機網路面試計算機網路
- 大資料計算生態之資料計算(二)大資料
- 大資料計算生態之資料計算(一)大資料
- 雲端計算管理平臺之OpenStack計算服務nova
- 計算機基礎之計算機硬體系統計算機
- SAP SD基礎知識之稅(Taxes)
- 是C語言、VB、VF還是哪個 我想問一下全國計算機二級考哪個比較好C語言計算機
- 【Oracle AP】發票無法計稅Oracle
- 趨勢分析之雲端計算
- 計算方法之祖沖之的精度
- 人工智慧之計算智慧人工智慧
- JS-計算日期差值;計算日期之間的月數JS
- 力扣之兩個陣列的交集力扣陣列
- 計算機網路之HTTP之概況計算機網路HTTP
- 前端高效能運算之四:GPU加速計算前端GPU
- 計算機網路之物理層計算機網路
- 計算機網路之九:VLAN計算機網路
- kubernets之計算資源
- Hive之同比環比的計算Hive
- 雲端計算之雲的分類
- 軟考之計算機網路計算機網路
- 軟考之計算機硬體計算機
- 根據稅碼取得稅率函式函式
- 力扣-705. 設計雜湊集合力扣
- 阿里的納稅額109億是怎麼算的?阿里
- 日本計劃取消加密貨幣累進稅加密