public Invoice(Guid dsoId, int periodId, decimal incomingBalance, DateTime fromDate, DateTime toDate, string counterSerialNumber, Tariff tariff, ZoneRecord zoneRecord, Usage usageT1, Usage usageT2, Usage usageT3, AccountingPointExemption exemption = null, InvoiceType type = InvoiceType.Common, string note = null) { DsoConsumptionId = dsoId; IncomingBalance = incomingBalance; PeriodId = periodId; FromDate = fromDate; ToDate = toDate; UsageT1 = usageT1; UsageT2 = usageT2; UsageT3 = usageT3; Tariff = tariff; Note = note; Type = type; ExemptionCoeff = (exemption?.Category.Coeff ?? 0) > 1 ? (exemption?.Category.Coeff ?? 0) / 100 : (exemption?.Category.Coeff ?? 0); CounterSerialNumber = counterSerialNumber; _exemption = exemption; ZoneRecord = zoneRecord; }
public AccountingPointExemptionClosed(AccountingPointExemption exemption) { Exemption = exemption; }