Menu

PMP Light - Wrong cost calculation

Davide
2022-02-07
2022-02-11
  • Davide

    Davide - 2022-02-07

    Hi,
    using and testing the extension we highlight that the wbs cost are wrong calculated.
    As better explainable :
    1. Create a Project
    2. From Action menu ->"other action"->"create a deliverable"
    3. The new project's deliverable is created but project wbs cost is not updated
    4. Create a second project's deliverable will update the wbs cost with previous amount inserted

    If one of deliverable is modified the wbs cost will updated correctly.

    What should be patched ?

    Many Thanks
    Davide

    env:
    tested on 2.7.5 - all 3.0
    PMP light 1.0.5

     

    Last edit: Davide 2022-02-07
  • Guillaume Lajarige

    Hello Davide,

    Thanks for the feedback! We can't reproduce on the v1.0.10, so it should be fixed.
    The v1.0.10 should be released mid-march on the Hub.

    Cheers,
    Guillaume

     
    • Davide

      Davide - 2022-02-10

      Hello Guillaume,

      Only for preview, do you rewrite all code or a part only ?

      I Ask that because I solved for copier action with code and other but still remain strange that for update action the cost don't consider the current value update. Also if you touch different project's deliverable the cost are update at second time.

      Many thanks
      Davide

      Below the original code :

                  <method id="OnUpdate">
                      <comment>/**
                          *
                          * @author Axelle Bost
                          */
                      </comment>
                      <static>false</static>
                      <access>public</access>
                      <code><![CDATA[
                              public function OnUpdate()
                              {
                             parent::OnUpdate();
                              $this->WBS_costs_budget();
                              $this->SetProjectWBScalculated();
                           $aInitialDates = array();
                           $aInitialDates = $this->SetWBSStartEndDates();
      
       
    • Guillaume Lajarige

      We fixed some bugs here and there. Can you check the last version available here to see if it fixes your issue? (Don't use it on production)

      Cheers,
      Guillaume

       
  • Bluearrow

    Bluearrow - 2022-02-11

    Hello Davide,
    I tried to reproduce your issue and could not manage it.
    I installed iTop 2.7.5 and PMP 1.0.5.
    When I create a deliverable on a project from other actions and save deliverable, field wbs_cost (Total cost)on class WBS is well filled thanks to $this->WBS_costs_budget() called in OnInsert() method.
    Could you provide more info to help me to reproduce your issue ?
    Thanks
    Axelle

     

Log in to post a comment.