Hi,
I'm reading projeqtor database using the API and I'd like to use the 'dailyCost' and 'cost' fields in the plannedCost table, but for some reason most of the entries in these fields are '0' (only ~~1% have a value in - which is not correct but a older cost value I don't use anymore) while they should all have their values by looking at the web interface. In web interface, I have a cost for each resource and the planned project cost is correctly calculated. Interestingly, the 'work' field of this table show the correct numbers of hours when read by API.
As a side remark, the table 'work' doesn't show this issue, I'd have believed these 2 tables should be quite similar, one showing the past, the other one the future.
A 2nd sire remark, for some resources, when I add them in an activity in the web interface, the default cost is an old one (the same that is shown in some case in the 'dailyCost' in the plannedCost table), it may be related to the problem above.
Could you please tell me how I can enter the correct cost in the 'dailyCost' and 'cost' fields in the plannedCost table from the web interface?
Thank you, all the best
Martial
I'd like to use the 'dailyCost' and 'cost' fields in the plannedCost table
I guess you means "plannedwork" table
In this table, the dailyCost comes from "assignment" table.
And the daily cost in the assignment table comes from the role (table "function") of the resource on the activity, defined on assignment.
Possibly resources had no cost where creating the assignment di dailyCost is null, and the actual cost is in newDailyCost.