Yes, and No.
In your example, you went Max PG and the math worked out.
If you use Max VG, the math works.
If you use something else, ex: 30P/70V, it fails, but 70P/30V works.
If flavor % > PG %, then the negative PG% should be subtracted from the VG % and PG% should be reset to 0% – ie: max VG.
I’ve also had exceptions where there will be 47% of base, and 55% of flavor to come up with 102% total and not fail, or where PG = -0.00% and it will fail.
Will this also allow for creation of stones / bases ? If the user is “smart” and sets nic to 0%, PG% to 100, AND their flavors adds up to exactly 100%, yes. Otherwise, it fails (and adds PG).
Some stupid nit-picky things:
- for the % fields, can the fields’ onChange event, trigger an update to the recipe view at the bottom ? ie: remove the “view” button.
- I hate being logged out all the time, and having to re-log back in.
Awesome job so far ! Weren’t you supposed to take a break ?