src-db/database/model/tables/I_GLJOURNAL.xml
author Salvador Zapata <salvador.zapata@openbravo.com>
Thu, 07 Oct 2010 16:32:29 +0200
changeset 8504 802eae4a434d
parent 6489 93dda800a37d
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_GLJOURNAL">
carlos@0
     3
    <table name="I_GLJOURNAL" primaryKey="I_GLJOURNAL_KEY">
juanpablo@1605
     4
      <column name="I_GLJOURNAL_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>
antonio@735
    12
      <column name="CLIENTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
juanpablo@1605
    16
      <column name="AD_ORGDOC_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="GL_JOURNALBATCH_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="BATCHDOCUMENTNO" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
antonio@735
    64
      <column name="BATCHDESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="GL_JOURNAL_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="JOURNALDOCUMENTNO" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
asier@2586
    76
      <column name="POSTINGTYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
juanpablo@1605
    80
      <column name="C_ACCTSCHEMA_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="ACCTSCHEMANAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    85
        <default/>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
juanpablo@1605
    88
      <column name="C_DOCTYPE_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="DOCTYPENAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    93
        <default/>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
juanpablo@1605
    96
      <column name="GL_CATEGORY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    97
        <default/>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
antonio@735
   100
      <column name="CATEGORYNAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   101
        <default/>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
juanpablo@1605
   104
      <column name="C_PERIOD_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   105
        <default/>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
juanpablo@1605
   108
      <column name="GL_BUDGET_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   109
        <default/>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
juanpablo@1605
   112
      <column name="GL_JOURNALLINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   113
        <default/>
antonio@735
   114
        <onCreateDefault/>
antonio@735
   115
      </column>
antonio@735
   116
      <column name="LINE" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   117
        <default/>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
antonio@735
   120
      <column name="DATEACCT" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   121
        <default/>
antonio@735
   122
        <onCreateDefault/>
antonio@735
   123
      </column>
antonio@735
   124
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   125
        <default/>
antonio@735
   126
        <onCreateDefault/>
antonio@735
   127
      </column>
antonio@735
   128
      <column name="AMTSOURCEDR" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   129
        <default><![CDATA[0]]></default>
antonio@735
   130
        <onCreateDefault/>
antonio@735
   131
      </column>
antonio@735
   132
      <column name="AMTACCTDR" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   133
        <default><![CDATA[0]]></default>
antonio@735
   134
        <onCreateDefault/>
antonio@735
   135
      </column>
antonio@735
   136
      <column name="AMTSOURCECR" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   137
        <default><![CDATA[0]]></default>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
antonio@735
   140
      <column name="AMTACCTCR" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   141
        <default><![CDATA[0]]></default>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
juanpablo@1605
   144
      <column name="C_CURRENCY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   145
        <default/>
antonio@735
   146
        <onCreateDefault/>
antonio@735
   147
      </column>
antonio@735
   148
      <column name="ISO_CODE" primaryKey="false" required="false" type="CHAR" size="3" autoIncrement="false">
antonio@735
   149
        <default/>
antonio@735
   150
        <onCreateDefault/>
antonio@735
   151
      </column>
asier@2586
   152
      <column name="CURRENCYRATETYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   153
        <default/>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
antonio@735
   156
      <column name="CURRENCYRATE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   157
        <default><![CDATA[0]]></default>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
juanpablo@1605
   160
      <column name="C_UOM_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="QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   165
        <default><![CDATA[0]]></default>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
juanpablo@1605
   168
      <column name="C_VALIDCOMBINATION_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="ORGVALUE" 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="AD_ORG_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   177
        <default/>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
juanpablo@1605
   180
      <column name="ACCOUNT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   181
        <default/>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
antonio@735
   184
      <column name="ACCOUNTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
juanpablo@1605
   188
      <column name="AD_ORGTRX_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="ORGTRXVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   193
        <default/>
antonio@735
   194
        <onCreateDefault/>
antonio@735
   195
      </column>
juanpablo@1605
   196
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   197
        <default/>
antonio@735
   198
        <onCreateDefault/>
antonio@735
   199
      </column>
antonio@735
   200
      <column name="PRODUCTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   201
        <default/>
antonio@735
   202
        <onCreateDefault/>
antonio@735
   203
      </column>
antonio@735
   204
      <column name="UPC" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
antonio@735
   205
        <default/>
antonio@735
   206
        <onCreateDefault/>
antonio@735
   207
      </column>
antonio@735
   208
      <column name="SKU" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
antonio@735
   209
        <default/>
antonio@735
   210
        <onCreateDefault/>
antonio@735
   211
      </column>
juanpablo@1605
   212
      <column name="C_BPARTNER_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="BPARTNERVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   217
        <default/>
antonio@735
   218
        <onCreateDefault/>
antonio@735
   219
      </column>
juanpablo@1605
   220
      <column name="C_PROJECT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   221
        <default/>
antonio@735
   222
        <onCreateDefault/>
antonio@735
   223
      </column>
antonio@735
   224
      <column name="PROJECTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   225
        <default/>
antonio@735
   226
        <onCreateDefault/>
antonio@735
   227
      </column>
juanpablo@1605
   228
      <column name="C_LOCTO_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   229
        <default/>
antonio@735
   230
        <onCreateDefault/>
antonio@735
   231
      </column>
juanpablo@1605
   232
      <column name="C_LOCFROM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   233
        <default/>
antonio@735
   234
        <onCreateDefault/>
antonio@735
   235
      </column>
juanpablo@1605
   236
      <column name="C_SALESREGION_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="C_ACTIVITY_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="C_CAMPAIGN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   245
        <default/>
antonio@735
   246
        <onCreateDefault/>
antonio@735
   247
      </column>
juanpablo@1605
   248
      <column name="USER1_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   249
        <default/>
antonio@735
   250
        <onCreateDefault/>
antonio@735
   251
      </column>
juanpablo@1605
   252
      <column name="USER2_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   253
        <default/>
antonio@735
   254
        <onCreateDefault/>
antonio@735
   255
      </column>
asier@5551
   256
      <foreign-key foreignTable="C_ELEMENTVALUE" name="I_GLJOURNAL_ACCOUNT">
asier@5551
   257
        <reference local="ACCOUNT_ID" foreign="C_ELEMENTVALUE_ID"/>
asier@5551
   258
      </foreign-key>
asier@5551
   259
      <foreign-key foreignTable="AD_CLIENT" name="I_GLJOURNAL_AD_CLIENT">
carlos@0
   260
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   261
      </foreign-key>
asier@5551
   262
      <foreign-key foreignTable="AD_ORG" name="I_GLJOURNAL_AD_ORG">
antonio@410
   263
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
antonio@410
   264
      </foreign-key>
asier@5551
   265
      <foreign-key foreignTable="AD_ORG" name="I_GLJOURNAL_AD_ORGDOC">
carlos@0
   266
        <reference local="AD_ORGDOC_ID" foreign="AD_ORG_ID"/>
carlos@0
   267
      </foreign-key>
asier@5551
   268
      <foreign-key foreignTable="AD_ORG" name="I_GLJOURNAL_AD_ORGTRX">
gorkaion@238
   269
        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
gorkaion@238
   270
      </foreign-key>
asier@5551
   271
      <foreign-key foreignTable="C_ACCTSCHEMA" name="I_GLJOURNAL_C_ACCTSCHEMA">
carlos@0
   272
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
carlos@0
   273
      </foreign-key>
asier@5551
   274
      <foreign-key foreignTable="C_ACTIVITY" name="I_GLJOURNAL_C_ACTIVITY">
carlos@0
   275
        <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
carlos@0
   276
      </foreign-key>
asier@5551
   277
      <foreign-key foreignTable="C_BPARTNER" name="I_GLJOURNAL_C_BPARTNER">
carlos@0
   278
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   279
      </foreign-key>
asier@5551
   280
      <foreign-key foreignTable="C_CAMPAIGN" name="I_GLJOURNAL_C_CAMPAIGN">
carlos@0
   281
        <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
carlos@0
   282
      </foreign-key>
asier@5551
   283
      <foreign-key foreignTable="C_CURRENCY" name="I_GLJOURNAL_C_CURRENCY">
carlos@0
   284
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
carlos@0
   285
      </foreign-key>
asier@5551
   286
      <foreign-key foreignTable="C_DOCTYPE" name="I_GLJOURNAL_C_DOCTYPE">
carlos@0
   287
        <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
carlos@0
   288
      </foreign-key>
asier@5551
   289
      <foreign-key foreignTable="C_LOCATION" name="I_GLJOURNAL_C_LOCFROM">
asier@5551
   290
        <reference local="C_LOCFROM_ID" foreign="C_LOCATION_ID"/>
carlos@0
   291
      </foreign-key>
asier@5551
   292
      <foreign-key foreignTable="C_LOCATION" name="I_GLJOURNAL_C_LOCTO">
asier@5551
   293
        <reference local="C_LOCTO_ID" foreign="C_LOCATION_ID"/>
asier@5551
   294
      </foreign-key>
asier@5551
   295
      <foreign-key foreignTable="C_PERIOD" name="I_GLJOURNAL_C_PERIOD">
asier@5551
   296
        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
asier@5551
   297
      </foreign-key>
asier@5551
   298
      <foreign-key foreignTable="C_PROJECT" name="I_GLJOURNAL_C_PROJECT">
asier@5551
   299
        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
asier@5551
   300
      </foreign-key>
asier@5551
   301
      <foreign-key foreignTable="C_SALESREGION" name="I_GLJOURNAL_C_SALESREGION">
asier@5551
   302
        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
asier@5551
   303
      </foreign-key>
asier@5551
   304
      <foreign-key foreignTable="C_UOM" name="I_GLJOURNAL_C_UOM">
asier@5551
   305
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
asier@5551
   306
      </foreign-key>
asier@5551
   307
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="I_GLJOURNAL_C_VALIDCOMBINATION">
asier@5551
   308
        <reference local="C_VALIDCOMBINATION_ID" foreign="C_VALIDCOMBINATION_ID"/>
asier@5551
   309
      </foreign-key>
asier@5551
   310
      <foreign-key foreignTable="GL_CATEGORY" name="I_GLJOURNAL_GL_CATEGORY">
asier@5551
   311
        <reference local="GL_CATEGORY_ID" foreign="GL_CATEGORY_ID"/>
asier@5551
   312
      </foreign-key>
asier@5551
   313
      <foreign-key foreignTable="GL_JOURNAL" name="I_GLJOURNAL_GL_JOURNAL">
asier@5551
   314
        <reference local="GL_JOURNAL_ID" foreign="GL_JOURNAL_ID"/>
asier@5551
   315
      </foreign-key>
asier@5551
   316
      <foreign-key foreignTable="GL_JOURNALBATCH" name="I_GLJOURNAL_GL_JOURNALBATCH">
asier@5551
   317
        <reference local="GL_JOURNALBATCH_ID" foreign="GL_JOURNALBATCH_ID"/>
asier@5551
   318
      </foreign-key>
asier@5551
   319
      <foreign-key foreignTable="GL_JOURNALLINE" name="I_GLJOURNAL_GL_JOURNALLINE">
asier@5551
   320
        <reference local="GL_JOURNALLINE_ID" foreign="GL_JOURNALLINE_ID"/>
asier@5551
   321
      </foreign-key>
asier@5551
   322
      <foreign-key foreignTable="M_PRODUCT" name="I_GLJOURNAL_M_PRODUCT">
asier@5551
   323
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
asier@5551
   324
      </foreign-key>
carlos@0
   325
    </table>
adrian@94
   326
  </database>