change stitch item created-by name when received master bundle in line

pull/40/head
usama.jameel 2025-07-24 14:24:34 +05:00
parent 5252b16c4d
commit 5b8a509ae2
1 changed files with 2 additions and 1 deletions

View File

@ -380,9 +380,10 @@ public class InventoryService {
List<StitchingOfflineItem> 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<StitchingOfflineItem> updatedItems = stitchingOfflineItems.stream().map(e-> {
e.setInlineReceived(true);
e.setCreatedBy(authentication.getName());
return e;
}).collect(Collectors.toList());