From 5435c641a2916546768340dd1ad977ae89b79d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Oliver=20S=C3=BCnderhauf?= <46800703+pancho-s@users.noreply.github.com> Date: Sat, 5 Aug 2023 19:43:14 +0200 Subject: [PATCH] fix: Refine supplier scorecard standings. (#36414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bernd Oliver Sünderhauf --- .../doctype/supplier_scorecard/supplier_scorecard.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.py b/erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.py index 58da8512951..6e22acf01a5 100644 --- a/erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.py +++ b/erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.py @@ -339,29 +339,35 @@ def make_default_records(): { "min_grade": 0.0, "prevent_rfqs": 1, + "warn_rfqs": 0, "notify_supplier": 0, "max_grade": 30.0, "prevent_pos": 1, + "warn_pos": 0, "standing_color": "Red", "notify_employee": 0, "standing_name": "Very Poor", }, { "min_grade": 30.0, - "prevent_rfqs": 1, + "prevent_rfqs": 0, + "warn_rfqs": 1, "notify_supplier": 0, "max_grade": 50.0, "prevent_pos": 0, - "standing_color": "Red", + "warn_pos": 1, + "standing_color": "Yellow", "notify_employee": 0, "standing_name": "Poor", }, { "min_grade": 50.0, "prevent_rfqs": 0, + "warn_rfqs": 0, "notify_supplier": 0, "max_grade": 80.0, "prevent_pos": 0, + "warn_pos": 0, "standing_color": "Green", "notify_employee": 0, "standing_name": "Average", @@ -369,9 +375,11 @@ def make_default_records(): { "min_grade": 80.0, "prevent_rfqs": 0, + "warn_rfqs": 0, "notify_supplier": 0, "max_grade": 100.0, "prevent_pos": 0, + "warn_pos": 0, "standing_color": "Blue", "notify_employee": 0, "standing_name": "Excellent",