Explorar o código

Add SKU column

Alan Lam %!s(int64=4) %!d(string=hai) anos
pai
achega
bc5813366a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      views/products_table.php

+ 4 - 0
views/products_table.php

@@ -13,6 +13,7 @@ namespace App;
 		<th><?=htmlspecialchars(__("ID"))?></th>
 		<th><?=htmlspecialchars(__("ID"))?></th>
 		<th><?=htmlspecialchars(__("Supplier"))?></th>
 		<th><?=htmlspecialchars(__("Supplier"))?></th>
 		<th><?=htmlspecialchars(__("Name"))?></th>
 		<th><?=htmlspecialchars(__("Name"))?></th>
+		<th><?=htmlspecialchars(__("SKU"))?></th>
 		<th><?=htmlspecialchars(__("Type"))?></th>
 		<th><?=htmlspecialchars(__("Type"))?></th>
 		<th><?=htmlspecialchars(__("Price"))?></th>
 		<th><?=htmlspecialchars(__("Price"))?></th>
 		<th><?=htmlspecialchars(__("Actions"))?></th>
 		<th><?=htmlspecialchars(__("Actions"))?></th>
@@ -35,6 +36,9 @@ namespace App;
 			<td>
 			<td>
 				<?=htmlspecialchars($product->name)?>
 				<?=htmlspecialchars($product->name)?>
 			</td>
 			</td>
+			<td>
+				<?=htmlspecialchars($product->sku)?>
+			</td>
 			<td>
 			<td>
 				<?=htmlspecialchars($product->getDisplayType())?>
 				<?=htmlspecialchars($product->getDisplayType())?>
 			</td>
 			</td>