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
} }
} }
foreach (var expense in building_fours.expense_category) if (building_fours.expense_category!=null)
{ {
if (expense!=null) foreach (var expense in building_fours.expense_category)
{ {
var a = building_fours.expense_category.Where(d => d.amount == d.amount) var a = building_fours.expense_category.Where(d => d.amount == d.amount)
.Sum(o => o.amount); .Sum(o => o.amount);
building_fours.total_expense = a; building_fours.total_expense = a;