Look and feel v12
This commit is contained in:
parent
eefa2bcaba
commit
0884678264
@ -770,11 +770,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ************************************************************************** */
|
// Actions buttons
|
||||||
/* */
|
|
||||||
/* Barre d'action */
|
|
||||||
/* */
|
|
||||||
/* ************************************************************************** */
|
|
||||||
|
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
|
|
||||||
|
|||||||
@ -66,67 +66,67 @@ if (empty($conf) || !is_object($conf)) {
|
|||||||
|
|
||||||
// Warehouse or product
|
// Warehouse or product
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
if ($object->element == 'product')
|
if ($object->element == 'product')
|
||||||
{
|
{
|
||||||
print '<td class="fieldrequired">'.$langs->trans("Warehouse").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("Warehouse").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $formproduct->selectWarehouses((GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ?GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone'))), 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
|
print $formproduct->selectWarehouses((GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ?GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone'))), 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
|
||||||
print ' <select name="mouvement" id="mouvement">';
|
print ' <select class="button buttongen" name="mouvement" id="mouvement">';
|
||||||
print '<option value="0">'.$langs->trans("Add").'</option>';
|
print '<option value="0">'.$langs->trans("Add").'</option>';
|
||||||
print '<option value="1"'.(GETPOST('mouvement') ? ' selected="selected"' : '').'>'.$langs->trans("Delete").'</option>';
|
print '<option value="1"'.(GETPOST('mouvement') ? ' selected="selected"' : '').'>'.$langs->trans("Delete").'</option>';
|
||||||
print '</select>';
|
print '</select>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
if ($object->element == 'stock')
|
if ($object->element == 'stock')
|
||||||
{
|
{
|
||||||
print '<td class="fieldrequired">'.$langs->trans("Product").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("Product").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
|
$form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
|
||||||
print ' <select name="mouvement" id="mouvement">';
|
print ' <select class="button buttongen" name="mouvement" id="mouvement">';
|
||||||
print '<option value="0">'.$langs->trans("Add").'</option>';
|
print '<option value="0">'.$langs->trans("Add").'</option>';
|
||||||
print '<option value="1"'.(GETPOST('mouvement') ? ' selected="selected"' : '').'>'.$langs->trans("Delete").'</option>';
|
print '<option value="1"'.(GETPOST('mouvement') ? ' selected="selected"' : '').'>'.$langs->trans("Delete").'</option>';
|
||||||
print '</select>';
|
print '</select>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
print '<td class="fieldrequired">'.$langs->trans("NumberOfUnit").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("NumberOfUnit").'</td>';
|
||||||
print '<td><input name="nbpiece" id="nbpiece" size="10" value="'.GETPOST("nbpiece").'"></td>';
|
print '<td><input name="nbpiece" id="nbpiece" class="maxwidth75" value="'.GETPOST("nbpiece").'"></td>';
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
// Purchase price
|
|
||||||
print '<tr>';
|
|
||||||
print '<td>'.$langs->trans("UnitPurchaseValue").'</td>';
|
|
||||||
print '<td colspan="'.(!empty($conf->projet->enabled) ? '1' : '3').'"><input name="unitprice" id="unitprice" size="10" value="'.GETPOST("unitprice").'"></td>';
|
|
||||||
if (!empty($conf->projet->enabled))
|
|
||||||
{
|
|
||||||
print '<td>'.$langs->trans('Project').'</td>';
|
|
||||||
print '<td>';
|
|
||||||
$formproject->select_projects(-1, '', 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth300');
|
|
||||||
print '</td>';
|
|
||||||
}
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Serial / Eat-by date
|
// Serial / Eat-by date
|
||||||
if (!empty($conf->productbatch->enabled) &&
|
if (!empty($conf->productbatch->enabled) &&
|
||||||
(($object->element == 'product' && $object->hasbatch())
|
(($object->element == 'product' && $object->hasbatch())
|
||||||
|| ($object->element == 'stock'))
|
|| ($object->element == 'stock'))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td'.($object->element == 'stock' ? '' : ' class="fieldrequired"').'>'.$langs->trans("batch_number").'</td><td colspan="3">';
|
print '<td'.($object->element == 'stock' ? '' : ' class="fieldrequired"').'>'.$langs->trans("batch_number").'</td><td colspan="3">';
|
||||||
print '<input type="text" name="batch_number" size="40" value="'.GETPOST("batch_number").'">';
|
print '<input type="text" name="batch_number" size="40" value="'.GETPOST("batch_number").'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td>'.$langs->trans("EatByDate").'</td><td>';
|
print '<td>'.$langs->trans("EatByDate").'</td><td>';
|
||||||
$eatbyselected = dol_mktime(0, 0, 0, GETPOST('eatbymonth'), GETPOST('eatbyday'), GETPOST('eatbyyear'));
|
$eatbyselected = dol_mktime(0, 0, 0, GETPOST('eatbymonth'), GETPOST('eatbyday'), GETPOST('eatbyyear'));
|
||||||
print $form->selectDate($eatbyselected, 'eatby', '', '', 1, "");
|
print $form->selectDate($eatbyselected, 'eatby', '', '', 1, "");
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>'.$langs->trans("SellByDate").'</td><td>';
|
print '<td>'.$langs->trans("SellByDate").'</td><td>';
|
||||||
$sellbyselected = dol_mktime(0, 0, 0, GETPOST('sellbymonth'), GETPOST('sellbyday'), GETPOST('sellbyyear'));
|
$sellbyselected = dol_mktime(0, 0, 0, GETPOST('sellbymonth'), GETPOST('sellbyday'), GETPOST('sellbyyear'));
|
||||||
print $form->selectDate($sellbyselected, 'sellby', '', '', 1, "");
|
print $form->selectDate($sellbyselected, 'sellby', '', '', 1, "");
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Purchase price and project
|
||||||
|
print '<tr>';
|
||||||
|
print '<td>'.$langs->trans("UnitPurchaseValue").'</td>';
|
||||||
|
print '<td colspan="'.(!empty($conf->projet->enabled) ? '1' : '3').'"><input name="unitprice" id="unitprice" size="10" value="'.GETPOST("unitprice").'"></td>';
|
||||||
|
if (!empty($conf->projet->enabled))
|
||||||
|
{
|
||||||
|
print '<td>'.$langs->trans('Project').'</td>';
|
||||||
|
print '<td>';
|
||||||
|
$formproject->select_projects(-1, '', 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth300');
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
// Label of mouvement of id of inventory
|
// Label of mouvement of id of inventory
|
||||||
$valformovementlabel = ((GETPOST("label") && (GETPOST('label') != $langs->trans("MovementCorrectStock", ''))) ? GETPOST("label") : $langs->trans("MovementCorrectStock", $productref));
|
$valformovementlabel = ((GETPOST("label") && (GETPOST('label') != $langs->trans("MovementCorrectStock", ''))) ? GETPOST("label") : $langs->trans("MovementCorrectStock", $productref));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user