Changeset 901 for trunk/Modules/FinanceBankAPI
- Timestamp:
- Feb 17, 2021, 9:27:32 PM (4 years ago)
- Location:
- trunk/Modules/FinanceBankAPI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/FileImport.php
r899 r901 44 44 } 45 45 $Year = date('Y', MysqlDateToTime($DbRow['Time'])); 46 $BillCode = $Finance->GetNextDocumentLineNumberId($FinanceGroup['DocumentLine'], $Year);46 $BillCode = ModuleDocument::Cast($this->System->GetModule('Document'))->GetNextDocumentLineNumberId($FinanceGroup['DocumentLine'], $Year); 47 47 $this->Database->insert('FinanceOperation', array('Subject' => $DbRow2['Id'], 'Cash' => 0, 48 48 'ValueUser' => Abs($DbRow['Value']), 'Value' => 0, 'Taxable' => 1, 'BankAccount' => $DbRow['BankAccount'], 'Network' => 1, … … 171 171 { 172 172 $Year = date('Y', $Time); 173 $BillCode = Module Finance::Cast($this->System->GetModule('Finance'))->Finance->GetNextDocumentLineNumberId(173 $BillCode = ModuleDocument::Cast($this->System->GetModule('Document'))->GetNextDocumentLineNumberId( 174 174 $Group['DocumentLine'], $Year); 175 175 $this->Database->insert('FinanceOperation', array('Text' => $Text, -
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r899 r901 37 37 $this->License = 'GNU/GPLv3'; 38 38 $this->Description = 'Communication through API to various banks, manual file import'; 39 $this->Dependencies = array(ModuleFinance::GetName(), ModuleScheduler::GetName(), ModuleIS::GetName()); 39 $this->Dependencies = array(ModuleFinance::GetName(), ModuleScheduler::GetName(), ModuleIS::GetName(), 40 ModuleDocument::GetName()); 40 41 $this->Models = array(FinanceBankImport::GetClassName()); 41 42 }
Note:
See TracChangeset
for help on using the changeset viewer.