fix abs
This commit is contained in:
@@ -339,6 +339,13 @@ public class AssignmentsController : ControllerBase
|
||||
{
|
||||
}
|
||||
|
||||
page.Data.ForEach(x =>
|
||||
{
|
||||
x.OpeningBalance = Math.Abs(x.OpeningBalance);
|
||||
x.CostAmount = Math.Abs(x.CostAmount);
|
||||
x.ClosingAmount = Math.Abs(x.ClosingAmount);
|
||||
});
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
@@ -367,6 +374,13 @@ public class AssignmentsController : ControllerBase
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
|
||||
page.Data.ForEach(x =>
|
||||
{
|
||||
x.OpeningBalance = Math.Abs(x.OpeningBalance);
|
||||
x.CostAmount = Math.Abs(x.CostAmount);
|
||||
x.ClosingAmount = Math.Abs(x.ClosingAmount);
|
||||
});
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user