| The TaskJuggler Manual | ||
|---|---|---|
| Prev | Chapter 7. Property Reference | Next |
id>
<name>
[
<type>
]account
<id>
<name>
[
<type>
] | |||
|---|---|---|---|
| Description | Declares an account. Accounts can be used to calculate costs of tasks or the whole project. Account declaration may be nested, but only the top level accounts may have a type attribute specified. An account that has sub-accounts may not have a credit. sub-accounts inherit this type. | ||
| Attributes | Name | Type | Description |
id | ID | Each account must have a unique ID. | |
name | STRING | ||
type | ID | The type may be | |
| Optional Attributes | account, credit | ||
| Context | The TJP File, account, | ||
| Inheritable | No | Scenario Spec. | No |
| See also | csvaccountreport, htmlaccountreport | ||
project simple "Simple Project" "1.0" 2005-06-06 - 2005-06-26 {
currency "USD"
}
account project_cost "Project Costs" cost
account payments "Customer Payments" revenue {
credit 2005-06-08 "Customer down payment" 500.0
}
resource tux "Tux" {
rate 300
}
task items "Project breakdown" {
start 2005-06-06
# The default account for all tasks
account project_cost
task plan "Plan work" {
# Some upfront material cost
startcredit 500.0
length 3d
}
task implementation "Implement work" {
effort 5d
allocate tux
depends !plan
}
task acceptance "Customer acceptance" {
duration 5d
depends !implementation
account payments
# Customer pays at end of acceptance
endcredit 2000.0
}
}
htmlaccountreport "PAndL.html" {
timeformat "%d-%M-%y"
accumulate
columns index, name, weekly
}