You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you try to set product price with custom Fee % and net price = $0 (say it's a supplier freebie or something but buyer still pays) you'll get an app error
To Reproduce
Steps to reproduce the behavior:
Log in as market manager
Go to Prices tab for a product
Click Edit
Set Fee % to Product and value = 100
Set Net Price = 0
Set Sale Price = 1
Click Save
See error like PG::NumericValueOutOfRange: ERROR: numeric field overflow DETAIL: A field with precision 5, scale 3 must round to an absolute value less than 10^2. : UPDATE "prices" SET "net_price" = $1, "product_fee_pct" = $2, "sale_price" = $3, "updated_at" = $4 WHERE "prices"."id" = 200782
Expected behavior
This would save and work in the system correctly or at least provide a valid error message in short-term (if a $0.00 net price product is too high of effort to do at this time).
Describe the bug
If you try to set product price with custom Fee % and net price = $0 (say it's a supplier freebie or something but buyer still pays) you'll get an app error
To Reproduce
Steps to reproduce the behavior:
PG::NumericValueOutOfRange: ERROR: numeric field overflow DETAIL: A field with precision 5, scale 3 must round to an absolute value less than 10^2. : UPDATE "prices" SET "net_price" = $1, "product_fee_pct" = $2, "sale_price" = $3, "updated_at" = $4 WHERE "prices"."id" = 200782
Expected behavior
This would save and work in the system correctly or at least provide a valid error message in short-term (if a $0.00 net price product is too high of effort to do at this time).
Screenshots
Rollbar instances
The text was updated successfully, but these errors were encountered: