Forum

How to write 'daily...
 
Notifications
Retirer tout

How to write 'dailyCost' field in plannedwork table from the web interface

2 Posts
2 Utilisateurs
0 Reactions
836 Vu
(@martial-duchamphmt-ch)
Posts: 7
Active Member
Début du sujet
 
[#9615]

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

 


 
Posté : 31/10/2024 12:18 am
(@babynus)
Posts: 14952
Membre Admin
 

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.
 


 
Posté : 05/11/2024 7:31 pm
Share:
Retour en haut