Changeset 738 for trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r735 r738 59 59 60 60 $this->System->RegisterPage(array('finance', 'import-api'), 'PageImportAPI'); 61 $this->System->RegisterPage(array('finance', 'import-soubor'), 'PageImportFile'); 61 $this->System->RegisterPage(array('finance', 'import-soubor'), 'PageImportFile'); 62 62 } 63 63 … … 79 79 'presetBankAccount' => $Item['BankAccount'], 80 80 'presetDocumentLine' => $DocumentLine); 81 81 return($Preset); 82 82 } 83 83 } … … 85 85 class ScheduleBankImport extends SchedulerTask 86 86 { 87 88 89 90 $DbResult = $this->Database->select('FinanceBankAccount', 'Id, Comment', 91 92 93 { 94 95 96 97 98 99 87 function Execute() 88 { 89 $Output = ''; 90 $DbResult = $this->Database->select('FinanceBankAccount', 'Id, Comment', 91 '(`AutoImport`=1) AND ((`TimeEnd` IS NULL) OR (`TimeEnd` > NOW()))'); 92 while($DbRow = $DbResult->fetch_assoc()) 93 { 94 echo($DbRow['Comment']."\n"); 95 $Page = new PageImportAPI($this->System); 96 $Output .= $Page->Show(); 97 } 98 return($Output); 99 } 100 100 }
Note:
See TracChangeset
for help on using the changeset viewer.