Skip to content

Commit

Permalink
Merge branch 'a164800652922449_complains_mistaken'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Aug 8, 2016
2 parents 2dddb17 + 6c58176 commit 34e15f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/source/complaints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Tender Conditions Claims/Complaints
.. graphviz::

digraph G {
rankdir=LR;
{rank=same; mistaken; invalid; resolved; declined; stopped; cancelled;}
subgraph cluster_claim {
label = "claim";
claim; answered;
Expand All @@ -39,6 +41,7 @@ Tender Conditions Claims/Complaints
accepted -> {declined,satisfied,stopped};
pending -> {accepted,invalid};
stopping -> {stopped,invalid};
{pending;stopping} -> mistaken;
edge[label="auction" style=dotted];
answered -> {invalid,declined,resolved};
}
Expand All @@ -54,6 +57,8 @@ Tender Award Claims/Complaints
.. graphviz::

digraph G {
rankdir=LR;
{rank=same; mistaken; invalid; resolved; declined; stopped; cancelled;}
subgraph cluster_complaint {
label = "complaint";
pending; accepted; stopping; satisfied;
Expand All @@ -73,6 +78,7 @@ Tender Award Claims/Complaints
pending -> {accepted,invalid};
stopping -> {stopped,invalid};
accepted -> {declined,satisfied,stopped};
{pending;stopping} -> mistaken;
}

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion openprocurement/tender/openua/views/award_complaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def patch(self):
# aboveThresholdReviewers
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'accepted', 'stopping'] and data.get('status', self.context.status) == self.context.status:
apply_patch(self.request, save=False, src=self.context.serialize())
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'stopping'] and data.get('status', self.context.status) == 'invalid':
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'stopping'] and data.get('status', self.context.status) in ['invalid', 'mistaken']:
apply_patch(self.request, save=False, src=self.context.serialize())
self.context.dateDecision = get_now()
self.context.acceptance = False
Expand Down
2 changes: 1 addition & 1 deletion openprocurement/tender/openua/views/complaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def patch(self):
# aboveThresholdReviewers
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'accepted', 'stopping'] and data.get('status', self.context.status) == self.context.status:
apply_patch(self.request, save=False, src=self.context.serialize())
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'stopping'] and data.get('status', self.context.status) == 'invalid':
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'stopping'] and data.get('status', self.context.status) in ['invalid', 'mistaken']:
apply_patch(self.request, save=False, src=self.context.serialize())
self.context.dateDecision = get_now()
self.context.acceptance = False
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os

version = '2.3.7'
version = '2.3.8'

requires = [
'setuptools',
Expand Down

0 comments on commit 34e15f7

Please sign in to comment.