data['item']; $attribute = $item->attributes; $notes = $item->notes; $files = $item->files; $itemImage = $this->getData('itemImage') ?? new NullMedia(); $newestInvoices = $this->data['newestInvoices'] ?? []; $allInvoices = $this->data['allInvoices'] ?? []; $topCustomers = $this->getData('topCustomers') ?? [[], []]; $regionSales = $this->data['regionSales'] ?? []; $countrySales = $this->data['countrySales'] ?? []; $monthlySalesCosts = $this->data['monthlySalesCosts'] ?? []; $attributeView = $this->data['attributeView']; $l11nView = $this->data['l11nView']; $languages = ISO639Enum::getConstants(); /** @var \phpOMS\Localization\Localization $l11n */ $l11n = $this->getData('defaultlocalization') ?? new NullLocalization(); echo $this->data['nav']->render(); ?>
| = $this->getHtml('YTDSales'); ?>: | = $this->getCurrency($this->getData('ytd')); ?> |
| = $this->getHtml('MTDSales'); ?>: | = $this->getCurrency($this->getData('mtd')); ?> |
| = $this->getHtml('ILV'); ?>: | |
| = $this->getHtml('MRR'); ?>: |
| = $this->getHtml('LastOrder'); ?>: | = $this->getData('lastOrder') !== null ? $this->getData('lastOrder')->format('Y-m-d H:i') : ''; ?> |
| = $this->getHtml('PriceChange'); ?>: | |
| = $this->getHtml('Created'); ?>: | = $item->createdAt->format('Y-m-d H:i'); ?> |
| = $this->getHtml('Modified'); ?>: |
| = $this->getHtml('SalesPrice'); ?>: | = $this->getCurrency($item->salesPrice, format: 'medium'); ?> |
| = $this->getHtml('PurchasePrice'); ?>: | = $this->getCurrency($item->purchasePrice); ?> |
| = $this->getHtml('Margin'); ?>: | = $this->getNumeric( $item->salesPrice->getInt() === 0 ? 0 : ($item->salesPrice->getInt() - $item->purchasePrice->getInt()) / $item->salesPrice->getInt() * 100 , 'short'); ?> % |
| = $this->getHtml('AvgPrice'); ?>: | = $this->getCurrency($this->getData('avg')); ?> |
| = $this->getHtml('Number'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Country'); ?> | = $this->getHtml('Net'); ?> |
| = $this->printHtml($client->number); ?> | = $this->printHtml($client->account->name1); ?> = $this->printHtml($client->account->name2); ?> | = $this->printHtml($client->mainAddress->getCountry()); ?> | = (new Money((int) $topCustomers[1][$i]['net_sales']))->getCurrency(); ?> |
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | |||
| = $value->id; ?> | = $this->printHtml($value->name); ?> | |||
| = $this->getHtml('Empty', '0', '0'); ?> | ||||
| = $this->getHtml('Number'); ?> | = $this->getHtml('Type'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Net'); ?> | = $this->getHtml('Date'); ?> |
| = $invoice->getNumber(); ?> | = $invoice->type->getL11n(); ?> | = $invoice->billTo; ?> | = $this->getCurrency($invoice->netSales); ?> | = $invoice->createdAt->format('Y-m-d'); ?> |