src-db/database/model/views/RV_C_INVOICE.xml
changeset 776 d1226b967a28
parent 756 ae11e4610537
child 777 6e89ba1fd7d9
--- a/src-db/database/model/views/RV_C_INVOICE.xml	Fri Apr 25 10:20:54 2008 +0000
+++ b/src-db/database/model/views/RV_C_INVOICE.xml	Fri Apr 25 11:13:50 2008 +0000
@@ -1,22 +1,23 @@
 <?xml version="1.0"?>
   <database name="VIEW RV_C_INVOICE">
-    <view name="RV_C_INVOICE"><![CDATA[SELECT i.c_invoice_id, i.ad_client_id, i.ad_org_id, i.isactive, i.created, i.createdby, i.updated, i.updatedby, i.issotrx, i.documentno, i.docstatus, i.docaction, i.isprinted, i.isdiscountprinted, i.processing, i.processed, i.istransferred, i.ispaid, i.c_doctype_id, i.c_doctypetarget_id, i.c_order_id, i.description, i.isapproved, i.salesrep_id, i.dateinvoiced, i.dateprinted, i.dateacct, i.c_bpartner_id, i.c_bpartner_location_id, i.ad_user_id, b.c_bp_group_id, i.poreference, i.dateordered, i.c_currency_id, i.paymentrule, i.c_paymentterm_id, i.m_pricelist_id, i.c_campaign_id, i.c_project_id, i.c_activity_id, i.c_charge_id,
-        CASE substr(d.docbasetype, 3)
-            WHEN 'C' THEN i.chargeamt * -1
-            ELSE i.chargeamt
-        END AS chargeamt,
-        CASE substr(d.docbasetype, 3)
-            WHEN 'C' THEN i.totallines * -1
-            ELSE i.totallines
-        END AS totallines,
-        CASE substr(d.docbasetype, 3)
-            WHEN 'C' THEN i.grandtotal * -1
-            ELSE i.grandtotal
-        END AS grandtotal,
-        CASE substr(d.docbasetype, 3)
-            WHEN 'C' THEN -1
-            ELSE 1
-        END AS multiplier
-   FROM c_invoice i, c_doctype d, c_bpartner b
-  WHERE i.c_doctype_id = d.c_doctype_id AND i.c_bpartner_id = b.c_bpartner_id]]></view>
+    <view name="RV_C_INVOICE"><![CDATA[SELECT i.c_invoice_id, i.ad_client_id, i.ad_org_id, i.isactive, i.created, i.createdby, i.updated, i.updatedby, i.issotrx, i.documentno, i.docstatus, i.docaction, i.isprinted, i.isdiscountprinted, i.processing, i.processed, i.istransferred, i.ispaid, i.c_doctype_id, i.c_doctypetarget_id, i.c_order_id, i.description, i.isapproved, i.salesrep_id, i.dateinvoiced, i.dateprinted, i.dateacct, i.c_bpartner_id, i.c_bpartner_location_id, i.ad_user_id, b.c_bp_group_id, i.poreference, i.dateordered, i.c_currency_id, i.paymentrule, i.c_paymentterm_id, i.m_pricelist_id, i.c_campaign_id, i.c_project_id, i.c_activity_id, i.c_charge_id, 
+CASE substr(d.docbasetype, 3)
+WHEN 'C' THEN i.chargeamt * -1
+ELSE i.chargeamt
+END AS chargeamt, 
+CASE substr(d.docbasetype, 3)
+WHEN 'C' THEN i.totallines * -1
+ELSE i.totallines
+END AS totallines, 
+CASE substr(d.docbasetype, 3)
+WHEN 'C' THEN i.grandtotal * -1
+ELSE i.grandtotal
+END AS grandtotal, 
+CASE substr(d.docbasetype, 3)
+WHEN 'C' THEN -1
+ELSE 1
+END AS multiplier
+FROM c_invoice i, c_doctype d, c_bpartner b
+WHERE i.c_doctype_id = d.c_doctype_id AND i.c_bpartner_id = b.c_bpartner_id
+]]></view>
   </database>