Resolve "Separate screen for RESQ transations" #1604

Merged
korina.cordero merged 4 commits from 679-separate-screen-for-resq-transations into master 2022-06-10 07:25:49 +00:00
Showing only changes of commit feade62c18 - Show all commits

View file

@ -15,6 +15,8 @@ use Catalyst\MenuBundle\Annotation\Menu;
use App\Entity\JobOrder;
use App\Service\JobOrderHandlerInterface;
use App\Ramcar\TransactionOrigin;
use App\Ramcar\JOStatus;
use App\Ramcar\ServiceType;
@ -37,7 +39,7 @@ class ResqJobOrderController extends Controller
/**
* @IsGranted("jo_resq_proc.list")
*/
public function datatableRows(Request $req)
public function datatableRows(Request $req, JobOrderHandlerInterface $jo_handler)
{
// get query builder
$qb = $this->getDoctrine()
@ -131,8 +133,10 @@ class ResqJobOrderController extends Controller
$row['processor'] = $orow->getProcessedBy()->getFullName();
// add the items for Actions
$row['meta']['update_url'] = $this->generateUrl('jo_proc_form', ['id' => $orow->getID()]);
$row['meta']['unlock_url'] = $this->generateUrl('jo_resq_proc_unlock', ['id' => $orow->getID()]);
$jo_id = $orow->getID();
$row['meta']['update_url'] = $this->generateUrl('jo_proc_form', ['id' => $jo_id, 'origin' => 'resq']);
$row['meta']['unlock_url'] = $this->generateUrl('jo_resq_proc_unlock', ['id' => $jo_id, 'origin' => 'resq']);
$rows[] = $row;
}