From 99f97b814e7d3e008b4404602f49147afa0ed173 Mon Sep 17 00:00:00 2001 From: Ema Ciupe Date: Fri, 7 Jun 2024 17:32:47 +0300 Subject: [PATCH] >= instead of > for financial_findings_local >= audited_expenditure_local --- src/etools/applications/audit/serializers/engagement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etools/applications/audit/serializers/engagement.py b/src/etools/applications/audit/serializers/engagement.py index f1ab8d360b..1e282cb3c9 100644 --- a/src/etools/applications/audit/serializers/engagement.py +++ b/src/etools/applications/audit/serializers/engagement.py @@ -571,7 +571,7 @@ def _validate_financial_findings(self, validated_data): if not audited_expenditure: audited_expenditure = self.instance.audited_expenditure if self.instance else None - if audited_expenditure and financial_findings and financial_findings > audited_expenditure: + if audited_expenditure and financial_findings and financial_findings >= audited_expenditure: raise serializers.ValidationError({'financial_findings': _('Cannot exceed Audited Expenditure')}) if not financial_findings_local: @@ -579,7 +579,7 @@ def _validate_financial_findings(self, validated_data): if not audited_expenditure_local: audited_expenditure_local = self.instance.audited_expenditure_local if self.instance else None - if audited_expenditure_local and financial_findings_local and financial_findings_local > audited_expenditure_local: + if audited_expenditure_local and financial_findings_local and financial_findings_local >= audited_expenditure_local: raise serializers.ValidationError({'financial_findings_local': _('Cannot exceed Audited Expenditure Local')}) def validate(self, validated_data):