add note and lock to entity definition
This commit is contained in:
parent
570d858b17
commit
4cf1c728e1
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Generated from /home/jon/local/agbud8/htdocs/web/sites/all/civicrm/extensions/org.agbu.annualgrantbudgets/xml/schema/CRM/AnnualGrantBudgets/GrantBudget.xml
|
||||
* DO NOT EDIT. Generated by CRM_Core_CodeGen
|
||||
* (GenCodeChecksum:7aad27e2f51ebfb640dd921e054f55c9)
|
||||
* (GenCodeChecksum:36ad4daebed0e606747c4c8c53269a42)
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -56,6 +56,20 @@ class CRM_AnnualGrantBudgets_DAO_GrantBudget extends CRM_Core_DAO {
|
||||
*/
|
||||
public $budget;
|
||||
|
||||
/**
|
||||
* Note
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $note;
|
||||
|
||||
/**
|
||||
* Is this budget item locked for non-administrators?
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $is_reserved;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
@ -162,6 +176,42 @@ class CRM_AnnualGrantBudgets_DAO_GrantBudget extends CRM_Core_DAO {
|
||||
'type' => 'Text',
|
||||
],
|
||||
],
|
||||
'note' => [
|
||||
'name' => 'note',
|
||||
'type' => CRM_Utils_Type::T_STRING,
|
||||
'title' => CRM_AnnualGrantBudgets_ExtensionUtil::ts('Note'),
|
||||
'description' => CRM_AnnualGrantBudgets_ExtensionUtil::ts('Note'),
|
||||
'required' => FALSE,
|
||||
'maxlength' => 255,
|
||||
'size' => CRM_Utils_Type::HUGE,
|
||||
'import' => TRUE,
|
||||
'where' => 'civicrm_grant_budget.note',
|
||||
'export' => TRUE,
|
||||
'table_name' => 'civicrm_grant_budget',
|
||||
'entity' => 'GrantBudget',
|
||||
'bao' => 'CRM_AnnualGrantBudgets_DAO_GrantBudget',
|
||||
'localizable' => 1,
|
||||
'html' => [
|
||||
'type' => 'Text',
|
||||
],
|
||||
],
|
||||
'is_reserved' => [
|
||||
'name' => 'is_reserved',
|
||||
'type' => CRM_Utils_Type::T_BOOLEAN,
|
||||
'title' => CRM_AnnualGrantBudgets_ExtensionUtil::ts('Is Reserved'),
|
||||
'description' => CRM_AnnualGrantBudgets_ExtensionUtil::ts('Is this budget item locked for non-administrators?'),
|
||||
'import' => TRUE,
|
||||
'where' => 'civicrm_grant_budget.is_reserved',
|
||||
'export' => TRUE,
|
||||
'default' => '0',
|
||||
'table_name' => 'civicrm_grant_budget',
|
||||
'entity' => 'GrantBudget',
|
||||
'bao' => 'CRM_AnnualGrantBudgets_DAO_GrantBudget',
|
||||
'localizable' => 1,
|
||||
'html' => [
|
||||
'type' => 'CheckBox',
|
||||
],
|
||||
],
|
||||
];
|
||||
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
|
||||
}
|
||||
|
@ -84,7 +84,9 @@ CREATE TABLE `civicrm_grant_budget` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique ScholarshipBudget ID',
|
||||
`financial_type_id` int unsigned NOT NULL COMMENT 'FK to Financial Type',
|
||||
`fiscal_year` int unsigned NOT NULL COMMENT 'Fiscal year',
|
||||
`budget` decimal(20,2) NOT NULL DEFAULT 0.00 COMMENT 'Scholarship Annual Budget'
|
||||
`budget` decimal(20,2) NOT NULL DEFAULT 0.00 COMMENT 'Scholarship Annual Budget',
|
||||
`note` varchar(255) NULL COMMENT 'Note',
|
||||
`is_reserved` tinyint DEFAULT 0 COMMENT 'Is this budget item locked for non-administrators?'
|
||||
,
|
||||
PRIMARY KEY (`id`)
|
||||
|
||||
|
@ -74,4 +74,33 @@
|
||||
<type>Text</type>
|
||||
</html>
|
||||
</field>
|
||||
|
||||
<field>
|
||||
<name>note</name>
|
||||
<title>Note</title>
|
||||
<type>varchar</type>
|
||||
<length>255</length>
|
||||
<comment>Note</comment>
|
||||
<required>false</required>
|
||||
<import>true</import>
|
||||
<export>true</export>
|
||||
<localizable>false</localizable>
|
||||
<html>
|
||||
<type>Text</type>
|
||||
</html>
|
||||
</field>
|
||||
|
||||
<field>
|
||||
<name>is_reserved</name>
|
||||
<title>Is Reserved</title>
|
||||
<type>boolean</type>
|
||||
<comment>Is this budget item locked for non-administrators?</comment>
|
||||
<import>true</import>
|
||||
<export>true</export>
|
||||
<localizable>false</localizable>
|
||||
<default>0</default>
|
||||
<html>
|
||||
<type>CheckBox</type>
|
||||
</html>
|
||||
</field>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user