Billing: Calculate prices
This commit is contained in:
@ -90,9 +90,10 @@ namespace Elwig.Models.Dtos {
|
||||
Buckets = rows
|
||||
.Where(b => b.Value > 0)
|
||||
.OrderByDescending(b => b.BktNr)
|
||||
// FIXME precision
|
||||
.Select(b => (b.Discr == "_" ? "ungeb." : $"geb. {f.SortId}{b.Discr}", b.Value,
|
||||
b.Price != null ? (decimal?)Utils.DecFromDb((long)b.Price, 0) : null,
|
||||
b.Amount != null ? (decimal?)Utils.DecFromDb((long)b.Amount, 0) : null))
|
||||
b.Price != null ? (decimal?)Utils.DecFromDb((long)b.Price, 4) : null,
|
||||
b.Amount != null ? (decimal?)Utils.DecFromDb((long)b.Amount, 4) : null))
|
||||
.ToArray();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user