Strange behavior on RollupConditinalSum function on Opportunities

Hi there,

I'm facing a strange behavior on the opportunities and RLI's.

We have the following sugar logic on a currency field on the Opportinities : 

rollupConditionalSum($revenuelineitems,"likely_case","won_in_forefast_c",true)

The sugarlogic is triggered only when I update an already created RLI, not when creating.

Is there anything I'm missing ? Can you help me please ?

Thanks a lot and best regards,

Enes

Parents
  • Hello

    I was testing your scenario locally and seems to be working for me when adding the RLI's via Subpanel in the Opportunity record view

    Can you clarify the Sugar version and specify how are you creating the RLI's ? 

  • Hi Andre,

    We're running on Sugar 12.0.0 ENT.

    The fact is that when I create a second RLI, the amount is updated with the firstly created RLI, the third calculates the amount with the two first, etc .... 

    The config value disable_related_calc_fields is set to false.

    'disable_related_calc_fields' => false,

    Is there anyhting else I can do? 

    The RLI creation is mandatory when creating an opportunity.

    When updating the opp or the RLI afterwards, the amount is calculated ...

Reply
  • Hi Andre,

    We're running on Sugar 12.0.0 ENT.

    The fact is that when I create a second RLI, the amount is updated with the firstly created RLI, the third calculates the amount with the two first, etc .... 

    The config value disable_related_calc_fields is set to false.

    'disable_related_calc_fields' => false,

    Is there anyhting else I can do? 

    The RLI creation is mandatory when creating an opportunity.

    When updating the opp or the RLI afterwards, the amount is calculated ...

Children
  • Hi Enes, 

    I am testing in the same version and when creating the new Opp it calculates value after saving the Opportunity with the RLI. I am wondering if this is related to the  'won_in_forefast_c' flag.

    How are you setting the won_in_forefast_c to true or false?