Skip to content
Snippets Groups Projects
Commit 1e665869 authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

#1035775 "Angebot drucken"-Button bei 0 Posten ausgeblendet

parent 71088782
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,7 @@
<title>Print Offer</title>
<onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/printoffer/onActionProcess.js</onActionProcess>
<iconId>VAADIN:FILE_TEXT_O</iconId>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/printoffer/stateProcess.js</stateProcess>
</entityActionField>
<entityField>
<name>CONTACT_ORG_ID</name>
......
import("system.logging");
import("system.result");
import("system.db");
import("Sql_lib");
import("system.neon");
var itemcount = db.cell(SqlCondition.begin()
.andPrepareVars("OFFERITEM.OFFER_ID", "$field.OFFERID")
.buildSql("select count(*) from OFFERITEM", "1=2"));
logging.log("itemcount: "+itemcount);
if(itemcount == "0")
result.string(neon.COMPONENTSTATE_DISABLED);
else
result.string(neon.COMPONENTSTATE_AUTO);
\ No newline at end of file
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