From 2be9d9b3965eeb96267eb5a5303c54784614df1f Mon Sep 17 00:00:00 2001 From: DeepnaPooja Date: Thu, 22 Oct 2026 10:41:58 +0530 Subject: [PATCH] feat: add DiscountAmount property to Invoice model for discount calculations --- Distribution/Models/Invoice.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Distribution/Models/Invoice.cs b/Distribution/Models/Invoice.cs index c2a71f2..5985b62 100644 --- a/Distribution/Models/Invoice.cs +++ b/Distribution/Models/Invoice.cs @@ -19,6 +19,10 @@ namespace Distribution.Models public DateTime? FinalizedAt { get; set; } public Guid? FinalizedBy { get; set; } + /// Scheme discount redeemed against the PO, subtracted from the billable lines to give TotalAmount. + public decimal DiscountAmount { get; set; } + + /// Payable amount: billable lines minus DiscountAmount. public decimal TotalAmount { get; set; } public ICollection Items { get; set; } = new List();