Skip to content

Commit

Permalink
Fixed: Set statusDate correctly when recording inventory count import…
Browse files Browse the repository at this point in the history
… status change (#34).
  • Loading branch information
ravilodhi committed Jan 10, 2025
1 parent 94e66e9 commit ff368e0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions service/InventoryCount.secas.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
<seca id="CreateInventoryCountImport" service="create#co.hotwax.warehouse.InventoryCountImport" when="post-service" run-on-error="false">
<condition><expression>statusId</expression></condition>
<actions>
<set field="statusDate" from="ec.user.nowTimestamp"/>
<service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="context"/>
<service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="context + [statusDate: ec.user.nowTimestamp]"/>
</actions>
</seca>
<seca id="UpdateInventoryCountImport" service="update#co.hotwax.warehouse.InventoryCountImport" when="post-service" run-on-error="false">
<condition><expression>statusChanged</expression></condition>
<actions>
<set field="statusDate" from="ec.user.nowTimestamp"/>
<service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="context"/>
<service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="context + [statusDate: ec.user.nowTimestamp]"/>
</actions>
</seca>
<seca id="UpdateInventoryCountImportItem" service="update#co.hotwax.warehouse.InventoryCountImportItem" when="post-service" run-on-error="false">
<condition><expression>statusChanged</expression></condition>
<actions>
<set field="statusDate" from="ec.user.nowTimestamp"/>
<service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="context"/>
<service-call name="create#co.hotwax.warehouse.InvCountImportStatus" in-map="context + [statusDate: ec.user.nowTimestamp]"/>
</actions>
</seca>
</secas>

0 comments on commit ff368e0

Please sign in to comment.