Revize 531
Přidáno uživatelem Jiří Sviták před téměř 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'password has been successfully changed' => 'Heslo bylo úspěšně změněno.',
|
||
'password' => 'Heslo',
|
||
'pay from account' => 'Platit z účtu',
|
||
'payed to' => 'Zaplaceno do',
|
||
'payment' => 'Platba',
|
||
'payment by cash' => 'Platba hotově',
|
||
'payment has been successfully assigned' => 'Platba byla úspěšně přiřazena.',
|
freenetis/trunk/kohana/application/models/account.php | ||
---|---|---|
WHERE destination_id = $account_id
|
||
")->current()->total_inbound;
|
||
}
|
||
|
||
|
||
/**
|
||
* @author Tomas Dulik
|
||
* This function creates new record in the table "accounts".
|
freenetis/trunk/kohana/application/controllers/transfers.php | ||
---|---|---|
$filter_values = $filter->values();
|
||
if (count($filter_values) == 0)
|
||
$filter_values['type'] = Transfer_Model::$inbound_and_outbound;
|
||
// count expiration date of credit
|
||
$balance = $account->get_account_balance($account_id);
|
||
$fee_model = new Fee_Model();
|
||
$fee = $fee_model->get_by_date_type(date('Y-m-d'), 'regular member fee');
|
||
$expiration_date = date('Y-m-d', time() + (($balance / $fee->fee) * 30 * 24 * 60 * 60));
|
||
// transfers on account
|
||
$transfer_model = new Transfer_Model();
|
||
$total_transfers = $transfer_model->count_transfers($account_id, $filter_values);
|
||
... | ... | |
$view->content = new View('transfers/show_by_account');
|
||
$view->content->headline = $headline;
|
||
$view->content->account = $account;
|
||
$view->content->balance = $account->get_account_balance($account_id);
|
||
$view->content->balance = $balance;
|
||
$view->content->inbound = $account->get_total_inbound_amount($account_id);
|
||
$view->content->outbound = $account->get_total_outbound_amount($account_id);
|
||
$view->content->expiration_date = $expiration_date;
|
||
$view->content->grid = $grid;
|
||
$view->content->message = $this->session->get_once('message');
|
||
$view->render(TRUE);
|
freenetis/trunk/kohana/application/views/transfers/show_by_account.php | ||
---|---|---|
<th><?php echo url_lang::lang('texts.Total outbound')?></th>
|
||
<td><?php echo number_format((float)$outbound, 2, ',', ' ').' '.$this->setting->currency ?></td>
|
||
</tr>
|
||
<?php if ($account->account_attribute_id == Account_attribute_Model::$credit) { ?>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Payed to')?></th>
|
||
<td><?php echo $expiration_date ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
||
<br class="clear" />
|
||
<br />
|
Také k dispozici: Unified diff
Pridan vypocet datumu, do ktereho ma clen zaplacene clenske prispevky.