<tr><td>@UNUSED@</td><td>tickets that are still unused</td></tr>
<tr><td>@CANCELLED@</td><td>tickets that were cancelled</td></tr>
<tr><td>@TOTALMONEY@</td><td>the total amount of income for this event</td></tr>
+<tr><td>@EVENTPRICE@</td><td>the default price for this event</td></tr>
<tr/>
<tr><td>@TICKETS@</td><td>the amount of ticket lines in the overview</td></tr>
<tr><td>@TICKETS:PRICE@</td><td>the price of this category</td></tr>
if(varname=="ORDERS"){
value=orderids.size();
av=MOdtRenderer::IntVar;
+ }else
+ if(varname=="EVENTPRICE"){
+ value=event.price();
+ av=MOdtRenderer::MoneyVar;
}
}
static QString vc="ABCDEFGHIJKLMNOPQRSTUVWXYZ:+-0123456789$#";
//check for conditionals
if(line.trimmed().startsWith("#IF:")){
- QString stmt=line.trimmed().mid(3).trimmed();
+ QString stmt=line.trimmed().mid(4).trimmed();
qDebug("????????????????If: %s",stmt.toAscii().data());
//split out var name
//get list of statement tokens
qint64 op2=intToken(stl[2],loop,lpos);
if(stl[1]=="<")iftrue=op1<op2;else
if(stl[1]==">")iftrue=op1>op2;else
- if(stl[1]=="=" || stl[1]=="=")iftrue=op1==op2;else
+ if(stl[1]=="=" || stl[1]=="==")iftrue=op1==op2;else
if(stl[1]=="<=")iftrue=op1<=op2;else
if(stl[1]==">=")iftrue=op1>=op2;else
if(stl[1]=="<>" || stl[1]=="!=")iftrue=op1!=op2;
qDebug("??????????IfError: unknown operator");
return "";
}
+ qDebug("???????????????? If(%lli %s %lli) evaluates to: %s",op1,stl[1].toAscii().data(),op2,iftrue?"true":"false");
return "";
}else
if(line.trimmed()=="#ELSE"){
return "";
}
}
+ qDebug("????????????????CalcResult: %s <= %lli",var.toAscii().data(),res);
setLocalVar(var,res);
return "";
}
</message>
<message>
<location filename="templatedlg.cpp" line="32"/>
- <source>Please chose a variant of template %s:</source>
+ <source>Please chose a variant of template %1:</source>
<translation>Bitte wählen Sie eine Variante für die Vorlage %1:</translation>
</message>
<message>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="1.1" language="de">
+<defaultcodec></defaultcodec>
<context>
<name>MBackupDialog</name>
<message>
</message>
<message>
<location filename="templatedlg.cpp" line="32"/>
- <source>Please chose a variant of template %s:</source>
+ <source>Please chose a variant of template %1:</source>
<translation>Such Dir ma' ne Variande von dor Vorlache %1 raus:</translation>
</message>
<message>
</message>
<message>
<location filename="templatedlg.cpp" line="32"/>
- <source>Please chose a variant of template %s:</source>
+ <source>Please chose a variant of template %1:</source>
<translation type="unfinished"></translation>
</message>
<message>
setWindowTitle(tr("Chose Template"));
QVBoxLayout *vl;
setLayout(vl=new QVBoxLayout);
- vl->addWidget(new QLabel(tr("Please chose a variant of template %s:").arg(tname)));
+ vl->addWidget(new QLabel(tr("Please chose a variant of template %1:").arg(tname)));
vl->addWidget(box=new QComboBox);
box->setEditable(false);
QSettings set;