Add checking if invoice has items before getting customer tags. #558
This commit is contained in:
parent
d99bfedb01
commit
02bf16e787
1 changed files with 4 additions and 2 deletions
|
|
@ -71,8 +71,10 @@ class ResqInvoiceGenerator implements InvoiceGeneratorInterface
|
|||
$cust_tag_info = [];
|
||||
if ($stype == ServiceType::BATTERY_REPLACEMENT_NEW)
|
||||
{
|
||||
error_log('calling getCustomerTagInfo');
|
||||
$cust_tag_info = $this->getCustomerTagInfo($cv);
|
||||
// check if criteria has entries
|
||||
$entries = $criteria->getEntries();
|
||||
if (!empty($entries))
|
||||
$cust_tag_info = $this->getCustomerTagInfo($cv);
|
||||
}
|
||||
// error_log($stype);
|
||||
switch ($stype)
|
||||
|
|
|
|||
Loading…
Reference in a new issue