change stitch item created-by name when received master bundle in line
parent
5252b16c4d
commit
5b8a509ae2
|
@ -380,9 +380,10 @@ public class InventoryService {
|
||||||
List<StitchingOfflineItem> stitchingOfflineItems = stitchingOfflineItemDAO.findByBundleId(subBundle.getId());
|
List<StitchingOfflineItem> stitchingOfflineItems = stitchingOfflineItemDAO.findByBundleId(subBundle.getId());
|
||||||
// create IN Transactions of Finished Items into account
|
// create IN Transactions of Finished Items into account
|
||||||
createTransactions(stitchingOfflineItems, accountId, InventoryArtifactType.STITCHING_OFFLINE.name());
|
createTransactions(stitchingOfflineItems, accountId, InventoryArtifactType.STITCHING_OFFLINE.name());
|
||||||
|
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
||||||
List<StitchingOfflineItem> updatedItems = stitchingOfflineItems.stream().map(e-> {
|
List<StitchingOfflineItem> updatedItems = stitchingOfflineItems.stream().map(e-> {
|
||||||
e.setInlineReceived(true);
|
e.setInlineReceived(true);
|
||||||
|
e.setCreatedBy(authentication.getName());
|
||||||
return e;
|
return e;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue