WIP
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using ROLAC.API.Entities.Base;
|
||||
namespace ROLAC.API.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// One expense covered by a <see cref="Check"/>. Amount/Description are snapshotted
|
||||
/// at issue time for the printed ledger stub; ExpenseId links back to the source expense.
|
||||
/// </summary>
|
||||
public class CheckLine : AuditableEntity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int CheckId { get; set; }
|
||||
public int ExpenseId { get; set; }
|
||||
public decimal Amount { get; set; } // snapshot of expense amount
|
||||
public string Description { get; set; } = null!; // snapshot of expense description
|
||||
|
||||
public Check? Check { get; set; }
|
||||
public Expense? Expense { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user