src-db/database/model/tables/FIN_PAYMENT_SCHEDULEDETAIL.xml
author Víctor Martínez Romanos <victor.martinez@openbravo.com>
Wed, 29 Jun 2011 10:31:43 +0200
changeset 12995 7640a29608bc
parent 7327 a68108a26adc
child 13801 72b43cae0aef
permissions -rw-r--r--
Fixed bug 17801: Void Payments in Awaiting Execution status
When a payment is in awaiting execution status, the user should be able to void it.
In this case the details related invoices or orders should be canceled.
The next time the user adds a payment to an invoice or an order, the suggested amount
will be all the pending amount to be paid, without taking into account the previously canceled details.
gorkaion@6824
     1
<?xml version="1.0"?>
gorkaion@6824
     2
  <database name="TABLE FIN_PAYMENT_SCHEDULEDETAIL">
gorkaion@6824
     3
    <table name="FIN_PAYMENT_SCHEDULEDETAIL" primaryKey="FIN_PAYMENT_SCHEDULEDETAIL_KEY">
gorkaion@6824
     4
      <column name="FIN_PAYMENT_SCHEDULEDETAIL_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
     5
        <default/>
gorkaion@6824
     6
        <onCreateDefault/>
gorkaion@6824
     7
      </column>
gorkaion@6824
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
     9
        <default/>
gorkaion@6824
    10
        <onCreateDefault/>
gorkaion@6824
    11
      </column>
gorkaion@6824
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
    13
        <default/>
gorkaion@6824
    14
        <onCreateDefault/>
gorkaion@6824
    15
      </column>
gorkaion@6824
    16
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
gorkaion@6824
    17
        <default><![CDATA[SYSDATE]]></default>
gorkaion@6824
    18
        <onCreateDefault/>
gorkaion@6824
    19
      </column>
gorkaion@6824
    20
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
    21
        <default/>
gorkaion@6824
    22
        <onCreateDefault/>
gorkaion@6824
    23
      </column>
gorkaion@6824
    24
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
gorkaion@6824
    25
        <default><![CDATA[SYSDATE]]></default>
gorkaion@6824
    26
        <onCreateDefault/>
gorkaion@6824
    27
      </column>
gorkaion@6824
    28
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
    29
        <default/>
gorkaion@6824
    30
        <onCreateDefault/>
gorkaion@6824
    31
      </column>
gorkaion@6836
    32
      <column name="FIN_PAYMENT_DETAIL_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
    33
        <default/>
gorkaion@6824
    34
        <onCreateDefault/>
gorkaion@6824
    35
      </column>
gorkaion@6825
    36
      <column name="FIN_PAYMENT_SCHEDULE_ORDER" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
    37
        <default/>
gorkaion@6824
    38
        <onCreateDefault/>
gorkaion@6824
    39
      </column>
gorkaion@6825
    40
      <column name="FIN_PAYMENT_SCHEDULE_INVOICE" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6824
    41
        <default/>
gorkaion@6824
    42
        <onCreateDefault/>
gorkaion@6824
    43
      </column>
gorkaion@6824
    44
      <column name="AMOUNT" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
gorkaion@6824
    45
        <default><![CDATA[0]]></default>
gorkaion@6824
    46
        <onCreateDefault/>
gorkaion@6824
    47
      </column>
gorkaion@6824
    48
      <column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@6824
    49
        <default><![CDATA[Y]]></default>
gorkaion@6824
    50
        <onCreateDefault/>
gorkaion@6824
    51
      </column>
gorkaion@6824
    52
      <column name="WRITEOFFAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
mikel@7327
    53
        <default><![CDATA[0]]></default>
gorkaion@6824
    54
        <onCreateDefault/>
gorkaion@6824
    55
      </column>
victor@12995
    56
      <column name="ISCANCELED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
victor@12995
    57
        <default><![CDATA[N]]></default>
victor@12995
    58
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
victor@12995
    59
      </column>
gorkaion@6824
    60
      <foreign-key foreignTable="AD_CLIENT" name="FIN_AD_CLIENT_SCHEDULEDETAIL">
gorkaion@6824
    61
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
gorkaion@6824
    62
      </foreign-key>
gorkaion@6824
    63
      <foreign-key foreignTable="AD_ORG" name="FIN_AD_ORG_SCHEDULEDETAIL">
gorkaion@6824
    64
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
gorkaion@6824
    65
      </foreign-key>
gorkaion@6824
    66
      <foreign-key foreignTable="FIN_PAYMENT_DETAIL" name="FIN_PAYMENT_SCHEDULEDETAIL">
gorkaion@6824
    67
        <reference local="FIN_PAYMENT_DETAIL_ID" foreign="FIN_PAYMENT_DETAIL_ID"/>
gorkaion@6824
    68
      </foreign-key>
gorkaion@6824
    69
      <foreign-key foreignTable="FIN_PAYMENT_SCHEDULE" name="FIN_PAYMENT_SCHINV_SCHDETAIL">
gorkaion@6824
    70
        <reference local="FIN_PAYMENT_SCHEDULE_INVOICE" foreign="FIN_PAYMENT_SCHEDULE_ID"/>
gorkaion@6824
    71
      </foreign-key>
gorkaion@6824
    72
      <foreign-key foreignTable="FIN_PAYMENT_SCHEDULE" name="FIN_PAYMENT_SCHORD_SCHDETAIL">
gorkaion@6824
    73
        <reference local="FIN_PAYMENT_SCHEDULE_ORDER" foreign="FIN_PAYMENT_SCHEDULE_ID"/>
gorkaion@6824
    74
      </foreign-key>
victor@12995
    75
      <check name="FIN_PAY_SCHE_DETAIL_ISCANC_CHK"><![CDATA[ISCANCELED IN ('Y', 'N')]]></check>
gorkaion@6824
    76
    </table>
gorkaion@6824
    77
  </database>