data['account'] ?? null; $accountImage = $this->getData('accountImage') ?? new NullMedia(); $attributeView = $this->data['attributeView']; $countryCodes = \phpOMS\Localization\ISO3166TwoEnum::getConstants(); $countries = \phpOMS\Localization\ISO3166NameEnum::getConstants(); $languages = ISO639Enum::getConstants(); echo $this->data['nav']->render(); ?>
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
getHtml('Contact'); ?> mail
getHtml('Address'); ?>
mainAddress->fao)) : ?>
mainAddress->addressAddition)) : ?>
<?= $this->printHtml($accountImage->name); ?>
notes) && ($warning = $account->getEditorDocByTypeName('account_backend_warning'))->id !== 0) : ?>
printHtml($warning->plain); ?>
data['hasBilling']) : ?>
getHtml('YTDSales'); ?>: getCurrency(SalesBillMapper::getClientNetSales($account->id, SmartDateTime::startOfYear($this->data['business_start']), new \DateTime('now')), format: 'medium'); ?>
getHtml('MTDSales'); ?>: getCurrency(SalesBillMapper::getClientNetSales($account->id, SmartDateTime::startOfMonth(), new \DateTime('now')), format: 'medium'); ?>
getHtml('CLV'); ?>: getCurrency(SalesBillMapper::getCLVHistoric($account->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'); ?>
notes as $note) : $url = UriFactory::build('{/base}/editor/view?{?}&id=' . $note->id); ?>
getHtml('Title'); ?> getHtml('CreatedAt'); ?>
title; ?> createdAt->format('Y-m-d'); ?>
getHtml('Documents'); ?>
files as $file) : $url = UriFactory::build('{/base}/media/view?{?}&id=' . $file->id); ?>
getHtml('Title'); ?> getHtml('CreatedAt'); ?>
name; ?> extension; ?> createdAt->format('Y-m-d'); ?>
data['hasBilling']) : ?>
getHtml('RecentInvoices'); ?>
with('type') ->with('type/l11n') ->with('account') ->where('account', $account->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'); ?>
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
getHtml('Account'); ?>
getHtml('Accounts'); ?>
request->uri->fragment === 'c-tab-7' ? ' checked' : ''; ?>>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
getHtml('QuickAction'); ?>
getHtml('Open'); ?>
getHtml('Info'); ?> getHtml('Date'); ?> getHtml('Credit'); ?> getHtml('Debit'); ?> getHtml('Number'); ?> getHtml('Text'); ?> getHtml('Due'); ?> getHtml('Payment'); ?>
getHtml('Empty', '0', '0'); ?>
getHtml('Total'); ?>: 0.00 getHtml('Due'); ?>: 0.00
getHtml('Total'); ?>
getHtml('Info'); ?> getHtml('Date'); ?> getHtml('Credit'); ?> getHtml('Debit'); ?> getHtml('Number'); ?> getHtml('Text'); ?> getHtml('Due'); ?> getHtml('Payment'); ?> getHtml('Balanced'); ?> getHtml('Balance'); ?>
getHtml('Empty', '0', '0'); ?>
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
data['contact-component']->render('account-contact', 'contacts', $account->account->contacts); ?> data['address-component']->render('account-address', 'addresses', $account->account->addresses); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
data['media-upload']->render('account-file', 'files', '', $account->files); ?>
request->uri->fragment === 'c-tab-6' ? ' checked' : ''; ?>>
data['note']->render('account-note', 'notes', $account->notes); ?>