src-db/database/model/tables/C_ORDER.xml
author RM packaging bot <staff.rm@openbravo.com>
Tue, 20 Feb 2018 05:47:07 +0000
changeset 33488 688fcca7af57
parent 33477 9b96ff21af72
child 33489 f1d8751dcbf9
permissions -rw-r--r--
Merge temporary head for 3.0PR17Q4.1
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE C_ORDER">
carlos@0
     3
    <table name="C_ORDER" primaryKey="C_ORDER_KEY">
juanpablo@1605
     4
      <column name="C_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="true" 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="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
antonio@735
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    17
        <default><![CDATA[Y]]></default>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
antonio@735
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    21
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
antonio@735
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    29
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="UPDATEDBY" 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="ISSOTRX" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    37
        <default><![CDATA[Y]]></default>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="DOCUMENTNO" primaryKey="false" required="true" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
asier@2586
    44
      <column name="DOCSTATUS" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    45
        <default/>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
asier@2586
    48
      <column name="DOCACTION" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
antonio@735
    52
      <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
antonio@735
    56
      <column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    57
        <default><![CDATA[N]]></default>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
juanpablo@1605
    60
      <column name="C_DOCTYPE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="C_DOCTYPETARGET_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
antonio@735
    68
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="ISDELIVERED" 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="ISINVOICED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    77
        <default><![CDATA[N]]></default>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
antonio@735
    80
      <column name="ISPRINTED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    81
        <default><![CDATA[N]]></default>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
antonio@735
    84
      <column name="ISSELECTED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    85
        <default><![CDATA[N]]></default>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
juanpablo@1605
    88
      <column name="SALESREP_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    89
        <default/>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
antonio@735
    92
      <column name="DATEORDERED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    93
        <default/>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
antonio@735
    96
      <column name="DATEPROMISED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    97
        <default/>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
antonio@735
   100
      <column name="DATEPRINTED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   101
        <default/>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
antonio@735
   104
      <column name="DATEACCT" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   105
        <default/>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
juanpablo@1605
   108
      <column name="C_BPARTNER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   109
        <default/>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
juanpablo@1605
   112
      <column name="BILLTO_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   113
        <default/>
antonio@735
   114
        <onCreateDefault/>
antonio@735
   115
      </column>
juanpablo@1605
   116
      <column name="C_BPARTNER_LOCATION_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   117
        <default/>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
antonio@735
   120
      <column name="POREFERENCE" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
antonio@735
   121
        <default/>
antonio@735
   122
        <onCreateDefault/>
antonio@735
   123
      </column>
antonio@735
   124
      <column name="ISDISCOUNTPRINTED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   125
        <default><![CDATA[Y]]></default>
antonio@735
   126
        <onCreateDefault/>
antonio@735
   127
      </column>
juanpablo@1605
   128
      <column name="C_CURRENCY_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   129
        <default/>
antonio@735
   130
        <onCreateDefault/>
antonio@735
   131
      </column>
asier@2586
   132
      <column name="PAYMENTRULE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   133
        <default/>
antonio@735
   134
        <onCreateDefault/>
antonio@735
   135
      </column>
juanpablo@1605
   136
      <column name="C_PAYMENTTERM_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   137
        <default/>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
asier@2586
   140
      <column name="INVOICERULE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   141
        <default/>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
asier@2586
   144
      <column name="DELIVERYRULE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   145
        <default/>
antonio@735
   146
        <onCreateDefault/>
antonio@735
   147
      </column>
asier@2586
   148
      <column name="FREIGHTCOSTRULE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   149
        <default/>
antonio@735
   150
        <onCreateDefault/>
antonio@735
   151
      </column>
antonio@735
   152
      <column name="FREIGHTAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   153
        <default><![CDATA[0]]></default>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
asier@2586
   156
      <column name="DELIVERYVIARULE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   157
        <default/>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
juanpablo@1605
   160
      <column name="M_SHIPPER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   161
        <default/>
antonio@735
   162
        <onCreateDefault/>
antonio@735
   163
      </column>
juanpablo@1605
   164
      <column name="C_CHARGE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   165
        <default/>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
antonio@735
   168
      <column name="CHARGEAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   169
        <default><![CDATA[0]]></default>
antonio@735
   170
        <onCreateDefault/>
antonio@735
   171
      </column>
asier@2586
   172
      <column name="PRIORITYRULE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   173
        <default/>
antonio@735
   174
        <onCreateDefault/>
antonio@735
   175
      </column>
antonio@735
   176
      <column name="TOTALLINES" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
   177
        <default><![CDATA[0]]></default>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
antonio@735
   180
      <column name="GRANDTOTAL" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
   181
        <default><![CDATA[0]]></default>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
juanpablo@1605
   184
      <column name="M_WAREHOUSE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
juanpablo@1605
   188
      <column name="M_PRICELIST_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   189
        <default/>
antonio@735
   190
        <onCreateDefault/>
antonio@735
   191
      </column>
antonio@735
   192
      <column name="ISTAXINCLUDED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   193
        <default><![CDATA[N]]></default>
antonio@735
   194
        <onCreateDefault/>
antonio@735
   195
      </column>
juanpablo@1605
   196
      <column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   197
        <default/>
antonio@735
   198
        <onCreateDefault/>
antonio@735
   199
      </column>
juanpablo@1605
   200
      <column name="C_PROJECT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   201
        <default/>
antonio@735
   202
        <onCreateDefault/>
antonio@735
   203
      </column>
juanpablo@1605
   204
      <column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   205
        <default/>
antonio@735
   206
        <onCreateDefault/>
antonio@735
   207
      </column>
asier@2586
   208
      <column name="POSTED" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   209
        <default><![CDATA[N]]></default>
antonio@735
   210
        <onCreateDefault/>
antonio@735
   211
      </column>
juanpablo@1605
   212
      <column name="AD_USER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   213
        <default/>
antonio@735
   214
        <onCreateDefault/>
antonio@735
   215
      </column>
antonio@735
   216
      <column name="COPYFROM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   217
        <default/>
antonio@735
   218
        <onCreateDefault/>
antonio@735
   219
      </column>
juanpablo@1605
   220
      <column name="DROPSHIP_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   221
        <default/>
antonio@735
   222
        <onCreateDefault/>
antonio@735
   223
      </column>
juanpablo@1605
   224
      <column name="DROPSHIP_LOCATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   225
        <default/>
antonio@735
   226
        <onCreateDefault/>
antonio@735
   227
      </column>
juanpablo@1605
   228
      <column name="DROPSHIP_USER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   229
        <default/>
antonio@735
   230
        <onCreateDefault/>
antonio@735
   231
      </column>
antonio@735
   232
      <column name="ISSELFSERVICE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   233
        <default><![CDATA[N]]></default>
antonio@735
   234
        <onCreateDefault/>
antonio@735
   235
      </column>
juanpablo@1605
   236
      <column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   237
        <default/>
antonio@735
   238
        <onCreateDefault/>
antonio@735
   239
      </column>
juanpablo@1605
   240
      <column name="USER1_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   241
        <default/>
antonio@735
   242
        <onCreateDefault/>
antonio@735
   243
      </column>
juanpablo@1605
   244
      <column name="USER2_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   245
        <default/>
antonio@735
   246
        <onCreateDefault/>
antonio@735
   247
      </column>
antonio@735
   248
      <column name="DELIVERYNOTES" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
antonio@735
   249
        <default/>
antonio@735
   250
        <onCreateDefault/>
antonio@735
   251
      </column>
juanpablo@1605
   252
      <column name="C_INCOTERMS_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   253
        <default/>
antonio@735
   254
        <onCreateDefault/>
antonio@735
   255
      </column>
antonio@735
   256
      <column name="INCOTERMSDESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   257
        <default/>
antonio@735
   258
        <onCreateDefault/>
antonio@735
   259
      </column>
antonio@735
   260
      <column name="GENERATETEMPLATE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   261
        <default/>
antonio@735
   262
        <onCreateDefault/>
antonio@735
   263
      </column>
juanpablo@1605
   264
      <column name="DELIVERY_LOCATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   265
        <default/>
antonio@735
   266
        <onCreateDefault/>
antonio@735
   267
      </column>
antonio@735
   268
      <column name="COPYFROMPO" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   269
        <default/>
antonio@735
   270
        <onCreateDefault/>
antonio@735
   271
      </column>
gorkaion@6874
   272
      <column name="FIN_PAYMENTMETHOD_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6874
   273
        <default/>
gorkaion@6874
   274
        <onCreateDefault/>
gorkaion@6874
   275
      </column>
mikel@9938
   276
      <column name="FIN_PAYMENT_PRIORITY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
mikel@9938
   277
        <default/>
mikel@9938
   278
        <onCreateDefault/>
mikel@9938
   279
      </column>
gorkaion@14378
   280
      <column name="RM_PICKFROMSHIPMENT" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@14378
   281
        <default/>
gorkaion@14378
   282
        <onCreateDefault/>
gorkaion@14378
   283
      </column>
gorkaion@14378
   284
      <column name="RM_RECEIVEMATERIALS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@14378
   285
        <default/>
gorkaion@14378
   286
        <onCreateDefault/>
gorkaion@14378
   287
      </column>
gorkaion@14407
   288
      <column name="RM_CREATEINVOICE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
gorkaion@14378
   289
        <default/>
gorkaion@14378
   290
        <onCreateDefault/>
gorkaion@14378
   291
      </column>
pablo@14549
   292
      <column name="C_RETURN_REASON_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
pablo@14549
   293
        <default/>
pablo@14549
   294
        <onCreateDefault/>
pablo@14549
   295
      </column>
gorkaion@16723
   296
      <column name="RM_ADDORPHANLINE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@16723
   297
        <default/>
gorkaion@16723
   298
        <onCreateDefault/>
gorkaion@16723
   299
      </column>
pandeeswari@18809
   300
      <column name="A_ASSET_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
pandeeswari@18809
   301
        <default/>
pandeeswari@18809
   302
        <onCreateDefault/>
pandeeswari@18809
   303
      </column>
asier@18337
   304
      <column name="CALCULATE_PROMOTIONS" primaryKey="false" required="false" type="VARCHAR" size="1" autoIncrement="false">
asier@18337
   305
        <default/>
asier@18337
   306
        <onCreateDefault/>
asier@18337
   307
      </column>
pandeeswari@18809
   308
      <column name="C_COSTCENTER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
pandeeswari@18809
   309
        <default/>
pandeeswari@18809
   310
        <onCreateDefault/>
pandeeswari@18809
   311
      </column>
david@18487
   312
      <column name="CONVERTQUOTATION" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
david@18487
   313
        <default/>
david@18487
   314
        <onCreateDefault/>
david@18487
   315
      </column>
david@18487
   316
      <column name="C_REJECT_REASON_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
david@18487
   317
        <default/>
david@18487
   318
        <onCreateDefault/>
david@18487
   319
      </column>
david@18487
   320
      <column name="VALIDUNTIL" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
david@18487
   321
        <default/>
david@18487
   322
        <onCreateDefault/>
david@18487
   323
      </column>
david@18487
   324
      <column name="QUOTATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
david@18487
   325
        <default/>
david@18487
   326
        <onCreateDefault/>
david@18487
   327
      </column>
gorkaion@18693
   328
      <column name="SO_RES_STATUS" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
gorkaion@18693
   329
        <default/>
gorkaion@18693
   330
        <onCreateDefault/>
gorkaion@18693
   331
      </column>
gorkaion@20952
   332
      <column name="CREATE_POLINES" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@20952
   333
        <default><![CDATA[N]]></default>
gorkaion@20952
   334
        <onCreateDefault/>
gorkaion@20952
   335
      </column>
victor@21513
   336
      <column name="ISCASHVAT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
victor@21513
   337
        <default><![CDATA[N]]></default>
victor@21513
   338
        <onCreateDefault/>
victor@21513
   339
      </column>
sandra@22297
   340
      <column name="RM_PICKFROMRECEIPT" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
sandra@22297
   341
        <default/>
sandra@22297
   342
        <onCreateDefault/>
sandra@22297
   343
      </column>
ander@30074
   344
      <column name="CANCELANDREPLACE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
ander@30074
   345
        <default/>
ander@30074
   346
        <onCreateDefault/>
ander@30074
   347
      </column>
ander@30074
   348
      <column name="CONFIRMCANCELANDREPLACE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
ander@30074
   349
        <default/>
ander@30074
   350
        <onCreateDefault/>
ander@30074
   351
      </column>
ander@30089
   352
      <column name="CANCELLEDORDER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
ander@30075
   353
        <default/>
ander@30075
   354
        <onCreateDefault/>
ander@30075
   355
      </column>
ander@30089
   356
      <column name="REPLACEDORDER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
ander@30075
   357
        <default/>
ander@30075
   358
        <onCreateDefault/>
ander@30075
   359
      </column>
unai@30111
   360
      <column name="ISCANCELLED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
unai@30101
   361
        <default><![CDATA[N]]></default>
unai@30101
   362
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
unai@30101
   363
      </column>
unai@30149
   364
      <column name="REPLACEMENTORDER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
unai@30149
   365
        <default/>
unai@30149
   366
        <onCreateDefault/>
unai@30149
   367
      </column>
asier@5551
   368
      <foreign-key foreignTable="C_DOCTYPE" name="C_DOCTYPE_CORDER">
asier@5551
   369
        <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
asier@5551
   370
      </foreign-key>
pandeeswari@18809
   371
      <foreign-key foreignTable="A_ASSET" name="C_ORDER_A_ASSET">
pandeeswari@18809
   372
        <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
pandeeswari@18809
   373
      </foreign-key>
asier@5551
   374
      <foreign-key foreignTable="AD_CLIENT" name="C_ORDER_AD_CLIENT">
carlos@0
   375
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   376
      </foreign-key>
asier@5551
   377
      <foreign-key foreignTable="AD_ORG" name="C_ORDER_AD_ORG">
carlos@0
   378
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
   379
      </foreign-key>
asier@5551
   380
      <foreign-key foreignTable="AD_ORG" name="C_ORDER_AD_ORGTRX">
antonio@410
   381
        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
carlos@0
   382
      </foreign-key>
asier@5551
   383
      <foreign-key foreignTable="AD_USER" name="C_ORDER_AD_USER">
carlos@0
   384
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
carlos@0
   385
      </foreign-key>
asier@5551
   386
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_ORDER_BILLTO">
asier@5551
   387
        <reference local="BILLTO_ID" foreign="C_BPARTNER_LOCATION_ID"/>
carlos@0
   388
      </foreign-key>
asier@5551
   389
      <foreign-key foreignTable="C_ACTIVITY" name="C_ORDER_C_ACTIVITY">
asier@5551
   390
        <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
antonio@410
   391
      </foreign-key>
asier@5551
   392
      <foreign-key foreignTable="C_BPARTNER" name="C_ORDER_C_BPARTNER">
asier@5551
   393
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
antonio@410
   394
      </foreign-key>
martin@2771
   395
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_ORDER_C_BPARTNER_LOCATION">
martin@2771
   396
        <reference local="DELIVERY_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
martin@2771
   397
      </foreign-key>
asier@5551
   398
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_ORDER_C_BPARTNER_LOCATION1">
asier@5551
   399
        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
carlos@0
   400
      </foreign-key>
asier@5551
   401
      <foreign-key foreignTable="C_CAMPAIGN" name="C_ORDER_C_CAMPAIGN">
asier@5551
   402
        <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
antonio@410
   403
      </foreign-key>
asier@5551
   404
      <foreign-key foreignTable="C_CHARGE" name="C_ORDER_C_CHARGE">
asier@5551
   405
        <reference local="C_CHARGE_ID" foreign="C_CHARGE_ID"/>
asier@5551
   406
      </foreign-key>
pandeeswari@18809
   407
      <foreign-key foreignTable="C_COSTCENTER" name="C_ORDER_C_COSTCENTER">
pandeeswari@18809
   408
        <reference local="C_COSTCENTER_ID" foreign="C_COSTCENTER_ID"/>
pandeeswari@18809
   409
      </foreign-key>
asier@5551
   410
      <foreign-key foreignTable="C_CURRENCY" name="C_ORDER_C_CURRENCY">
asier@5551
   411
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
asier@5551
   412
      </foreign-key>
asier@5551
   413
      <foreign-key foreignTable="C_DOCTYPE" name="C_ORDER_C_DOCTYPETARGET">
asier@5551
   414
        <reference local="C_DOCTYPETARGET_ID" foreign="C_DOCTYPE_ID"/>
asier@5551
   415
      </foreign-key>
asier@5551
   416
      <foreign-key foreignTable="C_INCOTERMS" name="C_ORDER_C_INCOTERMS">
asier@5551
   417
        <reference local="C_INCOTERMS_ID" foreign="C_INCOTERMS_ID"/>
asier@5551
   418
      </foreign-key>
asier@5551
   419
      <foreign-key foreignTable="C_PAYMENTTERM" name="C_ORDER_C_PAYMENTTERM">
asier@5551
   420
        <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
asier@5551
   421
      </foreign-key>
asier@5551
   422
      <foreign-key foreignTable="C_PROJECT" name="C_ORDER_C_PROJECT">
asier@5551
   423
        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
asier@5551
   424
      </foreign-key>
pablo@14549
   425
      <foreign-key foreignTable="C_RETURN_REASON" name="C_ORDER_C_RETURN_REASON">
pablo@14549
   426
        <reference local="C_RETURN_REASON_ID" foreign="C_RETURN_REASON_ID"/>
pablo@14549
   427
      </foreign-key>
asier@5551
   428
      <foreign-key foreignTable="C_BPARTNER" name="C_ORDER_DROPSHIP_BPARTNER">
carlos@0
   429
        <reference local="DROPSHIP_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   430
      </foreign-key>
asier@5551
   431
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_ORDER_DROPSHIP_LOCATION">
adrian@170
   432
        <reference local="DROPSHIP_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
carlos@0
   433
      </foreign-key>
asier@5551
   434
      <foreign-key foreignTable="AD_USER" name="C_ORDER_DROPSHIP_USER">
asier@5551
   435
        <reference local="DROPSHIP_USER_ID" foreign="AD_USER_ID"/>
carlos@0
   436
      </foreign-key>
gorkaion@6874
   437
      <foreign-key foreignTable="FIN_PAYMENTMETHOD" name="C_ORDER_FIN_PAYMENTMETHOD">
gorkaion@6874
   438
        <reference local="FIN_PAYMENTMETHOD_ID" foreign="FIN_PAYMENTMETHOD_ID"/>
gorkaion@6874
   439
      </foreign-key>
asier@5551
   440
      <foreign-key foreignTable="M_PRICELIST" name="C_ORDER_M_PRICELIST">
carlos@0
   441
        <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
carlos@0
   442
      </foreign-key>
asier@5551
   443
      <foreign-key foreignTable="M_SHIPPER" name="C_ORDER_M_SHIPPER">
carlos@0
   444
        <reference local="M_SHIPPER_ID" foreign="M_SHIPPER_ID"/>
carlos@0
   445
      </foreign-key>
asier@5551
   446
      <foreign-key foreignTable="M_WAREHOUSE" name="C_ORDER_M_WAREHOUSE">
carlos@0
   447
        <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
carlos@0
   448
      </foreign-key>
david@18487
   449
      <foreign-key foreignTable="C_ORDER" name="C_ORDER_QUOTATION">
david@18487
   450
        <reference local="QUOTATION_ID" foreign="C_ORDER_ID"/>
david@18487
   451
      </foreign-key>
david@18487
   452
      <foreign-key foreignTable="C_REJECT_REASON" name="C_ORDER_REJECT_REASON">
david@18487
   453
        <reference local="C_REJECT_REASON_ID" foreign="C_REJECT_REASON_ID"/>
david@18487
   454
      </foreign-key>
asier@5551
   455
      <foreign-key foreignTable="AD_USER" name="C_ORDER_SALESREP">
asier@5551
   456
        <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
asier@5551
   457
      </foreign-key>
eduardo@18847
   458
      <foreign-key foreignTable="USER1" name="C_ORDER_USER1">
eduardo@18847
   459
        <reference local="USER1_ID" foreign="USER1_ID"/>
eduardo@18847
   460
      </foreign-key>
eduardo@18848
   461
      <foreign-key foreignTable="USER2" name="C_ORDER_USER2">
eduardo@18848
   462
        <reference local="USER2_ID" foreign="USER2_ID"/>
eduardo@18848
   463
      </foreign-key>
mikel@9938
   464
      <foreign-key foreignTable="FIN_PAYMENT_PRIORITY" name="FIN_ORDER_PAYMENT_PRIORITY">
mikel@9938
   465
        <reference local="FIN_PAYMENT_PRIORITY_ID" foreign="FIN_PAYMENT_PRIORITY_ID"/>
mikel@9938
   466
      </foreign-key>
adrian@94
   467
      <index name="C_ORDER_BPARTNER" unique="false">
carlos@0
   468
        <index-column name="C_BPARTNER_ID"/>
carlos@0
   469
      </index>
pablo@14552
   470
      <index name="C_ORDER_C_RETURN_REASON" unique="false">
pablo@14552
   471
        <index-column name="C_RETURN_REASON_ID"/>
victor@31556
   472
        <whereClause><![CDATA[C_RETURN_REASON_ID IS NOT NULL]]></whereClause>
pablo@14552
   473
      </index>
adrian@170
   474
      <index name="C_ORDER_CLIENT_ORG_DATE_DOCNO" unique="false">
adrian@170
   475
        <index-column name="AD_CLIENT_ID"/>
adrian@170
   476
        <index-column name="AD_ORG_ID"/>
adrian@170
   477
        <index-column name="DATEORDERED"/>
adrian@170
   478
        <index-column name="DOCUMENTNO"/>
adrian@170
   479
      </index>
sandra@28282
   480
      <index name="C_ORDER_DATEORDERED_ID" unique="false">
sandra@28282
   481
        <index-column name="DATEORDERED"/>
sandra@28282
   482
        <index-column name="C_ORDER_ID"/>
sandra@28282
   483
      </index>
adrian@94
   484
      <index name="C_ORDER_DOCNO" unique="false">
carlos@0
   485
        <index-column name="DOCUMENTNO"/>
carlos@0
   486
      </index>
sandra@28282
   487
      <index name="C_ORDER_DOCUMENTNO_ID" unique="false">
sandra@28282
   488
        <index-column name="DOCUMENTNO"/>
sandra@28282
   489
        <index-column name="C_ORDER_ID"/>
sandra@28282
   490
      </index>
atul@30309
   491
      <index name="C_ORDER_ISSELECTED" unique="false">
atul@30309
   492
        <index-column name="ISSELECTED"/>
atul@30309
   493
      </index>
alvaro@27393
   494
      <index name="C_ORDER_POSTED" unique="false">
alvaro@27393
   495
        <index-column name="POSTED"/>
alvaro@27393
   496
      </index>
adrian@94
   497
      <index name="C_ORDER_UPDATED" unique="false">
carlos@0
   498
        <index-column name="UPDATED"/>
carlos@0
   499
      </index>
stefan@8505
   500
      <check name="C_ORDER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
unai@30111
   501
      <check name="C_ORDER_ISCANCELANDREPLA_CHECK"><![CDATA[ISCANCELLED IN ('Y', 'N')]]></check>
victor@21513
   502
      <check name="C_ORDER_ISCASHVAT_CH"><![CDATA[ISCASHVAT IN ('Y', 'N')]]></check>
stefan@8505
   503
      <check name="C_ORDER_ISDELIVERED_CHECK"><![CDATA[ISDELIVERED IN ('Y', 'N')]]></check>
stefan@8505
   504
      <check name="C_ORDER_ISDISCOUNTPRINTED_CHK"><![CDATA[ISDISCOUNTPRINTED IN ('Y', 'N')]]></check>
stefan@8505
   505
      <check name="C_ORDER_ISINVOICED_CHECK"><![CDATA[ISINVOICED IN ('Y', 'N')]]></check>
stefan@8505
   506
      <check name="C_ORDER_ISPRINTED_CHECK"><![CDATA[ISPRINTED IN ('Y', 'N')]]></check>
stefan@8505
   507
      <check name="C_ORDER_ISSELECTED_CHECK"><![CDATA[ISSELECTED IN ('Y', 'N')]]></check>
stefan@8505
   508
      <check name="C_ORDER_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
stefan@8505
   509
      <check name="C_ORDER_ISTAXINCLUDED_CHECK"><![CDATA[ISTAXINCLUDED IN ('Y', 'N')]]></check>
stefan@8505
   510
      <check name="C_ORDER_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
carlos@0
   511
    </table>
adrian@94
   512
  </database>