Fixed the _find_order_holes() utility in the accounting application.
This commit is contained in:
parent
bbfe9e7892
commit
e0e2815c34
@ -912,7 +912,7 @@ def _find_order_holes(records):
|
|||||||
holes = [x["date"] for x in Transaction.objects
|
holes = [x["date"] for x in Transaction.objects
|
||||||
.values("date")
|
.values("date")
|
||||||
.annotate(count=Count("ord"), max=Max("ord"))
|
.annotate(count=Count("ord"), max=Max("ord"))
|
||||||
.filter(Q(count=F("max")))]\
|
.filter(~Q(count=F("max")))]\
|
||||||
+ [x["date"] for x in Transaction.objects
|
+ [x["date"] for x in Transaction.objects
|
||||||
.values("date", "ord")
|
.values("date", "ord")
|
||||||
.annotate(count=Count("sn"))
|
.annotate(count=Count("sn"))
|
||||||
|
Loading…
Reference in New Issue
Block a user