Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
135
Issues
135
List
Boards
Labels
Milestones
Merge Requests
41
Merge Requests
41
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
24780538
Commit
24780538
authored
Nov 29, 2018
by
Sylvie Ye
Committed by
Romain Bignon
Dec 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[cmso] loan balance can be 0
parent
74ec4f67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pages.py
modules/cmso/par/pages.py
+1
-1
No files found.
modules/cmso/par/pages.py
View file @
24780538
...
...
@@ -272,7 +272,7 @@ class AccountsPage(LoggedPage, JsonPage):
return
NotAvailable
def
obj_balance
(
self
):
return
-
abs
(
CleanDecimal
()
.
filter
(
Dict
(
'montantRestant'
,
default
=
None
)(
self
)
or
Dict
(
'montantUtilise'
)(
self
)))
return
-
abs
(
CleanDecimal
()
.
filter
(
self
.
el
.
get
(
'montantRestant'
,
self
.
el
.
get
(
'montantUtilise'
)
)))
# only for revolving loans
obj_available_amount
=
CleanDecimal
(
Dict
(
'montantDisponible'
,
default
=
None
),
default
=
NotAvailable
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment