LeWoAachen/Invoicing/CustomInvoiceCreation - grundsätzlich immer jeder Monat separat

This commit is contained in:
2024-08-20 16:04:28 +02:00
parent 9f354935c5
commit a0fe3d23c7
4 changed files with 28 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ namespace LeWoAachen.Invoicing
public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,
Calculations calc, bool summaryPerMonth, bool addRateFactorToUnitCount)
{
return base.CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, false, true);
return base.CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, true, true);
}
//public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Service.Invoicing;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using BS.Shared.Services;
namespace LeWoAachen.Invoicing
{
public class CustomInvoiceCreation : InvoiceCreation
{
public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,
Calculations calc, bool summaryPerMonth, bool addRateFactorToUnitCount)
{
return base.CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, true, true);
}
}
}

View File

@@ -22,8 +22,8 @@ namespace LeWoAachen.Invoicing
}
}
return base.CreateInvoiceCreator(specificId, tenant, supportConcepts2ServiceRecords);
}
return new CustomInvoiceCreation();
}
private InvoiceCreation GetInvoiceCreatorForCategory(ServiceDescriptionDC sd)
{
@@ -35,7 +35,7 @@ namespace LeWoAachen.Invoicing
return new CustomAssistenzInvoiceCreation();
}
}
return null;
return new CustomInvoiceCreation();
}
}
}

View File

@@ -73,6 +73,7 @@
<Compile Include="InvoiceCustomerReport.Designer.cs">
<DependentUpon>InvoiceCustomerReport.cs</DependentUpon>
</Compile>
<Compile Include="Invoicing\CustomInvoiceCreation.cs" />
<Compile Include="Invoicing\AssistenzInvoiceCreation.cs" />
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
<Compile Include="Invoicing\SettlementInvoiceCreation.cs" />