Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation of costs for duration task in delayes scenario incorrect #289

Open
ScrapmetalEngineer opened this issue Feb 8, 2024 · 0 comments

Comments

@ScrapmetalEngineer
Copy link

  • The project has two scenarios: plan and delayed.
  • I have two nested tasks within one higher-level task.
  • One of the tasks has an effort with a limits property only in the delayed scenario
  • if I evaluate the project costs for the plan-scenario, the cost of the passingTask is 0 as expected.
  • if I evaluate the project costs for the delayed-scenario, the cost of the passingTask ist 4800, which cannot be true, due to a lack of effort.

Here is the result:
TaskJugglerBug

A possible workaround is to assign the chargeset costs not to myTask, but to someotherthinggoingon

I have a simple test file to show the bug:

project I144 "Testproject" 2024-02-14 + 20m {
	timezone "Europe/Paris"
	timeformat "%Y-%m-%d"
	numberformat "-" "" "." "," 1
	currencyformat "-" "" "." "," 1

	currency "EUR"

	scenario plan "Plan"
	{
		scenario delayed "Delayed"
	}
}

account costs "Costs"
account rev "Revenue"

resource test "Testing" {
	rate 640
}


task myTask "Meaningful Thing" {
	allocate test
	chargeset costs

	task passingTask "Just some time to pass" {
		duration 3w
		purge allocate
	}

	task someotherthinggoingon "Some other" {
		delayed:limits{dailymax 4h}
		effort 2w
	}
}

balance costs rev

navigator navbar {
  hidereport @none
}

textreport test "test" {
  header -8<-
    == Accounting Software Project ==
    <[navigator id="navbar"]>
  ->8-
  footer "----"

	scenarios plan, delayed

	taskreport overview "Ueberblick" {
		columns bsi { title 'WBS' }, name, start, end, cost, effort, chart { scale week width 5000 }
		# For this report we like to have the abbreviated weekday in front
		# of the date. %a is the tag for this.
		timeformat "%a %Y-%m-%d"
		hideresource @all
		loadunit days
#		rolluptask (treelevel() = 1)
		caption 'All effort values are in man days.'
		sorttasks tree
		formats html
	}

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant