Ignore:
Timestamp:
Apr 1, 2013, 12:29:37 AM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Procházení sdílení přetvořeno na aplikační modul.
  • Ukládání a udržování souborů na disku bude nyní samostatný modul. Na tomto modulu zavisí moduly Finance a News.
Location:
trunk/Modules/FinanceBankAPI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/FinanceBankAPI/FioDemo.php

    r500 r505  
    44 
    55$Fio = new FioAPI();
    6 $Fio->Token = '';
     6$Fio->Token = 'YEEd9LlZ5SJ5VcxFcdbAwCji6UTtxve2ns5sClfCbii8Taq63uP7JNsa7OeN1Oum';
    77$Records = $Fio->Import(time() - 3600 * 24 * 31 * 2, time());
    88//print_r($Records);
  • trunk/Modules/FinanceBankAPI/ImportFio.php

    r502 r505  
    2727      if($Record['Type'] == GPC_TYPE_ITEM)
    2828      {
    29         $this->Database->insert('FinanceBankImport', array('Time' => $Record['DueDate'],
    30            'BankAccount' => $this->BankAccount, 'Value' => $Record['Value'],
    31             'SpecificSymbol' => $Record['SpecificSymbol'], 'VariableSymbol' => $Record['VariableSymbol'],
    32             'ConstantSymbol' => $Record['ConstantSymbol'], 'Currency' => $this->Currency,
    33             ));
     29        $this->Database->insert('FinanceBankImport', array('Time' => TimeToMysqlDate($Record['DueDate']),
     30          'BankAccount' => $this->BankAccount, 'Value' => $Record['Value'],
     31          'SpecificSymbol' => $Record['SpecificSymbol'], 'VariableSymbol' => $Record['VariableSymbol'],
     32          'ConstantSymbol' => $Record['ConstantSymbol'], 'Currency' => $this->Currency,
     33          ));
    3434        echo('<td>'.$Record['OffsetAccount'].'</td>');
    3535        echo('<td>'.$Record['BankCode'].'</td>');
Note: See TracChangeset for help on using the changeset viewer.