CRM-19626: Add min-amount handling to priceset
[civicrm-core.git] / CRM / Price / DAO / PriceSet.php
index bda7ba9467aa92cce876464edcc746b8b3478798..f07500a2bd45e62ecdc27aed5e91e1c3b189499d 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSet.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cf1125145d52414335549f50501ff5fc)
+ * (GenCodeChecksum:1642f2b38411573c40848c0d7c83c74c)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -120,6 +120,12 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
    * @var boolean
    */
   public $is_reserved;
+  /**
+   * Minimum Amount required for this set.
+   *
+   * @var int unsigned
+   */
+  public $min_amount;
   /**
    * class constructor
    *
@@ -292,6 +298,15 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
             'type' => 'CheckBox',
           ) ,
         ) ,
+        'min_amount' => array(
+          'name' => 'min_amount',
+          'type' => CRM_Utils_Type::T_INT,
+          'title' => ts('Minimum Amount') ,
+          'description' => 'Minimum Amount required for this set.',
+          'html' => array(
+            'type' => 'Text',
+          ) ,
+        ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }