Reconcile virtual shortage allocations on lot activation

This commit is contained in:
gitea_admin committed 2026-09-08 17:07:04 +02:00
1 parent 0e8df45548
commit 4a8936761b
2 files changed
+85 -5

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ try {
$lotNumber === ''
);
sync_open_lot_activation_selection($pdo, $productId);
if (promote_open_lot_when_virtual_shortage_is_current($pdo, $productId, $lotId)) {
if (promote_open_lot_when_virtual_shortage_is_current($pdo, $productId, $lotId, (string) ($currentUser['username'] ?? $currentUser['email'] ?? 'unknown'))) {
$preparedLot['status'] = 'current';
$preparedLot['next_active'] = false;
} else {