Normal Topic As entered (Read 602 times)
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
As entered
Jul 4th, 2012 at 10:28pm
Print Post Print Post  
I have a detailed calculation in my program for several fee structures based on numerous criteria.  However..........the owner would like the option of over riding this fee structure if he so desires......I can't figure out how to ignore my programming if (probably rare) he wants to enter his own fee structure.  Is there sort of a "as entered" type command??
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: As entered
Reply #1 - Jul 5th, 2012 at 12:47pm
Print Post Print Post  
How will he indicate that he wants to use his own fee structure? Do you have a box he can check or suchlike?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
Re: As entered
Reply #2 - Jul 5th, 2012 at 5:56pm
Print Post Print Post  
I tried that.  Putting in a box that said Over ride fees.  But I couldn't get the statement to work.  I put in programming statement to check if that box had a value in it before it caluclated but it calculated anyway.  Is there a limit on how many "ors" and "ands" you can have??  There is a ton of them in there........Or an order you have to list them in?

Basically what I would like, is if over ride fees says yes.......don't do calculations in 3 statements.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: As entered
Reply #3 - Jul 5th, 2012 at 6:02pm
Print Post Print Post  
Assuming that OverrideFees says Yes...

If OverrideFees <> "Yes"
{
    // do stuff
}

If the value of OverrideFees would be something else, check for that instead.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged