Fix syntax error
This commit is contained in:
parent
ece46511f2
commit
a16788f753
@ -258,7 +258,7 @@ if ($action == 'create')
|
||||
|
||||
// Parent entrepot
|
||||
print '<tr><td>'.$langs->trans("AddIn").'</td><td>';
|
||||
print $formproduct->selectWarehouses('', 'fk_parent', '', 1);
|
||||
print $formproduct->selectWarehouses('ifone', 'fk_parent', '', 1);
|
||||
print '</td></tr>';
|
||||
|
||||
// Description
|
||||
|
||||
@ -202,11 +202,11 @@ if (!empty($conf->stock->enabled))
|
||||
|
||||
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("CashDeskIdWareHouse").'</td>'; // Force warehouse (this is not a default value)
|
||||
print '<td>';
|
||||
print '<td class="minwidth300">';
|
||||
if (!$disabled)
|
||||
{
|
||||
print $formproduct->selectWarehouses($conf->global->{'CASHDESK_ID_WAREHOUSE'.$terminal}, 'CASHDESK_ID_WAREHOUSE'.$terminal, '', 1, $disabled);
|
||||
print ' <a href="'.DOL_URL_ROOT.'/product/stock/card.php?action=create&backtopage='.urlencode($_SERVER["PHP_SELF"]).'"><span class="fa fa-plus-circle valignmiddle"></span></a>';
|
||||
print $formproduct->selectWarehouses($conf->global->{'CASHDESK_ID_WAREHOUSE'.$terminal}, 'CASHDESK_ID_WAREHOUSE'.$terminal, '', 1, $disabled, 0, '', 0, 0, array(), 'maxwidth250');
|
||||
print ' <a href="'.DOL_URL_ROOT.'/product/stock/card.php?action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?&terminal='.$terminal).'"><span class="fa fa-plus-circle valignmiddle"></span></a>';
|
||||
} else {
|
||||
print '<span class="opacitymedium">'.$langs->trans("StockDecreaseForPointOfSaleDisabled").'</span>';
|
||||
}
|
||||
|
||||
@ -1081,10 +1081,10 @@ if ($placeid > 0)
|
||||
if ($resql) {
|
||||
$obj = $db->fetch_object($resql);
|
||||
$stock_real = price2num($obj->reel, 'MS');
|
||||
$htmlforlines .= $line->qty
|
||||
if ($line->qty>$stock_real) $htmlforlines .= '<b><span style="color: var(--amountremaintopaycolor)">';
|
||||
$htmlforlines .= ' <span class="opacitymedium">('.$langs->trans("Stock").' '.$stock_real.')</span>';
|
||||
if ($line->qty>$stock_real) $htmlforlines .= "</span></b>";
|
||||
$htmlforlines .= $line->qty;
|
||||
if ($line->qty>$stock_real) $htmlforlines .= '<span style="color: var(--amountremaintopaycolor)">';
|
||||
$htmlforlines .= ' <span class="posstocktoolow">('.$langs->trans("Stock").' '.$stock_real.')</span>';
|
||||
if ($line->qty>$stock_real) $htmlforlines .= "</span>";
|
||||
}
|
||||
}
|
||||
else $htmlforlines .= $line->qty;
|
||||
|
||||
@ -1209,6 +1209,7 @@ table[summary="list_of_modules"] .fa-cog {
|
||||
.maxwidth125 { max-width: 125px; }
|
||||
.maxwidth150 { max-width: 150px; }
|
||||
.maxwidth200 { max-width: 200px; }
|
||||
.maxwidth250 { max-width: 250px; }
|
||||
.maxwidth300 { max-width: 300px; }
|
||||
.maxwidth400 { max-width: 400px; }
|
||||
.maxwidth500 { max-width: 500px; }
|
||||
@ -1270,6 +1271,11 @@ table[summary="list_of_modules"] .fa-cog {
|
||||
.minwidth500imp { min-width: 250px !important; }
|
||||
}
|
||||
|
||||
.widthcentpercentminusx {
|
||||
width: calc(100% - 50px) !important;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Force values for small screen 767 */
|
||||
@media only screen and (max-width: 767px)
|
||||
{
|
||||
@ -1292,7 +1298,7 @@ table[summary="list_of_modules"] .fa-cog {
|
||||
margin-bottom: 15px !important;
|
||||
}
|
||||
|
||||
select.minwidth100imp, select.minwidth100, select.minwidth200, select.minwidth300, .widthcentpercentminusx {
|
||||
select.minwidth100imp, select.minwidth100, select.minwidth200, select.minwidth300 {
|
||||
width: calc(100% - 50px) !important;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@ -1205,6 +1205,7 @@ table[summary="list_of_modules"] .fa-cog {
|
||||
.maxwidth125 { max-width: 125px; }
|
||||
.maxwidth150 { max-width: 150px; }
|
||||
.maxwidth200 { max-width: 200px; }
|
||||
.maxwidth250 { max-width: 250px; }
|
||||
.maxwidth300 { max-width: 300px; }
|
||||
.maxwidth400 { max-width: 400px; }
|
||||
.maxwidth500 { max-width: 500px; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user