aeolusproject / conductor

Aeolus Conductor
http://www.aeolusproject.org/
Apache License 2.0
32 stars 27 forks source link

Display appropriate validation error message on cost fields of HWP #325

Open rehana-raj opened 11 years ago

rehana-raj commented 11 years ago

Currently on issuing "cost" value above 999 throws this error

" Failed to update Hardware Profile cost PG::Error: ERROR: numeric field overflow DETAIL: A field with precision 8, scale 5 must round to an absolute value less than 10^3. : INSERT INTO "costs" ("billing_model", "chargeable_id", "chargeable_type", "created_at", "price", "updated_at", "valid_from", "valid_to") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" "

Expected : Display appropriate validation message