Add ToLocationId and ToLocationType to delivery task item movement

This commit is contained in:
2026-09-08 13:14:00 +05:30
parent aee3e840a0
commit cff4f4bf30
@@ -176,6 +176,8 @@ public class DeliveryTaskService(
FK_ItemId = item.FK_ItemId, FK_ItemId = item.FK_ItemId,
FromLocationId = vehicleId, FromLocationId = vehicleId,
FromLocationType = LocationType.Vehicle, FromLocationType = LocationType.Vehicle,
ToLocationId = StockService.ExternalLocationId,
ToLocationType = LocationType.External,
Quantity = item.QuantityFulfilled, Quantity = item.QuantityFulfilled,
Type = MovementType.Sale, Type = MovementType.Sale,
ReferenceId = task.FK_OrderId ReferenceId = task.FK_OrderId