Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Nov 12, 2024
1 parent 493b1fd commit 6aaee4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/fourn/commande/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,9 @@
if ($action == 'confirm_delete' && $confirm == 'yes' && $usercandelete) {
// Delete existing dispatched lines
$errOnDelete = 0;

$db->begin();

if ($stockDelete) {
$dispatchedLines = $object->getDispachedLines();
if (!empty($dispatchedLines)) {
Expand Down Expand Up @@ -1176,7 +1176,7 @@
}
}
}

if (empty($errOnDelete)) {
$result = $object->delete($user);
if ($result > 0) {
Expand Down

0 comments on commit 6aaee4e

Please sign in to comment.