Fix GRN pricing
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Distribution.Models
|
||||
{
|
||||
@@ -27,6 +28,14 @@ namespace Distribution.Models
|
||||
|
||||
public DateTime ReceivedAt { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>GRN-wide default discount %, applied to any line that doesn't set its own.</summary>
|
||||
[Precision(5, 2)]
|
||||
public decimal DiscountPercent { get; set; }
|
||||
|
||||
/// <summary>GRN-wide default VAT %, applied to any line that doesn't set its own.</summary>
|
||||
[Precision(5, 2)]
|
||||
public decimal VatPercent { get; set; }
|
||||
|
||||
public ICollection<GoodsReceiptItem> Items { get; set; } = [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user