Changeset 738 for trunk/Modules/FinanceBankAPI/ImportFio.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/ImportFio.php
r715 r738 1 1 <?php 2 2 3 3 include('FioAPI.php'); 4 4 5 5 class ImportFio extends BankImport 6 6 { 7 7 function Import() 8 { 8 { 9 9 $Fio = new FioAPI(); 10 10 $Fio->Token = $this->BankAccount['LoginName']; … … 20 20 //$Output .= '<td>Ke dni '.date('j.n.Y', $Records['DateEnd']).' je stav účtu '.$Records['ClosingBalance'].' Kč</td>'; 21 21 //$Output .= '<td>Suma příjmů: '.$Records['CreditValue'].' Kč</td>'; 22 //$Output .= '<td>Suma výdajů: '.$Records['DebitValue'].' Kč</td>'; 22 //$Output .= '<td>Suma výdajů: '.$Records['DebitValue'].' Kč</td>'; 23 23 //$Output .= '</tr>'; 24 24 foreach($Records['Items'] as $Record) … … 26 26 $DbResult = $this->Database->select('FinanceBankImport', 'ID', 'Identification='.$Record['ID']); 27 27 if($DbResult->num_rows == 0) 28 { 28 { 29 29 $Output .= '<tr>'; 30 30 $this->Database->insert('FinanceBankImport', array('Time' => TimeToMysqlDate($Record['Date']), 31 'BankAccount' => $this->BankAccount['Id'], 'Value' => $Record['Value'], 31 'BankAccount' => $this->BankAccount['Id'], 'Value' => $Record['Value'], 32 32 'SpecificSymbol' => $Record['SpecificSymbol'], 'VariableSymbol' => $Record['VariableSymbol'], 33 33 'ConstantSymbol' => $Record['ConstantSymbol'], 'Currency' => $this->BankAccount['Currency'], … … 41 41 } 42 42 } 43 $Output .= '</table>'; 44 $this->Database->update('FinanceBankAccount', 'Id='.$this->BankAccount['Id'], 45 43 $Output .= '</table>'; 44 $this->Database->update('FinanceBankAccount', 'Id='.$this->BankAccount['Id'], 45 array('LastImportDate' => TimeToMysqlDate($PeriodEnd))); 46 46 return($Output); 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.