PAY221 的所得稅計算流程
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/1268
PAY221 的所得稅計算流程
觸發計算
在 PAY221 畫面點擊「報酬/費用弁償計算」時,PAY221Action#setCalculateResult 會建立 TResearchRecord 參數並呼叫 MonthlyAccountCalcService.calcMonthlyAccount 進行計算。
計算所得稅
MonthlyAccountCalcService 先計算報酬與費用弁償合計;若所得稅計算旗標為 ON,則透過 calcTaxWithholding 依「源泉徴収税額票」查表與套用公式求出源泉扣繳額,結果存入 incomeTaxTake。
calcTaxWithholding 會依 performYm 判斷使用 2015 前、2016、2017、2018、2020 以後等不同計算規則,各規則透過查詢 TWithholdingTaxTable 取得對應稅率及算式。
分配源泉稅額
若同一月有多筆調查,withholdingTaxDeduct 會合併各筆計算結果,再依報酬額(扣除住民稅)分配總源泉稅額,餘額不足時逐筆扣除,最終值回寫到每筆 incomeTaxTake 中。
因此,PAY221 的所得稅是依據調查實績年月與源泉稅表,按年分規則計算出源泉扣繳額,再在同月調查間進行稅額分配。
This article was last edited at