Move category/category_name product::class methods into __get(), no functional changes
This commit is contained in:
@@ -52,7 +52,7 @@ class ServiceList extends Command
|
||||
if ((! $this->option('inactive')) && (! $o->is_active))
|
||||
continue;
|
||||
|
||||
if ($this->option('type') && ($o->product->getCategoryAttribute() !== $this->option('type')))
|
||||
if ($this->option('type') && ($o->product->category_lc !== strtolower($this->option('type'))))
|
||||
continue;
|
||||
|
||||
$c = $o->invoiced_items
|
||||
@@ -67,7 +67,7 @@ class ServiceList extends Command
|
||||
|
||||
$this->info(sprintf($header,
|
||||
$o->lid,
|
||||
$o->product->getCategoryNameAttribute(),
|
||||
$o->product->category_name,
|
||||
substr($o->product->getNameAttribute(),0,35),
|
||||
substr($o->name_short,0,40),
|
||||
$o->active ? 'active' : 'inactive',
|
||||
|
Reference in New Issue
Block a user