|
@@ -91,11 +91,11 @@ public class ReservationManagementItemGrid : DynamicDataGrid<JobRequisitionItem>
|
|
|
{
|
|
|
return Colors.Silver.ToBrush(0.5);
|
|
|
}
|
|
|
- else if(row.Get<JobRequisitionItem, double>(x => x.Allocated) >= qty)
|
|
|
+ else if(row.Get<JobRequisitionItem, double>(x => x.Allocated) + row.Get<JobRequisitionItem, double>(x => x.Issued) >= qty)
|
|
|
{
|
|
|
return Colors.LightGreen.ToBrush(0.5);
|
|
|
}
|
|
|
- else if(row.Get<JobRequisitionItem, double>(x => x.InStock) >= qty)
|
|
|
+ else if(row.Get<JobRequisitionItem, double>(x => x.InStock) + row.Get<JobRequisitionItem, double>(x => x.Issued) >= qty)
|
|
|
{
|
|
|
return Colors.Orange.ToBrush(0.5);
|
|
|
}
|