FIX : Sub-Bom indentations were not good
This commit is contained in:
parent
52c39d05f7
commit
331dd7d479
@ -269,16 +269,20 @@ if ($resql) {
|
|||||||
$label = $sub_bom_product->getLabelOfUnit('long');
|
$label = $sub_bom_product->getLabelOfUnit('long');
|
||||||
if ($sub_bom_line->qty_frozen > 0) {
|
if ($sub_bom_line->qty_frozen > 0) {
|
||||||
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty, 0, '', 0, 0).'</td>';
|
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty, 0, '', 0, 0).'</td>';
|
||||||
print '<td class="linecoluseunit nowrap left">';
|
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
||||||
if ($label !== '') print $langs->trans($label);
|
print '<td class="linecoluseunit nowrap left">';
|
||||||
print '</td>';
|
if ($label !== '') print $langs->trans($label);
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'">'.$langs->trans('Yes').'</td>';
|
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'">'.$langs->trans('Yes').'</td>';
|
||||||
} else {
|
} else {
|
||||||
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty * $line->qty, 0, '', 0, 0).'</td>';
|
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty * $line->qty, 0, '', 0, 0).'</td>';
|
||||||
print '<td class="linecoluseunit nowrap left">';
|
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
||||||
if ($label !== '') print $langs->trans($label);
|
print '<td class="linecoluseunit nowrap left">';
|
||||||
print '</td>';
|
if ($label !== '') print $langs->trans($label);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'"> </td>';
|
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'"> </td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user