feat: add cheque books and received cheques management
- 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.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Distribution.Models
|
||||
{
|
||||
public class ReceivedCheque : Template
|
||||
{
|
||||
public int CompanyId { get; set; }
|
||||
public int? BranchId { get; set; }
|
||||
|
||||
public ReceivedFromType ReceivedFromType { get; set; }
|
||||
public int? ReceivedFromId { get; set; }
|
||||
public string ReceivedFromName { get; set; } = string.Empty;
|
||||
|
||||
public string? DrawerBankName { get; set; }
|
||||
public string? DrawerBankBranch { get; set; }
|
||||
public string? AccountHolderName { get; set; }
|
||||
|
||||
public string ChequeNo { get; set; } = string.Empty;
|
||||
public DateTime ChequeDate { get; set; }
|
||||
public decimal Amount { get; set; }
|
||||
public DateTime ReceivedDate { get; set; }
|
||||
|
||||
public string? ReferenceType { get; set; }
|
||||
public int? ReferenceId { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
public string? CreatedBy { get; set; }
|
||||
|
||||
public ReceivedChequeStatus Status { get; set; } = ReceivedChequeStatus.Received;
|
||||
|
||||
public Guid? FK_DepositBankAccountId { get; set; }
|
||||
[ForeignKey("FK_DepositBankAccountId")]
|
||||
public BankAccount? DepositBankAccount { get; set; }
|
||||
|
||||
public DateTime? DepositDate { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user