From: Jason Woofenden Date: Sat, 5 Sep 2009 09:07:13 +0000 (-0400) Subject: stop showing tiny agreement to contractor when he switches users X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=commitdiff_plain;h=1656ee459ec82ab8f1113ebc71a8c923517b43ad stop showing tiny agreement to contractor when he switches users --- diff --git a/index.php b/index.php index 88e5605..03e3077 100644 --- a/index.php +++ b/index.php @@ -115,14 +115,17 @@ function totals_summary($arr) { function _index_main() { $client_id = logged_in(); + $ever_was_contractor = ever_was_contractor(); - # make sure they've filled out the tiny user agreement - $tiny_agreement = db_get_value('people', 'tiny_agreement', 'where id=%i', $client_id); - if($tiny_agreement < 30 || $tiny_agreement > 999) { - return './tiny_agreement'; + # make sure the client (not the contractor) has filled out the tiny agreement + if(!$ever_was_contractor) { + $tiny_agreement = db_get_value('people', 'tiny_agreement', 'where id=%i', $client_id); + if($tiny_agreement < 30 || $tiny_agreement > 999) { + return './tiny_agreement'; + } } - if(ever_was_contractor()) { + if($ever_was_contractor) { tem_show('su_link'); } diff --git a/tiny_agreement.html b/tiny_agreement.html index f3dcd16..96d4143 100644 --- a/tiny_agreement.html +++ b/tiny_agreement.html @@ -10,11 +10,13 @@

Tiny Job Agreement

-

For tiny jobs ($30 or less) it is a waste of time to wait for pricing approval. So I have my clients make the following agreement:

+

Welcome to the task manager! I'd like to take this opportunity to have you make an agreement with me about very small jobs. Please read it carefully, and call me if you have any questions.

+ +

For tiny jobs ($30 or less) the normal pricing approval process is cumbersome. So I have my clients make the following agreement:

-

For work that I request of Jason Woofenden (whether through this site, or other forms of communication like e-mail or phone), I hereby agree to pay the fee he chooses, if that fee is less than or equal to

+

For work that I request of Jason Woofenden (whether through this site, or other forms of communication like e-mail or phone), I hereby agree to pay the fee he chooses, so long as it is or less.

Cutting out the overhead of quotes for tiny jobs should make it so I can keep my minimum fee at $10.