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