From 7fc1d826f2ad83537c6b3db97b87330ef0eb1cc8 Mon Sep 17 00:00:00 2001 From: Hyojin Ahn Date: Thu, 21 May 2026 09:32:10 -0400 Subject: [PATCH] =?UTF-8?q?v1.2.33=20-=20[FORECAST]=202=EC=A3=BC=20?= =?UTF-8?q?=EC=9D=B4=EC=83=81=20=EC=A3=BC=EA=B8=B0=20=ED=91=9C=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=EC=97=90=EC=84=9C=20=EC=8B=9C=EC=9E=91?= =?UTF-8?q?=EB=82=A0=EC=A7=AD=EB=B3=B4=EB=8B=A4=20=EA=B3=BC=EA=B1=B0?= =?UTF-8?q?=EB=8A=94=20=EC=A0=9C=EC=99=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/doc/export_process.php | 12 ++++++++---- public_html/doc/forecast_list.php | 22 ++++++++++++++-------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/public_html/doc/export_process.php b/public_html/doc/export_process.php index b93ed80..62ad285 100644 --- a/public_html/doc/export_process.php +++ b/public_html/doc/export_process.php @@ -788,10 +788,14 @@ if ($actionStr == "CUSTOMER") { $baseDate = strtotime($c_schedulebasic); $targetDate = strtotime($orderdate); $diffDays = floor(($targetDate - $baseDate) / 86400); - $diffWeeks = floor($diffDays / 7); - if (($diffWeeks % $weekNum) == 0) { - $isScheduleMatch = true; - } + // 과거 제외 + if ($diffDays >= 0) { + $diffWeeks = floor($diffDays / 7); + // n주 간격 체크 + if (($diffWeeks % $weekNum) == 0) { + $isScheduleMatch = true; + } + } } if (!$isScheduleMatch) { diff --git a/public_html/doc/forecast_list.php b/public_html/doc/forecast_list.php index bcb021b..9051a4b 100644 --- a/public_html/doc/forecast_list.php +++ b/public_html/doc/forecast_list.php @@ -268,10 +268,13 @@ if ($c_type_p == 'P') { $targetDate = strtotime($orderdate); // 날짜 차이 $diffDays = floor(($targetDate - $baseDate) / 86400); - $diffWeeks = floor($diffDays / 7); - // n주 간격 체크 - if (($diffWeeks % $weekNum) == 0) { - $isScheduleMatch = true; + // 과거 제외 + if ($diffDays >= 0) { + $diffWeeks = floor($diffDays / 7); + // n주 간격 체크 + if (($diffWeeks % $weekNum) == 0) { + $isScheduleMatch = true; + } } } } @@ -743,10 +746,13 @@ if ($c_type_p == 'P') { $targetDate = strtotime($orderdate); // 날짜 차이 $diffDays = floor(($targetDate - $baseDate) / 86400); - $diffWeeks = floor($diffDays / 7); - // n주 간격 체크 - if (($diffWeeks % $weekNum) == 0) { - $isScheduleMatch = true; + // 과거 제외 + if ($diffDays >= 0) { + $diffWeeks = floor($diffDays / 7); + // n주 간격 체크 + if (($diffWeeks % $weekNum) == 0) { + $isScheduleMatch = true; + } } } }