added a function to get the order_id of the previous order in a sustainer series
taking a crack at fixing the bug where date mode will cause two charges on the same day