Projekt

Obecné

Profil

Stáhnout (3.8 KB) Statistiky
| Větev: | Tag: | Revize:
8baed187 Michal Kliment
<h2><?php echo $headline ?></h2>
<?php echo html::anchor('invoices/edit/' . $invoice->id, __('Edit')) ?>
c1bdc1c4 Michal Kliment
&nbsp;
<?php echo html::anchor('invoices/export_single/' . $invoice->id, __('Export')) ?>
8baed187 Michal Kliment
<br /><br />

c1bdc1c4 Michal Kliment
<table class="extended" cellspacing="0" style="float:left; width:360px;">
<tr>
<th colspan="2"><?php echo __('Basic information') ?></th>
</tr>
8baed187 Michal Kliment
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $invoice->id ?></td>
</tr>
<tr>
c1bdc1c4 Michal Kliment
<th><?php echo __('Partner') ?></th>
<td><?php if (!empty($partner))
echo html::anchor('members/show/' . $partner->id, $partner->name);
elseif (!empty($invoice->partner_company))
echo $invoice->partner_company;
else
echo $invoice->partner_name; ?></td>
8baed187 Michal Kliment
</tr>
<tr>
<th><?php echo __('Invoice number') ?></th>
<td><?php echo $invoice->invoice_nr ?></td>
</tr>
c1bdc1c4 Michal Kliment
<tr>
<th><?php echo __('Invoice type') ?></th>
<td><?php echo callback::invoice_type_field($invoice, 'invoice_type') ?></td>
</tr>
<tr>
<th><?php echo __('Account number') ?></th>
<td><?php echo $invoice->account_nr ?></td>
</tr>
8baed187 Michal Kliment
<tr>
<th><?php echo __('Variable symbol') ?></th>
c1bdc1c4 Michal Kliment
<td><?php echo !empty($invoice->var_sym) ? $invoice->var_sym : '' ?></td>
8baed187 Michal Kliment
</tr>
<tr>
<th><?php echo __('Constant symbol') ?></th>
c1bdc1c4 Michal Kliment
<td><?php echo !empty($invoice->con_sym) ? $invoice->con_sym : '' ?></td>
8baed187 Michal Kliment
</tr>
<tr>
<th><?php echo __('Date of issue') ?></th>
<td><?php echo $invoice->date_inv ?></td>
</tr>
<tr>
<th><?php echo __('Due date') ?></th>
<td><?php echo $invoice->date_due ?></td>
</tr>
<tr>
<th><?php echo __('Date vat') ?></th>
<td><?php echo $invoice->date_vat ?></td>
</tr>
<tr>
<th><?php echo __('Vat') ?></th>
c1bdc1c4 Michal Kliment
<td><?php echo $invoice->vat ? __('Yes') : __('No') ?></td>
8baed187 Michal Kliment
</tr>
<tr>
<th><?php echo __('Order number') ?></th>
c1bdc1c4 Michal Kliment
<td><?php echo !empty($invoice->order_nr) ? $invoice->order_nr : '' ?></td>
8baed187 Michal Kliment
</tr>
<tr>
<th><?php echo __('Currency') ?></th>
<td><?php echo $invoice->currency ?></td>
</tr>
c1bdc1c4 Michal Kliment
<tr>
<th colspan="2"><?php echo __('Note') ?></th>
</tr>
<tr>
<td colspan="2"><?php echo $invoice->note ?></th>
</tr>
</table>

<?php if (empty($partner))
{?>
<table class="extended" cellspacing="0" style="float:left; margin-left:10px; width:360px;">
<tr>
<th colspan="2"><?php echo __('Contact information') ?></th>
</tr>
<?php
if (!empty($invoice->partner_company))
{ ?>
<tr>
<th><?php echo __('Company') ?></th>
<td><?php echo ($invoice->partner_company) ?></td>
</tr>
<?php
}
?>
<?php
if (!empty($invoice->partner_name))
{ ?>
<tr>
<th><?php echo __('Name') ?></th>
<td><?php echo ($invoice->partner_name) ?></td>
</tr>
<?php
}
?>
<tr>
<th><?php echo __('Street') ?></th>
<td><?php echo ($invoice->partner_street) ?></td>
</tr>
<tr>
<th><?php echo __('Street number') ?></th>
<td><?php echo ($invoice->partner_street_number) ?></td>
</tr>
<tr>
<th><?php echo __('Town') ?></th>
<td><?php echo ($invoice->partner_town) ?></td>
</tr>
<tr>
<th><?php echo __('Zip code') ?></th>
<td><?php echo ($invoice->partner_zip_code) ?></td>
</tr>
<tr>
<th><?php echo __('Country') ?></th>
<td><?php echo ($invoice->partner_country) ?></td>
</tr>
<tr>
<th><?php echo __('Organization identifier') ?></th>
<td><?php echo ($invoice->organization_identifier) ?></td>
</tr>
<tr>
<th><?php echo __('Phone') ?></th>
<td><?php echo ($invoice->phone_number) ?></td>
</tr>
<tr>
<th><?php echo __('Email') ?></th>
<td><?php echo ($invoice->email) ?></td>
</tr>
</table><br />
<?php } ?>

<div class="clear"></div>
8baed187 Michal Kliment
c1bdc1c4 Michal Kliment
<br />
8baed187 Michal Kliment
<h3><?php echo __('Invoice items') ?></h3>
c1bdc1c4 Michal Kliment
<?php echo html::anchor('invoice_items/add/' . $invoice->id, __('Add new items'), array('title' => __('Add new items'), 'class' => 'popup_link')) ?>
8baed187 Michal Kliment
<?php echo form::close() ?>
<br /><br />
<?php echo $grid ?>