This commit is contained in:
kamonwan taengsuk
2023-05-17 13:15:00 +07:00
parent 8d4354ddac
commit 2659f28aa5

View File

@@ -225,10 +225,11 @@ namespace rmutr_report.Controllers
}
}
if (building_fours.expense_category!=null)
{
foreach (var expense in building_fours.expense_category)
{
if (expense!=null)
{
var a = building_fours.expense_category.Where(d => d.amount == d.amount)
.Sum(o => o.amount);
building_fours.total_expense = a;