Changeset 133 for www/finance/include.php
- Timestamp:
- Jan 10, 2009, 4:29:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/finance/include.php
r50 r133 120 120 } 121 121 122 function GetNextDocumentLineNumber($Id) 123 { 124 global $Database; 125 126 $DbResult = $Database->query('SELECT Shortcut, NextNumber FROM DocumentLine WHERE Id='.$Id); 127 $DbRow = $DbResult->fetch_assoc(); 128 $Result = $DbRow['Shortcut'].$DbRow['NextNumber']; 129 $Database->query('UPDATE DocumentLine SET NextNumber = NextNumber + 1 WHERE Id='.$Id); 130 return($Result); 131 } 132 122 133 ?>
Note:
See TracChangeset
for help on using the changeset viewer.