Skip to content

Commit a8feb7d

Browse files
authored
Merge pull request #26 from jenshp/inventory
Inventory
2 parents 214d090 + d9d4766 commit a8feb7d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

entity/ProductAssetEntities.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,18 @@ along with this software (see the LICENSE.md file). If not, see
465465
<entity entity-name="PhysicalInventory" package="mantle.product.asset" cache="never">
466466
<field name="physicalInventoryId" type="id" is-pk="true"/>
467467
<field name="physicalInventoryDate" type="date-time"/>
468+
<field name="statusId" type="id" default="PIPlanning" enable-audit-log="true"/>
468469
<field name="partyId" type="id"/>
469470
<field name="comments" type="text-long"/>
470471
<relationship type="one" related="mantle.party.Party" short-alias="party"/>
472+
<relationship type="one" title="PhysicalInventory" related="moqui.basic.StatusItem" short-alias="status" fk-name="physicalInventoryStatusId"/>
473+
<seed-data>
474+
<moqui.basic.StatusType description="Physical Inventory Status" statusTypeId="PhysicalInventory"/>
475+
<moqui.basic.StatusItem description="In Planning" sequenceNum="1" statusId="PIInPlanning" statusTypeId="PhysicalInventory"/>
476+
<moqui.basic.StatusItem description="In Progress" sequenceNum="2" statusId="PIInProgress" statusTypeId="PhysicalInventory"/>
477+
<moqui.basic.StatusItem description="In Validation" sequenceNum="3" statusId="PIInValidation" statusTypeId="PhysicalInventory"/>
478+
<moqui.basic.StatusItem description="Complete" sequenceNum="4" statusId="PIComplete" statusTypeId="PhysicalInventory"/>
479+
</seed-data>
471480
</entity>
472481
<entity entity-name="PhysicalInventoryCount" package="mantle.product.asset" cache="never">
473482
<field name="physicalInventoryCountId" type="id" is-pk="true"/>
@@ -478,6 +487,7 @@ along with this software (see the LICENSE.md file). If not, see
478487
<field name="countDate" type="date-time"/>
479488
<field name="quantityOnHand" type="number-decimal"/>
480489
<field name="comments" type="text-medium"/>
490+
<relationship type="one" related="mantle.product.asset.PhysicalInventory" short-alias="physicalInventory"/>
481491
<relationship type="one" related="mantle.facility.Facility" short-alias="facility"/>
482492
<relationship type="one-nofk" related="mantle.facility.FacilityLocation" short-alias="facilityLocation"/>
483493
<relationship type="one" related="mantle.product.Product" short-alias="product"/>

0 commit comments

Comments
 (0)