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

This commit is contained in:
kamonwan taengsuk
2024-09-19 13:09:51 +07:00
parent ad0b43ca48
commit 106a978269
12 changed files with 12 additions and 8 deletions

View File

@@ -47,13 +47,17 @@ namespace rmutr_report.Controllers
{
faculty.total_budget = faculty.unit_price;
}
foreach (var assetList in faculty.asset_lists)
{
if (assetList.total<=10)
{
assetList.total = assetList.unit_price;
}
if (assetList.total==null&&assetList.amount==1)
{
assetList.total = assetList.unit_price;
}
}
}
}