Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d4299173

Přidáno uživatelem Ondřej Fibich před více než 7 roky(ů)

Fixes #1070: RB importer supported on PHP 5.6 >=

Zobrazit rozdíly:

application/libraries/importers/Raiffeisenbank/RB_Importer.php
static $suppliers, $operating, $member_fees, $cash;
static $first_pass = true;
$this->stats = new stdClass();
$this->stats->linenr++;
if ($first_pass)
{ // dostavame prvni radek vypisu?
$this->stats = new RB_Statistics();
$this->time_now = date("Y-m-d H:i:s");
self::$time_now = date("Y-m-d H:i:s");
$member_model = new Member_Model(); // vytvorime vsechny instance, ktere potrebujeme i pro dalsi radky
$acc_model = new Account_Model();
$bank_acc_model = new Bank_account_Model();
......
$first_pass = FALSE;
}
else
{
$this->stats->linenr++;
}
if (!empty($data->fee))
{
application/libraries/importers/Raiffeisenbank/RB_Statistics.php
*
*/
class RB_Statistics {}
?>
class RB_Statistics
{
public $linenr = 0;
public $bank_fees = 0;
public $bank_fees_nr = 0;
public $interests = 0;
public $interests_nr = 0;
public $unidentified_transfers = 0;
public $new_bank_accounts = 0;
public $time_deposits = 0;
public $time_deposits_nr = 0;
public $cash_drawn = 0;
public $cash_drawn_nr = 0;
public $invoices = 0;
public $invoices_nr = 0;
public $time_deposits_drawn = 0;
public $time_deposits_drawn_nr = 0;
public $member_fees = 0;
public $member_fees_nr = 0;
}

Také k dispozici: Unified diff