Skip to content

Commit

Permalink
Improved: Added condition to allow adding items in any existing cycle…
Browse files Browse the repository at this point in the history
… count if the cycle count is in 'Draft' or 'Assigned ' status only (#20).
  • Loading branch information
ravilodhi committed Sep 19, 2024
1 parent fac7804 commit 1e81814
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/co/hotwax/cycleCount/InventoryCountServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,11 @@
<entity-find entity-name="co.hotwax.warehouse.InventoryCountImport" list="inventoryCountImports">
<econdition field-name="countImportName"/>
<econdition field-name="facilityId" or-null="true"/>
<!--Allowing addition of items in the existing cycle count in draft or assigned status only-->
<econdition field-name="statusId" operator="in" value="INV_COUNT_CREATED,INV_COUNT_ASSIGNED"/>
</entity-find>
<set field="inventoryCountImportId" from="inventoryCountImports?.first?.inventoryCountImportId"/>

<if condition="!inventoryCountImportId">
<service-call name="co.hotwax.cycleCount.InventoryCountServices.create#InventoryCountImport"
in-map="context + [statusId: 'INV_COUNT_CREATED']"
Expand Down

0 comments on commit 1e81814

Please sign in to comment.