diff --git a/wms/mkt/price_option-index.php b/wms/mkt/price_option-index.php index f1df7357..941e8e6f 100644 --- a/wms/mkt/price_option-index.php +++ b/wms/mkt/price_option-index.php @@ -3,6 +3,8 @@ include '../header.php'; require_once './conn.php'; $kind = $_GET['kind']; $sql_str = "SELECT * FROM option_price WHERE kind = :kind AND status ='Y'"; +$sql_str = "SELECT option_price.*, option_mi.price as mi FROM option_price LEFT JOIN (SELECT option_mi.option_price_id, option_mi.price FROM option_mi GROUP BY option_mi.option_price_id) option_mi ON option_price.id = option_mi.option_price_id WHERE kind = :kind AND status ='Y'"; + $stmt = $conn->prepare($sql_str); $stmt->bindParam(':kind', $kind); $stmt->execute(); diff --git a/wms/mkt/price_option-select.php b/wms/mkt/price_option-select.php index c371960e..449b4bad 100644 --- a/wms/mkt/price_option-select.php +++ b/wms/mkt/price_option-select.php @@ -1,8 +1,8 @@ prepare($sql_str); $stmt->execute(); $options = $stmt->fetchAll(PDO::FETCH_ASSOC); diff --git a/wms/mkt/pricereview-check.php b/wms/mkt/pricereview-check.php index 250d045b..4a08cba3 100644 --- a/wms/mkt/pricereview-check.php +++ b/wms/mkt/pricereview-check.php @@ -1,5 +1,6 @@ +