Skip to content
Snippets Groups Projects
Commit ab8b9f64 authored by S.Leierseder's avatar S.Leierseder
Browse files

changes salesproject analyses my turnover

parent 28f82f14
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,12 @@ import("system.SQLTYPES")
var myContactId = EmployeeUtils.getCurrentContactId();
var turnover = db.cell(SqlCondition.begin()
.andPrepare("SALESORDER.SALESORDERDATE", datetime.toDate(vars.get("$sys.date"), "yyyy"), "year(#) = ?", SQLTYPES.INTEGER)
.andPrepare("SALESORDER.ORDERTYPE", "ORDTYPEINVO")
.andPrepare("SALESORDER.CONTACT_ID", myContactId)
.buildSql("select sum(NET + VAT) from SALESORDER", "1=2"));
.andPrepare("OBJECTMEMBER.OBJECT_TYPE", 'Salesproject')
.andPrepare("OBJECTMEMBER.CONTACT_ID", myContactId)
.buildSql("select sum(NET + VAT) from OBJECTMEMBER \n\
left join SALESORDER on SALESORDER.OBJECT_TYPE = OBJECTMEMBER.OBJECT_TYPE and SALESORDER.OBJECT_ROWID = OBJECTMEMBER.OBJECT_ROWID", "1=2"));
result.string(turnover);
\ No newline at end of file
......@@ -6448,6 +6448,7 @@
</entry>
<entry>
<key>My Forecast and Turnover</key>
<value>Mein Forecast und Umsatz</value>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
......
......@@ -4,10 +4,11 @@
<majorModelMode>DISTRIBUTED</majorModelMode>
<dashletConfigurations>
<neonDashletConfiguration>
<name>myForecastTurnover</name>
<name>OwnForecastTurnover</name>
<title>My Forecast and Turnover</title>
<description>Shows my Forecast and Turnover for the actual year</description>
<fragment>SalesprojectAnalyses/full</fragment>
<singleton v="true" />
<icon>VAADIN:MONEY</icon>
<categories>
<neonDashletCategory>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment