Merge pull request '# 108' (#109) from 108_Deleted_compensation_checked into master
Reviewed-on: SGD-Nord/konova#109
This commit is contained in:
commit
e5153ddf77
@ -89,7 +89,10 @@ class InterventionQualityChecker(AbstractQualityChecker):
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
c_comps = self.obj.compensations.count()
|
comps = self.obj.compensations.filter(
|
||||||
|
deleted=None
|
||||||
|
)
|
||||||
|
c_comps = comps.count()
|
||||||
c_pays = self.obj.payments.count()
|
c_pays = self.obj.payments.count()
|
||||||
c_deducs = self.obj.deductions.count()
|
c_deducs = self.obj.deductions.count()
|
||||||
c_all = c_comps + c_pays + c_deducs
|
c_all = c_comps + c_pays + c_deducs
|
||||||
|
@ -515,7 +515,9 @@ class RecordModalForm(BaseModalForm):
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
comps = self.instance.compensations.all()
|
comps = self.instance.compensations.filter(
|
||||||
|
deleted=None,
|
||||||
|
)
|
||||||
comps_valid = True
|
comps_valid = True
|
||||||
for comp in comps:
|
for comp in comps:
|
||||||
checker = comp.quality_check()
|
checker = comp.quality_check()
|
||||||
|
Loading…
Reference in New Issue
Block a user