Re: Process of creating invoices requiring human thought!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Nunnerley wrote:
Can anyone see an easy way of putting that sort of “human thinking” into a
script?  Any guidance would be gratefully received…
You could include a "fuzz" factor that is acceptable to your application. You could also provide a "nicer" fuzz factor to people who don't use up all the hours in other time periods.

E.g. (pseudo-code, time represented in seconds)

$fuzz = 1800;
if ($client['end']-$fuzz < $timePeriod['start']) // freebie

or for the unused time thing:

if ($client['end']-($fuzz+$unused) < $timePeriod['start']) // freebie

Of course you can probably think of dozens of variations on that theme, but you get the idea.

jon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux