Add functionality to order insufficient supplies for plan templates.
This commit is contained in:
11
Models/Supply/SupplyAvailability.cs
Normal file
11
Models/Supply/SupplyAvailability.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace CarCareTracker.Models
|
||||
{
|
||||
public class SupplyAvailability
|
||||
{
|
||||
public bool Missing { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public decimal Required { get; set; }
|
||||
public decimal InStock { get; set; }
|
||||
public bool Insufficient { get { return Required > InStock; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user