87c807c16c
- Implemented ChequeBooksPage for viewing and filtering cheque books. - Added NewReceivedChequePage for recording received cheques. - Created ReceivedChequesPage for listing and managing received cheques. - Introduced API endpoints for bank accounts, cheque books, and received cheques. - Defined types for payments including bank accounts, cheque books, and received cheques.
27 lines
859 B
C#
27 lines
859 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class ChequeBook : Template
|
|
{
|
|
public string ChequeBookNo { get; set; } = string.Empty;
|
|
|
|
public int BranchId { get; set; }
|
|
|
|
public Guid FK_BankAccountId { get; set; }
|
|
[ForeignKey("FK_BankAccountId")]
|
|
public BankAccount? BankAccount { get; set; }
|
|
|
|
public string StartChequeNo { get; set; } = string.Empty;
|
|
public string EndChequeNo { get; set; } = string.Empty;
|
|
public int TotalLeaves { get; set; }
|
|
public DateTime ReceivedDate { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? CreatedBy { get; set; }
|
|
|
|
public ChequeBookStatus Status { get; set; } = ChequeBookStatus.Active;
|
|
|
|
public List<ChequePage> Pages { get; set; } = new();
|
|
}
|
|
}
|