Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
80ccb84fb2
@ -1042,6 +1042,7 @@ if ($action == 'create')
|
|||||||
while ($i < $numAsked)
|
while ($i < $numAsked)
|
||||||
{
|
{
|
||||||
print 'jQuery("#qtyl'.$i.'").val(jQuery("#qtyasked'.$i.'").val() - jQuery("#qtydelivered'.$i.'").val());'."\n";
|
print 'jQuery("#qtyl'.$i.'").val(jQuery("#qtyasked'.$i.'").val() - jQuery("#qtydelivered'.$i.'").val());'."\n";
|
||||||
|
if (!empty($conf->productbatch->enabled)) print 'jQuery("#qtyl'.$i.'_'.$i.'").val(jQuery("#qtyasked'.$i.'").val() - jQuery("#qtydelivered'.$i.'").val());'."\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print '});
|
print '});
|
||||||
@ -1050,6 +1051,7 @@ if ($action == 'create')
|
|||||||
while ($i < $numAsked)
|
while ($i < $numAsked)
|
||||||
{
|
{
|
||||||
print 'jQuery("#qtyl'.$i.'").val(0);'."\n";
|
print 'jQuery("#qtyl'.$i.'").val(0);'."\n";
|
||||||
|
if (!empty($conf->productbatch->enabled)) print 'jQuery("#qtyl'.$i.'_'.$i.'").val(0);'."\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print '});
|
print '});
|
||||||
@ -1072,9 +1074,12 @@ if ($action == 'create')
|
|||||||
print '<td class="center">'.$langs->trans("QtyToShip");
|
print '<td class="center">'.$langs->trans("QtyToShip");
|
||||||
if (empty($conf->productbatch->enabled))
|
if (empty($conf->productbatch->enabled))
|
||||||
{
|
{
|
||||||
print ' <br>(<a href="#" id="autofill">'.$langs->trans("Fill").'</a>';
|
print '<br><a href="#" id="autofill">'.$langs->trans("Fill").'</a>';
|
||||||
print ' / <a href="#" id="autoreset">'.$langs->trans("Reset").'</a>)';
|
print ' / ';
|
||||||
|
} else {
|
||||||
|
print '<br>';
|
||||||
}
|
}
|
||||||
|
print '<a href="#" id="autoreset">'.$langs->trans("Reset").'</a>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (!empty($conf->stock->enabled))
|
if (!empty($conf->stock->enabled))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user