tasks.
git-svn-id: https://www.taskjuggler.org/svn/taskjuggler/trunk@1300
e1914e07-63f8-0310-9059-
d6d858d7cdca
start 2000-01-01
duration 1d
startcredit 10000.0
- account a2
+ account a4
}
task t3 "FooTask3" {
<listitem><para>XML reports now use the gzip compressed version 2 XML
format by default.</para></listitem>
+<listitem><para>Add check to forbid assigning account groups to
+tasks.</para></listitem>
+
</itemizedlist></para>
</sect2>
</property>
<property name="account" id="account_task" inheritable="Yes">
<descr><para>All amounts associated with the task will be credited
-to the specified account.</para></descr>
+to the specified account. The account must not be an account group.
+</para></descr>
<attributes>
<attr name="accountid" type="ID"/>
</attributes>
bool
Task::preScheduleOk(int sc)
{
+ if (account && !account->isLeaf())
+ {
+ errorMessage(i18n
+ ("Task '%1' must not have an account group ('%2') "
+ "assigned to it.")
+ .arg(id).arg(account->getId()));
+ return false;
+ }
+
if (hasSubs() && !scenarios[sc].bookedResources.isEmpty())
{
errorMessage(i18n