$list[$pid]['stars'] = $row['stars'];
 }
 if (!isset($list[$pid]['articles'][$aid])) {
     $list[$pid]['articles'][$aid] = array();
     $list[$pid]['articles'][$aid]['ean'] = $row['products_ean'] . ($row['length'] > 0 ? ' ⋅ ' . textLength($row['length']) : '');
     $list[$pid]['articles'][$aid]['total'] = 0;
     $list[$pid]['articles'][$aid]['sent'] = 0;
     $list[$pid]['articles'][$aid]['mto'] = 0;
     $list[$pid]['articles'][$aid]['dso'] = 0;
     $list[$pid]['articles'][$aid]['waiting'] = 0;
     $list[$pid]['articles'][$aid]['new'] = 0;
     $list[$pid]['articles'][$aid]['stock'] = $class_pm->stockRetrieve($whid, $pid, $aid, true);
     $list[$pid]['articles'][$aid]['nsar'] = 0;
     //total No Stock After Released
     $ordered_refills_total = $class_do->refillOpenOrdersQuantity(SEGMENT_ID_HAMBURG, $pid, $aid);
     $ordered_refills_outsourcing = $class_do->refillOpenOrdersQuantityOutsourcing(SEGMENT_ID_HAMBURG, $pid, $aid);
     $list[$pid]['articles'][$aid]['open_os'] = $ordered_refills_outsourcing;
     $list[$pid]['articles'][$aid]['open_nos'] = $ordered_refills_total - $ordered_refills_outsourcing;
 }
 switch ($row['status']) {
     case '1':
         $colname = 'new';
         break;
     case '2':
     case '3':
     case '4':
     case '5':
     case '6':
     case '7':
         $colname = 'mto';
         break;