antipode3141592 / RACC_Stripe

Stripe Integration with shortcodes for RACC
MIT License
0 stars 0 forks source link

Bad number input 'crashes' allocation calculations #19

Closed antipode3141592 closed 6 years ago

antipode3141592 commented 6 years ago

As soon as a NaN is introduced to the numerical fields, it breaks all further calculations, so user has to reload. need to better capture/handle bad input.

antipode3141592 commented 6 years ago

changed way allocations are done. now total is summed from three input funds (no division anymore). summing is done whenever a fund input is changed, the donation frequency is changed, or the payperiodinputs are changed. also converts all NaN and < 0.0 to 0.0. all > max to max.