Convert value to Decimal when searching receivabel/payable
issue2299 review191001 (transplanted from e0e172026e4683c47ab6681203912cb9962d906f)
This commit is contained in:
1 parent
b76cd160cc
commit
acdd69f90d
1 file changed
+1
-1
@@ -181,7 +181,7 @@ class Party(ModelSQL, ModelView):
|
||||
'HAVING ' + \
|
||||
'AND'.join('(SUM((COALESCE(l.debit, 0) - COALESCE(l.credit, 0))) ' \
|
||||
+ ' ' + x[1] + ' %s) ' for x in args),
|
||||
[code] + today_value + [company_id] + [x[2] for x in args])
|
||||
[code] + today_value + [company_id] + [Decimal(x[2]) for x in args])
|
||||
return [('id', 'in', [x[0] for x in cursor.fetchall()])]
|
||||
|
||||
Party()
|
||||
Reference in new issue
Block a user