Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
@@ -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; }
}