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

import project "budget" field #841

Closed
ClintfromCanada opened this issue Jun 5, 2019 · 6 comments · Fixed by #843
Closed

import project "budget" field #841

ClintfromCanada opened this issue Jun 5, 2019 · 6 comments · Fixed by #843

Comments

@ClintfromCanada
Copy link

Hello, I am importing data from Version 1.31 and in reviewing the import code I see that the "budget" field is unsupported. Does anyone have any guidance for me where I could start in including this field in the import or what mods I would need to make? I have tons of projects in my old database where I would like to carry over the budget value into the new db. Even if it is moving it into an integer or something.

Thanks!

Clint

@kevinpapst
Copy link
Member

Hm, indeed you are right. I missed that field...
You could try to add a line after this one:

->setBudget($oldProject['budget'] ?: 0)

@kevinpapst kevinpapst added this to the 1.0 milestone Jun 5, 2019
@ClintfromCanada
Copy link
Author

That worked Kevin. Now the next problem I have is that we had the Budget value as being the number of hours estimated that are required to get a job done. Because I have a fixed rate for each project, if I use Hours budgeted it should be able to automatically calculate the total in $ spent. The trouble is, I think the "budget" field is used in the program as $. My next step is to look for other calculations to see where or how difficult it would be to change that from a $ value to an hours budgeted value, but that sounds harder than it's probably worth. I may need to tackle it from the import side where I do the calculation on import so the budget field is in $.

Clint

@kevinpapst
Copy link
Member

The field is displayed in the customers currency, so in your case likely dollars.
I plan to add an explicit hourly budget field this week for project and additionally budgets columns for activities and customers as well, so maybe you want to wait for that? Or you go ahead and migrate the data later between the columns.
I guess you saw that reporting is a feature which is yet missing...

@kevinpapst
Copy link
Member

I am currently working on the budgets.
How exactly did you adjust the importer, with my code example or did you have to cast the value anyhow?

@ClintfromCanada
Copy link
Author

ClintfromCanada commented Jun 5, 2019

Regarding the importer, I simply used the code you had suggested and it worked correctly.

@lock
Copy link

lock bot commented Aug 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants