/** * Figures out when next payment is due. Mostly for recurring cycles. * * @global type $wpi_settings * @param type $args * @return type */ function payment_due($args = '') { $defaults = array('invoice_id' => false); extract(wp_parse_args($args, $defaults), EXTR_SKIP); //** Figure out if this is a recurring bill */ return WPI_Functions::days_since($this->data['meta'][due_date]); }