FIX remplir vider
This commit is contained in:
parent
07e4cab2fc
commit
1c33714091
@ -967,19 +967,20 @@ $numAsked ++;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print '<script type="text/javascript" language="javascript">
|
print '<script type="text/javascript" language="javascript">
|
||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
jQuery("#autofill").click(function() {';
|
jQuery("#autofill").click(function() {';
|
||||||
$i=0;
|
$i=1;
|
||||||
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";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print '});
|
print '});
|
||||||
jQuery("#autoreset").click(function() {';
|
jQuery("#autoreset").click(function() {';
|
||||||
$i=0;
|
$i=1;
|
||||||
while($i < $numAsked)
|
while($i <= $numAsked)
|
||||||
{
|
{
|
||||||
print 'jQuery("#qtyl'.$i.'").val(0);'."\n";
|
print 'jQuery("#qtyl'.$i.'").val(0);'."\n";
|
||||||
$i++;
|
$i++;
|
||||||
@ -1048,8 +1049,7 @@ $numAsked ++;
|
|||||||
|
|
||||||
print '<!-- line '.$line->rowid.' for product -->'."\n";
|
print '<!-- line '.$line->rowid.' for product -->'."\n";
|
||||||
print '<tr class="oddeven">'."\n";
|
print '<tr class="oddeven">'."\n";
|
||||||
print '<input type="hidden" name="fk_commandefournisseurdet'.$indiceAsked.'" value=\''.$line->id.'\' />';
|
|
||||||
print '<input type="hidden" name="comment'.$indiceAsked.'" value=\''.GETPOST('comment').'\' />';
|
|
||||||
|
|
||||||
// Product label
|
// Product label
|
||||||
if ($line->fk_product > 0) // If predefined product
|
if ($line->fk_product > 0) // If predefined product
|
||||||
@ -1103,6 +1103,8 @@ $numAsked ++;
|
|||||||
|
|
||||||
// Qty
|
// Qty
|
||||||
print '<td align="center">'.$line->qty;
|
print '<td align="center">'.$line->qty;
|
||||||
|
print '<input type="hidden" name="fk_commandefournisseurdet'.$indiceAsked.'" value=\''.$line->id.'\' />';
|
||||||
|
print '<input type="hidden" name="comment'.$indiceAsked.'" value=\''.GETPOST('comment').'\' />';
|
||||||
print '<input name="qtyasked'.$indiceAsked.'" id="qtyasked'.$indiceAsked.'" type="hidden" value="'.$dispatchLines[$indiceAsked]['qty'].'">';
|
print '<input name="qtyasked'.$indiceAsked.'" id="qtyasked'.$indiceAsked.'" type="hidden" value="'.$dispatchLines[$indiceAsked]['qty'].'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
$qtyProdCom=$line->qty;
|
$qtyProdCom=$line->qty;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user