Fixing style errors.
This commit is contained in:
parent
c2bc3b20bb
commit
7e6a5d5792
@ -45,7 +45,7 @@ print '<tr class="oddeven'.(empty($this->tpl['strike']) ? '' : ' strikefordisabl
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
if ($res) {
|
if ($res) {
|
||||||
print $tmpproduct->getNomUrl(1);
|
print $tmpproduct->getNomUrl(1);
|
||||||
if($tmpbom->id) {
|
if ($tmpbom->id) {
|
||||||
print ' ' . $langs->trans("or") . ' ';
|
print ' ' . $langs->trans("or") . ' ';
|
||||||
print $tmpbom->getNomUrl(1);
|
print $tmpbom->getNomUrl(1);
|
||||||
print ' <a class="collapse_bom" id="collapse-' . $line->id . '" href="#">';
|
print ' <a class="collapse_bom" id="collapse-' . $line->id . '" href="#">';
|
||||||
@ -94,7 +94,6 @@ $resql = $this->db->query($sql);
|
|||||||
if ($resql) {
|
if ($resql) {
|
||||||
// Loop on all the sub-BOM lines if they exist
|
// Loop on all the sub-BOM lines if they exist
|
||||||
while ($obj = $this->db->fetch_object($resql)) {
|
while ($obj = $this->db->fetch_object($resql)) {
|
||||||
|
|
||||||
$sub_bom_product = new Product($this->db);
|
$sub_bom_product = new Product($this->db);
|
||||||
$sub_bom_product->fetch($obj->fk_product);
|
$sub_bom_product->fetch($obj->fk_product);
|
||||||
$sub_bom_product->load_stock();
|
$sub_bom_product->load_stock();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user