Rebill Projection Report

Discussion in 'Customization & add-ons' started by kevinace, Mar 5, 2007.

  1. kevinace

    kevinace New Member

    Joined:
    Mar 5, 2007
    Messages:
    2
    Hey,

    I am looking for some help on how to query for a report that shows projected rebills for the next 30 days (assuming nobody cancels). Here is what I have right now.

    $date_today = date("Y-m-d");
    $date_30 = date('Y-m-d', strtotime($date_today) + 3600 * 24 * 30);
    $string = "SELECT count(*) AS num_rebills, sum(amount) AS value_rebills, expire_date FROM amember_payments WHERE expire_date BETWEEN '$date_today' AND '$date_30' and data NOT LIKE '%cancel%' GROUP BY expire_date";

    However, if somebody signed up for a $4.95 trial & rebills at $19.95, this report will be inaccurate. Any help on this would be greatly appreciated. What query should I use?

    Kevin
  2. jimojeda

    jimojeda New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    Kevin,

    Did you ever get an answer to this? I think it's a useful feature too.

    Jim
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Unfortunately, there is no such feature yet.

Share This Page