data['nav']->render(); ?>
Suggestionsdownload
request->getDataString('supplier'); $hasSupplierSwitch = false; $isFirst = true; foreach ($this->data['suggestions'] as $item => $suggestion) : $isNew = $now->getTimestamp() - $suggestion['item']->createdAt->getTimestamp() < 60 * 60 * 24 * 60; // Skip irrelevant items // No purchase suggestion // Not new (new = item created in the last 60 days) // At least 1 month in stock // At least 20% above min. stock if ($suggestion['quantity']->value === 0 && !$isNew && ($suggestion['range_reserved'] > 1.0 || $suggestion['avgsales']->value === 0) && $suggestion['minquantity']->value * 1.2 <= $suggestion['range_reserved'] * $suggestion['avgsales']->value ) { continue; } $total->add($suggestion['totalPrice']); $subtotal->add($suggestion['totalPrice']); $container = \reset($suggestion['item']->container); $class = ''; if ($suggestion['quantity']->value !== 0) { $class = ' class="highlight-2"'; } ?> id && !$isFirst) : $hasSupplierSwitch = true; $lastSupplier = $suggestion['supplier']->id; ?>
Item Supplier Stock Reserved Ordered Ø Sales Range 1 Range 2 Min. stock Min. order Steps Ordering Adding New range Price Costs
printHtml($suggestion['supplier']->account->name1); ?> printHtml($suggestion['supplier']->account->name2); ?> getAmount(); ?>
printHtml($suggestion['item']->number); ?> printHtml($suggestion['item']->getL11n('name1')->content); ?> printHtml($suggestion['item']->getL11n('name1')->content); ?> printHtml($suggestion['supplier']->number); ?> getAmount($container->quantityDecimals); ?> getAmount($container->quantityDecimals); ?> getAmount($container->quantityDecimals); ?> getAmount(1); ?> getAmount($container->quantityDecimals); ?> getAmount($container->quantityDecimals); ?> getAmount($container->quantityDecimals); ?> > createModify(0, (int) \ceil($suggestion['range_ordered'] + $suggestion['range_reserved']))->format('Y-m-d') ?> getAmount(); ?> getAmount(); ?>
printHtml($suggestion['supplier']->account->name1); ?> printHtml($suggestion['supplier']->account->name2); ?> getAmount(); ?>
Total getAmount(); ?>
Ordering