Skip to content

Commit

Permalink
Fix more complete for Dolibarr#30707
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 22, 2024
1 parent f5a9152 commit 9df3718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/product/stock/tpl/stocktransfer.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
// Serial / Eat-by date
if (isModEnabled('productbatch') &&
(($object->element == 'product' && $object->hasbatch())
|| ($object->element == 'stock'))
|| ($object->element == 'stockmouvement'))
) {
print '<tr>';
print '<td'.($object->element == 'stock' ? '' : ' class="fieldrequired"').'>'.$langs->trans("batch_number").'</td><td colspan="3">';
print '<td'.($object->element == 'stockmouvement' ? '' : ' class="fieldrequired"').'>'.$langs->trans("batch_number").'</td><td colspan="3">';
if ($pdluoid > 0) {
// If form was opened for a specific pdluoid, field is disabled
print '<input type="text" name="batch_number_bis" size="40" disabled="disabled" value="'.(GETPOST('batch_number') ? GETPOST('batch_number') : $pdluo->batch).'">';
Expand Down

0 comments on commit 9df3718

Please sign in to comment.