AWOMuensterlandRecklinghausen/SBUmsatzerprobung.cs - Funktion unverändert, Zwischenstand zur Suche Rechnungsnummern auskommentiert eingecheckt.
This commit is contained in:
@@ -67,6 +67,7 @@ namespace AWOMuensterlandRecklinghausen
|
||||
{
|
||||
if (!ii.UnitDescription.IsNullOrEmpty())
|
||||
{
|
||||
//ii.Notice = i.InvoiceBase.InvoiceNumber;
|
||||
if (costcenterDict.ContainsKey(ii.UnitDescription))
|
||||
{
|
||||
costcenterDict[ii.UnitDescription].Add(ii);
|
||||
@@ -126,7 +127,7 @@ namespace AWOMuensterlandRecklinghausen
|
||||
foreach (var item in costcenterDict)
|
||||
{
|
||||
var newrow = new QueryRO.Row();
|
||||
|
||||
//string numbers = "";
|
||||
newrow.Field1 = item.Key;
|
||||
newrow.Field2 = item.Value.Sum(i => i.GrossAmountTotal);
|
||||
newrow.Field17 = item.Value.Where(a => a.ItemPeriodStart >= start && a.ItemPeriodEnd <= start.AddMonths(3)).Sum(a => a.GrossAmountTotal.Value);
|
||||
@@ -151,6 +152,12 @@ namespace AWOMuensterlandRecklinghausen
|
||||
else if (i == 3)
|
||||
{
|
||||
newrow.Field6 = item.Value.Where(a => a.ItemPeriodStart >= start.AddMonths(3) && a.ItemPeriodEnd <= start.AddMonths(4)).Sum(a => a.GrossAmountTotal);
|
||||
//var rgen = item.Value.Where(a => a.ItemPeriodStart >= start.AddMonths(3) && a.ItemPeriodEnd <= start.AddMonths(4)).ToList();
|
||||
//foreach (var r in rgen)
|
||||
//{
|
||||
// numbers += r.Notice + ", ";
|
||||
//}
|
||||
//newrow.Field16 = numbers;
|
||||
}
|
||||
else if (i == 4)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user