From: Steve Sutton Date: Wed, 28 Nov 2018 14:51:59 +0000 (-0500) Subject: Deal with line items that have no account X-Git-Tag: v1.0.17^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0594b3c133a01cc622dafb1d39490efb40e7f54c;p=WP-Plugins%2Fglm-member-db-billing.git Deal with line items that have no account These are not renewals so they won't have an account. --- diff --git a/index.php b/index.php index 5263c2c..60634cf 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Billing * Plugin URI: http://www.gaslightmedia.com/ * Description: This is glmAssociate Billing Module - * Version: 1.0.16 + * Version: 1.0.17 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersBillingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.16 + * @version 1.0.17 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.16'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.17'); define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/views/admin/billing/invoiceStore.html b/views/admin/billing/invoiceStore.html index ee08d4c..e53c433 100644 --- a/views/admin/billing/invoiceStore.html +++ b/views/admin/billing/invoiceStore.html @@ -85,8 +85,13 @@ body { {foreach $line_items as $item} - {$item.account.ref_name} - {$item.account.anniversary_date|date_format:"%m/%d/%y"} + {if isset($item.account) && $item.account == "0"} + N/A + N/A + {else} + {$item.account.ref_name} + {$item.account.anniversary_date|date_format:"%m/%d/%y"} + {/if}   {$item.name} ${$item.amount|string_format:"%.2f"}