database/model/tables/M_INVENTORYLINE.xml
changeset 170 4b5493776a7f
parent 94 4e7ba7b8a4ad
child 238 006d2d0fdea6
equal deleted inserted replaced
169:b951c5a838d3 170:4b5493776a7f
    43         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
    43         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
    44       </foreign-key>
    44       </foreign-key>
    45       <foreign-key foreignTable="M_PRODUCT_UOM" name="MPRODUCTUOMID_MINVENTORYLINE">
    45       <foreign-key foreignTable="M_PRODUCT_UOM" name="MPRODUCTUOMID_MINVENTORYLINE">
    46         <reference local="M_PRODUCT_UOM_ID" foreign="M_PRODUCT_UOM_ID"/>
    46         <reference local="M_PRODUCT_UOM_ID" foreign="M_PRODUCT_UOM_ID"/>
    47       </foreign-key>
    47       </foreign-key>
       
    48       <index name="M_INVENTORYLINE_INVENTORY" unique="false">
       
    49         <index-column name="M_INVENTORY_ID"/>
       
    50       </index>
    48       <index name="M_INVENTORYLINE_PRODUCT" unique="false">
    51       <index name="M_INVENTORYLINE_PRODUCT" unique="false">
    49         <index-column name="M_PRODUCT_ID"/>
    52         <index-column name="M_PRODUCT_ID"/>
    50       </index>
    53       </index>
    51       <index name="M_INVENTORYLINE_INVENTORY" unique="false">
    54       <check name="M_INVENTORYLINE" condition="((QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL) OR (QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL))"/>
    52         <index-column name="M_INVENTORY_ID"/>
       
    53       </index>
       
    54       <check name="M_INVENTORYLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    55       <check name="M_INVENTORYLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    55       <check name="M_INVENTORYLINE" condition="((QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL) OR (QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL))"/>
       
    56     </table>
    56     </table>
    57   </database>
    57   </database>