Fix the issue - Hotel restriction

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
aradhana kumari
2026-05-27 16:06:59 +05:30
parent 0e8f60f426
commit 2603350b73
3 changed files with 21 additions and 10 deletions

View File

@@ -115,7 +115,7 @@ class AdminSlipControllerCore extends AdminController
public function initPageHeaderToolbar()
{
if (empty($this->display)) {
if (empty($this->display) || $this->display == 'list') {
$this->page_header_toolbar_btn['new_credit_slip'] = array(
'href' => self::$currentIndex . '&add' . $this->table . '&token=' . $this->token,
'desc' => $this->l('Add Credit Slip', null, null, false),
@@ -129,8 +129,7 @@ class AdminSlipControllerCore extends AdminController
public function renderForm()
{
if ($this->display == 'add') {
$order = new Order();
$orderList = $order->getOrdersWithInformations();
$orderList = Order::getOrdersWithInformations(null, null, true);
foreach ($orderList as &$order) {
$order['order_label'] = $order['reference'] . ' #' . (int) $order['id_order'];
}