From 24d8635dacbf76707bac1bea4ffbab7cf577d8da Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 1 Nov 2025 17:59:12 +0000 Subject: [PATCH] Invoice product autocomplete - search product code as well as name --- agent/invoice.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/agent/invoice.php b/agent/invoice.php index 106b7765..15e3d609 100644 --- a/agent/invoice.php +++ b/agent/invoice.php @@ -163,7 +163,9 @@ if (isset($_GET['invoice_id'])) { //Product autocomplete $products_sql = mysqli_query($mysqli, " SELECT - product_name AS label, + CONCAT(product_code, ' - ', product_name) AS label, + product_name, + product_code, product_type AS type, product_description AS description, product_price AS price, @@ -747,12 +749,20 @@ require_once "../includes/footer.php";