Net Total Amount Not Calculated When Creating Sales Order from Dropdown Model

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 283

    #1

    Net Total Amount Not Calculated When Creating Sales Order from Dropdown Model

    EspoCRM Version: 9.3.4
    Environment: docker, php 8.3.30
    Description


    When creating a Sales Order via the dropdown model workflow, the Grand Total is calculated correctly, but the Net Total Amount is not calculated on creation.

    The Net Total only updates after manually editing a price field and triggering a frontend recalculation (e.g. tabbing out of the input).
    Steps to Reproduce
    1. Click the button used to create a Sales Order from the dropdown model.
    2. In the form that appears:
      • Link the Work Reference.
    3. Save / create the Sales Order.

    Actual Result
    • Grand Total is calculated correctly.
    • Net Total Amount is not calculated.
    • Net Total only updates after:
      • Manually changing a price field
      • Moving focus away from the input (triggering frontend recalculation)

    Expected Result
    • Net Total Amount should be calculated automatically on creation, the same way as Grand Total, without requiring manual input changes.

    Additional Notes
    • This appears to be a frontend recalculation issue (calculation not triggered on initial creation).
    • Since Grand Total calculates correctly, the data itself seems valid—only the Net Total calculation event is missing.


    Click image for larger version

Name:	image.png
Views:	0
Size:	11.9 KB
ID:	126000

    Click image for larger version

Name:	image.png
Views:	0
Size:	61.5 KB
ID:	126002
    Attached Files
Working...