|
@@ -32,6 +32,8 @@ internal class RequisitionItemGrid : DynamicDataGrid<RequisitionItem>, ISpecific
|
|
|
private Task<List<Product>>? _products;
|
|
|
|
|
|
public bool StockButtonVisible { get; set; }
|
|
|
+
|
|
|
+ public bool AllowActual { get; set; }
|
|
|
|
|
|
public event EventHandler? OnRequisitionChanged;
|
|
|
|
|
@@ -276,7 +278,7 @@ internal class RequisitionItemGrid : DynamicDataGrid<RequisitionItem>, ISpecific
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- var editor = new RequisitionItemEditor(GetProducts, item, false);
|
|
|
+ var editor = new RequisitionItemEditor(GetProducts, item, AllowActual);
|
|
|
if(editor.ShowDialog() == true && editor.Result is not null)
|
|
|
{
|
|
|
Refresh(false, true);
|