projects
/
WP-Plugins
/
glm-member-db-billing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0811aed
)
Update check for creating invoices list.
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 31 Jul 2019 13:06:34 +0000
(09:06 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 31 Jul 2019 13:06:34 +0000
(09:06 -0400)
Don't try auto creating payment types with no amount or dynamic amount
ones.
models/admin/billing/invoicing.php
patch
|
blob
|
history
diff --git
a/models/admin/billing/invoicing.php
b/models/admin/billing/invoicing.php
index
ac1fa78
..
9ddde6e
100644
(file)
--- a/
models/admin/billing/invoicing.php
+++ b/
models/admin/billing/invoicing.php
@@
-177,7
+177,7
@@
class GlmMembersAdmin_billing_invoicing //extends GlmDataAccounts
$wParts[] = " T.invoice_type NOT IN (
SELECT id
FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "invoice_types
- WHERE dynamic_amount = true
+ WHERE dynamic_amount = true
OR amount <= 0.00
) ";
// echo '<pre>$wParts: ' . print_r( $wParts, true ) . '</pre>';