src-db/database/model/tables/I_ORDER.xml
author Salvador Zapata <salvador.zapata@openbravo.com>
Thu, 07 Oct 2010 16:32:29 +0200
changeset 8504 802eae4a434d
parent 8157 905bba2e13c2
child 8505 a2bb7e6fb443
permissions -rw-r--r--
Fixed bug 14514 In GeneralAccoutingReportPDF.fo there are some strings impossible to translate
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE I_ORDER">
carlos@0
     3
    <table name="I_ORDER" primaryKey="I_ORDER_KEY">
juanpablo@1605
     4
      <column name="I_ORDER_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
juanpablo@1605
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     9
        <default/>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
juanpablo@1605
    12
      <column name="AD_ORG_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
juanpablo@1605
    16
      <column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    17
        <default/>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
antonio@735
    20
      <column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    21
        <default><![CDATA[Y]]></default>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
antonio@735
    24
      <column name="CREATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    25
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
juanpablo@1605
    28
      <column name="CREATEDBY" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    29
        <default/>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
antonio@735
    32
      <column name="UPDATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    33
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
juanpablo@1605
    36
      <column name="UPDATEDBY" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="I_ISIMPORTED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    41
        <default><![CDATA[N]]></default>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="I_ERRORMSG" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
antonio@735
    45
        <default/>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
antonio@735
    48
      <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
antonio@735
    52
      <column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    53
        <default><![CDATA[N]]></default>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
juanpablo@1605
    56
      <column name="SALESREP_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
juanpablo@1605
    60
      <column name="M_WAREHOUSE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="M_PRICELIST_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="C_CURRENCY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
juanpablo@1605
    72
      <column name="M_SHIPPER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
antonio@735
    76
      <column name="ISSOTRX" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    77
        <default><![CDATA[Y]]></default>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
juanpablo@1605
    80
      <column name="C_BPARTNER_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="BPARTNERVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
    85
        <default/>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
antonio@735
    88
      <column name="NAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    89
        <default/>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
juanpablo@1605
    92
      <column name="C_BPARTNER_LOCATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    93
        <default/>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
juanpablo@1605
    96
      <column name="BILLTO_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    97
        <default/>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
juanpablo@1605
   100
      <column name="C_LOCATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   101
        <default/>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
antonio@735
   104
      <column name="ADDRESS1" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   105
        <default/>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
antonio@735
   108
      <column name="ADDRESS2" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   109
        <default/>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
antonio@735
   112
      <column name="POSTAL" primaryKey="false" required="false" type="VARCHAR" size="10" autoIncrement="false">
antonio@735
   113
        <default/>
antonio@735
   114
        <onCreateDefault/>
antonio@735
   115
      </column>
antonio@735
   116
      <column name="CITY" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   117
        <default/>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
juanpablo@1605
   120
      <column name="C_REGION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   121
        <default/>
antonio@735
   122
        <onCreateDefault/>
antonio@735
   123
      </column>
antonio@735
   124
      <column name="REGIONNAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   125
        <default/>
antonio@735
   126
        <onCreateDefault/>
antonio@735
   127
      </column>
juanpablo@1605
   128
      <column name="C_COUNTRY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   129
        <default/>
antonio@735
   130
        <onCreateDefault/>
antonio@735
   131
      </column>
antonio@735
   132
      <column name="COUNTRYCODE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false">
antonio@735
   133
        <default/>
antonio@735
   134
        <onCreateDefault/>
antonio@735
   135
      </column>
juanpablo@1605
   136
      <column name="AD_USER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   137
        <default/>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
antonio@735
   140
      <column name="CONTACTNAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   141
        <default/>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
antonio@735
   144
      <column name="EMAIL" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   145
        <default/>
antonio@735
   146
        <onCreateDefault/>
antonio@735
   147
      </column>
antonio@735
   148
      <column name="PHONE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   149
        <default/>
antonio@735
   150
        <onCreateDefault/>
antonio@735
   151
      </column>
juanpablo@1605
   152
      <column name="C_PROJECT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   153
        <default/>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
juanpablo@1605
   156
      <column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   157
        <default/>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
juanpablo@1605
   160
      <column name="C_DOCTYPE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   161
        <default/>
antonio@735
   162
        <onCreateDefault/>
antonio@735
   163
      </column>
antonio@735
   164
      <column name="DOCTYPENAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   165
        <default/>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
juanpablo@1605
   168
      <column name="C_PAYMENTTERM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   169
        <default/>
antonio@735
   170
        <onCreateDefault/>
antonio@735
   171
      </column>
antonio@735
   172
      <column name="PAYMENTTERMVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   173
        <default/>
antonio@735
   174
        <onCreateDefault/>
antonio@735
   175
      </column>
juanpablo@1605
   176
      <column name="C_ORDER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   177
        <default/>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
antonio@735
   180
      <column name="DOCUMENTNO" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   181
        <default/>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
antonio@735
   184
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
juanpablo@1605
   188
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   189
        <default/>
antonio@735
   190
        <onCreateDefault/>
antonio@735
   191
      </column>
antonio@735
   192
      <column name="PRODUCTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   193
        <default/>
antonio@735
   194
        <onCreateDefault/>
antonio@735
   195
      </column>
antonio@735
   196
      <column name="UPC" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   197
        <default/>
antonio@735
   198
        <onCreateDefault/>
antonio@735
   199
      </column>
antonio@735
   200
      <column name="SKU" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   201
        <default/>
antonio@735
   202
        <onCreateDefault/>
antonio@735
   203
      </column>
juanpablo@1605
   204
      <column name="C_TAX_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   205
        <default/>
antonio@735
   206
        <onCreateDefault/>
antonio@735
   207
      </column>
antonio@735
   208
      <column name="TAXINDICATOR" primaryKey="false" required="false" type="VARCHAR" size="5" autoIncrement="false">
antonio@735
   209
        <default/>
antonio@735
   210
        <onCreateDefault/>
antonio@735
   211
      </column>
antonio@735
   212
      <column name="TAXAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   213
        <default><![CDATA[0]]></default>
antonio@735
   214
        <onCreateDefault/>
antonio@735
   215
      </column>
juanpablo@1605
   216
      <column name="C_ORDERLINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   217
        <default/>
antonio@735
   218
        <onCreateDefault/>
antonio@735
   219
      </column>
antonio@735
   220
      <column name="LINEDESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   221
        <default/>
antonio@735
   222
        <onCreateDefault/>
antonio@735
   223
      </column>
juanpablo@1605
   224
      <column name="C_UOM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   225
        <default/>
antonio@735
   226
        <onCreateDefault/>
antonio@735
   227
      </column>
antonio@735
   228
      <column name="QTYORDERED" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   229
        <default><![CDATA[0]]></default>
antonio@735
   230
        <onCreateDefault/>
antonio@735
   231
      </column>
antonio@735
   232
      <column name="PRICEACTUAL" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   233
        <default><![CDATA[0]]></default>
antonio@735
   234
        <onCreateDefault/>
antonio@735
   235
      </column>
juanpablo@1605
   236
      <column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   237
        <default/>
antonio@735
   238
        <onCreateDefault/>
antonio@735
   239
      </column>
antonio@735
   240
      <column name="BILLTO_UPC" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   241
        <default/>
antonio@735
   242
        <onCreateDefault/>
antonio@735
   243
      </column>
antonio@735
   244
      <column name="BPARTNERUPC" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   245
        <default/>
antonio@735
   246
        <onCreateDefault/>
antonio@735
   247
      </column>
antonio@735
   248
      <column name="C_BPARTNER_LOCATION_UPC" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   249
        <default/>
antonio@735
   250
        <onCreateDefault/>
antonio@735
   251
      </column>
antonio@735
   252
      <column name="DATEORDERED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   253
        <default/>
antonio@735
   254
        <onCreateDefault/>
antonio@735
   255
      </column>
antonio@735
   256
      <column name="DATEPROMISED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   257
        <default/>
antonio@735
   258
        <onCreateDefault/>
antonio@735
   259
      </column>
antonio@735
   260
      <column name="ORDER_REFERENCENO" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   261
        <default/>
antonio@735
   262
        <onCreateDefault/>
antonio@735
   263
      </column>
antonio@735
   264
      <column name="PAYMENTAMOUNT1" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   265
        <default><![CDATA[0]]></default>
antonio@735
   266
        <onCreateDefault/>
antonio@735
   267
      </column>
antonio@735
   268
      <column name="PAYMENTAMOUNT2" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   269
        <default><![CDATA[0]]></default>
antonio@735
   270
        <onCreateDefault/>
antonio@735
   271
      </column>
asier@3598
   272
      <column name="PAYMENTRULE1" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   273
        <default/>
antonio@735
   274
        <onCreateDefault/>
antonio@735
   275
      </column>
asier@3598
   276
      <column name="PAYMENTRULE2" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   277
        <default/>
antonio@735
   278
        <onCreateDefault/>
antonio@735
   279
      </column>
antonio@735
   280
      <column name="PERFORM_POST" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   281
        <default/>
antonio@735
   282
        <onCreateDefault/>
antonio@735
   283
      </column>
antonio@735
   284
      <column name="VENDOR_UPC" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   285
        <default/>
antonio@735
   286
        <onCreateDefault/>
antonio@735
   287
      </column>
sivaraman@8157
   288
      <column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
sivaraman@8157
   289
        <default/>
sivaraman@8157
   290
        <onCreateDefault/>
sivaraman@8157
   291
      </column>
sivaraman@8157
   292
      <column name="ATTRIBUTESETIDENT" primaryKey="false" required="false" type="NVARCHAR" size="100" autoIncrement="false">
sivaraman@8157
   293
        <default/>
sivaraman@8157
   294
        <onCreateDefault/>
sivaraman@8157
   295
      </column>
asier@5551
   296
      <foreign-key foreignTable="AD_CLIENT" name="I_ORDER_AD_CLIENT">
carlos@0
   297
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   298
      </foreign-key>
asier@5551
   299
      <foreign-key foreignTable="AD_ORG" name="I_ORDER_AD_ORG">
antonio@410
   300
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
antonio@410
   301
      </foreign-key>
asier@5551
   302
      <foreign-key foreignTable="AD_ORG" name="I_ORDER_AD_ORGTRX">
gorkaion@238
   303
        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
gorkaion@238
   304
      </foreign-key>
asier@5551
   305
      <foreign-key foreignTable="AD_USER" name="I_ORDER_AD_USER">
antonio@410
   306
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
adrian@170
   307
      </foreign-key>
asier@5551
   308
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="I_ORDER_BILLTO">
asier@5551
   309
        <reference local="BILLTO_ID" foreign="C_BPARTNER_LOCATION_ID"/>
carlos@0
   310
      </foreign-key>
asier@5551
   311
      <foreign-key foreignTable="C_ACTIVITY" name="I_ORDER_C_ACTIVITY">
carlos@0
   312
        <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
carlos@0
   313
      </foreign-key>
asier@5551
   314
      <foreign-key foreignTable="C_BPARTNER" name="I_ORDER_C_BPARTNER">
asier@5551
   315
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
asier@5551
   316
      </foreign-key>
asier@5551
   317
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="I_ORDER_C_BPARTNER_LOCATION">
adrian@170
   318
        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
adrian@170
   319
      </foreign-key>
asier@5551
   320
      <foreign-key foreignTable="C_CAMPAIGN" name="I_ORDER_C_CAMPAIGN">
carlos@0
   321
        <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
carlos@0
   322
      </foreign-key>
asier@5551
   323
      <foreign-key foreignTable="C_COUNTRY" name="I_ORDER_C_COUNTRY">
carlos@0
   324
        <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
carlos@0
   325
      </foreign-key>
asier@5551
   326
      <foreign-key foreignTable="C_CURRENCY" name="I_ORDER_C_CURRENCY">
carlos@0
   327
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
carlos@0
   328
      </foreign-key>
asier@5551
   329
      <foreign-key foreignTable="C_DOCTYPE" name="I_ORDER_C_DOCTYPE">
carlos@0
   330
        <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
carlos@0
   331
      </foreign-key>
asier@5551
   332
      <foreign-key foreignTable="C_LOCATION" name="I_ORDER_C_LOCATION">
carlos@0
   333
        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
carlos@0
   334
      </foreign-key>
asier@5551
   335
      <foreign-key foreignTable="C_ORDER" name="I_ORDER_C_ORDER">
antonio@410
   336
        <reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
antonio@410
   337
      </foreign-key>
asier@5551
   338
      <foreign-key foreignTable="C_ORDERLINE" name="I_ORDER_C_ORDERLINE">
gorkaion@238
   339
        <reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
gorkaion@238
   340
      </foreign-key>
asier@5551
   341
      <foreign-key foreignTable="C_PAYMENTTERM" name="I_ORDER_C_PAYMENTTERM">
carlos@0
   342
        <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
carlos@0
   343
      </foreign-key>
asier@5551
   344
      <foreign-key foreignTable="C_PROJECT" name="I_ORDER_C_PROJECT">
asier@5551
   345
        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
asier@5551
   346
      </foreign-key>
asier@5551
   347
      <foreign-key foreignTable="C_REGION" name="I_ORDER_C_REGION">
carlos@0
   348
        <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
carlos@0
   349
      </foreign-key>
asier@5551
   350
      <foreign-key foreignTable="C_TAX" name="I_ORDER_C_TAX">
carlos@0
   351
        <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
carlos@0
   352
      </foreign-key>
asier@5551
   353
      <foreign-key foreignTable="C_UOM" name="I_ORDER_C_UOM">
carlos@0
   354
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
carlos@0
   355
      </foreign-key>
sivaraman@8157
   356
      <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="I_ORDER_M_ATTRIBUTESETINST">
sivaraman@8157
   357
        <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
sivaraman@8157
   358
      </foreign-key>
asier@5551
   359
      <foreign-key foreignTable="M_PRICELIST" name="I_ORDER_M_PRICELIST">
carlos@0
   360
        <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
carlos@0
   361
      </foreign-key>
asier@5551
   362
      <foreign-key foreignTable="M_PRODUCT" name="I_ORDER_M_PRODUCT">
carlos@0
   363
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
carlos@0
   364
      </foreign-key>
asier@5551
   365
      <foreign-key foreignTable="M_SHIPPER" name="I_ORDER_M_SHIPPER">
carlos@0
   366
        <reference local="M_SHIPPER_ID" foreign="M_SHIPPER_ID"/>
carlos@0
   367
      </foreign-key>
asier@5551
   368
      <foreign-key foreignTable="M_WAREHOUSE" name="I_ORDER_M_WAREHOUSE">
carlos@0
   369
        <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
carlos@0
   370
      </foreign-key>
asier@5551
   371
      <foreign-key foreignTable="AD_USER" name="I_ORDER_SALESREP">
asier@5551
   372
        <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
adrian@170
   373
      </foreign-key>
carlos@0
   374
    </table>
adrian@94
   375
  </database>