</itemizedlist></para>
</sect2>
+<sect2 id="Changelog_2_4_2"><title>Version 2.4.2 (Some day)</title>
+<para>
+<itemizedlist mark='opencircle'>
+
+<listitem><para>Added 'accounts' column to reports.</para></listitem>
+
+</itemizedlist></para>
+
+</sect2>
</sect1>
<freestyle>
<para><simplelist type="horiz" columns="2">
+ <member><varname>accounts</varname></member>
+ <member>This columns lists the account that is assigned to the
+ respective task. It is called 'accounts' because later
+ versions will have support for multiple accounts.</member>
+
<member><varname>chart</varname></member>
<member>Use this column to get Gantt and resource charts. It's only
supported by the interactive reports in the GUI.</member>
}
void
+CSVReportElement::genCellAccounts(TableCellInfo* tci)
+{
+ genCell(QString().sprintf("%s", tci->tli->task->getAccount() ?
+ tci->tli->task->getAccount()->getId().latin1() :
+ ""), tci, true);
+}
+
+void
CSVReportElement::genCellSequenceNo(TableCellInfo* tci)
{
genCell(tci->tli->ca2 == 0 ?
virtual void genHeadYear(TableCellInfo* tcf);
virtual void genCellEmpty(TableCellInfo*);
+ virtual void genCellAccounts(TableCellInfo* tli);
virtual void genCellSequenceNo(TableCellInfo* tli);
virtual void genCellNo(TableCellInfo* tli);
virtual void genCellHierarchNo(TableCellInfo* tli);
}
void
+HTMLReportElement::genCellAccounts(TableCellInfo* tci)
+{
+ genCell(QString().sprintf("%s", tci->tli->task->getAccount() ?
+ tci->tli->task->getAccount()->getId().latin1() :
+ ""), tci, true);
+}
+
+void
HTMLReportElement::genCellSequenceNo(TableCellInfo* tci)
{
genCell(tci->tli->ca2 == 0 ?
virtual void genHeadYear(TableCellInfo* tcf);
virtual void genCellEmpty(TableCellInfo*);
+ virtual void genCellAccounts(TableCellInfo* tli);
virtual void genCellSequenceNo(TableCellInfo* tli);
virtual void genCellNo(TableCellInfo* tli);
virtual void genCellHierarchNo(TableCellInfo* tli);
virtual void genHeadYear(TableCellInfo*) { }
virtual void genCellEmpty(TableCellInfo*) { }
+ virtual void genCellAccounts(TableCellInfo*) { }
virtual void genCellSequenceNo(TableCellInfo*) { }
virtual void genCellNo(TableCellInfo*) { }
virtual void genCellHierarchNo(TableCellInfo*) { }
currencyFormat = r->getCurrencyFormat();
TableColumnFormat* tcf =
- new TableColumnFormat(KW("seqno"), this, i18n("Seq. No."));
+ new TableColumnFormat(KW("accounts"), this, i18n("Accounts"));
+ tcf->genTaskLine1 = &ReportElement::genCellAccounts;
+ tcf->genTaskLine2 = &ReportElement::genCellAccounts;
+ tcf->hAlign = TableColumnFormat::left;
+
+ tcf = new TableColumnFormat(KW("seqno"), this, i18n("Seq. No."));
tcf->genTaskLine1 = &ReportElement::genCellSequenceNo;
tcf->genResourceLine1 = &ReportElement::genCellSequenceNo;
tcf->genAccountLine1 = &ReportElement::genCellSequenceNo;
virtual void genHeadYear(TableCellInfo*) = 0;
virtual void genCellEmpty(TableCellInfo*) = 0;
+ virtual void genCellAccounts(TableCellInfo*) = 0;
virtual void genCellSequenceNo(TableCellInfo*) = 0;
virtual void genCellNo(TableCellInfo*) = 0;
virtual void genCellHierarchNo(TableCellInfo*) = 0;