- [ORDER] First Pickup Date 로직 버그 수정.
This commit is contained in:
Hyojin Ahn 2026-04-21 10:28:22 -04:00
parent 000efdd4d4
commit cb73f3e8b4
1 changed files with 6 additions and 7 deletions

View File

@ -677,14 +677,13 @@ class DailyService extends CONF {
// -------------------------------------------------- // --------------------------------------------------
// 1) c_fpickup 처리 // 1) c_fpickup 처리
// -------------------------------------------------- // --------------------------------------------------
if (!empty($orderdate)) { if (
empty($customer['c_fpickup']) &&
$currentFpickup = $customer['c_fpickup'] ?? ''; !empty($orderdate) &&
$thisQuantity >= 10
if (empty($currentFpickup) || $currentFpickup < $orderdate) { ) {
$updateFields[] = "c_fpickup = '{$orderdate}'"; $updateFields[] = "c_fpickup = '{$orderdate}'";
} }
}
// -------------------------------------------------- // --------------------------------------------------
// 2) orderflag 처리 // 2) orderflag 처리