src-db/database/model/tables/M_COSTING.xml
author Ioritz Cia <ioritz.cia@openbravo.com>
Mon, 21 Mar 2011 16:31:37 +0100
changeset 11331 c4e1d4214951
parent 5551 7a30caea85b5
child 16978 1a09ed27c42b
permissions -rw-r--r--
Fixess issue 15878: Isactive column is missing in M_Costing table.
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE M_COSTING">
carlos@0
     3
    <table name="M_COSTING" primaryKey="M_COSTING_KEY">
juanpablo@1605
     4
      <column name="M_COSTING_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
antonio@735
     8
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
     9
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
juanpablo@1605
    12
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
antonio@735
    16
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    17
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
juanpablo@1605
    20
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    21
        <default/>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
juanpablo@1605
    28
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    29
        <default/>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="M_PRODUCT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    33
        <default/>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
antonio@735
    36
      <column name="DATEFROM" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="DATETO" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="ISMANUAL" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    45
        <default><![CDATA[N]]></default>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
juanpablo@1605
    48
      <column name="M_INOUTLINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
juanpablo@1605
    52
      <column name="C_INVOICELINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
antonio@735
    56
      <column name="QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="PRICE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
antonio@735
    64
      <column name="CUMQTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
asier@2586
    68
      <column name="COSTTYPE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="ISPERMANENT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    73
        <default><![CDATA[N]]></default>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
antonio@735
    76
      <column name="COST" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
juanpablo@1605
    80
      <column name="M_PRODUCTIONLINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    81
        <default/>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
antonio@735
    84
      <column name="ISPRODUCTION" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    85
        <default><![CDATA[N]]></default>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
ioritz@11331
    88
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
ioritz@11331
    89
        <default><![CDATA[Y]]></default>
ioritz@11331
    90
        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
ioritz@11331
    91
      </column>
asier@5551
    92
      <foreign-key foreignTable="AD_CLIENT" name="M_COSTING_AD_CLIENT">
carlos@0
    93
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    94
      </foreign-key>
asier@5551
    95
      <foreign-key foreignTable="AD_ORG" name="M_COSTING_AD_ORG">
carlos@0
    96
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    97
      </foreign-key>
asier@5551
    98
      <foreign-key foreignTable="C_INVOICELINE" name="M_COSTING_C_INVOICELINE">
carlos@0
    99
        <reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
carlos@0
   100
      </foreign-key>
asier@5551
   101
      <foreign-key foreignTable="M_INOUTLINE" name="M_COSTING_M_INOUTLINE">
asier@5551
   102
        <reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
asier@5551
   103
      </foreign-key>
asier@5551
   104
      <foreign-key foreignTable="M_PRODUCT" name="M_COSTING_M_PRODUCT">
asier@5551
   105
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
asier@5551
   106
      </foreign-key>
antonio@410
   107
      <foreign-key foreignTable="M_PRODUCTIONLINE" name="M_PRODUCTIONLINE_MCOSTING">
antonio@410
   108
        <reference local="M_PRODUCTIONLINE_ID" foreign="M_PRODUCTIONLINE_ID"/>
antonio@410
   109
      </foreign-key>
stefan@3034
   110
      <index name="M_COSTING_M_PRODUCT_ID" unique="false">
stefan@3034
   111
        <index-column name="M_PRODUCT_ID"/>
stefan@3034
   112
      </index>
ioritz@11331
   113
      <check name="M_COSTING_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
   114
    </table>
adrian@94
   115
  </database>