HAS-CRM / IssueTracker

Issue Tracking
0 stars 0 forks source link

Statistic Report - Incorrect Margin Caclulated [Andy] #14

Closed kinosker closed 7 years ago

kinosker commented 7 years ago

Background: Quoted price and Cost Price at statistic report is correctly retrieved, but the margin is incorrectly calculated.

image

kinosker commented 7 years ago

Diagnosis: Margin at the statistic report is retrieved from GP at CRM, instead of calculating using Quoted and Cost Price at the web form. As this quote is copied from another quote, the GP was not updated to reflect the new GP due to a javascript error.

Fixed:

  1. Updated javascript to calculate and update the record with the correct GP.