rmaQueueFactory = $rmaQueueFactory;
}
/**
* Load the page defined in json form
*
* @return Page
*/
public function execute()
{
$entity_id = $this->getRequest()->getParam('entity_id');
if ($entity_id > 0) {
$prductQueue = $this->rmaQueueFactory->create()->load($entity_id);
if ($prductQueue) {
$resJson = $prductQueue->getData('data');
header('Content-Type: application/json');
http_response_code(200);
exit($resJson);
}
}
$this->messageManager->addErrorMessage(__('No record found!'));
$this->_redirect('jrnetsuite/rmaqueue/index');
}
/**
* Allow modules
*
* @return int
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('JR_NetSuite::rma_queue');
}
}