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++
- 子圖同構之VF2
- python的個稅計算程式碼Python
- 累計預扣法個稅,怎麼算?(附excel)Excel
- VF01開票自動生成會計憑證
- Coinbase發起加密貨幣交易所得稅計算器加密
- 2019年個稅怎麼報,據說90%的人都員工的個稅計算錯了!
- 稅務部:2021年度個稅彙算正式開始 個人所得稅稅率表一覽
- 力扣之移動零力扣
- 力扣之按身高排序力扣排序
- 力扣之兩數之和力扣
- kubernets之計算資源
- 計算方法之祖沖之的精度
- 大資料計算生態之資料計算(二)大資料
- 大資料計算生態之資料計算(一)大資料
- 力扣之存在重複元素力扣
- 力扣題之迴文數力扣
- 人工智慧之計算智慧人工智慧
- JS-計算日期差值;計算日期之間的月數JS
- 雲端計算管理平臺之OpenStack計算服務nova
- 計算機面試重難點之計算機網路面試計算機網路
- 計算機網路之HTTP之概況計算機網路HTTP
- 計算機網路之物理層計算機網路
- UAVStack之微服務計算平臺微服務
- 計算機網路之九:VLAN計算機網路
- kubernetes之計算機資源管理計算機
- 趨勢分析之雲端計算
- Hive之同比環比的計算Hive
- SAP SD基礎知識之稅(Taxes)
- 力扣新手村之1342、1672、412力扣
- 力扣之兩個陣列的交集力扣陣列
- 力扣之斐波那契數列力扣
- Python科學計算之Numpy陣列生成與運算Python陣列
- 【Oracle AP】發票無法計稅Oracle
- Oracle redo解析之-4、rowid的計算Oracle Redo
- 計算機DIY之接駁線纜計算機
- 計算機網路之隧道技術計算機網路
- 雲端計算之雲的分類
- 計算機網路之網路層計算機網路