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)
|
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.= " SET coder = " . $_POST["coder"];
|
||||||
$sqlp.= " WHERE rowid = ". $_POST["code_id"];
|
$sqlp.= " WHERE rowid = ". $_POST["code_id"];
|
||||||
$resql=$db->query($sqlp);
|
$resql=$db->query($sqlp);
|
||||||
|
|||||||
@ -62,13 +62,17 @@ print '<table class="border" width="100%">';
|
|||||||
|
|
||||||
// Reference
|
// Reference
|
||||||
print '<tr>';
|
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 $html->showrefnav($product,'ref');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Libelle
|
// Libelle
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
|
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>';
|
print '</tr>';
|
||||||
|
|
||||||
// Prix
|
// Prix
|
||||||
@ -93,6 +97,11 @@ print '<tr><td>'.$langs->trans("BarcodeType").'</td><td colspan="2">';
|
|||||||
print $product->barcode_type_label;
|
print $product->barcode_type_label;
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Barcode
|
||||||
|
print '<tr><td>'.$langs->trans("Barcode").'</td><td colspan="2">';
|
||||||
|
print $product->barcode;
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user