diff --git a/invoice.php b/invoice.php index 2d8f51d9..4a9fc9f1 100644 --- a/invoice.php +++ b/invoice.php @@ -259,7 +259,6 @@ if (isset($_GET['invoice_id'])) { - @@ -288,43 +287,19 @@ if (isset($_GET['invoice_id'])) { $total_tax = $item_tax + $total_tax; $sub_total = $item_price * $item_quantity + $sub_total; $item_order = intval($row['item_order']); - + // Logic to check if top or bottom arrow should be hidden + if ($item_order == 1) { + $up_hidden = "hidden"; + } else { + $up_hidden = ""; + } + if ($item_order == mysqli_num_rows($sql_invoice_items)) { + $down_hidden = "hidden"; + } else { + $down_hidden = ""; + } ?> - - - - - > - @@ -381,7 +358,6 @@ if (isset($_GET['invoice_id'])) {
Sort Item Description
-
- -
- - - - - - -
- - -
-
'; }?> + + @@ -347,24 +331,17 @@ if (isset($_GET['invoice_id'])) {
-
-
-
@@ -573,7 +544,6 @@ if (isset($_GET['invoice_id'])) {
- + }?> - '; }?> + diff --git a/recurring_invoice.php b/recurring_invoice.php index 58c70658..935fc21b 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -255,8 +255,9 @@ if (isset($_GET['recurring_id'])) { - - + + '; }?> +