mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 00:53:00 +01:00
Fix warning
This commit is contained in:
@@ -569,7 +569,7 @@ class ProductFournisseur extends Product
|
||||
$this->fourn_multicurrency_tx = $obj->multicurrency_tx;
|
||||
$this->fourn_multicurrency_id = $obj->fk_multicurrency;
|
||||
$this->fourn_multicurrency_code = $obj->multicurrency_code;
|
||||
if ($conf->barcode->enabled) {
|
||||
if (!empty($conf->barcode->enabled)) {
|
||||
$this->fourn_barcode = $obj->barcode; // deprecated
|
||||
$this->fourn_fk_barcode_type = $obj->fk_barcode_type; // deprecated
|
||||
$this->supplier_barcode = $obj->barcode;
|
||||
@@ -686,7 +686,7 @@ class ProductFournisseur extends Product
|
||||
if ($prodfourn->packaging < $prodfourn->fourn_qty) $prodfourn->packaging = $prodfourn->fourn_qty;
|
||||
}
|
||||
|
||||
if ($conf->barcode->enabled) {
|
||||
if (!empty($conf->barcode->enabled)) {
|
||||
$prodfourn->supplier_barcode = $record["barcode"];
|
||||
$prodfourn->supplier_fk_barcode_type = $record["fk_barcode_type"];
|
||||
}
|
||||
|
||||
@@ -342,13 +342,13 @@ if ($object->id > 0)
|
||||
if ($permissiontoadd)
|
||||
{
|
||||
/*
|
||||
if ($conf->barcode->enabled) {
|
||||
if (!empty($conf->barcode->enabled)) {
|
||||
print '<a href="#" class="butAction">'.$langs->trans("UpdateByScaningProductBarcode").'</a>';
|
||||
}
|
||||
if ($conf->productbatch->enabled) {
|
||||
if (!empty($conf->productbatch->enabled)) {
|
||||
print '<a href="#" class="butAction">'.$langs->trans('UpdateByScaningLot').'</a>';
|
||||
}*/
|
||||
if ($conf->barcode->enabled || $conf->productbatch->enabled) {
|
||||
if (!empty($conf->barcode->enabled) || !empty($conf->productbatch->enabled)) {
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=updatebyscaning" class="butAction">'.$langs->trans("UpdateByScaning").'</a>';
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user