Fixing style errors.
This commit is contained in:
parent
38eee02272
commit
218d7cf148
@ -172,8 +172,7 @@ print '<td id="costline_'.$line->id.'" class="linecolcost nowrap right">';
|
|||||||
$coldisplay++;
|
$coldisplay++;
|
||||||
if (!empty($line->fk_bom_child)) {
|
if (!empty($line->fk_bom_child)) {
|
||||||
echo '<span class="amount">'.price($tmpbom->total_cost * $line->qty).'</span>';
|
echo '<span class="amount">'.price($tmpbom->total_cost * $line->qty).'</span>';
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
echo '<span class="amount">'.price($line->total_cost).'</span>';
|
echo '<span class="amount">'.price($line->total_cost).'</span>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -302,7 +301,7 @@ if ($resql) {
|
|||||||
$sub_bom->calculateCosts();
|
$sub_bom->calculateCosts();
|
||||||
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'"><span class="amount">'.price(price2num($sub_bom->total_cost * $sub_bom_line->qty * $line->qty, 'MT')).'</span></td>';
|
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'"><span class="amount">'.price(price2num($sub_bom->total_cost * $sub_bom_line->qty * $line->qty, 'MT')).'</span></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;
|
||||||
} elseif($sub_bom_product->type == Product::TYPE_SERVICE && isModEnabled('workstation') && !empty($sub_bom_product->fk_default_workstation)) {
|
} elseif ($sub_bom_product->type == Product::TYPE_SERVICE && isModEnabled('workstation') && !empty($sub_bom_product->fk_default_workstation)) {
|
||||||
//Convert qty to hour
|
//Convert qty to hour
|
||||||
$unit = measuringUnitString($sub_bom_line->fk_unit, '', '', 1);
|
$unit = measuringUnitString($sub_bom_line->fk_unit, '', '', 1);
|
||||||
$qty = convertDurationtoHour($sub_bom_line->qty, $unit);
|
$qty = convertDurationtoHour($sub_bom_line->qty, $unit);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user