forked from DGNum/gestioCOF
exclut #13 du négatif total
This commit is contained in:
parent
45cc7cfa33
commit
a7f3b85b25
1 changed files with 3 additions and 1 deletions
|
@ -490,7 +490,8 @@ class AccountGroupUpdate(UpdateView):
|
||||||
|
|
||||||
class AccountNegativeList(ListView):
|
class AccountNegativeList(ListView):
|
||||||
queryset = (AccountNegative.objects
|
queryset = (AccountNegative.objects
|
||||||
.select_related('account', 'account__cofprofile__user'))
|
.select_related('account', 'account__cofprofile__user')
|
||||||
|
.exclude(account__trigramme='#13'))
|
||||||
template_name = 'kfet/account_negative.html'
|
template_name = 'kfet/account_negative.html'
|
||||||
context_object_name = 'negatives'
|
context_object_name = 'negatives'
|
||||||
|
|
||||||
|
@ -501,6 +502,7 @@ class AccountNegativeList(ListView):
|
||||||
'overdraft_duration': Settings.OVERDRAFT_DURATION(),
|
'overdraft_duration': Settings.OVERDRAFT_DURATION(),
|
||||||
}
|
}
|
||||||
negs_sum = (AccountNegative.objects
|
negs_sum = (AccountNegative.objects
|
||||||
|
.exclude(account__trigramme='#13')
|
||||||
.aggregate(
|
.aggregate(
|
||||||
bal = Coalesce(Sum('account__balance'),0),
|
bal = Coalesce(Sum('account__balance'),0),
|
||||||
offset = Coalesce(Sum('balance_offset'),0),
|
offset = Coalesce(Sum('balance_offset'),0),
|
||||||
|
|
Loading…
Reference in a new issue