<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
}
$this->add('textarea', 'description', ts('Description'), $attributes['description']);
- $this->add('text', 'item_count', ts('Number of items'), $attributes['item_count'], TRUE);
+ $this->add('text', 'item_count', ts('Number of Items'), $attributes['item_count'], TRUE);
$this->add('text', 'total', ts('Total Amount'), $attributes['total'], TRUE);
}
}
// always create with data entry status
- $params['status_id'] = 3;
+ $params['status_id'] = CRM_Core_OptionGroup::getValue('batch_status','Data Entry', 'name');
$batch = CRM_Batch_BAO_Batch::create($params);
// redirect to batch entry page.