modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml
changeset 9495 10cfde195c41
parent 9469 87c027fb8bd2
child 9503 353409564ae1
--- a/modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml	Thu Dec 30 12:32:20 2010 +0100
+++ b/modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml	Thu Dec 30 13:15:23 2010 +0100
@@ -8,7 +8,9 @@
 <!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[147D825456D54D0486C3D7072531C5C9]]></OBKMO_WIDGET_CLASS_ID>
 <!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
        inv.businessPartner.id as businessPartnerId, inv.businessPartner.name as businessPartnerName,
-       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount
+       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount,
+       inv.paymentTerms.name as paymentTerms, inv.outstandingAmount as outstandingAmount,
+       inv.daysTillDue as daysTillDue, inv.dueAmount as dueAmount
 from Invoice as inv
 where inv.businessPartner.name like :businessPartnerName
       and inv.documentNo like :documentNo
@@ -27,7 +29,9 @@
 <!--58BCB96595FA45678CC1423402238309-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[34F279BBB85945519DC38F21573106C0]]></OBKMO_WIDGET_CLASS_ID>
 <!--58BCB96595FA45678CC1423402238309-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
        inv.businessPartner.id as businessPartnerId, inv.businessPartner.name as businessPartnerName,
-       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount
+       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount,
+       inv.paymentTerms.name as paymentTerms, inv.outstandingAmount as outstandingAmount,
+       inv.daysTillDue as daysTillDue, inv.dueAmount as dueAmount
 from Invoice as inv
 where inv.businessPartner.name like :businessPartnerName
       and inv.documentNo like :documentNo