From 005f89105770d0e209f7ee97334b77f975293962 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 10 Nov 2023 13:29:52 +0800 Subject: [PATCH] Fix issues found during testing. #773 --- src/Command/SetJobOrderCustNewCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/SetJobOrderCustNewCommand.php b/src/Command/SetJobOrderCustNewCommand.php index 5449b371..1e3c0d7e 100644 --- a/src/Command/SetJobOrderCustNewCommand.php +++ b/src/Command/SetJobOrderCustNewCommand.php @@ -26,7 +26,7 @@ class SetJobOrderCustNewCommand extends Command protected function configure() { - $this->setName('jobOrder:setcustomernew') + $this->setName('joborder:setcustomernew') ->setDescription('Set job order\'s customer new flag for existing job orders.') ->setHelp('Set job order\'s customer new flag for existing job orders'); } @@ -53,7 +53,7 @@ class SetJobOrderCustNewCommand extends Command $cust_id = $jo_row['cust_id']; // check how many JOs have that customer id - $jo_count = $this->jo_manager->getCustomerJobOrderCount(); + $jo_count = $this->jo_manager->getCustomerJobOrderCount($cust_id); // if one or less, set flag_cust_new to true if ($jo_count <= 1)