志翔科技有限公司後勤網
Would you like to react to this message? Create an account in a few clicks or log in to continue.
志翔科技有限公司後勤網

後勤等待處理訊息站,請各位成員努力消除待工區
 
首頁首頁  Latest imagesLatest images  會員註冊會員註冊  登入登入  

 

 公勞保如有補助計算改無條件進位

向下 
發表人內容
flying
Admin
flying


文章數 : 207
注冊日期 : 2008-11-11

公勞保如有補助計算改無條件進位 Empty
發表主題: 公勞保如有補助計算改無條件進位   公勞保如有補助計算改無條件進位 Empty周一 12月 15, 2008 6:15 pm

某出納單位要求公勞保如有補助,原本為四捨五入計算,要改成無條件進位

原程式為
round()為四捨五入計算
if mislow="1" and msecur1>0 then //公保費
 msecur1=round(msecur1*0.75,0) //本人輕殘
end if
if mismid="1" and msecur1>0 then
 msecur1=round(msecur1*0.5,0) //本人中殘
end if
if mishigh="1" and msecur1>0 then
 msecur1=0 //本人重殘
end if


改成
if mislow="1" and msecur1>0 then //公保費
 msecur1=ceiling(msecur1*0.75,0) //本人輕殘
end if
if mismid="1" and msecur1>0 then
 msecur1=ceiling(msecur1*0.5,0) //本人中殘
end if
if mishigh="1" and msecur1>0 then
 msecur1=0 //本人重殘
end if

但部分單位並未提及,所以需跟客戶確認
回頂端 向下
http://idon.666forum.net
 
公勞保如有補助計算改無條件進位
回頂端 
1頁(共1頁)

這個論壇的權限:無法 在這個版面回復文章
志翔科技有限公司後勤網 :: 後勤主題與待工區 :: 公務薪資-
前往: