src-db/database/model/views/C_DEBT_PAYMENT_V.xml
changeset 1605 8a0fe0193bef
parent 1370 5d68bf7eedb9
child 1738 d8dcb2ecfd14
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="VIEW C_DEBT_PAYMENT_V">
     2   <database name="VIEW C_DEBT_PAYMENT_V">
     3     <view name="C_DEBT_PAYMENT_V"><![CDATA[SELECT c_debt_payment.c_debt_payment_id, c_debt_payment.ad_client_id, c_debt_payment.ad_org_id, c_debt_payment.isactive, c_debt_payment.created, c_debt_payment.createdby, c_debt_payment.updated, c_debt_payment.updatedby, c_debt_payment.isreceipt, c_debt_payment.c_settlement_cancel_id, c_debt_payment.c_settlement_generate_id, c_debt_payment.description, c_debt_payment.c_invoice_id, c_debt_payment.c_bpartner_id, c_debt_payment.c_currency_id, c_debt_payment.c_cashline_id, c_debt_payment.c_bankaccount_id, c_debt_payment.c_cashbook_id, c_debt_payment.paymentrule, c_debt_payment.ispaid, c_debt_payment.dateplanned, c_debt_payment.ismanual, c_debt_payment.isvalid, c_debt_payment.c_bankstatementline_id, c_debt_payment.changesettlementcancel, c_debt_payment.cancel_processed, c_debt_payment.generate_processed, c_debt_payment.c_withholding_id, c_debt_payment.withholdingamount, 
     3     <view name="C_DEBT_PAYMENT_V"><![CDATA[SELECT c_debt_payment.c_debt_payment_id, c_debt_payment.ad_client_id, c_debt_payment.ad_org_id, c_debt_payment.isactive, c_debt_payment.created, c_debt_payment.createdby, c_debt_payment.updated, c_debt_payment.updatedby, c_debt_payment.isreceipt, c_debt_payment.c_settlement_cancel_id, c_debt_payment.c_settlement_generate_id, c_debt_payment.description, c_debt_payment.c_invoice_id, c_debt_payment.c_bpartner_id, c_debt_payment.c_currency_id, c_debt_payment.c_cashline_id, c_debt_payment.c_bankaccount_id, c_debt_payment.c_cashbook_id, c_debt_payment.paymentrule, c_debt_payment.ispaid, c_debt_payment.dateplanned, c_debt_payment.ismanual, c_debt_payment.isvalid, c_debt_payment.c_bankstatementline_id, c_debt_payment.changesettlementcancel, c_debt_payment.cancel_processed, c_debt_payment.generate_processed, c_debt_payment.c_withholding_id, c_debt_payment.withholdingamount, 
     4         CASE c_debt_payment.isreceipt
     4         CASE c_debt_payment.isreceipt
     5             WHEN 'Y' THEN c_debt_payment.amount
     5             WHEN 'Y' THEN c_debt_payment.amount
     6             ELSE c_debt_payment.amount * (-1)
     6             ELSE c_debt_payment.amount * -1
     7         END AS amount, 
     7         END AS amount, 
     8         CASE c_debt_payment.isreceipt
     8         CASE c_debt_payment.isreceipt
     9             WHEN 'Y' THEN c_debt_payment.writeoffamt
     9             WHEN 'Y' THEN c_debt_payment.writeoffamt
    10             ELSE c_debt_payment.writeoffamt * (-1)
    10             ELSE c_debt_payment.writeoffamt * -1
    11         END AS writeoffamt, 
    11         END AS writeoffamt, 
    12         CASE c_debt_payment.isreceipt
    12         CASE c_debt_payment.isreceipt
    13             WHEN 'Y' THEN 1
    13             WHEN 'Y' THEN 1
    14             ELSE (-1)
    14             ELSE -1
    15         END AS multiplierap, c_debt_payment.glitemamt, c_debt_payment.c_order_id, c_debt_payment.status
    15         END AS multiplierap, c_debt_payment.glitemamt, c_debt_payment.c_order_id, c_debt_payment.status
    16    FROM c_debt_payment]]></view>
    16    FROM c_debt_payment]]></view>
    17   </database>
    17   </database>