Reconcile virtual shortage allocations on lot activation
This commit is contained in:
1 parent
0e8df45548
commit
4a8936761b
2 files changed
+85
-5
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user