国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

通用工資計稅方案

2024-07-21 02:08:17
字體:
來源:轉載
供稿:網友

--1:計稅方案表
create table  skm_mstr(序號 int,工資比例 int,始 int, 止 int,稅率 int,速算值 int )
/*
以下數據為深圳龍崗臺資企業計稅方式:
(比如工資為4000的計稅方式為:4000*87/100 = 3840, 在2100-3599之間,適用于第3條
則計算公式為 (4000*87/100-2100)*10/100 + 25 = 163  )
*/
insert skm_mstr select  1,    87    ,0   ,  1599 , 0 ,0
union all select     2 ,   87   , 1600,  2099 , 5 ,0
union all select     3  ,  87  ,  2100,  3599 , 10 ,25
union all select     4   , 87 ,   3600,  6599 , 15 ,175
union all select     5    ,87,    6600,  99999, 20 ,625
go

--2:自定義函數計稅
create function test(@a numeric(10,2))
returns numeric(10,2)
as
begin
declare @b numeric(10,2)
select @b = ( @a * 工資比例/100 - 始) * 稅率 / 100 + 速算值 
from skm_mstr  
where floor(@a * 工資比例/100) between 始 and 止
return @b
end 
go

--3:調用
select dbo.test(4000)  -- 計算工資額為4000時的稅款。
/*顯示結果為
------------
163.00

(所影響的行數為 1 行)
*/
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 铁岭县| 贞丰县| 鹤庆县| 怀柔区| 台前县| 万安县| 合作市| 谷城县| 泾源县| 盖州市| 霍山县| 乌兰县| 乌什县| 瓮安县| 汉中市| 莎车县| 含山县| 财经| 九龙县| 齐河县| 台南县| 东兴市| 耿马| 蛟河市| 高青县| 噶尔县| 江达县| 惠水县| 丽江市| 潍坊市| 宣恩县| 凤凰县| 南和县| 莎车县| 余庆县| 景德镇市| 康定县| 共和县| 通州市| 资溪县| 海林市|