Files
ERP_Distribution/Distribution/Models/ReceivedCheque.cs
T
Kalana B. Thilakarathna b992d07689 feat: add supplier payment and allocation models, API, and frontend components
- Created `SupplierPayment` and `SupplierPaymentGRN` models for managing supplier payments and their allocations.
- Implemented API endpoints for listing and creating supplier payments.
- Developed frontend components for displaying and recording supplier payments, including a dialog for payment creation.
- Integrated GRN allocations into the payment creation process, ensuring total allocations match the payment amount.
- Added pagination and loading states for the payments list.
2026-10-19 21:36:01 +05:30

37 lines
1.2 KiB
C#

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; }
}
}