How to add up the product values and display them in the monthly cost field?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pdnthiago
    Junior Member
    • Oct 2019
    • 21

    #1

    How to add up the product values and display them in the monthly cost field?

    Guys, could you guide me on how to perform the sum calculation?

    In the example image circled in blue, there are the items that the customer has.

    How can I make EspoCRM take the monthly cost values circled in blue and, every time I change, add a new item, or delete an item, automatically sum the values and place the total in the monthly cost field circled in red?

    I need the sum to be only for the total of items for that specific customer, since each customer has different items and values.

    I have the Advanced Pack.

    Click image for larger version

Name:	image.png
Views:	0
Size:	171.7 KB
ID:	123288
  • emillod
    Active Community Member
    • Apr 2017
    • 1536

    #2
    Hello,
    you can display a report in panel under specific entity with amount or if you'd like to load this information into field, you have two ways. You can use afterRelate hook or you can use notStorable field. Unfortunately, both ways requires coding. The easiest would be to use report panels: Reports - EspoCRM Documentation

    Comment

    • dreginald
      Senior Member
      • Sep 2018
      • 168

      #3
      You can create another related Entity and bring the Analytics using ReportFilters with appropriate formulae

      Comment

      Working...