Show note below product name

This commit is contained in:
Bernd Bestel 2018-01-04 21:55:12 +01:00
parent 52ed5f2285
commit 57acb62520
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -15,9 +15,8 @@
<thead>
<tr>
<th>#</th>
<th>Product</th>
<th>Product / <em>Note</em></th>
<th>Amount</th>
<th>Note</th>
</tr>
</thead>
<tbody>
@ -32,14 +31,11 @@
</a>
</td>
<td>
<?php if (!empty($listItem->product_id)) echo GrocyPhpHelper::FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name; ?>
<?php if (!empty($listItem->product_id)) echo GrocyPhpHelper::FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name . '<br>'; ?><em><?php echo $listItem->note; ?></em>
</td>
<td>
<?php echo $listItem->amount + $listItem->amount_autoadded; if (!empty($listItem->product_id)) echo ' ' . GrocyPhpHelper::FindObjectInArrayByPropertyValue($quantityunits, 'id', GrocyPhpHelper::FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->qu_id_purchase)->name; ?>
</td>
<td>
<?php echo $listItem->note; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>