<PA_MEASURECALCPA_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) 
FROM RV_C_Invoice C_Invoice
 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_MEASURECALCPA_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) 
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_MEASURECALCPA_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) 
FROM RV_C_Invoice C_Invoice
 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_MEASURECALCPA_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(*) 
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_MEASURECALCPA_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) 
FROM RV_C_Invoice C_Invoice
 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'
"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_MEASURECALCPA_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)
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"/>