Updated: KPI design at back office

This commit is contained in:
Abhishek Kumar
2023-11-02 12:48:49 +05:30
parent ce93a9826f
commit 86d76ea4e8
17 changed files with 856 additions and 215 deletions

View File

@@ -90,7 +90,8 @@ class AdminCustomerPreferencesControllerCore extends AdminController
'cast' => 'intval',
'size' => 5,
'type' => 'text',
'suffix' => $this->l('minutes')
'suffix' => $this->l('minutes'),
'class' => 'fixed-width-xl',
),
'PS_B2B_ENABLE' => array(
'title' => $this->l('Enable B2B mode'),
@@ -120,6 +121,41 @@ class AdminCustomerPreferencesControllerCore extends AdminController
'cast' => 'intval',
'type' => 'bool'
),
'PS_KPI_FREQUENT_CUSTOMER_NB_ORDERS' => array(
'title' => $this->l('Number of orders to use to calculate frequent customers'),
'hint' => $this->l('Set the number of orders to use to calculate frequent customers.'),
'validation' => 'isUnsignedInt',
'cast' => 'intval',
'type' => 'text',
'class' => 'fixed-width-xxl',
),
'PS_KPI_REVPAC_NB_DAYS' => array(
'title' => $this->l('Number of days to use to calculate RevPAC'),
'hint' => $this->l('Set the number of days to use to calculate RevPAC.'),
'validation' => 'isUnsignedInt',
'cast' => 'intval',
'type' => 'text',
'suffix' => $this->l('days'),
'class' => 'fixed-width-xl',
),
'PS_KPI_CONVERSION_RATE_NB_DAYS' => array(
'title' => $this->l('Number of days to use to calculate Conversion Rate'),
'hint' => $this->l('Set the number of days to use to calculate Conversion Rate.'),
'validation' => 'isUnsignedInt',
'cast' => 'intval',
'type' => 'text',
'suffix' => $this->l('days'),
'class' => 'fixed-width-xl',
),
'PS_KPI_NEW_CUSTOMERS_NB_DAYS' => array(
'title' => $this->l('Number of days to use to calculate New Customers'),
'hint' => $this->l('Set the number of days to use to calculate New Customers.'),
'validation' => 'isUnsignedInt',
'cast' => 'intval',
'type' => 'text',
'suffix' => $this->l('days'),
'class' => 'fixed-width-xl',
),
),
'submit' => array('title' => $this->l('Save')),
),