Changeset 294 for trunk/finance/finance.php
- Timestamp:
- Oct 2, 2010, 6:19:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/finance.php
r292 r294 142 142 $DocumentLine = $DbResult->fetch_assoc(); 143 143 144 $DbResult = $this->Database->query('SELECT Shortcut FROM DocumentLineSequence WHERE DocumentLine='.Id.' AND FinanceYear'.$FinanceYear['Id']);144 $DbResult = $this->Database->query('SELECT * FROM DocumentLineSequence WHERE DocumentLine='.$Id.' AND FinanceYear='.$FinanceYear['Id']); 145 145 $Sequence = $DbResult->fetch_assoc(); 146 146 147 147 if($Sequence['YearPrefix'] == 1) 148 148 { 149 $Result = $D bRow['Shortcut'].$Sequence['NextNumber'].'/'.$FinanceYear['Year'];149 $Result = $DocumentLine['Shortcut'].$Sequence['NextNumber'].'/'.$FinanceYear['Year']; 150 150 } else $Result = $DocumentLine['Shortcut'].$Sequence['NextNumber']; 151 151
Note:
See TracChangeset
for help on using the changeset viewer.