|
@@ -34,7 +34,7 @@ public partial class ReservationManagementSubstitutionWindow : Window
|
|
|
var _holding = substitutions.SelectedRows?.FirstOrDefault()?.ToObject<StockHolding>();
|
|
|
if (_holding == null || substitutions.JRI == null)
|
|
|
return;
|
|
|
- Progress.ShowModal("Subsitution Item", progress =>
|
|
|
+ Progress.ShowModal("Substitution Item", progress =>
|
|
|
{
|
|
|
substitutions.JRI.Dimensions.CopyFrom(_holding.Dimensions, true);
|
|
|
if (substitutions.UpdateStyle)
|
|
@@ -46,6 +46,8 @@ public partial class ReservationManagementSubstitutionWindow : Window
|
|
|
_xferout.Notes = "Substituted by Requisition Management Screen";
|
|
|
_xferout.Transaction = Guid.NewGuid();
|
|
|
_xferout.Type = StockMovementType.TransferOut;
|
|
|
+ _xferout.Employee.ID = App.EmployeeID;
|
|
|
+ _xferout.Cost = _holding.AverageValue;
|
|
|
|
|
|
var _xferin = _holding.CreateMovement();
|
|
|
_xferin.JobRequisitionItem.CopyFrom(substitutions.JRI);
|
|
@@ -54,6 +56,8 @@ public partial class ReservationManagementSubstitutionWindow : Window
|
|
|
_xferin.Notes = "Substituted by Requisition Management Screen";
|
|
|
_xferin.Transaction = _xferout.Transaction;
|
|
|
_xferin.Type = StockMovementType.TransferIn;
|
|
|
+ _xferin.Employee.ID = App.EmployeeID;
|
|
|
+ _xferin.Cost = _holding.AverageValue;
|
|
|
|
|
|
Client.Save(new[] { _xferout, _xferin}, "Substituted by Requisition Management Screen");
|
|
|
});
|