166 $name = formatstr($item['y_name'], 30); |
166 $name = formatstr($item['y_name'], 30); |
167 $product = formatstr($item['y_laboratory']." ".$item['y_product_id'], 20); |
167 $product = formatstr($item['y_laboratory']." ".$item['y_product_id'], 20); |
168 |
168 |
169 if ($item['y_form'] == 0) // Liquid |
169 if ($item['y_form'] == 0) // Liquid |
170 $amount = sprintf("%.0f",floatval($item['y_amount']))." pak"; |
170 $amount = sprintf("%.0f",floatval($item['y_amount']))." pak"; |
171 else if ($item['y_form'] == 1) // Dry |
171 else if ($item['y_form'] == 1 || $item['y_form'] == 6) // Dry |
172 $amount = sprintf("%.1f",floatval($item['y_amount'])*1000)." gr"; |
172 $amount = sprintf("%.1f",floatval($item['y_amount'])*1000)." gr"; |
173 else |
173 else |
174 $amount = sprintf("%.0f",floatval($item['y_amount'])*1000)." ml"; |
174 $amount = sprintf("%.0f",floatval($item['y_amount'])*1000)." ml"; |
175 |
175 |
176 echo sprintf("%s %s %-12s %-12s %10s", $product, $name, $yeastuse[$item['y_use']], $yeastform[$item['y_form']], $amount) . PHP_EOL; |
176 echo sprintf("%s %s %-12s %-12s %10s", $product, $name, $yeastuse[$item['y_use']], $yeastform[$item['y_form']], $amount) . PHP_EOL; |