MicahWW / Money-Tracking-Functions

The backend to a service to help track how one's money is being spent
0 stars 0 forks source link

Items drop their cents when inserting #5

Closed MicahWW closed 4 months ago

MicahWW commented 4 months ago

All amounts in the items table are *.00, something is going wrong when inserting.

MicahWW commented 4 months ago

hen prepping the insert statement and running the function cmd.Parameters.AddWithValue for columns of decimal type you must pass a double type in the C# code so it knows to translate the later given value to a decimal instead of an int.

Fixed in commit 51c6e1d