joniles / mpxj

Primary repository for MPXJ library
http://www.mpxj.org/
GNU Lesser General Public License v2.1
245 stars 101 forks source link

Read the *Work fields from XER files #665

Closed JanecekPetr closed 7 months ago

JanecekPetr commented 7 months ago

As far as I can see, the getPlannedWork() method currently only works for P6 XML files, but it does not read anything for XER files even though there is data in the relevant fields (target_work_qty atc.)

Would it be possible to add XER support to read the labor / non-labor units? (Ideally as separate fields, see https://github.com/joniles/mpxj/issues/664)

(EDIT: I mistakenly referenced the SUMTASK table in the original description, that's just wrong. I fixed the desc.)

JanecekPetr commented 7 months ago

Closing. The reader DOES provide the plannedWork() field via the target_work_qty column from XER.

The thing that threw me off, and what I think IS happening, though, is that XER reads the target_work_qty field (containing plannedLaborUnits), but XML reads plannedLaborUnits + plannedNonLaborUnits.

I'll verify and create a separate ticket.