Because JavaScript can read and write to databases, you can have real-time control over the way your scripts operate and be more responsive to changes in the industry as well as your clients’ needs.
Here’s how:
Challenge:
You often have to adjust the amount of commission taken on certain types of bookings. If you allow the agents to enter the amount, mistakes are made which can be costly to fix. If you have your script automatically calculate the commission to reduce errors, you tie up valuable IT resources (your script programmer and those responsible for distributing the scripts) each time you need to adjust the amount. By the time the change is actually implemented, you are already considering revising it!
Solution:
Keep the ‘amount of commission’ used by the script in an easy to modify database table that only yourself or those you trust can access. You can even have a simple ‘settings’ page so that making the adjustment is simpler still.
Example:Because of something you learned this morning, you need to adjust the amount of commission taken on cruises. You open your secure ‘settings’ page and see something like this:
| Some Script Setting: | SOME VALUE |
| Cruise Commission: | .13 |
| Another Script Setting: | SOME VALUE |