* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * $object must be defined */ ?> element == 'product') $productref = $object->ref; $langs->load("productbatch"); if (empty($id)) $id = $object->id; print ''; print load_fiche_titre($langs->trans("StockCorrection"),'','title_generic.png'); print '
'."\n"; print ''; print ''; print ''; print ''; // Warehouse or product print ''; if ($object->element == 'product') { print ''; print ''; } if ($object->element == 'stock') { print ''; print ''; } print ''; print ''; print ''; // Purchase price print ''; print ''; print ''; print ''; // Serial / Eat-by date if (! empty($conf->productbatch->enabled) && (($object->element == 'product' && $object->hasbatch()) || ($object->element == 'stock')) ) { print ''; print ''; print ''; print ''; print ''; print ''; print ''; } // Label of mouvement of id of inventory $valformovementlabel=((GETPOST("label") && (GETPOST('label') != $langs->trans("MovementCorrectStock",''))) ? GETPOST("label") : $langs->trans("MovementCorrectStock", $productref)); print ''; print ''; print ''; print ''; print ''; print '
'.$langs->trans("Warehouse").''; print $formproduct->selectWarehouses((GETPOST("dwid")?GETPOST("dwid",'int'):(GETPOST('id_entrepot')?GETPOST('id_entrepot','int'):'ifone')), 'id_entrepot', '', 1, 0, 0, '', 0, 0, null, 'minwidth100'); print ''.$langs->trans("Product").''; print $form->select_produits(GETPOST('product_id'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''), 20, 0, -1); print ''; print ''.$langs->trans("NumberOfUnit").'
'.$langs->trans("UnitPurchaseValue").'
element == 'stock'?'': ' class="fieldrequired"').'>'.$langs->trans("batch_number").''; print ''; print '
'.$langs->trans("l_eatby").''; $eatbyselected=dol_mktime(0, 0, 0, GETPOST('eatbymonth'), GETPOST('eatbyday'), GETPOST('eatbyyear')); $form->select_date($eatbyselected,'eatby','','',1,""); print ''.$langs->trans("l_sellby").''; $sellbyselected=dol_mktime(0, 0, 0, GETPOST('sellbymonth'), GETPOST('sellbyday'), GETPOST('sellbyyear')); $form->select_date($sellbyselected,'sellby','','',1,""); print '
'.$langs->trans("MovementLabel").''; print ''; print ''.$langs->trans("InventoryCode").'
'; print '
'; print ''; print '     '; print ''; print '
'; print '
'; ?>