fixed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kamonwan taengsuk
2023-11-29 14:12:01 +07:00
parent bd223a48ae
commit fce87e9159

View File

@@ -1152,21 +1152,21 @@ namespace rmutr_report.Controllers
if (contributions.topic_type == 1) if (contributions.topic_type == 1)
{ {
contributions.topic_name = "เงินสมทบกองทุนประกันสังคม"; contributions.topic_name = "เงินสมทบกองทุนประกันสังคม";
foreach (var detail in contributions.data) // foreach (var detail in contributions.data)
{ // {
detail.amount = (detail.salary * 5) / 100; // detail.amount = (detail.salary * 5) / 100;
detail.per_year = (detail.amount * 12); // detail.per_year = (detail.amount * 12);
} // }
} }
if (contributions.topic_type == 2) if (contributions.topic_type == 2)
{ {
contributions.topic_name = "เงินสมทบกองทุนเงินทดแทน"; contributions.topic_name = "เงินสมทบกองทุนเงินทดแทน";
foreach (var detail in contributions.data) // foreach (var detail in contributions.data)
{ // {
detail.amount = (detail.salary * (decimal?)0.2) / 100; // detail.amount = (detail.salary * (decimal?)0.2) / 100;
detail.per_year = (detail.amount * 12); // detail.per_year = (detail.amount * 12);
} // }
} }