forked from Wavyzz/dolibarr
Fix phpcs
This commit is contained in:
@@ -1330,7 +1330,7 @@ if ($action == 'create')
|
|||||||
{
|
{
|
||||||
//var_dump($dbatch);
|
//var_dump($dbatch);
|
||||||
$batchStock = + $dbatch->qty; // To get a numeric
|
$batchStock = + $dbatch->qty; // To get a numeric
|
||||||
$deliverableQty = min($quantityToBeDelivered,$batchStock);
|
$deliverableQty = min($quantityToBeDelivered, $batchStock);
|
||||||
print '<!-- subj='.$subj.'/'.$nbofsuggested.' --><tr '.((($subj + 1) == $nbofsuggested)?$bc[$var]:'').'>';
|
print '<!-- subj='.$subj.'/'.$nbofsuggested.' --><tr '.((($subj + 1) == $nbofsuggested)?$bc[$var]:'').'>';
|
||||||
print '<td colspan="3" ></td><td class="center">';
|
print '<td colspan="3" ></td><td class="center">';
|
||||||
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="'.$deliverableQty.'">';
|
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="'.$deliverableQty.'">';
|
||||||
@@ -1399,7 +1399,7 @@ if ($action == 'create')
|
|||||||
if ($stock_warehouse->real > 0)
|
if ($stock_warehouse->real > 0)
|
||||||
{
|
{
|
||||||
$stock = + $stock_warehouse->real; // Convert it to number
|
$stock = + $stock_warehouse->real; // Convert it to number
|
||||||
$deliverableQty = min($quantityToBeDelivered,$stock);
|
$deliverableQty = min($quantityToBeDelivered, $stock);
|
||||||
$deliverableQty = max(0, $deliverableQty);
|
$deliverableQty = max(0, $deliverableQty);
|
||||||
// Quantity to send
|
// Quantity to send
|
||||||
print '<!-- subj='.$subj.'/'.$nbofsuggested.' --><tr '.((($subj + 1) == $nbofsuggested)?$bc[$var]:'').'>';
|
print '<!-- subj='.$subj.'/'.$nbofsuggested.' --><tr '.((($subj + 1) == $nbofsuggested)?$bc[$var]:'').'>';
|
||||||
@@ -1492,7 +1492,7 @@ if ($action == 'create')
|
|||||||
{
|
{
|
||||||
//var_dump($dbatch);
|
//var_dump($dbatch);
|
||||||
$batchStock = + $dbatch->qty; // To get a numeric
|
$batchStock = + $dbatch->qty; // To get a numeric
|
||||||
$deliverableQty = min($quantityToBeDelivered,$batchStock);
|
$deliverableQty = min($quantityToBeDelivered, $batchStock);
|
||||||
if ($deliverableQty < 0) $deliverableQty = 0;
|
if ($deliverableQty < 0) $deliverableQty = 0;
|
||||||
print '<!-- subj='.$subj.'/'.$nbofsuggested.' --><tr '.((($subj + 1) == $nbofsuggested)?$bc[$var]:'').'><td colspan="3"></td><td class="center">';
|
print '<!-- subj='.$subj.'/'.$nbofsuggested.' --><tr '.((($subj + 1) == $nbofsuggested)?$bc[$var]:'').'><td colspan="3"></td><td class="center">';
|
||||||
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="'.$deliverableQty.'">';
|
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="'.$deliverableQty.'">';
|
||||||
@@ -1580,7 +1580,7 @@ if ($action == 'create')
|
|||||||
//$line->fetch_optionals($line->id);
|
//$line->fetch_optionals($line->id);
|
||||||
$line->array_options = array_merge($line->array_options, $srcLine->array_options);
|
$line->array_options = array_merge($line->array_options, $srcLine->array_options);
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print $line->showOptionals($extrafieldsline, 'edit', array('style'=>$bc[$var], 'colspan'=>$colspan),$indiceAsked);
|
print $line->showOptionals($extrafieldsline, 'edit', array('style'=>$bc[$var], 'colspan'=>$colspan), $indiceAsked);
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1984,7 +1984,7 @@ elseif ($id || $ref)
|
|||||||
|
|
||||||
// Other attributes
|
// Other attributes
|
||||||
$parameters = array('colspan' => ' colspan="3"');
|
$parameters = array('colspan' => ' colspan="3"');
|
||||||
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
$reshook=$hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
@@ -2190,8 +2190,8 @@ elseif ($id || $ref)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td>";
|
print "<td>";
|
||||||
if ($lines[$i]->product_type == Product::TYPE_SERVICE) $text = img_object($langs->trans('Service'),'service');
|
if ($lines[$i]->product_type == Product::TYPE_SERVICE) $text = img_object($langs->trans('Service'), 'service');
|
||||||
else $text = img_object($langs->trans('Product'),'product');
|
else $text = img_object($langs->trans('Product'), 'product');
|
||||||
|
|
||||||
if (! empty($lines[$i]->label)) {
|
if (! empty($lines[$i]->label)) {
|
||||||
$text.= ' <strong>'.$lines[$i]->label.'</strong>';
|
$text.= ' <strong>'.$lines[$i]->label.'</strong>';
|
||||||
@@ -2268,7 +2268,7 @@ elseif ($id || $ref)
|
|||||||
print '<td>' . $formproduct->selectLotStock('', 'batchl'.$line_id.'_0', '', 1, 0, $lines[$i]->fk_product). '</td>';
|
print '<td>' . $formproduct->selectLotStock('', 'batchl'.$line_id.'_0', '', 1, 0, $lines[$i]->fk_product). '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
else if (! empty($conf->stock->enabled))
|
elseif (! empty($conf->stock->enabled))
|
||||||
{
|
{
|
||||||
if ($lines[$i]->fk_product > 0)
|
if ($lines[$i]->fk_product > 0)
|
||||||
{
|
{
|
||||||
@@ -2284,7 +2284,7 @@ elseif ($id || $ref)
|
|||||||
print '<td> - ' . $langs->trans("NA") . '</td>';
|
print '<td> - ' . $langs->trans("NA") . '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
else if (count($lines[$i]->details_entrepot) > 1)
|
elseif (count($lines[$i]->details_entrepot) > 1)
|
||||||
{
|
{
|
||||||
print '<!-- case edit 3 -->';
|
print '<!-- case edit 3 -->';
|
||||||
foreach ($lines[$i]->details_entrepot as $detail_entrepot)
|
foreach ($lines[$i]->details_entrepot as $detail_entrepot)
|
||||||
@@ -2336,7 +2336,7 @@ elseif ($id || $ref)
|
|||||||
$entrepot->fetch($lines[$i]->entrepot_id);
|
$entrepot->fetch($lines[$i]->entrepot_id);
|
||||||
print $entrepot->getNomUrl(1);
|
print $entrepot->getNomUrl(1);
|
||||||
}
|
}
|
||||||
else if (count($lines[$i]->details_entrepot) > 1)
|
elseif (count($lines[$i]->details_entrepot) > 1)
|
||||||
{
|
{
|
||||||
$detail = '';
|
$detail = '';
|
||||||
foreach ($lines[$i]->details_entrepot as $detail_entrepot)
|
foreach ($lines[$i]->details_entrepot as $detail_entrepot)
|
||||||
|
|||||||
Reference in New Issue
Block a user