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,7 +71,9 @@ class ResqInvoiceGenerator implements InvoiceGeneratorInterface
|
||||||
$cust_tag_info = [];
|
$cust_tag_info = [];
|
||||||
if ($stype == ServiceType::BATTERY_REPLACEMENT_NEW)
|
if ($stype == ServiceType::BATTERY_REPLACEMENT_NEW)
|
||||||
{
|
{
|
||||||
error_log('calling getCustomerTagInfo');
|
// check if criteria has entries
|
||||||
|
$entries = $criteria->getEntries();
|
||||||
|
if (!empty($entries))
|
||||||
$cust_tag_info = $this->getCustomerTagInfo($cv);
|
$cust_tag_info = $this->getCustomerTagInfo($cv);
|
||||||
}
|
}
|
||||||
// error_log($stype);
|
// error_log($stype);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue