Revize 813
Přidáno uživatelem Jiří Sviták před více než 13 roky(ů)
freenetis/branches/testing/application/controllers/transfers.php | ||
---|---|---|
}
|
||
|
||
/**
|
||
* Recounts transfer opřevodyf one member credit account. Used only in special cases, like changing entrance date.
|
||
* Recounts transfer of one member credit account. Used only in special cases, like changing entrance date.
|
||
* @author Jiri Svitak
|
||
* @param $account_id
|
||
*/
|
||
... | ... | |
$entrance = date_parse($ca->entrance_date);
|
||
$eyear = $entrance['year'];
|
||
$emonth = $entrance['month'];
|
||
$eday = $entrance['day'];
|
||
if ($eday > 15)
|
||
$emonth++;
|
||
if ($emonth == 13)
|
||
{
|
||
$emonth = 1;
|
||
$eyear++;
|
||
}
|
||
// getting boundary date - 15th day in the month
|
||
$date = date('Y-m-d', mktime(0, 0, 0, $emonth, 15, $eyear));
|
||
// while debt is greater than zero and date of instalment is lower than current date
|
Také k dispozici: Unified diff
Opraven chybny mesic zacatku prepocitavani strzeneho vstupniho prispevku clena.