data['media'] ?? []; /** @var \Modules\Billing\Models\Bill $bill */ $bill = $this->data['bill'] ?? new NullBill(); $elements = $bill->elements; $billTypes = $this->data['billtypes'] ?? []; $paymentTerms = $this->data['paymentterms'] ?? []; $shippingTerms = $this->data['shippingterms'] ?? []; $archive = $bill->getFileByTagName('internal_bill'); /** @var \Modules\Auditor\Models\Audit */ $logs = $this->data['logs'] ?? []; $editable = $bill->id === 0 || \in_array($bill->status, [BillStatus::DRAFT, BillStatus::UNPARSED]); $disabled = $editable ? '' : ' disabled'; $isNew = $archive->id === 0; echo $this->data['nav']->render(); ?> isValid()) : ?>
    areElementsValid()) : ?>
  • getHtml('E_bill_items'); ?>
  • validateTaxAmountElements()) : ?>
  • getHtml('E_bill_taxes'); ?>
  • validateNetElements()) : ?>
  • getHtml('E_bill_net'); ?>
  • validateGrossElements()) : ?>
  • getHtml('E_bill_gross'); ?>
  • validatePriceQuantityElements()) : ?>
  • getHtml('E_bill_unit'); ?>
getHtml('Invoice'); ?>
>
>
client?->id ?? 0) > 0) : ?>
>
>
getHtml('Terms'); ?>
>
getHtml('Billing'); ?>
>
>
>
>
>
getHtml('Delivery'); ?>
>
>
>
>
getHtml('Invoice'); ?>download
getHtml('Item'); ?> getHtml('Name'); ?> getHtml('Quantity'); ?> getHtml('Discount'); ?> getHtml('DiscountP'); ?> getHtml('Bonus'); ?> getHtml('Price'); ?> getHtml('TaxP'); ?> getHtml('Net'); ?> getHtml('Margin'); ?>
expand_less expand_more close > > > > > > > getCurrency($element->totalSalesPriceNet, symbol: ''); ?> totalSalesPriceNet->value === 0 ? 0 : (1 - $element->totalPurchasePriceNet->value / $element->totalSalesPriceNet->value) * 100, 2); ?>%
expand_less expand_more close
getHtml('Total'); ?> netDiscount->getAmount(2); ?> netDiscount->value === 0 ? 0 : ($bill->netDiscount->value / ($bill->netSales->value + $bill->netDiscount->value)) * 100, 2); ?>% taxP->getAmount(2); ?> netSales->getAmount(2); ?> netSales->value === 0 ? 0 : (1 - $bill->netCosts->value / $bill->netSales->value) * 100, 2); ?>%
data['media-upload']->render('bill-file', 'files', '', $media, '{/api}bill/file?csrf={$CSRF}', (string) $bill->id); ?>
getHtml('Logs'); ?>download
id); ?>
getHtml('ID', '0', '0'); ?> getHtml('Action', 'Auditor', 'Backend'); ?> getHtml('Trigger', 'Auditor', 'Backend'); ?> getHtml('CreatedBy', 'Auditor', 'Backend'); ?> getHtml('CreatedAt', 'Auditor', 'Backend'); ?>
id; ?> 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'); ?> trigger; ?> printHtml( $this->renderUserName('%3$s %2$s %1$s', [$audit->createdBy->name1, $audit->createdBy->name2, $audit->createdBy->name3, $audit->createdBy->login]) ); ?> createdAt->format('Y-m-d H:i'); ?>