+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Financial_Form_FinancialAccount extends CRM_Contribute_Form {
/**
- * Flag if its a AR account type
+ * Flag if its a AR account type.
*
* @var boolean
*/
/**
- * Set variables up before form is built
+ * Set variables up before form is built.
*
* @return void
*/
}
/**
- * Build the form object
+ * Build the form object.
*
* @return void
*/
$this->add('text', 'accounting_code', ts('Accounting Code'), $attributes['accounting_code']);
$elementAccounting = $this->add('text', 'account_type_code', ts('Account Type Code'), $attributes['account_type_code']);
$this->addEntityRef('contact_id', ts('Owner'), array(
- 'api' => array('params' => array('contact_type' => 'Organization')),
- 'create' => TRUE
- ));
+ 'api' => array('params' => array('contact_type' => 'Organization')),
+ 'create' => TRUE,
+ ));
$this->add('text', 'tax_rate', ts('Tax Rate'), $attributes['tax_rate']);
$this->add('checkbox', 'is_deductible', ts('Tax-Deductible?'));
$elementActive = $this->add('checkbox', 'is_active', ts('Enabled?'));
}
/**
- * Global validation rules for the form
+ * Global validation rules for the form.
*
* @param array $values
* posted values of the form
*
* @return array
* list of errors to be posted back to the form
- * @static
*/
public static function formRule($values, $files, $self) {
$errorMsg = array();
}
/**
- * Process the form submission
+ * Process the form submission.
*
* @return void
*/