Blame view

applications/product/widget/facility/InventoryForms.xml 14.5 KB
c16038356   Anchit Jindal   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
  -->
  
  <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
      <form name="EditInventoryItem" type="single" target="UpdateInventoryItem" title=""
          header-row-style="header-row" default-table-style="basic-table">
          <actions>
              <set field="inventoryItemTypeId" from-field="inventoryItem.inventoryItemTypeId"/>
              <set field="productId" from-field="inventoryItem.productId"/>
              <set field="facilityId" from-field="inventoryItem.facilityId"/>
              <set field="locationSeqId" from-field="inventoryItem.locationSeqId"/>
              <set field="statusId" from-field="inventoryItem.statusId"/>
              <entity-one entity-name="FacilityLocation" value-field="facilityLocation">
                  <field-map field-name="locationSeqId" from-field="locationSeqId"/>
                  <field-map field-name="facilityId" from-field="facilityId"/>
              </entity-one>
          </actions>
          <alt-target use-when="inventoryItemId==null" target="CreateInventoryItem"/>
          <auto-fields-service service-name="updateInventoryItem" map-name="inventoryItem"/>        
  
          <!-- ignored fields -->
          <field name="oldAvailableToPromise"><ignored/></field>
          <field name="oldQuantityOnHand"><ignored/></field>
          
          <!-- custom formatted fields -->
          <field name="inventoryItemId" tooltip="${uiLabelMap.ProductNotModificationRecrationInventoryItem}"><display/></field>
          <field name="inventoryItemTypeId" title="${uiLabelMap.ProductInventoryItemTypeId}">
              <drop-down allow-empty="false">
                  <entity-options entity-name="InventoryItemType" description="${description}" key-field-name="inventoryItemTypeId"/>
              </drop-down>
          </field>
          <field name="productId" required-field="true" position="1">
              <lookup target-form-name="LookupProduct">
                  <sub-hyperlink target="/catalog/control/EditProduct" target-type="inter-app" description="${uiLabelMap.ProductEditProduct} [${productId}]">
                      <parameter param-name="productId"/>
                  </sub-hyperlink>
              </lookup>
          </field>
          <field name="statusId" use-when="inventoryItem==null">
              <drop-down allow-empty="true">
                  <entity-options entity-name="StatusItem" description="${description}" key-field-name="statusId">
                      <entity-constraint name="statusTypeId" operator="equals" value="INV_NON_SER_STTS"/>
                  </entity-options>
                  <entity-options entity-name="StatusItem" description="${description}" key-field-name="statusId">
                      <entity-constraint name="statusTypeId" operator="equals" value="INV_SERIALIZED_STTS"/>
                  </entity-options>
              </drop-down>
          </field>
          <field name="statusId" use-when="inventoryItem!=null&amp;&amp;&quot;SERIALIZED_INV_ITEM&quot;.equals(inventoryItem.getString(&quot;inventoryItemTypeId&quot;))">
              <drop-down allow-empty="false">
                  <entity-options entity-name="StatusItem" description="${description}" key-field-name="statusId">
                      <entity-constraint name="statusTypeId" operator="equals" value="INV_SERIALIZED_STTS"/>
                  </entity-options>
              </drop-down>
          </field>
          <field name="statusId" use-when="inventoryItem!=null&amp;&amp;&quot;NON_SERIAL_INV_ITEM&quot;.equals(inventoryItem.getString(&quot;inventoryItemTypeId&quot;))">
              <drop-down allow-empty="true">
                  <entity-options entity-name="StatusItem" description="${description}" key-field-name="statusId">
                      <entity-constraint name="statusTypeId" operator="equals" value="INV_NON_SER_STTS"/>
                  </entity-options>
              </drop-down>
          </field>
          <field name="expireDate" title="${uiLabelMap.ProductExpireDate}"/>
          <field name="facilityId">
              <drop-down allow-empty="true">
                  <entity-options entity-name="Facility" description="${facilityName}" key-field-name="facilityId">
                      <entity-order-by field-name="facilityName"/>
                  </entity-options>
                  <sub-hyperlink use-when="facilityId!=null" target="EditFacility" description="${uiLabelMap.ProductEditFacility} [${facilityId}]">
                  <parameter param-name="facilityId"/>
              </sub-hyperlink>
              </drop-down>
          </field>
          <field name="lotId" title="${uiLabelMap.ProductLotId}"/>
          <field name="uomId" title="${uiLabelMap.ProductUomId}"/>
          <field name="binNumber" title="${uiLabelMap.ProductBinNumber}"/>
          <field name="locationSeqId" title="${uiLabelMap.ProductFacilityLocation}">
              <lookup target-form-name="LookupFacilityLocation">
                  <sub-hyperlink use-when="locationSeqId!=null" target="EditFacilityLocation">
                  <parameter param-name="facilityId"/>
                  <parameter param-name="locationSeqId"/>
              </sub-hyperlink>
              </lookup>
          </field>
          <field name="partyId">
              <lookup target-form-name="LookupPartyName"/>
          </field>
          <field name="ownerPartyId">
              <lookup target-form-name="LookupPartyName"/>
          </field>
          <field name="unitCost"><text/></field>
  
          <field name="accountingQuantityTotal">
              <display/>
          </field>
          <field name="totals" use-when="inventoryItem!=null" title="${uiLabelMap.ProductAvailablePromiseQuantityHand}">
              <display description="${inventoryItem.availableToPromiseTotal} / ${inventoryItem.quantityOnHandTotal}"/>
          </field>
  
          <field use-when="inventoryItem!=null" name="submit" title="${uiLabelMap.CommonUpdate}">
              <submit/>
          </field>
          <field use-when="inventoryItem==null" name="submit" title="${uiLabelMap.CommonCreate}">
              <submit/>
          </field>
          <sort-order>
              <sort-field name="inventoryItemId"/>
              <sort-field name="inventoryItemTypeId"/>
              <sort-field name="productId"/>
              <sort-field name="partyId"/>
              <sort-field name="ownerPartyId"/>
              <sort-field name="statusId"/>
              <sort-field name="datetimeReceived"/>
              <sort-field name="datetimeManufactured"/>
              <sort-field name="expireDate"/>
              <sort-field name="facilityId"/>
              <sort-field name="containerId"/>
              <sort-field name="lotId"/>
              <sort-field name="uomId"/>
              <sort-field name="binNumber"/>
              <sort-field name="locationSeqId"/>
              <sort-field name="comments"/>
              <sort-field name="accountingQuantityTotal"/>
              <sort-field name="serialNumber"/>
              <sort-field name="softIdentifier"/>
              <sort-field name="activationNumber"/>
              <sort-field name="activationValidThru"/>
              <sort-field name="unitCost"/>
              <sort-field name="currencyUomId"/>
              <sort-field name="totals"/>
              <sort-field name="submit"/>
          </sort-order>
      </form>
  
      <form name="CreatePhysicalInventoryAndVariance" type="single" target="createPhysicalInventoryAndVariance" title=""
          default-table-style="basic-table">
          <auto-fields-service service-name="createPhysicalInventoryAndVariance"/>
          <field name="physicalInventoryId"><ignored/></field>
          <field name="physicalInventoryDate"><ignored/></field>
          <field name="partyId"><ignored/></field>
          <field name="generalComments"><ignored/></field>
          <field name="inventoryItemId" map-name="inventoryItem"><hidden/></field>
          <field name="varianceReasonId">
              <drop-down>
                  <entity-options entity-name="VarianceReason" description="${description}">
                      <entity-order-by field-name="description"/>
                  </entity-options>
              </drop-down>
          </field>
          <field name="comments"/>
          <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
      </form>
      <form name="ViewPhysicalInventoryAndVariance" type="list" target="" title="" list-name="physicalInventoryAndVarianceDatas"
          header-row-style="header-row-2" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
          <auto-fields-entity entity-name="PhysicalInventoryAndVariance" map-name="physicalInventoryAndVariance" default-field-type="display"/>
          <field name="inventoryItemId"><hidden/></field>
          <field name="partyId"><display description="${person.firstName} ${person.lastName} ${partyGroup.groupName} [${physicalInventoryAndVariance.partyId}]"/></field>
          <field name="varianceReasonId"><display description="${varianceReason.description}"/></field>
      </form>
      <form name="ViewInventoryItemShipmentReceipts" type="list" target="" title="" list-name="shipmentReceiptList"
          odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
          <actions>
              <entity-and entity-name="ShipmentReceipt" list="shipmentReceiptList">
                  <field-map field-name="inventoryItemId"/>
              </entity-and>
          </actions>
          <auto-fields-entity entity-name="ShipmentReceipt" map-name="shipmentReceipt" default-field-type="display"/>
          <field name="inventoryItemId"><hidden/></field>
      </form>
  
      <form name="ListInventoryItemDetail" type="list" target="" title="" list-name="inventoryItemDetails"
          odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
          <auto-fields-entity entity-name="InventoryItemDetail" map-name="inventoryItemDetail" default-field-type="display"/>
          <field name="inventoryItemId"><hidden/></field> <!-- this field is redundant -->
          <field name="orderId" widget-style="buttontext">
              <hyperlink target="/ordermgr/control/orderview" target-type="inter-app" description="${orderId}" >
                  <parameter param-name="orderId"/>
              </hyperlink>
          </field>
          <field name="shipmentId" widget-style="buttontext">
              <hyperlink target="ViewShipment" description="${shipmentId}" >
                  <parameter param-name="shipmentId"/>
              </hyperlink>
          </field>
          <field name="reasonEnumId">
              <display-entity entity-name="Enumeration" key-field-name="enumId" description="${description}"/>
          </field>
          <!-- workEffortId - not sure if it's better to show manufacturing or workeffort app
          itemIssuanceId, receiptId, physicalInventoryId - no natural screens to show these -->
      </form>
      <form name="InventoryItemReservations" type="list" target="" title="" list-name="inventoryItemReservations"
          header-row-style="header-row-2" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
          <auto-fields-entity entity-name="OrderItemShipGrpInvRes" default-field-type="display"/>
          <field name="inventoryItemId"><hidden/></field>
          <field name="orderId" widget-style="buttontext">
              <hyperlink target="/ordermgr/control/orderview" target-type="inter-app" description="${orderId}" >
                  <parameter param-name="orderId"/>
              </hyperlink>
          </field>
      </form>
      <!-- Inventory Item Labels -->
      <form name="UpdateInventoryItemLabelAppls" type="list" target="updateInventoryItemLabelApplFromItem" title="" list-name="inventoryItemLabelAppls"
          odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
          <auto-fields-service service-name="updateInventoryItemLabelAppl"/>
          <field name="inventoryItemLabelId" title=" " widget-style="buttontext">
              <hyperlink target="EditInventoryItemLabel" description="${inventoryItemLabelId}" also-hidden="true">
                  <parameter param-name="inventoryItemLabelId"/>
              </hyperlink>
          </field>
          <field name="facilityId"><hidden/></field>
          <field name="inventoryItemId"><hidden/></field>
          <field name="inventoryItemLabelTypeId">
              <display-entity entity-name="InventoryItemLabelType" description="${description} [${inventoryItemLabelTypeId}]"/>
          </field>
          <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
          <field name="deleteLink" title=" " widget-style="buttontext">
              <hyperlink target="deleteInventoryItemLabelApplFromItem" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                  <parameter param-name="inventoryItemId"/>
                  <parameter param-name="inventoryItemLabelTypeId"/>
                  <parameter param-name="inventoryItemLabelId"/>
                  <parameter param-name="facilityId"/>
              </hyperlink>
          </field>
      </form>
      <form name="AddInventoryItemLabelAppl" type="single" target="createInventoryItemLabelApplFromItem" title=""
          header-row-style="header-row" default-table-style="basic-table">
          <auto-fields-service service-name="createInventoryItemLabelAppl"/>
          <field name="facilityId"><hidden/></field>
          <field name="inventoryItemId"><hidden/></field>
          <field name="inventoryItemLabelId">
              <drop-down allow-empty="false">
                  <entity-options entity-name="InventoryItemLabel" description="${inventoryItemLabelTypeId} ${inventoryItemLabelId} ${description}">
                      <entity-order-by field-name="inventoryItemLabelTypeId"/>
                      <entity-order-by field-name="inventoryItemLabelId"/>
                  </entity-options>
              </drop-down>
          </field>
          <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
      </form>
  
  </forms>