From 5b8a509ae290216bfc6bfbe7e5e09a1288dd0c4a Mon Sep 17 00:00:00 2001 From: "usama.jameel" Date: Thu, 24 Jul 2025 14:24:34 +0500 Subject: [PATCH] change stitch item created-by name when received master bundle in line --- .../java/com/utopiaindustries/service/InventoryService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/utopiaindustries/service/InventoryService.java b/src/main/java/com/utopiaindustries/service/InventoryService.java index 88f1045..45953dc 100644 --- a/src/main/java/com/utopiaindustries/service/InventoryService.java +++ b/src/main/java/com/utopiaindustries/service/InventoryService.java @@ -380,9 +380,10 @@ public class InventoryService { List stitchingOfflineItems = stitchingOfflineItemDAO.findByBundleId(subBundle.getId()); // create IN Transactions of Finished Items into account createTransactions(stitchingOfflineItems, accountId, InventoryArtifactType.STITCHING_OFFLINE.name()); - + Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); List updatedItems = stitchingOfflineItems.stream().map(e-> { e.setInlineReceived(true); + e.setCreatedBy(authentication.getName()); return e; }).collect(Collectors.toList());