Ignore:
Timestamp:
Nov 5, 2015, 11:19:31 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Import from bank account API.
File:
1 edited

Legend:

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

    r761 r764  
    101101  {
    102102    $Output = '';
    103     $DbResult = $this->Database->select('FinanceBankAccount', 'Id, Comment',
    104       '(`AutoImport`=1) AND ((`TimeEnd` IS NULL) OR (`TimeEnd` > NOW()))');
     103    $DbResult = $this->Database->select('FinanceBankAccount', '`Id`, `Comment`',
     104      '(`AutoImport`=1) AND (`TimeCreate` < NOW()) AND '.
     105      '((`TimeEnd` IS NULL) OR (`TimeEnd` > NOW()))');
    105106    while($DbRow = $DbResult->fetch_assoc())
    106107    {
    107108      echo($DbRow['Comment']."\n");
    108109      $Page = new PageImportAPI($this->System);
    109       $Output .= $Page->Show();
     110      $Output .= $Page->Import($DbRow['Id']);
    110111    }
    111112    return($Output);
Note: See TracChangeset for help on using the changeset viewer.