Merge pull request #36694 from bradley-jarvis/fix-mo-production-dissassembly
Fix - Error when producing dissassembly MO
This commit is contained in:
commit
2cf6269caf
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ if (empty($reshook)) {
|
|||
$moline->batch = GETPOST('batchtoproduce-'.$line->id.'-'.$i);
|
||||
$moline->role = 'produced';
|
||||
$moline->fk_mrp_production = $line->id;
|
||||
$moline->fk_stock_movement = $idstockmove;
|
||||
$moline->fk_stock_movement = (($idstockmove == 0) ? null : $idstockmove);
|
||||
$moline->fk_user_creat = $user->id;
|
||||
|
||||
$resultmoline = $moline->create($user);
|
||||
|
|
|
|||
Loading…
Reference in a new issue