Merge branch '74-fix-under-warranty-jo-bug' into 'master'
Resolve "Fix under warranty JO bug" Closes #74 See merge request jankstudio/resq!61
This commit is contained in:
commit
973d127244
1 changed files with 3 additions and 2 deletions
|
|
@ -206,9 +206,10 @@ class InvoiceCreator
|
|||
public function processWarranty(&$total, InvoiceCriteria $criteria, $invoice)
|
||||
{
|
||||
error_log('processing warranty');
|
||||
$batteries = $criteria->getBatteries();
|
||||
foreach ($batteries as $batt)
|
||||
$entries = $criteria->getEntries();
|
||||
foreach ($entries as $entry)
|
||||
{
|
||||
$batt = $entry['battery'];
|
||||
$item = new InvoiceItem();
|
||||
$item->setInvoice($invoice)
|
||||
->setTitle($batt->getModel()->getName() . ' ' . $batt->getSize()->getName() . ' - Service Unit')
|
||||
|
|
|
|||
Loading…
Reference in a new issue