fix: Convert null values to empty string on grouping
This commit is contained in:
parent
19a0ca1980
commit
3fcc5e3134
@ -104,7 +104,7 @@ class ExchangeRateRevaluation(Document):
|
||||
where account in (%s)
|
||||
and posting_date <= %s
|
||||
and is_cancelled = 0
|
||||
group by account, party_type, party
|
||||
group by account, NULLIF(party_type,''), NULLIF(party,'')
|
||||
having sum(debit) != sum(credit)
|
||||
order by account
|
||||
""" % (', '.join(['%s']*len(accounts)), '%s'), tuple(accounts + [self.posting_date]), as_dict=1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user