Lets say there are 3 "opportunities", by default, the value would be "0", which means 3 total opportunities, and 0 accomplished opportunities, if you change the value to 1, then that would mark it accomplished.., so if you mark 1 of the 3 as "1", (aka true, I guess), then it would be 3 total opportunities, and 1 accomplished opportunities... It also needs a value of "na", which has no value, but removes it as a possible opportunity.. Any idea how to make JS total this up?
Here is my best example of how it would work..
Defaults to..
Quote
Opportunity #1: 0
Opportunity #2: 0
Opportunity #3: 0
Total Opportunities: 3
Accomplished Opportunities: 0
Opportunity #2: 0
Opportunity #3: 0
Total Opportunities: 3
Accomplished Opportunities: 0
Quote
Opportunity #1: 1
Opportunity #2: 1
Opportunity #3: 0
Total Opportunities: 3
Accomplished Opportunities: 2
Opportunity #2: 1
Opportunity #3: 0
Total Opportunities: 3
Accomplished Opportunities: 2
Quote
Opportunity #1: N/A
Opportunity #2: 1
Opportunity #3: 0
Total Opportunities: 2
Accomplished Opportunities: 1
Opportunity #2: 1
Opportunity #3: 0
Total Opportunities: 2
Accomplished Opportunities: 1
Any help is appreciated!


Sign In
Create Account


Back to top









