Skip to content

Commit

Permalink
Improved: Set createByUserLoginId while creating cycyle count items (#20
Browse files Browse the repository at this point in the history
).
  • Loading branch information
ravilodhi committed Sep 23, 2024
1 parent 03b5218 commit f0f5785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/co/hotwax/cycleCount/InventoryCountServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<auto-parameters entity-name="co.hotwax.warehouse.InventoryCountImportView" include="all"/>
</out-parameters>
<actions>
<set field="context.uploadedByUserLogin" from="ec.user.getUsername()"/>
<set field="context.uploadedByUserLogin" from="ec.user.getUsername()" default-value="${System.getProperty('default.oms.user')}"/>
<service-call name="create#co.hotwax.warehouse.InventoryCountImport" in-map="context + [createdDate: ec.user.nowTimestamp]" out-map="context"/>

<if condition="context.statusId"><service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="[statusId:context.statusId, inventoryCountImportId:context.inventoryCountImportId, statusDate:ec.user.nowTimestamp, changeByUserLoginId:context.uploadedByUserLogin]"/></if>
Expand Down Expand Up @@ -171,6 +171,7 @@
<set field="item.inventoryCountImportId" from="context.inventoryCountImportId"/>
<!-- Not checking if idValue is already added. One can just reject duplicate records if added multiple times. -->
<set field="item.createdDate" from="ec.user.nowTimestamp"/>
<set field="item.createdByUserLoginId" from="ec.user.getUsername()" default-value="${System.getProperty('default.oms.user')}"/>
<service-call name="create#co.hotwax.warehouse.InventoryCountImportItem" in-map="item"/>
</if>
</iterate>
Expand Down

0 comments on commit f0f5785

Please sign in to comment.