CakeAccounting/templates/DeJournalItems/view.php

57 lines
2.8 KiB
PHP

<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $deJournalItem
*/
?>
<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Actions') ?></h4>
<?= $this->Html->link(__('Edit De Journal Item'), ['action' => 'edit', $deJournalItem->id], ['class' => 'side-nav-item']) ?>
<?= $this->Form->postLink(__('Delete De Journal Item'), ['action' => 'delete', $deJournalItem->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deJournalItem->id), 'class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('List De Journal Items'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('New De Journal Item'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="deJournalItems view content">
<h3><?= h($deJournalItem->id) ?></h3>
<table>
<tr>
<th><?= __('De Journal Entry') ?></th>
<td><?= $deJournalItem->hasValue('de_journal_entry') ? $this->Html->link($deJournalItem->de_journal_entry->id, ['controller' => 'DeJournalEntries', 'action' => 'view', $deJournalItem->de_journal_entry->id]) : '' ?></td>
</tr>
<tr>
<th><?= __('Id') ?></th>
<td><?= $this->Number->format($deJournalItem->id) ?></td>
</tr>
<tr>
<th><?= __('Account Number Credit') ?></th>
<td><?= $this->Number->format($deJournalItem->account_number_credit) ?></td>
</tr>
<tr>
<th><?= __('Account Number Debit') ?></th>
<td><?= $this->Number->format($deJournalItem->account_number_debit) ?></td>
</tr>
<tr>
<th><?= __('External Account Number Credit') ?></th>
<td><?= $deJournalItem->external_account_number_credit === null ? '' : $this->Number->format($deJournalItem->external_account_number_credit) ?></td>
</tr>
<tr>
<th><?= __('External Account Number Debit') ?></th>
<td><?= $deJournalItem->external_account_number_debit === null ? '' : $this->Number->format($deJournalItem->external_account_number_debit) ?></td>
</tr>
<tr>
<th><?= __('Amount') ?></th>
<td><?= $this->Number->format($deJournalItem->amount) ?></td>
</tr>
<tr>
<th><?= __('Created') ?></th>
<td><?= h($deJournalItem->created) ?></td>
</tr>
</table>
</div>
</div>
</div>