Fix issues found during testing. #773
This commit is contained in:
parent
c77591fe01
commit
005f891057
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class SetJobOrderCustNewCommand extends Command
|
||||||
|
|
||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this->setName('jobOrder:setcustomernew')
|
$this->setName('joborder:setcustomernew')
|
||||||
->setDescription('Set job order\'s customer new flag for existing job orders.')
|
->setDescription('Set job order\'s customer new flag for existing job orders.')
|
||||||
->setHelp('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'];
|
$cust_id = $jo_row['cust_id'];
|
||||||
|
|
||||||
// check how many JOs have that customer 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 one or less, set flag_cust_new to true
|
||||||
if ($jo_count <= 1)
|
if ($jo_count <= 1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue