Beta2 bug fix. 31237 Option to display current amount instead of percentage
[com.zyxware.civiwci.git] / CRM / Wci / DAO / Widget.php
index 9920b96ab3896caed9e12605172ab3891ad4ae43..2c6f51e7fd24077b4c6bb31eb08aeefdcc13e4dd 100644 (file)
@@ -228,6 +228,12 @@ class CRM_Wci_DAO_Widget extends CRM_Core_DAO
    * @var boolean
    */
   public $hide_pbcap;
+  /**
+   * if true then shows pb in % else in collected amount
+   *
+   * @var boolean
+   */
+  public $show_pb_perc;
   /**
    * Custom template
    *
@@ -454,6 +460,12 @@ class CRM_Wci_DAO_Widget extends CRM_Core_DAO
           'title' => ts('Hide pb caption, if 1.', array('domain' => 'org.civicrm.wci')) ,
           'required' => false,
         ) ,
+        'show_pb_perc' => array(
+          'name' => 'show_pb_perc',
+          'type' => CRM_Utils_Type::T_BOOLEAN,
+          'title' => ts('pb in %(1) or amount(0).', array('domain' => 'org.civicrm.wci')) ,
+          'required' => false,
+        ) ,
         'custom_template' => array(
           'name' => 'custom_template',
           'type' => CRM_Utils_Type::T_TEXT,
@@ -528,6 +540,7 @@ class CRM_Wci_DAO_Widget extends CRM_Core_DAO
         'hide_title' => 'hide_title',
         'hide_border' => 'hide_border',
         'hide_pbcap' => 'hide_pbcap',
+        'show_pb_perc' => 'show_pb_perc',
         'custom_template' => 'custom_template',
       );
     }