Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: Added new fields proposedVariance and varianceReasonEnumId in InventoryCountImportItem table to support dynamic count and added a new type data in enumeration for the same.(#59) #254

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/CommerceTypeData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -502,5 +502,6 @@
<moqui.basic.EnumerationType enumTypeId="COUNT_TYPE" description="Count Type"/>
<moqui.basic.Enumeration enumId="SELECTIVE_COUNT" enumTypeId="COUNT_TYPE" description="Selective Count" enumName="Selective Count"/>
<moqui.basic.Enumeration enumId="HARD_COUNT" enumTypeId="COUNT_TYPE" description="Hard Count" enumName="Hard Count"/>
<moqui.basic.Enumeration enumId="DYNAMIC_COUNT" enumTypeId="COUNT_TYPE" description="Dynamic_Count" enumName="Dynamic Count"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description should be Dynamic Count no the Dynamic_Count.

</entity-facade-xml>

6 changes: 6 additions & 0 deletions entity/HwmappsEntitymodel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ under the License.
<field name="countedByUserLoginId" type="id-long"></field>
<field name="createdDate" type="date-time"></field>
<field name="createdByUserLoginId" type="id-long"></field>
<field name="proposedVariance" type="number-decimal"></field>
<field name="varianceReasonEnumId" type="id"></field>
<relationship type="one" fk-name="INV_COUNT_IMPORT" related="co.hotwax.warehouse.InventoryCountImport">
<key-map field-name="inventoryCountImportId"/>
</relationship>
Expand All @@ -433,6 +435,10 @@ under the License.
<relationship type="many" fk-name="INV_CNT_FAC_LOC" related="org.apache.ofbiz.product.facility.FacilityLocation">
<key-map field-name="locationSeqId"/>
</relationship>
<relationship type="one" fk-name="INV_CNT_VAR_ENUM" related="Enumeration">
<key-map field-name="varianceReasonEnumId" related="enumId"/>
</relationship>

</entity>
<entity entity-name="InvCountImportVariance" package="co.hotwax.warehouse">
<field name="inventoryCountImportId" type="id" is-pk="true"></field>
Expand Down