$priceperpice .= '<select>' . loadComboListFromArray($currencies, null, $es['price_currency'], false) . '</select></div>';
 }
 $d = $firstadd;
 $img = webImageWithDetailLinkStars($element->image, IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1, "Element {$id}", '', '', IMAGE_SIZE_BIG_1, IMAGE_SIZE_BIG_1, $element->stars);
 $show_qty_detail = $stock['pieces_per_qty_type'] > 1 ? '' : 'display:none;';
 $id2 = '';
 $id2 .= '<div class="notice" style="' . $show_qty_detail . '"><span class="red"><span id="e' . $eid . 'defqty">' . $qty . '</span> qty</span> &asymp; <span id="e' . $eid . 'unitqtyraw">' . number_format($qty_to_qtytype_raw, 2) . '</span> <span class="e' . $eid . 'unit">' . $stock['qty_type'] . '</span></div>';
 $id2 .= '<div class="smallText notice" style="margin-bottom:10px;' . $show_qty_detail . '"><span id="e' . $eid . 'uqpp">' . $stock['pieces_per_qty_type'] . '</span> qty = 1 <span class="e' . $eid . 'unit">' . $stock['qty_type'] . '</span></div>';
 if ($stock['pieces_per_qty_type'] > 1) {
     //$id2 .= '<div class="smallText notice">1 '.$stock['qty_type'].' = '.$stock['pieces_per_qty_type'].' qty</div>';
     //$id2 .= '<div class="notice">'.number_format($qty_to_qtytype_raw, 2).' '.$stock['qty_type'].' &asymp; '.$qty.' qty</div>';
 }
 $id2 .= '<div><input id="e' . $eid . 'unitqty" type="text" name="qty" value="' . $qty_to_qtytype . '" class="time" /><br /><span class="e' . $eid . 'unit">' . $stock['qty_type'] . '</span></div>';
 //$id3  = '<div>'.$element->displayDIOH($stock['stock']).'</div>';
 //$id3 .= '<br /><span class="smallText notice">'.$stock['stock'].' qty</span>';
 $pt = elements_preorder::getPreordersTemp($eid);
 $urgent_for_process = $pt['sourcing_tab'] > $pt['actual_stock'] + $pt['open_orders'];
 $icon_urgent = $urgent_for_process ? '&nbsp;' . drawIcon('icon-warning-16.png', 'Urgent (Sourcing Tab > Actual Stock + Ordered)') : '';
 $id3 = '<div class="float-right">' . $icon_urgent . '</div>';
 $id3 .= '<div class="eid"><a href="?open=element&amp;id=' . $eid . '&amp;hidemenu=true" class="view_webpage">' . $eid . '</a></div>';
 $id3 .= $element->displayStockInfoTablePreordersTemp();
 $r = $element->displayDIOH($stock['stock']);
 if ($stock['pieces_per_qty_type'] > 1) {
     $r .= '<br /><br /><span title="Safety Delivery Time">(SDT: ' . $element->displaySafetyDT($stock['stock'], $element->suppliers[$suppliers_id]['resourcing_day']) . ')</span>';
 }
 $l = '<span class="' . ($element->calcRefillQuantity($stock['stock'], $current_orders, 1) > 0 ? 'green">ON' : 'red">OFF') . '<span>';
 //$o = displayCurrency('EUR', $element->detail['price']);
 $o = $priceperpice;
 $e = '<input type="text" id="e' . $eid . 'totpri" value="' . number_format($pricedefault, 2) . '" readonly="readonly" class="bold readonly" style="width:100px;text-align:right;" />';
 $e .= '<input type="text" id="e' . $eid . 'totpricr" value="' . $pricecurrdef . '" readonly="readonly" class="bold readonly" style="width:40px;" />';
 $p3 = $qty * $element->detail['weight'] . '&nbsp;gr<input id="e' . $eid . 'weight" type="hidden" value="' . $element->detail['weight'] . '" />';
Exemple #2
0
 function displayStockInfoTablePreordersTemp($style = '')
 {
     use_class('elements_preorder');
     $pt = elements_preorder::getPreordersTemp($this->id);
     if (!is_array($pt)) {
         $result = $this->displayStockInfoTable();
     } else {
         $result = $this->drawStockInfoTable('Daily Cache', $pt['target_stock'], $pt['sourcing_tab'], $pt['actual_stock'], $pt['open_orders'], $pt['open_requests'], $pt['missing_quantity'], $style);
     }
     return $result;
 }