30 lines
935 B
C#
30 lines
935 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.Extensions;
|
|
using BS.Shared.Services;
|
|
|
|
namespace DomizielAnsbach.Invoicing
|
|
{
|
|
|
|
public class CustomCalculations : Calculations
|
|
{
|
|
public override decimal? GetApprovedFixedAmountForPeriod(SupportConceptApprovalPeriodDC scap, DateTime? pStart, DateTime? pEnd, out decimal amountPerUnit, out decimal unitCount)
|
|
{
|
|
amountPerUnit = 0;
|
|
unitCount = 0;
|
|
|
|
if (scap != null && scap.ApprovedFixedAmountInterval.HasValue && scap.ApprovedFixedAmountInterval.Value == BS.Shared.SupportConceptApprovalInterval.Hourly)
|
|
{
|
|
return null;
|
|
}
|
|
return base.GetApprovedFixedAmountForPeriod(scap, pStart, pEnd, out amountPerUnit, out unitCount);
|
|
}
|
|
|
|
|
|
}
|
|
} |