Rate suppliers with a supplier scorecard
A Supplier Scorecard scores one supplier over regular periods, for example each month. The score comes from criteria such as delivered quality, on-time delivery, and quotation response time. You can use the score to warn users about, or block, new Requests for Quotation and Purchase Orders.
Each supplier can have one scorecard.
Prerequisites
- The supplier exists.
- The scoring criteria exist. See Create scoring criteria.
Create a scorecard
- Open the Supplier Scorecard list and select Add Supplier Scorecard.
- Select the Supplier.
- Select the Evaluation Period: Per Week, Per Month, or Per Year.
- In Scoring Setup, check the Weighting Function and the Scoring Standings. See the sections below.
- In Criteria Setup, add rows to Scoring Criteria with a weight for each, or select Load All Criteria. The weights must add up to 100.
- In Scorecard Actions, select what ERPNext does for this supplier:
- Warn for new Request for Quotations
- Warn for new Purchase Orders
- Prevent RFQs
- Prevent POs
- Save the scorecard.
When you save, ERPNext creates a scorecard period for each past evaluation period and calculates the score. ERPNext updates scorecards every day.
Set the scoring standings
A standing is a score range with a name and a color, for example Excellent, Average, and Poor. Users sort and filter suppliers by standing.
To set the color and the actions of a standing, open the row in the Scoring Standings table. A standing can warn about or prevent RFQs and Purchase Orders, so the action changes when the supplier's score moves to another standing.
Set the weighting function
The current score combines the scores of past periods. The Weighting Function decides how much each past period counts. The default weights the last 12 periods in a straight line, so recent periods count more:
{total_score} * max( 0, min ( 1 , (12 - {period_number}) / 12) )You can use these variables in the function:
{total_score}: the total score of the period.{period_number}: the number of periods between that period and today.
Create scoring criteria
A criterion scores one aspect of supplier performance.
- Open the Supplier Scorecard Criteria list and select Add Supplier Scorecard Criteria.
- Enter the Criteria Name.
- Set the Max Score.
- Enter the Criteria Formula.
- Set the default Criteria Weight.
- Save.
Write a criteria formula
A formula uses scorecard variables in braces, for example {total_accepted_items}. ERPNext calculates each variable for the supplier over the period. Standard variables include:
- The total number of Items received from the supplier.
- The total number of accepted Items.
- The total number of rejected Items.
- The total number of deliveries.
- The total amount received.
To see all variables, open the Supplier Scorecard Variable list. A developer can add variables for custom fields. For such a variable, select Custom?.
A formula can use these operators and functions:
| Operator | Meaning |
|---|---|
+ - * / | Add, subtract, multiply, divide |
min(x, y) max(x, y) | Smaller or larger of two values |
x if condition else y | Choose a value by a condition |
< > | Less than, greater than |
The formula must work for every value of its variables. A division by zero is the most common error. For example, this formula fails in a period with no receipts:
{total_accepted_items} / {total_received_items}Add a condition that handles the zero case:
({total_accepted_items} / {total_received_items}) if {total_received_items} > 0 else 1Review the scores
Open the scorecard to see the supplier's current score, a chart of the score over time, and the standing. Each period is a Supplier Scorecard Period document with the score of each criterion.