Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 413

Přidáno uživatelem Jiří Sviták před více než 15 roky(ů)

Rozsireni vypisu informaci o prevodu.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php
'bank fees' => 'Bankovní poplatky',
'bank info' => 'Údaje platby',
'bank interests' => 'Bankovní úroky',
'bank transfer' => 'Bankovní převod',
'bank transfer fee' => 'Bankovní poplatek',
'bank transfer id' => 'ID bankovního převodu',
'basic data' => 'Základní údaje',
'basic information' => 'Základní informace',
'basic' => 'Základní',
freenetis/trunk/kohana/application/models/bank_transfer.php
}
/**
* It gets unidentified transfer including bank information
* It gets transfer including bank transfer information. Assigned bank transfer must exist.
* @param $trans_id
* @return unknown_type
*/
public function get_unidentified_transfer($trans_id)
public function get_bank_transfer($trans_id)
{
return self::$db->query("SELECT
oba.name AS oba_name,
......
dba.name AS dba_name,
CONCAT(dba.account_nr, '/', dba.bank_nr) AS dba_number,
t.id, t.origin_id, t.destination_id, t.datetime, t.text, t.amount,
bt.variable_symbol
bt.id AS bt_id, bt.variable_symbol
FROM transfers t
JOIN bank_transfers bt ON t.id = bt.transfer_id
LEFT JOIN bank_accounts oba ON oba.id = bt.origin_id
freenetis/trunk/kohana/application/controllers/members.php
*/
function show($member_id = NULL, $order_by = 'member_id', $order_by_direction = 'ASC')
{
if (!$member_id)
if (!isset($member_id))
Controller::warning(PARAMETER);
if(!$this->acl_check_view(get_class($this),'members',$member_id))
Controller::error(ACCESS);
freenetis/trunk/kohana/application/controllers/transfers.php
$previous_transfer_model = new Transfer_Model();
$previous = $previous_transfer_model->get_transfer($transfer->previous_transfer_id);
}
$bt = null;
// bank transfer is only assigned to transfer from member fees account to account of association
if ($transfer->origin_id == $account_model->get_member_fees_account()->id)
if ($transfer->oa_id == $account_model->get_member_fees_account()->id)
{
$bt_model = new Bank_transfer_Model();
$bt = $bt_model->get_bank_transfer($transfer_id);
}
$headline = url_lang::lang('texts.Detail of transfer number').' '.$transfer->id;
$view = new View('template');
......
$view->content->headline = $headline;
$view->content->transfer = $transfer;
$view->content->previous = $previous;
$view->content->bt = $bt;
$view->content->message = $this->session->get_once('message');
$view->footer = new View('base/footer');
$view->header->menu = Controller::render_menu();
freenetis/trunk/kohana/application/controllers/bank_transfers.php
asort($arr_accounts, SORT_LOCALE_STRING);
$bt_model = new Bank_transfer_Model();
$bt = $bt_model->get_unidentified_transfer($trans_id);
$bt = $bt_model->get_bank_transfer($trans_id);
$fee_model = new Fee_Model();
$fee = $fee_model->get_by_date_type(date('Y-m-d'), 'penalty');
if (is_object($fee) && $fee->id)
freenetis/trunk/kohana/application/views/members/show.php
{
if (isset($voip))
{
echo '<h3';
echo '<h3>';
echo url_lang::lang('texts.VoIP');
echo '</h3>';
echo $voip;
}
echo '<h3';
echo '<br />';
echo '<h3>';
echo url_lang::lang('texts.Membership interrupts');
echo '</h3>';
echo $mis;
freenetis/trunk/kohana/application/views/transfers/show.php
</tr>
<tr>
<th>".url_lang::lang('texts.Transfer ID')."</th>
<td>$previous->id</td>
<td>".html::anchor(url_lang::base().'transfers/show/'.$previous->id, $previous->id)."</td>
</tr>
<tr>
<th>".url_lang::lang('texts.Origin account')."</th>
......
<td>".number_format($previous->amount, 2, ',', ' ').' '.$this->setting->currency."</td>
</tr>
</table>
<br style=\"clear\" />
";
}
else if (isset($bt))
if (isset($bt))
{
echo "
<br class=\"clear\" />
<br />
<table class=\"extended\">
<tr>
<th colspan=\"2\">".url_lang::lang('texts.Bank transfer')."</th>
</tr>
<tr>
<th>".url_lang::lang('texts.Bank transfer ID')."</th>
<td>".$bt->bt_id."</td>
</tr>
<tr>
<th>".url_lang::lang('texts.Variable symbol')."</th>
<td>".$bt->variable_symbol."</td>
</tr>
<tr>
<th>".url_lang::lang('texts.Text')."</th>
<td>".$bt->text."</td>
</tr>
<tr>
<th colspan=\"2\">".url_lang::lang('texts.Origin account')."</th>
</tr>
<tr>
<th>".url_lang::lang('texts.Account name')."</th>
<td>".$bt->oba_name."</td>
</tr>
<tr>
<th>".url_lang::lang('texts.Account number')."</th>
<td>".$bt->oba_number."</td>
</tr>
<tr>
<th colspan=\"2\">".url_lang::lang('texts.Destination account')."</th>
</tr>
<tr>
<th>".url_lang::lang('texts.Account name')."</th>
<td>".$bt->dba_name."</td>
</tr>
<tr>
<th>".url_lang::lang('texts.Account number')."</th>
<td>".$bt->dba_number."</td>
</tr>
</table>
";
}
?>

Také k dispozici: Unified diff