v1.1.8
- [ORDER] 기름 양 입력 후 예상량 리셋 + 픽업날짜 업데이트 - fixed (order의 예상량은 업데이트에서 제외, 로그 춗소)
This commit is contained in:
parent
be9a6fc156
commit
6963616654
|
|
@ -119,8 +119,8 @@ class DailyService extends CONF {
|
|||
$data = $this->normalizeDailyPayload($data, $existing ?: null);
|
||||
$data = $this->hydrateDailySnapshot($data, $existing ?: null);
|
||||
|
||||
// estquantity 자동 계산
|
||||
if (empty($data['d_estquantity'])) {
|
||||
// estquantity 자동 계산 (입력때만 안그러면 d_estquantity 값이 0으로 덮어 씌워짐)
|
||||
if (!$existing && empty($data['d_estquantity'])) {
|
||||
$data['d_estquantity'] = $this->calculateEstQuantity($data, $existing);
|
||||
}
|
||||
|
||||
|
|
@ -857,6 +857,7 @@ class DailyService extends CONF {
|
|||
if ($status !== 'F' || $visit !== 'Y') return;
|
||||
|
||||
$customerUid = mysqli_real_escape_string($connect, $after['d_customeruid']);
|
||||
$accountno = mysqli_real_escape_string($connect, $after['d_accountno']);
|
||||
$today = date('Ymd');
|
||||
$jobtype = mysqli_real_escape_string($connect, $after['d_jobtype'] ?? 'UCO');
|
||||
|
||||
|
|
@ -895,7 +896,7 @@ class DailyService extends CONF {
|
|||
}
|
||||
}
|
||||
|
||||
error_log("[PickupCleanup] ERP-safe delete completed for customer={$customerUid}");
|
||||
error_log("[PickupCleanup] ERP-safe delete completed for customer={$accountno}");
|
||||
}
|
||||
|
||||
private function handlePickupReset(?array $before, array $after): void
|
||||
|
|
@ -914,19 +915,21 @@ class DailyService extends CONF {
|
|||
if ($status !== 'F' || $visit !== 'Y') return;
|
||||
|
||||
$customerUid = mysqli_real_escape_string($connect, $after['d_customeruid']);
|
||||
$accountno = mysqli_real_escape_string($connect, $after['d_accountno']);
|
||||
$orderdate = mysqli_real_escape_string($connect, $after['d_orderdate']);
|
||||
|
||||
$sql = "
|
||||
UPDATE tbl_customer
|
||||
SET
|
||||
c_fullquantity = 0,
|
||||
c_lastpickupdate = '{$orderdate}'
|
||||
c_lastpickupdate = '{$orderdate}',
|
||||
c_lastpickupquantity = '{$afterQty}'
|
||||
WHERE c_uid = '{$customerUid}'
|
||||
";
|
||||
|
||||
mysqli_query($connect, $sql);
|
||||
|
||||
error_log("[PickupReset] customer={$customerUid} reset fullquantity + lastpickupdate={$orderdate}");
|
||||
error_log("[PickupReset] customer={$accountno} reset fullquantity + lastpickupdate={$orderdate}");
|
||||
}
|
||||
|
||||
public function deleteDaily(string $orderdate, string $accountno, string $jobtype, array $opt = [])
|
||||
|
|
|
|||
|
|
@ -1642,8 +1642,7 @@ class API extends CONF {
|
|||
'd_is_transfer' => 'N',
|
||||
'd_level' => $_SESSION['ss_LEVEL'],
|
||||
];
|
||||
error_log("=== saveInput DEBUG ===");
|
||||
error_log($_SESSION['ss_LEVEL']);
|
||||
|
||||
// note → daily.php에서 처리됨
|
||||
if ($note !== '') {
|
||||
$payload['d_pickupnote'] = $note;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$destination = isset($_GET['destination']) ? $_GET['destination'] : '';
|
||||
$mode = isset($_GET['mode']) ? $_GET['mode'] : '';
|
||||
$appVersion = 'v1.1.6';
|
||||
$appVersion = 'v1.1.8';
|
||||
?>
|
||||
|
||||
<?
|
||||
|
|
|
|||
Loading…
Reference in New Issue