Skip to content

Commit

Permalink
Allow for HP warranty fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed May 15, 2024
1 parent e70ac8c commit 8524c4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Views/devicesRead.php
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,9 @@
<th><?= __('Description') ?></th>
<th><?= __('End OF Life Product ID') ?></th>
<?php } ?>
<?php if ($included['warranty'][0]->vendor === 'HP') { ?>
<th><?= __('Start Date') ?></th>
<?php } ?>
<?php if ($included['warranty'][0]->vendor === 'Dell') { ?>
<th><?= __('Start Date') ?></th>
<th><?= __('Entitlement Type') ?></th>
Expand All @@ -975,12 +978,14 @@
<td><?= $row->description ?></td>
<td><?= $row->tag_1 ?></td>
<?php } ?>
<?php if ($row->vendor === 'HP') { ?>
<td><?= $row->start_date ?></td>
<?php } ?>
<?php if ($row->vendor === 'Dell') { ?>
<td><?= $row->start_date ?></td>
<td><?= $row->tag_1 ?></td>
<td><?= $row->tag_2 ?></td>
<?php } ?>
<?php ?>
</tr>
<?php } ?>
</tbody>
Expand Down

0 comments on commit 8524c4c

Please sign in to comment.