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,28 @@
using PowderCoating.Core.Enums;
namespace PowderCoating.Core.Entities;
public class Deposit : BaseEntity
{
public string ReceiptNumber { get; set; } = string.Empty;
public int CustomerId { get; set; }
public int? JobId { get; set; }
public int? QuoteId { get; set; }
public decimal Amount { get; set; }
public PaymentMethod PaymentMethod { get; set; }
public DateTime ReceivedDate { get; set; } = DateTime.UtcNow;
public string? Reference { get; set; }
public string? Notes { get; set; }
public string? RecordedById { get; set; }
// Applied to invoice when invoice is created
public int? AppliedToInvoiceId { get; set; }
public DateTime? AppliedDate { get; set; }
// Navigation
public virtual Customer Customer { get; set; } = null!;
public virtual Job? Job { get; set; }
public virtual Quote? Quote { get; set; }
public virtual Invoice? AppliedToInvoice { get; set; }
public virtual ApplicationUser? RecordedBy { get; set; }
}