Changeset 629
- Timestamp:
- Jan 2, 2014, 5:07:34 PM (11 years ago)
- Location:
- trunk/Modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Import.php
r568 r629 122 122 function InsertMoney($Subject, $Value, $Cash, $Taxable, $Time, $Text, $DocumentLine) 123 123 { 124 125 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine );124 $Year = date('Y', $Time); 125 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine, $Year); 126 126 // TODO: Fixed BankAccount=1 127 127 $this->Database->insert('FinanceOperation', array('Text' => $Text, -
trunk/Modules/Finance/Manage.php
r627 r629 106 106 global $LastInsertTime; 107 107 108 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine); 108 $Year = date('Y', $TimeCreation); 109 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine, $Year); 109 110 $SumValue = 0; 110 111 foreach($Items as $Item) -
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.