Fix for command that computes the expiration date of existing warranties. #301

This commit is contained in:
Korina Cordero 2020-01-20 03:21:51 +00:00
parent 4bb67ce7b7
commit f5899f618d

View file

@ -46,7 +46,7 @@ class ComputeWarrantyExpiryDateCommand extends Command
$date_purchase = $warr->getDatePurchase();
$batteries = $this->wh->getBatteriesForWarrantyPeriod($warr);
$batteries = $this->wh->getBatteriesForWarranty($warr);
if (!empty($batteries))
{
$warranty_class = $warr->getWarrantyClass();