Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

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

    r765 r873  
    99    $Fio = new FioAPI();
    1010    $Fio->Token = $this->BankAccount['LoginName'];
    11     if($this->BankAccount['LastImportDate'] == '') $PeriodStart = time();
     11    if ($this->BankAccount['LastImportDate'] == '') $PeriodStart = time();
    1212      else $PeriodStart = MysqlDateToTime($this->BankAccount['LastImportDate']);
    1313    $PeriodEnd = time();
     
    2222        //$Output .= '<td>Suma výdajů: '.$Records['DebitValue'].' Kč</td>';
    2323      //$Output .= '</tr>';
    24     foreach($Records['Items'] as $Record)
     24    foreach ($Records['Items'] as $Record)
    2525    {
    2626      $DbResult = $this->Database->select('FinanceBankImport', 'ID', 'Identification='.$Record['ID']);
    27       if($DbResult->num_rows == 0)
     27      if ($DbResult->num_rows == 0)
    2828      {
    2929        $Output .= '<tr>';
     
    4444    $this->Database->update('FinanceBankAccount', 'Id='.$this->BankAccount['Id'],
    4545      array('LastImportDate' => TimeToMysqlDate($PeriodEnd)));
    46     return($Output);
     46    return ($Output);
    4747  }
    4848}
Note: See TracChangeset for help on using the changeset viewer.