Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
061399cf
Commit
061399cf
authored
9 years ago
by
inso
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' of
https://github.com/ucoin-io/sakia
into dev
parents
d9651a07
b4ad6703
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sakia/core/money/quant_zerosum.py
+1
-1
1 addition, 1 deletion
src/sakia/core/money/quant_zerosum.py
src/sakia/core/money/relative_zerosum.py
+2
-2
2 additions, 2 deletions
src/sakia/core/money/relative_zerosum.py
src/sakia/gui/community_tile.py
+2
-2
2 additions, 2 deletions
src/sakia/gui/community_tile.py
with
5 additions
and
5 deletions
src/sakia/core/money/quant_zerosum.py
+
1
−
1
View file @
061399cf
...
@@ -47,7 +47,7 @@ class QuantitativeZSum(BaseReferential):
...
@@ -47,7 +47,7 @@ class QuantitativeZSum(BaseReferential):
@property
@property
def
diff_units
(
self
):
def
diff_units
(
self
):
return
self
.
units
return
QCoreApplication
.
translate
(
"
Quantitative
"
,
Quantitative
.
_UNITS_STR_
).
format
(
self
.
community
.
short_currency
)
async
def
value
(
self
):
async
def
value
(
self
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
src/sakia/core/money/relative_zerosum.py
+
2
−
2
View file @
061399cf
...
@@ -46,7 +46,7 @@ class RelativeZSum(BaseReferential):
...
@@ -46,7 +46,7 @@ class RelativeZSum(BaseReferential):
@property
@property
def
diff_units
(
self
):
def
diff_units
(
self
):
return
Relative
.
units
return
QCoreApplication
.
translate
(
"
Relative
"
,
Relative
.
_UNITS_STR_
).
format
(
self
.
community
.
short_currency
)
async
def
value
(
self
):
async
def
value
(
self
):
"""
"""
...
@@ -104,7 +104,7 @@ class RelativeZSum(BaseReferential):
...
@@ -104,7 +104,7 @@ class RelativeZSum(BaseReferential):
localized_value
=
QLocale
().
toString
(
float
(
value
),
'
f
'
,
self
.
app
.
preferences
[
'
digits_after_comma
'
])
localized_value
=
QLocale
().
toString
(
float
(
value
),
'
f
'
,
self
.
app
.
preferences
[
'
digits_after_comma
'
])
if
units
or
international_system
:
if
units
or
international_system
:
return
QCoreApplication
.
translate
(
"
Relative
ZSum
"
,
Relative
ZSum
.
_REF_STR_
)
\
return
QCoreApplication
.
translate
(
"
Relative
"
,
Relative
.
_REF_STR_
)
\
.
format
(
localized_value
,
prefix
,
self
.
community
.
short_currency
if
units
else
""
)
.
format
(
localized_value
,
prefix
,
self
.
community
.
short_currency
if
units
else
""
)
else
:
else
:
return
localized_value
return
localized_value
This diff is collapsed.
Click to expand it.
src/sakia/gui/community_tile.py
+
2
−
2
View file @
061399cf
...
@@ -72,7 +72,7 @@ class CommunityTile(QFrame):
...
@@ -72,7 +72,7 @@ class CommunityTile(QFrame):
international_system
=
self
.
app
.
preferences
[
'
international_system_of_units
'
])
international_system
=
self
.
app
.
preferences
[
'
international_system_of_units
'
])
if
current_block
[
'
monetaryMass
'
]:
if
current_block
[
'
monetaryMass
'
]:
localized_monetary_mass
=
await
self
.
app
.
current_account
.
current_ref
(
current_block
[
'
monetaryMass
'
],
localized_monetary_mass
=
await
self
.
app
.
current_account
.
current_ref
(
current_block
[
'
monetaryMass
'
],
self
.
community
,
self
.
app
).
localized
(
units
=
True
,
self
.
community
,
self
.
app
).
diff_
localized
(
units
=
True
,
international_system
=
self
.
app
.
preferences
[
'
international_system_of_units
'
])
international_system
=
self
.
app
.
preferences
[
'
international_system_of_units
'
])
else
:
else
:
localized_monetary_mass
=
""
localized_monetary_mass
=
""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment