Changeset 893 for trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
- Timestamp:
- Jan 4, 2021, 9:55:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r887 r893 5 5 include_once(dirname(__FILE__).'/ImportFio.php'); 6 6 include_once(dirname(__FILE__).'/../Scheduler/Scheduler.php'); 7 8 class FinanceBankImport extends Model 9 { 10 static function GetDesc(): ModelDesc 11 { 12 $Desc = new ModelDesc('FinanceBankImport'); 13 $Desc->AddReference('BankAccount', 'BankAccount'); 14 $Desc->AddDate('Time'); 15 $Desc->AddString('Identification'); 16 $Desc->AddString('AccountNumber'); 17 $Desc->AddString('BankCode'); 18 $Desc->AddString('VariableSymbol'); 19 $Desc->AddString('ConstantSymbol'); 20 $Desc->AddString('SpecificSymbol'); 21 $Desc->AddFloat('Value'); 22 $Desc->AddReference('Currency', 'Currency'); 23 $Desc->AddString('OffsetAccountName'); 24 $Desc->AddReference('FinanceOperation', 'FinanceOperation'); 25 return $Desc; 26 } 27 } 7 28 8 29 class ModuleFinanceBankAPI extends AppModule … … 19 40 } 20 41 21 function DoInstall(): void42 function GetModels(): array 22 43 { 23 } 24 25 function DoUninstall(): void 26 { 44 return array('FinanceBankImport'); 27 45 } 28 46 … … 65 83 ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('FinanceBankAPI', 66 84 array($this, 'ShowDashboardItem')); 67 }68 69 function DoStop(): void70 {71 85 } 72 86
Note:
See TracChangeset
for help on using the changeset viewer.