data['client']; $notes = $client->notes; $files = $client->files; $clientImage = $this->getData('clientImage') ?? new NullMedia(); $attributeView = $this->data['attributeView']; $languages = ISO639Enum::getConstants(); /** * @var \phpOMS\Views\View $this */ echo $this->data['nav']->render(); ?>
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
getHtml('Contact'); ?> mail
getHtml('Address'); ?>
mainAddress->fao)) : ?>
mainAddress->addressAddition)) : ?>
<?= $this->printHtml($clientImage->name); ?>
getEditorDocByTypeName('client_backend_warning'))->id !== 0) : ?>
printHtml($warning->plain); ?>
data['hasBilling']) : ?>
getHtml('YTDSales'); ?>: getCurrency(SalesBillMapper::getClientNetSales($client->id, SmartDateTime::startOfYear($this->data['business_start']), new \DateTime('now')), format: 'medium'); ?>
getHtml('MTDSales'); ?>: getCurrency(SalesBillMapper::getClientNetSales($client->id, SmartDateTime::startOfMonth(), new \DateTime('now')), format: 'medium'); ?>
getHtml('CLV'); ?>: getCurrency(SalesBillMapper::getCLVHistoric($client->id), format: 'medium'); ?>
getHtml('LastContact'); ?>: id)?->format('Y-m-d'); ?>
getHtml('LastOrder'); ?>: id)?->format('Y-m-d'); ?>
getHtml('Created'); ?>: createdAt->format('Y-m-d H:i'); ?>
getHtml('DSO'); ?>: TBD
getHtml('Due'); ?>: TBD
getHtml('Balance'); ?>: TBD
getHtml('Notes'); ?>
id); ?>
getHtml('Title'); ?> getHtml('CreatedAt'); ?>
title; ?> createdAt->format('Y-m-d'); ?>
getHtml('Documents'); ?>
id); ?>
getHtml('Title'); ?> getHtml('CreatedAt'); ?>
name; ?> extension; ?> createdAt->format('Y-m-d'); ?>
data['hasBilling']) : ?>
getHtml('RecentInvoices'); ?>
with('type') ->with('type/l11n') ->with('client') ->where('client', $client->id) ->where('type/l11n/language', $this->response->header->l11n->language) ->sort('id', OrderType::DESC) ->limit(5) ->execute(); /** @var \Modules\Billing\Models\Bill $invoice */ foreach ($newestInvoices as $invoice) : $url = UriFactory::build('{/base}/sales/bill?{?}&id=' . $invoice->id); ?>
getHtml('Number'); ?> getHtml('Type'); ?> getHtml('Name'); ?> getHtml('Net'); ?> getHtml('Date'); ?>
getNumber(); ?> type->getL11n(); ?> billTo; ?> getCurrency($invoice->netSales); ?> createdAt->format('Y-m-d'); ?>
data['hasBilling']) : $monthlySalesCosts = SalesBillMapper::getClientMonthlySalesCosts($client->id, (new SmartDateTime('now'))->createModify(-1), new SmartDateTime('now')); ?>
getHtml('Segments'); ?>
getHtml('Sales'); ?>
], "datasets": [ { "label": "getHtml('Margin'); ?>", "type": "line", "data": [ ], "yAxisID": "axis2", "fill": false, "borderColor": "rgb(255, 99, 132)", "backgroundColor": "rgb(255, 99, 132)" }, { "label": "getHtml('Sales'); ?>", "type": "bar", "data": [ ], "yAxisID": "axis1", "backgroundColor": "rgb(54, 162, 235)" } ] }, "options": { "responsive": true, "scales": { "axis1": { "id": "axis1", "display": true, "position": "left" }, "axis2": { "id": "axis2", "display": true, "position": "right", "title": { "display": true, "text": "getHtml('Margin'); ?> %" }, "grid": { "display": false }, "beginAtZero": true, "ticks": { "min": 0, "max": 100, "stepSize": 10 } } } } }'>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
getHtml('Address'); ?>
getHtml('Contact'); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
getHtml('Payment'); ?>
getHtml('PaymentTerm'); ?>
request->uri->fragment === 'c-tab-6' ? ' checked' : ''; ?>>
getHtml('Pricing'); ?>download
getHtml('Prices'); ?>download
data['prices']; foreach ($prices as $key => $value) : ++$c; $url = UriFactory::build('{/base}/admin/group/settings?{?}&id=' . $value->id); ?>
getHtml('ID', '0', '0'); ?>expand_lessexpand_more getHtml('Name'); ?>expand_lessexpand_more getHtml('Price'); ?> getHtml('Quantity'); ?> getHtml('Discount'); ?> getHtml('DiscountP'); ?> getHtml('Bonus'); ?> getHtml('ItemGroup'); ?> getHtml('ItemSegment'); ?> getHtml('ItemSection'); ?> getHtml('ItemType'); ?> getHtml('ClientGroup'); ?> getHtml('ClientSegment'); ?> getHtml('ClientSection'); ?> getHtml('ClientType'); ?> getHtml('Country'); ?> getHtml('Start'); ?> getHtml('End'); ?>
close id; ?> printHtml($value->name); ?> printHtml($value->price->getAmount()); ?> printHtml((string) $value->quantity); ?> printHtml((string) $value->discount); ?> printHtml((string) $value->discountPercentage); ?> printHtml((string) $value->bonus); ?> printHtml((string) $value->itemgroup->getL11n()); ?> printHtml((string) $value->itemsegment->getL11n()); ?> printHtml((string) $value->itemsection->getL11n()); ?> printHtml((string) $value->itemtype->getL11n()); ?> printHtml((string) $value->clientgroup->getL11n()); ?> printHtml((string) $value->clientsegment->getL11n()); ?> printHtml((string) $value->clientsection->getL11n()); ?> printHtml((string) $value->clienttype->getL11n()); ?> printHtml((string) $value->clientcountry); ?> printHtml((string) $value->start?->format('Y-m-d')); ?> printHtml((string) $value->end?->format('Y-m-d')); ?>
getHtml('Empty', '0', '0'); ?>
request->uri->fragment === 'c-tab-7' ? ' checked' : ''; ?>>
render( $client->attributes, $this->data['attributeTypes'] ?? [], $this->data['units'] ?? [], '{/api}client/attribute', $client->id ); ?>
request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>>
data['media-upload']->render('client-file', 'files', '', $client->files); ?>
request->uri->fragment === 'c-tab-9' ? ' checked' : ''; ?>>
getHtml('RecentInvoices'); ?>
id, SmartDateTime::startOfYear($this->data['business_start']), new SmartDateTime('now')); /** @var \Modules\Billing\Models\Bill $invoice */ foreach ($allInvoices as $invoice) : $url = UriFactory::build('{/base}/sales/bill?{?}&id=' . $invoice->id); ?>
getHtml('Number'); ?> getHtml('Type'); ?> getHtml('Name'); ?> getHtml('Net'); ?> getHtml('Date'); ?>
getNumber(); ?> type->getL11n(); ?> billTo; ?> getCurrency($invoice->netSales); ?> createdAt->format('Y-m-d'); ?>
request->uri->fragment === 'c-tab-9' ? ' checked' : ''; ?>>
data['note']->render('client-note', 'notes', $client->notes); ?>
getHtml('Audits', 'Auditor'); ?>download
data['audits'] ?? []; $previous = empty($audits) ? HttpHeader::getAllHeaders()['Referer'] ?? 'admin/module/settings?id={?id}#{\#}' : 'admin/module/settings?{?}&audit=' . \reset($audits)->id . '&ptype=p#{\#}'; $next = empty($audits) ? HttpHeader::getAllHeaders()['Referer'] ?? 'admin/module/settings?id={?id}#{\#}' : 'admin/module/settings?{?}&audit=' . \end($audits)->id . '&ptype=n#{\#}'; foreach ($audits as $key => $audit) : ++$count; $url = UriFactory::build('{/base}/admin/audit/single?{?}&id=' . $audit->id); ?>
getHtml('ID', '0', '0'); ?> getHtml('Module', 'Auditor'); ?> getHtml('Type', 'Auditor'); ?> getHtml('Trigger', 'Auditor'); ?> getHtml('Content', 'Auditor'); ?> getHtml('By', 'Auditor'); ?> getHtml('Ref', 'Auditor'); ?> getHtml('Date', 'Auditor'); ?>
id; ?> printHtml($audit->module); ?> type; ?> printHtml($audit->trigger); ?> printHtml((string) $audit->content); ?> printHtml($audit->createdBy->login); ?> printHtml((string) $audit->ref); ?> createdAt->format('Y-m-d H:i'); ?>
getHtml('Empty', '0', '0'); ?>