Debug 4.0

This commit is contained in:
Laurent Destailleur 2016-05-17 19:32:19 +02:00
parent e2d3f4e27d
commit 7063b26018
2 changed files with 5 additions and 3 deletions

View File

@ -378,7 +378,7 @@ print '</td>';
if ($conf->productbatch->enabled) if ($conf->productbatch->enabled)
{ {
print '<td>'; print '<td>';
print '<input type="text" name="batch" value="'.$batch.'">'; print '<input type="text" name="batch" size="10" value="'.$batch.'">';
print '</td>'; print '</td>';
} }
// In warehouse // In warehouse
@ -390,7 +390,7 @@ print '<td>';
print $formproduct->selectWarehouses($id_tw,'id_tw','',1); print $formproduct->selectWarehouses($id_tw,'id_tw','',1);
print '</td>'; print '</td>';
// Qty // Qty
print '<td align="center"><input type="text" size="4" class="flat" name="qty" value="'.$qty.'"></td>'; print '<td align="center"><input type="text" size="3" class="flat" name="qty" value="'.$qty.'"></td>';
// Button to add line // Button to add line
print '<td align="right"><input type="submit" class="button" name="addline" value="'.dol_escape_htmltag($titletoadd).'"></td>'; print '<td align="right"><input type="submit" class="button" name="addline" value="'.dol_escape_htmltag($titletoadd).'"></td>';

View File

@ -75,13 +75,15 @@ if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT) || ! empty($conf->global
{ {
$virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs. $virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs.
} }
$usevirtualstock=0;
if ($mode == 'virtual') $usevirtualstock=1;
/* /*
* Actions * Actions
*/ */
if (isset($_POST['button_removefilter']) || isset($_POST['valid'])) if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter.x") || GETPOST("button_removefilter") || isset($_POST['valid'])) // Both test are required to be compatible with all browsers
{ {
$sref = ''; $sref = '';
$snom = ''; $snom = '';