core-jgi/db/ddlutils/data/PA_MEASURECALC.xml

10 lines
3.8 KiB
XML
Raw Normal View History

2006-12-29 09:45:12 +07:00
<?xml version='1.0' encoding='UTF-8'?>
<data>
<PA_MEASURECALC PA_MEASURECALC_ID="100" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-04-26 18:38:23.0" CREATEDBY="0" UPDATED="2006-01-01 14:14:20.0" UPDATEDBY="100" NAME="Invoiced Net Revenue" DESCRIPTION="Invoiced net revenue, without tax and charges" SELECTCLAUSE="SELECT SUM(il.LineNetAmt) &#xa;FROM RV_C_Invoice C_Invoice&#xa; INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)" WHERECLAUSE="WHERE C_Invoice.IsSOTrx='Y' AND C_Invoice.Processed='Y'" DATECOLUMN="C_Invoice.DateInvoiced" ORGCOLUMN="C_Invoice.AD_Org_ID" BPARTNERCOLUMN="C_Invoice.C_BPartner_ID" PRODUCTCOLUMN="il.M_Product_ID" AD_TABLE_ID="318" KEYCOLUMN="C_Invoice.C_Invoice_ID" ENTITYTYPE="D" />
<PA_MEASURECALC PA_MEASURECALC_ID="101" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-04-26 18:39:16.0" CREATEDBY="0" UPDATED="2006-01-01 14:13:40.0" UPDATEDBY="100" NAME="Invoiced Gross Revenue" DESCRIPTION="Invoice gross amount including tax; Does not allow selection by product (Category)" SELECTCLAUSE="SELECT SUM(GrandTotal) &#xa;FROM RV_C_Invoice C_Invoice" WHERECLAUSE="WHERE IsSOTrx='Y' AND Processed='Y'" DATECOLUMN="DateInvoiced" ORGCOLUMN="AD_Org_ID" BPARTNERCOLUMN="C_BPartner_ID" AD_TABLE_ID="318" KEYCOLUMN="C_Invoice_ID" ENTITYTYPE="D" />
<PA_MEASURECALC PA_MEASURECALC_ID="102" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-04-26 18:49:29.0" CREATEDBY="0" UPDATED="2006-01-01 14:14:55.0" UPDATEDBY="100" NAME="Invoiced Sales Margin" DESCRIPTION="Difference between Limit and Actual price" SELECTCLAUSE="SELECT SUM((il.PriceActual-il.PriceLimit)*QtyInvoiced) &#xa;FROM RV_C_Invoice C_Invoice&#xa; INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)" WHERECLAUSE="WHERE C_Invoice.IsSOTrx='Y' AND C_Invoice.Processed='Y'" DATECOLUMN="C_Invoice.DateInvoiced" ORGCOLUMN="C_Invoice.AD_Org_ID" BPARTNERCOLUMN="C_Invoice.C_BPartner_ID" PRODUCTCOLUMN="il.M_Product_ID" AD_TABLE_ID="318" KEYCOLUMN="C_Invoice.C_Invoice_ID" ENTITYTYPE="D" />
<PA_MEASURECALC PA_MEASURECALC_ID="103" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-04-26 18:53:15.0" CREATEDBY="0" UPDATED="2005-12-25 21:42:48.0" UPDATEDBY="100" NAME="Number of Customers" DESCRIPTION="Number of (new) customers" SELECTCLAUSE="SELECT COUNT(*) &#xa;FROM C_BPartner" WHERECLAUSE="WHERE IsCustomer='Y'" DATECOLUMN="Created" ORGCOLUMN="AD_Org_ID" BPARTNERCOLUMN="C_BPartner_ID" AD_TABLE_ID="291" KEYCOLUMN="C_BPartner_ID" ENTITYTYPE="D" />
<PA_MEASURECALC PA_MEASURECALC_ID="104" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-12-25 16:30:37.0" CREATEDBY="100" UPDATED="2006-01-01 14:15:45.0" UPDATEDBY="100" NAME="Invoiced Paid Quantities" DESCRIPTION="Invoiced paid quantities" SELECTCLAUSE="SELECT SUM(il.QtyInvoiced) &#xa;FROM RV_C_Invoice C_Invoice&#xa; INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)" WHERECLAUSE="WHERE C_Invoice.IsSOTrx='Y' AND C_Invoice.Processed='Y' AND C_Invoice.IsPaid='Y'&#xa;" DATECOLUMN="C_Invoice.DateInvoiced" ORGCOLUMN="C_Invoice.AD_Org_ID" BPARTNERCOLUMN="C_Invoice.C_BPartner_ID" PRODUCTCOLUMN="il.M_Product_ID" AD_TABLE_ID="318" KEYCOLUMN="C_Invoice.C_Invoice_ID" ENTITYTYPE="D" />
<PA_MEASURECALC PA_MEASURECALC_ID="105" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-01-01 14:24:10.0" CREATEDBY="100" UPDATED="2006-01-01 18:56:23.0" UPDATEDBY="100" NAME="Open Invoice Amount" DESCRIPTION="Open Invoice Amount in Accounting Currency" SELECTCLAUSE="SELECT COALESCE(SUM(currencyBase(invoiceOpen(C_Invoice_ID, C_InvoicePaySchedule_ID),C_Currency_ID, DateAcct, AD_Client_ID, AD_Org_ID)),0)&#xa;FROM C_Invoice_v C_Invoice" WHERECLAUSE="WHERE IsSOTrx='Y' AND Processed='Y'" DATECOLUMN="DateInvoiced" ORGCOLUMN="AD_Org_ID" BPARTNERCOLUMN="C_BPartner_ID" AD_TABLE_ID="318" KEYCOLUMN="C_Invoice_ID" ENTITYTYPE="D" />
</data>