fix: qm cal_count bug
This commit is contained in:
parent
ced8692585
commit
77faee5d1a
|
@ -240,7 +240,7 @@ class FtestWork(CommonBDModel):
|
||||||
|
|
||||||
def cal_count(self):
|
def cal_count(self):
|
||||||
self.count_notok = FtestworkDefect.objects.filter(
|
self.count_notok = FtestworkDefect.objects.filter(
|
||||||
mlogb=self, defect__okcate=30).aggregate(total=Sum("count"))["total"] or 0
|
ftestwork=self, defect__okcate=30).aggregate(total=Sum("count"))["total"] or 0
|
||||||
self.count_ok = self.count - self.count_notok
|
self.count_ok = self.count - self.count_notok
|
||||||
if self.type2 == 20: #全检
|
if self.type2 == 20: #全检
|
||||||
self.count_sampling = self.count
|
self.count_sampling = self.count
|
||||||
|
|
Loading…
Reference in New Issue