From f5872cedaf02d5f1c4151fb00d50a3c6448dcd32 Mon Sep 17 00:00:00 2001 From: DeepnaPooja Date: Tue, 8 Sep 2026 13:14:36 +0530 Subject: [PATCH] Add FromLocationId and FromLocationType to stock movement creation --- Distribution/Features/Grn/GrnService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Distribution/Features/Grn/GrnService.cs b/Distribution/Features/Grn/GrnService.cs index 9268f02..10bae5f 100644 --- a/Distribution/Features/Grn/GrnService.cs +++ b/Distribution/Features/Grn/GrnService.cs @@ -124,6 +124,8 @@ public class GrnService( await stockRepo.AddMovementAsync(new StockMovement { FK_ItemId = poItem.FK_ItemId, + FromLocationId = StockService.ExternalLocationId, + FromLocationType = LocationType.External, ToLocationId = request.WarehouseId, ToLocationType = LocationType.Warehouse, Quantity = line.AcceptedQuantity,