From 64aeea79b1dc7cda084a15a47e04a0329632a169 Mon Sep 17 00:00:00 2001 From: Cheng Date: Mon, 5 Feb 2024 08:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=A2=AF=E5=83=B9=E5=AF=A9BUG?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/mkt/pricereview-create.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/wms/mkt/pricereview-create.php b/wms/mkt/pricereview-create.php index ea0033f5..b1e04cb3 100644 --- a/wms/mkt/pricereview-create.php +++ b/wms/mkt/pricereview-create.php @@ -43,7 +43,7 @@ if ($row[0] > 0) { // 退回重填價審,帶出上次價審內容 $last_pr_arr = $last_pritem_arr = $last_prpay_arr = []; -$sql = "select * from pricereview_main where contractno = '$vol_no' and status in ('YN', 'D') order by id limit 1"; +$sql = "SELECT * FROM pricereview_main WHERE contractno = '$vol_no' AND status in ('YN', 'D') ORDER BY id DESC limit 1"; $res = mysqli_query($link, $sql); if ($row = mysqli_fetch_assoc($res)) { $last_pr_arr = $row; @@ -2549,20 +2549,20 @@ include "../footer.php";