Hello everyone,<br><br>We need to update the invoice status automatically  according different conditions, such as update  the invoice status to "expiration soon"  7 days before the due date,<br>so we need to write the php script firstly, then run the php file by scheduler service cron in the server. we need some help about how to write the php script,<br><br>Anyone know how to write the php script  to update  the invoice status to "expiration soon"  7 days before the due date ?<br><br><br>Regards!<br>Andy<br><br><br><br>