T
|
thesofa 9/20/2008 |
change the first IF condition so it check, as you have, to see if there is a value in the Invoice_Printed field, but also check to make sure that the Invoice_Printed_Date field is empty, then peform the $values["Invoice_Printed_Date"] = Now();
if (($values["Invoice_Printed"]) AND (!$values["Invoice_Printed_Date"]))
|
S
|
swanside author 9/20/2008 |
change the first IF condition so it check, as you have, to see if there is a value in the Invoice_Printed field, but also check to make sure that the Invoice_Printed_Date field is empty, then peform the $values["Invoice_Printed_Date"] = Now();
if (($values["Invoice_Printed"]) AND (!$values["Invoice_Printed_Date"]))
|
S
|
swanside author 9/20/2008 |
Thanks, I ended up combining your help and Janes and now its great if (($values["Invoice_Printed"]) AND (!$values["Invoice_Printing_Date"]))
|
T
|
thesofa 9/21/2008 |
So when you tick the Invoice_Printed field, it puts the date in for Invoice_Printing_Date and also for Invoice_Tax_Date and then adds 30 days to the invoice printed date fro the due date? |
S
|
swanside author 9/21/2008 |
So when you tick the Invoice_Printed field, it puts the date in for Invoice_Printing_Date and also for Invoice_Tax_Date and then adds 30 days to the invoice printed date fro the due date?
|
T
|
thesofa 9/21/2008 |
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=33267&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' /> |