Update over due for Accounts by Age
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 15 Mar 2019 13:56:18 +0000 (09:56 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 15 Mar 2019 13:56:18 +0000 (09:56 -0400)
Should be based on due date.

models/admin/billing/reports.php

index 2a7d255..9c9a622 100644 (file)
@@ -179,7 +179,7 @@ class GlmMembersAdmin_billing_reports extends GlmDataTransactions
                 SELECT account
                   FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "invoices
                  WHERE balance > 0.00
-                   AND transaction_time + INTERVAL 60 DAY <= CURDATE()
+                   AND due_date + INTERVAL 60 DAY <= CURDATE()
                 )";
             $view = 'reports';
             break;