Here it is... sometimes it works, sometimes it doesn't
PHP Code:
if ($invoice['cycle']== 'monthly'){
$end_timestamp= mktime(0,0,0,$time_parts[2]+01,$time_parts[3],$time_parts[1]);
$period = 1;
}
This is time_parts:
PHP Code:
$begin_period = $invoice['paidthru'];
$time_parts = explode("-",$begin_period);
I test for each billing cycle and add the appropriate time.
Any ideas? My system is rather slick and other than the issue of not tracking time well (which admittedly is a big issue)... right now however, you can correct its guesses about when to bill next via a textbox. I'd like to remove this bug to actually make it functional