$preview .= '<div style="margin-bottom:5px;">'; $preview .= $element->detail['supplier']; $preview .= ' / 1 ' . $stock['qty_type'] . ' = ' . displayCurrency('EUR', $element->detail['price']); //$preview .= ' <span class="smallText notice">('.$stock['pieces_per_qty_type'].' qty = 1 '.$stock['qty_type'].')</span>'; $preview .= '</div>'; $found = '1'; $epo_status_0 = new elements_preorder($eid, '0'); $epo_status_1 = new elements_preorder($eid, '1'); $qty_to_qtytype_raw = $qty / $stock['pieces_per_qty_type']; $qty_to_qtytype = ceil($qty_to_qtytype_raw); $r = $element->displaySafetyDT($stock['stock'], $element->suppliers[$suppliers_id]['resourcing_day']); $l = '<span class="' . ($element->calcRefillQuantity($stock['stock'], $current_orders, 1) > 0 ? 'green">ON' : 'red">OFF') . '<span>'; $e = displayCurrency('EUR', $qty * $element->detail['price']); $p3 = $qty * $element->detail['weight'] . 'gr'; $preview .= '<div>DIOH is ' . $element->displayDIOH($stock['stock']) . '</div>'; $preview .= $element->displayStockInfoTable(null, 'width:200px;margin:20px 0;'); $preview .= '</div>'; //before we only show text if existing suggest/request exist, now we always show it //if ($current_suggest>0 || $current_request>0) { $preview .= '<div class="red bold" style="margin-top:10px;">'; //$existing = ''; //if ($current_suggest>0) $existing .= 'Suggested'; //if ($current_request>0) { // if ($current_suggest>0) $existing .= ' and '; // $existing .= 'Requested'; //} //$preview .= $existing.' qty found for this Element. Proceeding with manual request will remove existing '.$existing.' qty.'; $preview .= 'Proceeding with manual request will remove existing suggestions of this element.'; $preview .= '</div>'; //} }