41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using BS.Shared.DataContracts;
|
|
using BS.Shared.Exceptions;
|
|
using BS.Shared.Models;
|
|
using Dakota.Models.Schlüssels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Dakota.Models.Infos
|
|
{
|
|
public struct InfoParameterInvoiceItem
|
|
{
|
|
public InvoiceBaseDC InvoiceBase { get; set; }
|
|
public InvoiceItemDC InvoiceItem { get; set; }
|
|
public ServiceInvoiceDC ServiceInvoice { get; set; }
|
|
public CustomerDC Customer { get; set; }
|
|
public OrganisationDC Organisation { get; set; }
|
|
public AddressInformation AddressInformation { get; set; }
|
|
|
|
public string Abrechnungsposition { get; set; }
|
|
|
|
public string IKKostentrager => Organisation.IKKostentrager;
|
|
public string IKKrankenkasse => Organisation.IKKrankenkasse;
|
|
|
|
public InfoParameterInvoiceItem(ServiceInvoiceDC serviceInvoice, InvoiceItemDC invoiceItem, OrganisationDC organisation, CustomerDC customer, AddressInformation addressInformation)
|
|
{
|
|
InvoiceItem = invoiceItem;
|
|
InvoiceBase = serviceInvoice.InvoiceBase;
|
|
ServiceInvoice = serviceInvoice;
|
|
Customer = customer;
|
|
Organisation = organisation;
|
|
AddressInformation = addressInformation;
|
|
|
|
// Todo: Valid prüfen
|
|
Abrechnungsposition = invoiceItem.UnitDescription.Substring(6);
|
|
}
|
|
}
|
|
}
|