Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c1bdc1c4

Přidáno uživatelem Michal Kliment před více než 9 roky(ů)

Release 1.1.0

Zobrazit rozdíly:

application/views/invoices/show.php
<h2><?php echo $headline ?></h2>
<?php echo html::anchor('invoices/edit/' . $invoice->id, __('Edit')) ?>
&nbsp;
<?php echo html::anchor('invoices/export_single/' . $invoice->id, __('Export')) ?>
<br /><br />
<table class="extended" cellspacing="0">
<table class="extended" cellspacing="0" style="float:left; width:360px;">
<tr>
<th colspan="2"><?php echo __('Basic information') ?></th>
</tr>
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $invoice->id ?></td>
</tr>
<tr>
<th><?php echo __('Supplier') ?></th>
<td><?php echo html::anchor('members/show/' . $supplier->id, $supplier->name) ?></td>
<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>
</tr>
<tr>
<th><?php echo __('Invoice number') ?></th>
<td><?php echo $invoice->invoice_nr ?></td>
</tr>
<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>
<tr>
<th><?php echo __('Variable symbol') ?></th>
<td><?php echo $invoice->var_sym ?></td>
<td><?php echo !empty($invoice->var_sym) ? $invoice->var_sym : '' ?></td>
</tr>
<tr>
<th><?php echo __('Constant symbol') ?></th>
<td><?php echo $invoice->con_sym ?></td>
<td><?php echo !empty($invoice->con_sym) ? $invoice->con_sym : '' ?></td>
</tr>
<tr>
<th><?php echo __('Date of issue') ?></th>
......
</tr>
<tr>
<th><?php echo __('Vat') ?></th>
<td><?php echo ($invoice->vat) ? __('Yes') : __('No') ?></td>
<td><?php echo $invoice->vat ? __('Yes') : __('No') ?></td>
</tr>
<tr>
<th><?php echo __('Order number') ?></th>
<td><?php echo $invoice->order_nr ?></td>
<td><?php echo !empty($invoice->order_nr) ? $invoice->order_nr : '' ?></td>
</tr>
<tr>
<th><?php echo __('Currency') ?></th>
<td><?php echo $invoice->currency ?></td>
</tr>
</table><br />
<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>
<br />
<h3><?php echo __('Invoice items') ?></h3>
<?php echo __('Add new items') . ':' ?>
<?php echo form::open(url_lang::base() . 'invoices/show/' . $invoice->id, array('style' => 'display: inline')) ?>
<?php echo form::input('item_count', '1', ' style="width: 35px"') ?>
<?php echo form::submit('submit', __('Add'), ' class=submit style="width: 50px"') ?>
<?php echo html::anchor('invoice_items/add/' . $invoice->id, __('Add new items'), array('title' => __('Add new items'), 'class' => 'popup_link')) ?>
<?php echo form::close() ?>
<br /><br />
<?php echo $grid ?>

Také k dispozici: Unified diff