Supplier scorecards
Score a supplier each period from its vouchers, and warn or block new RFQs and Purchase Orders when the score drops.
A Supplier Scorecard scores one supplier per period from its submitted vouchers. The score maps to a standing, and the standing can warn about or refuse new Requests for Quotation and Purchase Orders to that supplier.
The parts
| RecType | What it is |
|---|---|
| Supplier Scorecard Variable | A number from the supplier's vouchers in a period, such as total_accepted_items. ERP installs ERPNext's 21 |
| Supplier Scorecard Criteria | A formula over variables, with the score it is capped at |
| Supplier Scorecard Standing | A grade band with a colour and its warn and prevent flags. ERP installs four |
| Supplier Scorecard | One supplier's evaluation period, weighting function, standings and weighted criteria |
| Supplier Scorecard Period | One scored period, made by ERP |
The four standings ERP installs:
| Standing | Grades | Effect |
|---|---|---|
| Very Poor | 0 to 30 | Prevent RFQs, prevent Purchase Orders |
| Poor | 30 to 50 | Warn on RFQs and Purchase Orders |
| Average | 50 to 80 | None |
| Excellent | 80 to 100 | None |
Set up a scorecard
Create a Supplier Scorecard Criteria. Its formula names variables by their parameter name, in Cardinal's expression language. Use if c then x else y for a condition.
(if total_received_items > 0 then total_accepted_items / total_received_items else 1) * 100The save refuses an unknown name, and a formula that fails when every variable is 0 or 1.
Buying > Setup > Supplier Scorecard > New. Pick the Supplier and an Evaluation Period: Per Week, Per Month or Per Year. A new scorecard starts with the default standings. Standings must cover 0 to 100 without overlap.
Add criteria rows with weights, or click Load All Criteria to load every criterion. The weights must total 100.
Save. ERP creates the periods due since the supplier was created and scores them.
How the score works
Each period's score is its criteria scores, weighted. The scorecard's score applies the Weighting Function to the periods. The default ages older periods out over a year:
total_score * max( 0, min ( 1 , (12 - period_number) / 12) )A daily job creates the periods that came due and scores them again. The scorecard's standing is the band its score falls in. ERP copies that standing's flags onto the Supplier: Warn RFQs, Prevent RFQs, Warn POs and Prevent POs. When the standing changes and it says Notify Supplier or Notify Other, ERP mails them. Deleting the scorecard clears the flags.
Example: Acme Supplier's periods score 45 overall. The standing is Poor. A new Purchase Order to Acme Supplier saves with a warning. If the score falls to 25, Very Poor applies, and both a new RFQ row and a new Purchase Order for Acme Supplier are refused.
Your own variable
A variable's Path names its data function: one of ERPNext's standard names, such as get_total_received_items, or Module.function for an app's own. ERP calls it with the context and the period.