mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Affichage du code barre dans l'onglet
This commit is contained in:
parent
f51eca0cda
commit
e92220bd13
|
|
@ -37,7 +37,7 @@ if (!$user->admin)
|
|||
|
||||
if ($_POST["action"] == 'setcoder' && $user->admin)
|
||||
{
|
||||
$sqlp = "UPDATE ".MAIN_DB_PREFIX."c_barcode";
|
||||
$sqlp = "UPDATE ".MAIN_DB_PREFIX."c_barcode_type";
|
||||
$sqlp.= " SET coder = " . $_POST["coder"];
|
||||
$sqlp.= " WHERE rowid = ". $_POST["code_id"];
|
||||
$resql=$db->query($sqlp);
|
||||
|
|
|
|||
|
|
@ -62,13 +62,17 @@ print '<table class="border" width="100%">';
|
|||
|
||||
// Reference
|
||||
print '<tr>';
|
||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td colspan="2">';
|
||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td colspan="3">';
|
||||
print $html->showrefnav($product,'ref');
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Libelle
|
||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
|
||||
|
||||
// Barcode image
|
||||
print '<td width="300" align="center" rowspan="5"><img src="'.dol_genbarcode($product->barcode,$product->barcode_type_code,$product->barcode_type_coder).'"></td>';
|
||||
|
||||
print '</tr>';
|
||||
|
||||
// Prix
|
||||
|
|
@ -93,6 +97,11 @@ print '<tr><td>'.$langs->trans("BarcodeType").'</td><td colspan="2">';
|
|||
print $product->barcode_type_label;
|
||||
print '</td></tr>';
|
||||
|
||||
// Barcode
|
||||
print '<tr><td>'.$langs->trans("Barcode").'</td><td colspan="2">';
|
||||
print $product->barcode;
|
||||
print '</td></tr>';
|
||||
|
||||
print "</table>\n";
|
||||
|
||||
print "</div>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user