Create card.php
This commit is contained in:
parent
3c0601d1f9
commit
3af8e18b3c
@ -68,7 +68,7 @@ if (!empty($conf->accounting->enabled)) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountingaccount.class.php';
|
||||
}
|
||||
if (!empty($conf->bom->enabled)) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
|
||||
}
|
||||
|
||||
// Load translation files required by the page
|
||||
@ -2280,16 +2280,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
if ($conf->bom->enabled) {
|
||||
print '<tr><td class="titlefield">'.$form->textwithpicto($langs->trans("DefaultBOM"), $langs->trans("DefaultBOMDesc")).'</td><td colspan="2">';
|
||||
if ($object->fk_default_bom) {
|
||||
$bom_static = new BOM($db);
|
||||
$bom_static->fetch($object->fk_default_bom);
|
||||
print $bom_static->getNomUrl(1);
|
||||
}
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// Brut Weight
|
||||
if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) {
|
||||
print '<tr><td class="titlefield">'.$langs->trans("Weight").'</td><td>';
|
||||
@ -2380,6 +2370,17 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
||||
print '<tr><td>'.$langs->trans("QCFrequency").'</td><td>'.$object->qc_frequency.'</td></tr>';
|
||||
}
|
||||
|
||||
if (!$object->isService() && !empty($conf->bom->enabled)) {
|
||||
print '<tr><td class="titlefield">'.$form->textwithpicto($langs->trans("DefaultBOM"), $langs->trans("DefaultBOMDesc")).'</td><td>';
|
||||
if ($object->fk_default_bom) {
|
||||
$bom_static = new BOM($db);
|
||||
$bom_static->fetch($object->fk_default_bom);
|
||||
print $bom_static->getNomUrl(1);
|
||||
}
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
// Other attributes
|
||||
$parameters = array();
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user