Announcement

Collapse
No announcement yet.

QouteItem calculations

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • QouteItem calculations

    Hi,
    I have an issue where I need to calculate quoteItem total amount only when that particular item is updated. In this example https://docs.espocrm.com/development...ns/#resolution the totals are calculated in a foreach loop, which leads to calculation of all items, even if they are not being updated. I wanted to ask how could I make it so the code only executed for the QuoteItems that are being updated?
    I also tried to do this with a workflow and it worked just fine, except that the workflow is executed after the code that calculated the grand total price of all items. If there was a way to delay the calculation of all the QuoteItems that would also work
    Last edited by Mark; 07-15-2020, 12:29 PM.
Working...
X