Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to input small values into Cost field #285

Open
bjartur2004 opened this issue Aug 27, 2024 · 1 comment
Open

[Bug]: Unable to input small values into Cost field #285

bjartur2004 opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bjartur2004
Copy link

bjartur2004 commented Aug 27, 2024

Binner version

v2.6.3

Operating System

Ubuntu server

Describe the bug and the steps to reproduce it

Im unable to manually set a small number for cost for an item.
discovered when trying to input the price of a single resistor $0.0037 and it would reset to 0.00 when saving

when testing i once managed to input and save ".0037" but can not reproduce this.
i have no issue inputing higher values for cost

Would you like to attach your appsetings.json configuration?

No response

Screenshots or Videos (Optional, but they help!)

No response

Are you able to contribute a PR? (No is ok!)

yes, I will attempt too fix it:)

@bjartur2004 bjartur2004 added the bug Something isn't working label Aug 27, 2024
@bjartur2004
Copy link
Author

it seems like the issue is more precisely that its only saving 2 decimals and clipping off the rest.

looking into it a little it seems like there was an intentional limit of 4 decimals, but i have not yet found where its limiting it to 2

builder.Property(p => p.Cost)
.HasColumnType("decimal(18,4)");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant