Merge branch '301-bug-fix-for-computewarrantyexpirydatecommand-php' into 'master'

Resolve "Bug fix for ComputeWarrantyExpiryDateCommand"

Closes #301

See merge request jankstudio/resq!339
This commit is contained in:
Kendrick Chan 2020-01-20 03:27:54 +00:00
commit 72c26e0424

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();