Updating data classes for name changes.
* @release SVN: $Id: dataMembers.php,v 1.0 2011/01/25 19:31:47 cscott
* Exp $
*/
-class GlmDataPaymentTypes extends GlmDataAbstract
+class GlmDataInvoiceTypes extends GlmDataAbstract
{
/**
/*
* Table Name
*/
- $this->table = GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . 'payment_types';
+ $this->table = GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . 'invoice_types';
/*
* Table Data Fields
'use' => 'a',
),
- // Default Billing Period
+ // Invoice Type Name
'name' => array(
'field' => 'name',
'type' => 'text',
'use' => 'a',
),
- // Default Invoice Date
- 'qcode' => array(
- 'field' => 'qcode',
- 'type' => 'text',
- 'use' => 'a',
- ),
-
- // Notification From Email
- 'category' => array(
- 'field' => 'category',
- 'type' => 'text',
- 'use' => 'a',
+ // Parent
+ 'parent' => array(
+ 'field' => 'parent',
+ 'type' => 'integer',
+ 'use' => 'a'
),
- // Notification Message
+ // Amount
'amount' => array(
'field' => 'amount',
'type' => 'text',
'use' => 'a',
),
- // Logo for Invioce PDF
- 'notes' => array(
- 'field' => 'notes',
- 'type' => 'text',
- 'use' => 'a',
+ // Recurring
+ 'recurring' => array(
+ 'field' => 'recurring',
+ 'type' => 'checkbox',
+ 'default' => false,
+ 'use' => 'a',
),
- // Name
- 'dynamic_amount' => array(
- 'field' => 'dynamic_amount',
+ // Recurrence
+ 'recurrence' => array(
+ 'field' => 'recurrence',
'type' => 'text',
'use' => 'a',
),
-
);
+
}
/*
'use' => 'a',
),
- // Default Billing Period
- 'billing_period' => array(
- 'field' => 'billing_period',
- 'type' => 'text',
- 'use' => 'a',
- ),
-
- // Default Invoice Date
- 'invoice_date' => array(
- 'field' => 'invoice_date',
- 'type' => 'text',
- 'use' => 'a',
- ),
-
- // Notification From Email
- 'notification_from' => array(
- 'field' => 'notification_from',
- 'type' => 'text',
- 'use' => 'a',
- ),
-
- // Notification Message
- 'notification_message' => array(
- 'field' => 'notification_message',
- 'type' => 'text',
- 'use' => 'a',
- ),
-
// Logo for Invioce PDF
'company_logo' => array(
'field' => 'company_logo',
[common]
; Billing Types
-billingType[1] = "Invoice"
-billingType[2] = "Payment"
-billingType[3] = "Adjustment"
-billingType[4] = "Comment"
+transaction_type[10] = "Invoice"
+transaction_type[20] = "Payment"
+transaction_type[30] = "Adjustment"
+transaction_type[40] = "Comment"
-; Payment Method
-paymentMethod[1] = "Check"
-paymentMethod[2] = "Credit Card"
-paymentMethod[3] = "Cash"
-paymentMethod[4] = "Other"
+; Payment Methods
+payment_method[10] = "Check"
+payment_method[20] = "Credit Card"
+payment_method[30] = "Cash"
+payment_method[40] = "Other"
+; Recurrences
+recurrence[10] = "Monthly"
+recurrence[20] = "Yearly"
+
+; Send Date Periods
+send_date_period[10] = "Day"
+send_date_period[20] = "Week"
+send_date_period[30] = "Month"
+send_date_period[40] = "Year"
+
+; Send Action
+send_action[10] = "Create Invoice"
+send_action[20] = "Received Payment"
+
+; Send Date When
+send_date_when[10] = "Before"
+send_date_when[20] = "After"