Dirk De Bock - Lists wrote:

> You could maybe provide two fields in the database, one for
> multiply/divide (default to 1) and one for add/substract (default to 0),
> and just perform both operations, if the values are at default the
> result is unchanged

Seems the best idea so far!  They could, if they wished, adjust all
prices by a specific percentage and then add $1.27 at the same time as well.

What makes this even more fun, is that they also want to be able to mark
specific individual products in each category as "excluded from price
adjustments", which I've already implemented.

Considering that for some for some products, there may not even be a
price (a 3 year warranty may be $1545.00 but there may not be a 5 year
warranty available..) - by the time you check to be sure the data is a
number, check to see if it's excluded and then check to see what the
adjustment is, and check to see if it's been altered from the original
amount and swap the style sheet indicating that it has....it's taking a
good 15 - 20 lines of code now just to display a single price in the
table...

I do so love clients that don't care how much it costs to keep adding
and adding features......

--
Les Mizzell
-------------------------
�Mihi placent, O Pincerna!
  Virent ova! Viret perna!
  Dapem posthac non arcebo.
  Gratum tibi me praebebo.�

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to