Skip to content

Commit

Permalink
fix: error return in mo creation when qty to consume is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed Sep 26, 2024
1 parent 18364a5 commit cc25055
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions htdocs/mrp/class/mo.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ public function createProduction(User $user, $notrigger = true)
}
}
}

if (!$error) {
$this->db->commit();
return 1;
Expand Down
1 change: 0 additions & 1 deletion htdocs/mrp/mo_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
// Create MO with Childs
if ($action == 'add' && empty($id) && !empty($TBomLineId)) {
$noback = 1;

include DOL_DOCUMENT_ROOT.'/core/actions_addupdatedelete.inc.php';

$mo_parent = $object;
Expand Down

0 comments on commit cc25055

Please sign in to comment.