data['media'] ?? []; /** @var \Modules\Billing\Models\Bill $bill */ $bill = $this->getData('bill') ?? new NullBill(); $elements = $bill->getElements(); $billTypes = $this->data['billtypes'] ?? []; $archive = $bill->getFileByTypeName('original'); /** @var \Modules\Auditor\Models\Audit */ $logs = $this->data['logs'] ?? []; $editable = $bill->id === 0 || \in_array($bill->getStatus(), [BillStatus::DRAFT, BillStatus::UNPARSED]); $disabled = !$editable ? ' disabled' : ''; echo $this->data['nav']->render(); ?>
| = $this->getHtml('Item'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Quantity'); ?> | = $this->getHtml('Discount'); ?> | = $this->getHtml('DiscountP'); ?> | = $this->getHtml('Bonus'); ?> | = $this->getHtml('Tax'); ?> | = $this->getHtml('Price'); ?> | = $this->getHtml('Net'); ?> | |
| > | > | > | > | > | > | > | = $this->getCurrency($element->totalSalesPriceNet); ?> | ||
| = $this->getHtml('Date'); ?> | = $this->getHtml('Amount'); ?> | |
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Trigger', 'Auditor', 'Backend'); ?> | = $this->getHtml('Action', 'Auditor', 'Backend'); ?> | = $this->getHtml('CreatedBy', 'Auditor', 'Backend'); ?> | = $this->getHtml('CreatedAt', 'Auditor', 'Backend'); ?> |
| = $audit->id; ?> | = $audit->trigger; ?> | old === null) : echo $this->getHtml('CREATE', 'Auditor', 'Backend'); ?> old !== null && $audit->new !== null) : echo $this->getHtml('UPDATE', 'Auditor', 'Backend'); ?> new === null) : echo $this->getHtml('DELETE', 'Auditor', 'Backend'); ?> getHtml('UNKNOWN', 'Auditor', 'Backend'); ?> | = $this->printHtml( $this->renderUserName('%3$s %2$s %1$s', [$audit->createdBy->name1, $audit->createdBy->name2, $audit->createdBy->name3, $audit->createdBy->login]) ); ?> | = $audit->createdAt->format('Y-m-d'); ?> |