Changeset 747 for trunk/Modules/Finance/Import.php
- Timestamp:
- Sep 21, 2015, 12:12:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Import.php
r740 r747 120 120 } 121 121 122 function InsertMoney($Subject, $Value, $ ValueSign, $Cash, $Taxable, $Time, $Text, $Group)122 function InsertMoney($Subject, $Value, $Cash, $Taxable, $Time, $Text, $Group) 123 123 { 124 124 $Year = date('Y', $Time); 125 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber ($Group['DocumentLine'], $Year);125 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year); 126 126 // TODO: Fixed BankAccount=1, allow to select bank account for import 127 127 $this->Database->insert('FinanceOperation', array('Text' => $Text, 128 'Subject' => $Subject, 'Cash' => $Cash, 'Value ' => $Value, 'ValueSign' => $ValueSign,128 'Subject' => $Subject, 'Cash' => $Cash, 'ValueUser' => $Value, 'Value' => $Value * $Group['ValueSign'], 129 129 'Time' => TimeToMysqlDateTime($Time), 'Taxable' => $Taxable, 'BillCode' => $BillCode, 130 130 'BankAccount' => 1, 'Group' => $Group['Id'])); 131 // TODO: Update Value 131 132 } 132 133 … … 146 147 $Date = explode('-', $_POST['Date'.$I]); 147 148 $Date = mktime(0, 0, 0, $Date[1], $Date[2], $Date[0]); 148 $this->InsertMoney($_POST['Subject'.$I], Abs($_POST['Money'.$I]), $FinanceGroup['ValueSign'],149 $this->InsertMoney($_POST['Subject'.$I], Abs($_POST['Money'.$I]), 149 150 0, $_POST['Taxable'.$I], $Date, $_POST['Text'.$I], $FinanceGroup); 150 151 $Output .= $I.', ';
Note:
See TracChangeset
for help on using the changeset viewer.