diff options
Diffstat (limited to 'servo/models')
-rw-r--r-- | servo/models/parts.py | 1 | ||||
-rw-r--r-- | servo/models/repair.py | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/servo/models/parts.py b/servo/models/parts.py index c7076d8..f854fdc 100644 --- a/servo/models/parts.py +++ b/servo/models/parts.py @@ -264,6 +264,7 @@ class ServicePart(models.Model): part.returnOrderNumber = self.return_order if self.box_number > 0: part.boxNumber = self.box_number + return part def needs_comptia_code(self): diff --git a/servo/models/repair.py b/servo/models/repair.py index c7ae4a1..9649b86 100644 --- a/servo/models/repair.py +++ b/servo/models/repair.py @@ -190,6 +190,9 @@ class Repair(models.Model): issue_code = models.CharField(max_length=7, default='') def get_symptom_code_choices(self): + """ + Returns the possible symptom codes for the current serial number + """ # @fixme: what if it's someone else ordering the part? self.gsx_account.connect(self.created_by) ckey = 'symptom_codes-%s' % self.device.sn @@ -197,6 +200,9 @@ class Repair(models.Model): return cache_getset(ckey, si.fetch) def get_issue_code_choices(self): + """ + Returns the possible issue codes for the current symptom code + """ # @fixme: what if it's someone else ordering the part? self.gsx_account.connect(self.created_by) ckey = 'issue_codes-%s' % self.symptom_code |