fix: workflow states match reality - Processed, Needs QA, Priced, Ready for Sale, Sold, Destroyed, Recycled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user