getData('item'); $itemL11n = $item->getL11ns(); $itemAttribute = $item->getAttributes(); $notes = $item->getNotes(); $files = $item->getFiles(); $newestInvoices = $this->getData('newestInvoices') ?? []; $allInvoices = $this->getData('allInvoices') ?? []; $topCustomers = $this->getData('topCustomers') ?? []; $regionSales = $this->getData('regionSales') ?? []; $countrySales = $this->getData('countrySales') ?? []; $monthlySalesCosts = $this->getData('monthlySalesCosts') ?? []; $languages = ISO639Enum::getConstants(); /** @var \phpOMS\Localization\Localization $l11n */ $l11n = $this->getData('defaultlocalization') ?? new NullLocalization(); echo $this->getData('nav')->render(); ?>
| = $this->getHtml('YTDSales'); ?>: | = $this->getData('ytd')->getCurrency(); ?> |
| = $this->getHtml('MTDSales'); ?>: | = $this->getData('mtd')->getCurrency(); ?> |
| = $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'); ?>: | = $item->salesPrice->getCurrency(); ?> |
| = $this->getHtml('PurchasePrice'); ?>: | = $item->purchasePrice->getCurrency(); ?> |
| = $this->getHtml('Margin'); ?>: | = \round(($item->salesPrice->getInt() - $item->purchasePrice->getInt()) / $item->salesPrice->getInt() * 100, 2); ?> % |
| = $this->getHtml('AvgPrice'); ?>: | = $this->getData('avg')->getCurrency(); ?> |
| = $this->getHtml('Title'); ?> | = $this->getHtml('CreatedAt'); ?> |
| = $this->printHtml($note->title); ?> | = $this->printHtml($note->createdAt->format('Y-m-d')); ?> |
| = $this->getHtml('Title'); ?> | = $this->getHtml('CreatedAt'); ?> | |
| = $this->printHtml($file->name); ?> | = $this->printHtml($file->extension); ?> | = $this->printHtml($file->createdAt->format('Y-m-d')); ?> |
| = $this->getHtml('Number'); ?> | = $this->getHtml('Type'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Net'); ?> | = $this->getHtml('Date'); ?> |
| = $this->printHtml($invoice->getNumber()); ?> | = $this->printHtml($invoice->type->getL11n()); ?> | = $this->printHtml($invoice->billTo); ?> | = $this->printHtml($invoice->netSales->getCurrency()); ?> | = $this->printHtml($invoice->createdAt->format('Y-m-d')); ?> |
| = $this->getHtml('Number'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Country'); ?> | = $this->getHtml('Net'); ?> |
| = $this->printHtml($client->number); ?> | = $this->printHtml($client->profile->account->name1); ?> = $this->printHtml($client->profile->account->name2); ?> | = $this->printHtml($client->mainAddress->getCountry()); ?> | = (new Money((int) $topCustomers[1][$i]['net_sales']))->getCurrency(); ?> |
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Localization'); ?> | ||
| = $value->getId(); ?> | = $this->printHtml($value->type->title); ?> | = $this->printHtml($value->description); ?> | ||
| = $this->getHtml('Empty', '0', '0'); ?> | ||||
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Name'); ?> | ||
| = $value->getId(); ?> | = $this->printHtml($value->type->getL11n()); ?> | = $value->value->getValue() instanceof \DateTime ? $value->value->getValue()->format('Y-m-d') : $this->printHtml((string) $value->value->getValue()); ?> | ||
| = $this->getHtml('Empty', '0', '0'); ?> | ||||
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | |||
| = $value->getId(); ?> | = $this->printHtml($value->name); ?> | |||
| = $this->getHtml('Empty', '0', '0'); ?> | ||||
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | |||
| = $value->getId(); ?> | = $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; ?> | = $invoice->netSales->getCurrency(); ?> | = $invoice->createdAt->format('Y-m-d'); ?> |
| IP | = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Log'); ?> | = $this->getHtml('Date'); ?> | |
| = $this->printHtml($this->request->getOrigin()); ?> | = $this->printHtml((string) $this->request->header->account); ?> | = $this->printHtml((string) $this->request->header->account); ?> | Creating item | = $this->printHtml((new \DateTime('now'))->format('Y-m-d H:i:s')); ?> | |