This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
generated from hay-kot/go-web-template
-
-
Notifications
You must be signed in to change notification settings - Fork 223
Total Value does not account for Quantity #458
Labels
bug
Something isn't working
Comments
cRaZy92
added a commit
to cRaZy92/homebox
that referenced
this issue
Jul 27, 2023
Also experiencing this. Is it possible to get this into this repo as well? :) |
Yea, it was very easy fix, I can create a pull request if that helps. |
Yes, please do! |
Never mind, since I already have a fork with many changes I can't do another one. Sorry, I thought that I could just make PR but I can't. |
I can make one a bit later today based on your solution @cRaZy92. |
Allram
pushed a commit
to Allram/homebox
that referenced
this issue
Aug 12, 2023
hay-kot
pushed a commit
that referenced
this issue
Oct 6, 2023
hay-kot
added a commit
that referenced
this issue
Oct 6, 2023
* Fixed incorrect sum of the total items price #458 * fix eslint errors --------- Co-authored-by: Adamko <[email protected]>
hay-kot
added a commit
that referenced
this issue
Jan 28, 2024
* Fixed incorrect sum of the total items price #458 * fix eslint errors --------- Co-authored-by: Adamko <[email protected]> Former-commit-id: f13bf29
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First Check
Homebox Version
0.9.1
What is the issue you are experiencing?
Total Value sums the values (unit purchase price), without accounting for the quantity. It should instead sum the product of the purchase price and the quantity.
I am not very familiar with go, but this is called from
frontend/pages/home/statistics.ts
which callsfrontend/lib/api/classes/stats.ts
. I'm guessing that this then goes to line 229 inbackend/internal/data/repo/repo_group.go
In 236 of
repo_group.go
, there is the relevant part of the query:I'm not sure if this is as simple as the following???
How can the maintainer reproduce the issue?
Compare 'total value' to the sum of the BOM 'total price' column.
Deployment
Docker (Linux)
Deployment Details
No response
The text was updated successfully, but these errors were encountered: