Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuiantw1212 committed May 10, 2024
1 parent cdbcf12 commit 8c94625
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/calculator/career/labor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ function calculateInsuranceType() {
}
// 減項計算
function calculateEmployeeWelfareFund() {
if (career.value.insuredUnit === 'company') {
const { monthlyBasicSalary, } = career.value
const { monthlyBasicSalary, } = career.value
if (career.value.insuredUnit === 'company' && monthlyBasicSalary) {
career.value.employeeWelfareFund = Math.floor((monthlyBasicSalary + foodExpense) * 0.5 / 100)
} else {
career.value.employeeWelfareFund = 0
Expand Down Expand Up @@ -451,6 +451,8 @@ function drawChartAndCalculateIncome(propagate = false) {
}
if (monthlyBasicSalary) {
career.value.monthlyNetPayEstimated = fv
} else {
career.value.monthlyNetPayEstimated = 0
}
calculateMonthlySaving()

Expand Down

0 comments on commit 8c94625

Please sign in to comment.