Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using PowderCoating.Core.Enums;
|
||||
|
||||
namespace PowderCoating.Core.Entities;
|
||||
|
||||
public class Payment : BaseEntity
|
||||
{
|
||||
public int InvoiceId { get; set; }
|
||||
public decimal Amount { get; set; }
|
||||
public DateTime PaymentDate { get; set; } = DateTime.UtcNow;
|
||||
public PaymentMethod PaymentMethod { get; set; }
|
||||
public string? Reference { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
public string? RecordedById { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bank/checking account the payment is deposited into.
|
||||
/// When null, no specific deposit account is tracked.
|
||||
/// </summary>
|
||||
public int? DepositAccountId { get; set; }
|
||||
|
||||
// Navigation
|
||||
public virtual Invoice Invoice { get; set; } = null!;
|
||||
public virtual ApplicationUser? RecordedBy { get; set; }
|
||||
public virtual Account? DepositAccount { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user