Changeset 740 for trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
- Timestamp:
- Jul 3, 2015, 11:36:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r738 r740 69 69 { 70 70 $Preset = array(); 71 if($Item['Value'] < 0) $DocumentLine = DOC_LINE_ACCOUNT_OUT; 72 else $DocumentLine = DOC_LINE_ACCOUNT_IN; 71 if($Item['Value'] < 0) $OperationGroupId = OPERATION_GROUP_ACCOUNT_OUT; 72 else $OperationGroupId = OPERATION_GROUP_ACCOUNT_IN; 73 $FinanceGroup = $this->System->Modules['Finance']->GetFinanceGroupById($OperationGroupId, 'FinanceOperationGroup'); 74 73 75 $Preset = array( 74 76 'presetTime' => $Item['Time'], … … 78 80 'presetNetwork' => 1, 79 81 'presetBankAccount' => $Item['BankAccount'], 80 'presetDocumentLine' => $ DocumentLine);82 'presetDocumentLine' => $FinanceGroup['DocumentLine']); 81 83 return($Preset); 82 84 }
Note:
See TracChangeset
for help on using the changeset viewer.