diff --git a/public_html/assets/api/daily.php b/public_html/assets/api/daily.php
index 7f3a0e4..f1db470 100644
--- a/public_html/assets/api/daily.php
+++ b/public_html/assets/api/daily.php
@@ -914,17 +914,19 @@ class DailyService extends CONF {
if ($status !== 'F' || $visit !== 'Y') return;
$customerUid = mysqli_real_escape_string($connect, $after['d_customeruid']);
+ $orderdate = mysqli_real_escape_string($connect, $after['d_orderdate']);
$sql = "
UPDATE tbl_customer
SET
- c_fullquantity = 0
+ c_fullquantity = 0,
+ c_lastpickupdate = '{$orderdate}'
WHERE c_uid = '{$customerUid}'
";
mysqli_query($connect, $sql);
- error_log("[PickupReset] customer={$customerUid} reset fullquantity");
+ error_log("[PickupReset] customer={$customerUid} reset fullquantity + lastpickupdate={$orderdate}");
}
public function deleteDaily(string $orderdate, string $accountno, string $jobtype, array $opt = [])
diff --git a/public_html/login_intranet.php b/public_html/login_intranet.php
index 63b1aec..9f6486b 100644
--- a/public_html/login_intranet.php
+++ b/public_html/login_intranet.php
@@ -1,7 +1,7 @@