Changeset 901 for trunk/Modules/FinanceBankAPI/FileImport.php
- Timestamp:
- Feb 17, 2021, 9:27:32 PM (4 years ago)
- File:
-
- 1 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,
Note:
See TracChangeset
for help on using the changeset viewer.