Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Nextcloud Cospend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Julien Veyssier
Nextcloud Cospend
Commits
426ee1f7
Verified
Commit
426ee1f7
authored
4 years ago
by
Julien Veyssier
Browse files
Options
Downloads
Patches
Plain Diff
refs
#117
use correct precision when displaying settlement plan
Signed-off-by:
Julien Veyssier
<
eneiluj@posteo.net
>
parent
90d9b8e5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Service/ProjectService.php
+2
-2
2 additions, 2 deletions
lib/Service/ProjectService.php
src/Settlement.vue
+4
-1
4 additions, 1 deletion
src/Settlement.vue
with
6 additions
and
3 deletions
lib/Service/ProjectService.php
+
2
−
2
View file @
426ee1f7
...
...
@@ -1247,13 +1247,13 @@ class ProjectService {
$transactions
=
[];
foreach
(
$balances
as
$memberId
=>
$balance
)
{
if
(
$memberId
!==
$centeredOn
)
{
if
(
$balance
>
=
0.0
1
)
{
if
(
$balance
>
0.0
)
{
array_push
(
$transactions
,
[
'from'
=>
$centeredOn
,
'to'
=>
$memberId
,
'amount'
=>
$balance
]);
}
else
if
(
$balance
<
=
-
0.0
1
)
{
}
else
if
(
$balance
<
0.0
)
{
array_push
(
$transactions
,
[
'from'
=>
$memberId
,
'to'
=>
$centeredOn
,
...
...
This diff is collapsed.
Click to expand it.
src/Settlement.vue
+
4
−
1
View file @
426ee1f7
...
...
@@ -57,7 +57,7 @@
<
/div
>
{{
myGetSmartMemberName
(
project
.
id
,
value
.
to
)
}}
<
/td
>
<
td
>
{{
value
.
amount
.
toFixed
(
2
)
}}
<
/td
>
<
td
>
{{
value
.
amount
.
toFixed
(
precision
)
}}
<
/td
>
<
/tr
>
<
/tbody
>
<
/v-table
>
...
...
@@ -103,6 +103,9 @@ export default {
editionAccess
()
{
return
(
this
.
project
.
myaccesslevel
>=
constants
.
ACCESS
.
PARTICIPANT
)
}
,
precision
()
{
return
this
.
project
.
precision
||
2
}
,
}
,
watch
:
{
...
...
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