Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 4ef9397

Browse files
committed
Improved: Added support to filter items by inventory count import's createdDate and closedDate (#49).
1 parent 0428bf5 commit 4ef9397

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

entity/InventoryCountViewEntities.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ under the License.
5959
<member-entity entity-alias="PG" entity-name="org.apache.ofbiz.party.party.PartyGroup" join-from-alias="USR" join-optional="true">
6060
<key-map field-name="partyId"/>
6161
</member-entity>
62+
<member-entity entity-alias="ICIS" entity-name="co.hotwax.warehouse.InvCountImportStatus" join-from-alias="ICI" join-optional="true">
63+
<key-map field-name="inventoryCountImportId"/>
64+
<entity-condition>
65+
<econdition field-name="importItemSeqId" value=""/>
66+
<econdition field-name="statusId" value="INV_COUNT_COMPLETED"/>
67+
</entity-condition>
68+
</member-entity>
6269
<alias-all entity-alias="ICI"/>
6370
<alias-all entity-alias="ICII">
6471
<exclude field="inventoryCountImportId"/>
@@ -71,6 +78,7 @@ under the License.
7178
<alias name="countedByFirstName" field="firstName" entity-alias="PER"/>
7279
<alias name="countedByLastName" field="lastName" entity-alias="PER"/>
7380
<alias name="countedByGroupName" field="groupName" entity-alias="PG"/>
81+
<alias name="closedDate" field="statusDate" entity-alias="ICIS"/>
7482
</view-entity>
7583
<view-entity entity-name="InventoryItemSum" package="co.hotwax.warehouse">
7684
<member-entity entity-alias="II" entity-name="org.apache.ofbiz.product.inventory.InventoryItem"/>

service/co/hotwax/cycleCount/InventoryCountServices.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
<parameter name="statusId"/>
2525
<parameter name="facilityId" type="List"/>
2626
<parameter name="computeQOH" default-value="Y"/>
27+
<parameter name="createdDate_from" type="Timestamp"/>
28+
<parameter name="createdDate_thru" type="Timestamp"/>
29+
<parameter name="closedDate_from" type="Timestamp"/>
30+
<parameter name="closedDate_thru" type="Timestamp"/>
2731
<parameter name="orderBy" default-value="-inventoryCountImportId, importItemSeqId"/>
2832
<parameter name="pageIndex" type="Integer" default-value="0">
2933
<description>The current page index to get the inventory count import items.</description>

0 commit comments

Comments
 (0)