Changeset 873 for trunk/Modules/FinanceBankAPI/ImportFio.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/ImportFio.php
r765 r873 9 9 $Fio = new FioAPI(); 10 10 $Fio->Token = $this->BankAccount['LoginName']; 11 if ($this->BankAccount['LastImportDate'] == '') $PeriodStart = time();11 if ($this->BankAccount['LastImportDate'] == '') $PeriodStart = time(); 12 12 else $PeriodStart = MysqlDateToTime($this->BankAccount['LastImportDate']); 13 13 $PeriodEnd = time(); … … 22 22 //$Output .= '<td>Suma výdajů: '.$Records['DebitValue'].' Kč</td>'; 23 23 //$Output .= '</tr>'; 24 foreach ($Records['Items'] as $Record)24 foreach ($Records['Items'] as $Record) 25 25 { 26 26 $DbResult = $this->Database->select('FinanceBankImport', 'ID', 'Identification='.$Record['ID']); 27 if ($DbResult->num_rows == 0)27 if ($DbResult->num_rows == 0) 28 28 { 29 29 $Output .= '<tr>'; … … 44 44 $this->Database->update('FinanceBankAccount', 'Id='.$this->BankAccount['Id'], 45 45 array('LastImportDate' => TimeToMysqlDate($PeriodEnd))); 46 return ($Output);46 return ($Output); 47 47 } 48 48 }
Note:
See TracChangeset
for help on using the changeset viewer.