added different configuration for backdate order for superadmin and employees

This commit is contained in:
Shreesh Arora
2023-10-16 18:57:39 +05:30
parent f4758e2396
commit 263ba57ac5
5 changed files with 48 additions and 13 deletions

View File

@@ -78,11 +78,6 @@ class AdminOrderPreferencesControllerCore extends AdminController
'class' => 'fixed-width-xl',
'suffix' => $this->l('day(s)'),
),
'BACKDATE_ORDER_EMPLOYEES' => array(
'title' => $this->l('Allow backdate order from Back-office'),
'hint' => $this->l('Allow backoffice employees to create bookings for backdate'),
'type' => 'bool',
),
),
'submit' => array(
'title' => $this->l('Save'),
@@ -202,6 +197,22 @@ class AdminOrderPreferencesControllerCore extends AdminController
),
'submit' => array('title' => $this->l('Save'))
),
'back_date_order' => array(
'title' => $this->l('Backdate Order Restrictions'),
'icon' => 'icon-cogs',
'fields' => array(
'PS_BACKDATE_ORDER_SUPERADMIN' => array(
'title' => $this->l('Allow backdate order from Back-office for super-admin'),
'hint' => $this->l('Allow superadmin to create bookings for backdate'),
'type' => 'bool',
),
'PS_BACKDATE_ORDER_EMPLOYEES' => array(
'title' => $this->l('Allow backdate order from Back-office for employees'),
'hint' => $this->l('Allow employees to create bookings for backdate'),
'type' => 'bool',
),
)
)
);
if (!Configuration::get('PS_ALLOW_MULTISHIPPING')) {