Changeset 629 for trunk/Modules/FinanceBankAPI/FileImport.php
- Timestamp:
- Jan 2, 2014, 5:07:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/FileImport.php
r628 r629 36 36 if($DbRow['Value'] >= 0) $DocumentLine = 3; // Receive money 37 37 else $DocumentLine = 4; // Send money 38 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine); 38 $Year = date('Y', MysqlDateTimeToTime($DbRow['Time'])); 39 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine, $Year); 39 40 $DbResult3 = $this->Database->insert('FinanceOperation', array('Subject' => $DbRow2['Id'], 'Cash' => 0, 40 41 'Value' => $DbRow['Value'], 'Taxable' => 1, 'BankAccount' => $DbRow['BankAccount'], 'Network' => 1, … … 134 135 function InsertMoney($Subject, $Value, $Cash, $Taxable, $Time, $Text, $DocumentLine) 135 136 { 136 137 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine );137 $Year = date('Y', $Time); 138 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine, $Year); 138 139 $this->Database->insert('FinanceOperation', array('Text' => $Text, 'Subject' => $Subject, 'Cash' => $Cash, 'Value' => $Value, 'Time' => TimeToMysqlDateTime($Time), 'Taxable' => $Taxable, 'BillCode' => $BillCode)); 139 140 }
Note:
See TracChangeset
for help on using the changeset viewer.