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)