|
|
@@ -362,22 +362,11 @@ public class StockHoldingGrid : DynamicDataGrid<StockHolding>
|
|
|
min.Date = mout.Date;
|
|
|
min.Transaction = mout.Transaction;
|
|
|
|
|
|
- if(qty.Value > 0)
|
|
|
- {
|
|
|
- mout.Issued = qty.Value;
|
|
|
- mout.Type = StockMovementType.TransferOut;
|
|
|
-
|
|
|
- min.Received = qty.Value;
|
|
|
- min.Type = StockMovementType.TransferIn;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- min.Issued = -qty.Value;
|
|
|
- min.Type = StockMovementType.TransferOut;
|
|
|
+ mout.Issued = qty.Value;
|
|
|
+ mout.Type = StockMovementType.TransferOut;
|
|
|
|
|
|
- mout.Received = -qty.Value;
|
|
|
- mout.Type = StockMovementType.TransferIn;
|
|
|
- }
|
|
|
+ min.Received = qty.Value;
|
|
|
+ min.Type = StockMovementType.TransferIn;
|
|
|
|
|
|
modify(requi, mout, min);
|
|
|
|