From 4d7b8d8a561cb634ccd1919ef69e94e4e0fa96bb Mon Sep 17 00:00:00 2001 From: DeepnaPooja Date: Fri, 18 Sep 2026 11:54:01 +0530 Subject: [PATCH] Add payment method cheque enum --- Distribution/Models/Enums.cs | 4 +++- Distribution/Models/Payment.cs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Distribution/Models/Enums.cs b/Distribution/Models/Enums.cs index b183fcc..2497221 100644 --- a/Distribution/Models/Enums.cs +++ b/Distribution/Models/Enums.cs @@ -22,7 +22,9 @@ namespace Distribution.Models public enum PaymentStatus { Pending, PartiallyPaid, Paid } - public enum PaymentMethod { Cash, Credit } + public enum PaymentMethod { Cash, Cheque, Credit } + + public enum EntryMode { RealTime, DayEndManual } public enum DeliveryTaskStatus { Pending, Delivered, PartiallyDelivered, Failed } diff --git a/Distribution/Models/Payment.cs b/Distribution/Models/Payment.cs index f466283..56f46cb 100644 --- a/Distribution/Models/Payment.cs +++ b/Distribution/Models/Payment.cs @@ -10,7 +10,11 @@ namespace Distribution.Models public decimal Amount { get; set; } public PaymentMethod Method { get; set; } + public EntryMode EntryMode { get; set; } = EntryMode.RealTime; + public string? ChequeNumber { get; set; } + public DateTime? ChequeDate { get; set; } public DateTime CollectedAt { get; set; } public Guid CollectedBy { get; set; } + public Guid? RecordedBy { get; set; } } }