Fixing style errors.

This commit is contained in:
stickler-ci 2022-02-17 09:53:02 +00:00
parent f16567a44a
commit 13cfe858f2
2 changed files with 7 additions and 7 deletions

View File

@ -192,7 +192,7 @@ if ($resql) {
$sub_bom_product->fetch($obj->fk_product); $sub_bom_product->fetch($obj->fk_product);
$sub_bom = new BOM($object->db); $sub_bom = new BOM($object->db);
if(!empty($obj->fk_bom_child)){ if (!empty($obj->fk_bom_child)) {
$sub_bom->fetch($obj->fk_bom_child); $sub_bom->fetch($obj->fk_bom_child);
} }
@ -236,7 +236,7 @@ if ($resql) {
// Efficiency // Efficiency
print '<td class="linecolefficiency nowrap right" id="sub_bom_efficiency_'.$sub_bom_line->id.'">'.$sub_bom_line->efficiency.'</td>'; print '<td class="linecolefficiency nowrap right" id="sub_bom_efficiency_'.$sub_bom_line->id.'">'.$sub_bom_line->efficiency.'</td>';
if(!empty($sub_bom->id)){ if (!empty($sub_bom->id)) {
$sub_bom->calculateCosts(); $sub_bom->calculateCosts();
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'">'.price($sub_bom->total_cost * $sub_bom_line->qty * $line->qty).'</td>'; print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'">'.price($sub_bom->total_cost * $sub_bom_line->qty * $line->qty).'</td>';
$total_cost+= $sub_bom->total_cost * $sub_bom_line->qty * $line->qty; $total_cost+= $sub_bom->total_cost * $sub_bom_line->qty * $line->qty;