Before re-scheduling the script, make sure to save the invoice and exit this avoid process the same invoice in multiple schedule script instances at the same time.