Update card.php

This commit is contained in:
Laurent Destailleur 2021-08-11 21:44:18 +02:00 committed by GitHub
parent c36bb0fbf7
commit 5b30cf3e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1911,7 +1911,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '<table class="border centpercent">';
if ($object->isService() && !empty($conf->bom->enabled)) {
if (!$object->isService() && !empty($conf->bom->enabled)) {
print '<tr><td>'.$form->textwithpicto($langs->trans("DefaultBOM"), $langs->trans("DefaultBOMDesc")).'</td><td colspan="3">';
$bomkey = "Bom:bom/class/bom.class.php:0:t.status=1 AND t.fk_product=".$object->id;
print $form->selectForForms($bomkey, 'fk_default_bom', $object->fk_default_bom, 1);