CakeAccounting/templates/DeJournalEntries/view.php

84 lines
4.6 KiB
PHP
Raw Permalink Normal View History

2025-08-09 21:07:39 +00:00
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $deJournalEntry
*/
?>
<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Actions') ?></h4>
<?= $this->Html->link(__('Edit De Journal Entry'), ['action' => 'edit', $deJournalEntry->id], ['class' => 'side-nav-item']) ?>
<?= $this->Form->postLink(__('Delete De Journal Entry'), ['action' => 'delete', $deJournalEntry->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deJournalEntry->id), 'class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('List De Journal Entries'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('New De Journal Entry'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="deJournalEntries view content">
<h3><?= h($deJournalEntry->id) ?></h3>
<table>
<tr>
<th><?= __('De Journal') ?></th>
<td><?= $deJournalEntry->hasValue('de_journal') ? $this->Html->link($deJournalEntry->de_journal->name, ['controller' => 'DeJournals', 'action' => 'view', $deJournalEntry->de_journal->id]) : '' ?></td>
</tr>
<tr>
<th><?= __('User') ?></th>
<td><?= $deJournalEntry->hasValue('user') ? $this->Html->link($deJournalEntry->user->first_name, ['controller' => 'Users', 'action' => 'view', $deJournalEntry->user->id]) : '' ?></td>
</tr>
<tr>
<th><?= __('Id') ?></th>
<td><?= $this->Number->format($deJournalEntry->id) ?></td>
</tr>
<tr>
<th><?= __('Created') ?></th>
<td><?= h($deJournalEntry->created) ?></td>
</tr>
</table>
<div class="text">
<strong><?= __('Notes') ?></strong>
<blockquote>
<?= $this->Text->autoParagraph(h($deJournalEntry->notes)); ?>
</blockquote>
</div>
<div class="related">
<h4><?= __('Related De Journal Items') ?></h4>
<?php if (!empty($deJournalEntry->de_journal_items)) : ?>
<div class="table-responsive">
<table>
<tr>
<th><?= __('Id') ?></th>
<th><?= __('Account Number Credit') ?></th>
<th><?= __('Account Number Debit') ?></th>
<th><?= __('External Account Number Credit') ?></th>
<th><?= __('External Account Number Debit') ?></th>
<th><?= __('De Journal Entry Id') ?></th>
<th><?= __('Amount') ?></th>
<th><?= __('Created') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($deJournalEntry->de_journal_items as $deJournalItems) : ?>
<tr>
<td><?= h($deJournalItems->id) ?></td>
<td><?= h($deJournalItems->account_number_credit) ?></td>
<td><?= h($deJournalItems->account_number_debit) ?></td>
<td><?= h($deJournalItems->external_account_number_credit) ?></td>
<td><?= h($deJournalItems->external_account_number_debit) ?></td>
<td><?= h($deJournalItems->de_journal_entry_id) ?></td>
<td><?= h($deJournalItems->amount) ?></td>
<td><?= h($deJournalItems->created) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'DeJournalItems', 'action' => 'view', $deJournalItems->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'DeJournalItems', 'action' => 'edit', $deJournalItems->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'DeJournalItems', 'action' => 'delete', $deJournalItems->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deJournalItems->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>