From 5453f876031b43373cb1a8841a9aa2307ae9013c Mon Sep 17 00:00:00 2001 From: Westech Admin Date: Sun, 17 May 2026 21:31:14 +0000 Subject: [PATCH] fix: workflow states match reality - Processed, Needs QA, Priced, Ready for Sale, Sold, Destroyed, Recycled --- westech_r2/api/qa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/westech_r2/api/qa.py b/westech_r2/api/qa.py index 39d68cb..7eacf0c 100644 --- a/westech_r2/api/qa.py +++ b/westech_r2/api/qa.py @@ -44,7 +44,7 @@ def auto_grade(serial_no, grade='C5'): """Auto-grade a device and move to Priced state.""" serial = frappe.get_doc('Serial No', serial_no) serial.cosmetic_grade = grade - serial.r2_status = 'Graded' + serial.r2_status = 'Processed' serial.save(ignore_permissions=True) # Apply flat pricing