add supplier attributes

This commit is contained in:
2023-06-12 13:13:40 +02:00
parent 9cb007399a
commit 73bfcccc9c
15 changed files with 218 additions and 46 deletions

View File

@@ -0,0 +1,11 @@
namespace AB.Domain.Enums
{
public enum CommunicationType
{
Email,
Postal,
Phone,
Fax
}
}

View File

@@ -0,0 +1,20 @@
namespace AB.Domain.Entities;
public class ContactPerson
{
public Guid ContactPersonId { get; set; }
public Guid SupplierId { get; set; }
public string Salutation { get; set; }
public string Name { get; set; }
public string PhoneNumber { get; set; }
public string Email { get; set; }
public string Notes { get; set; }
}

View File

@@ -1,4 +1,5 @@
using System;
using AB.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -10,4 +11,20 @@ public class Supplier
{
public Guid SupplierId { get; set; }
public string Salutation { get; set; }
public string Name1 { get; set; }
public string Name2 { get; set; }
public string Email { get; set; }
public string PhoneNumber { get; set; }
public string TaxId { get; set; }
public CommunicationType PreferredCommunication { get; set; }
public List<ContactPerson> ContactPersons { get; set; }
}