Changeset 160 for devel/www/finance/include.php
- Timestamp:
- Feb 18, 2009, 12:16:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/www/finance/include.php
r87 r160 66 66 break; 67 67 case 3: 68 $Tarify[$Index]['price'] = 0;68 $Tarify[$Index]['price'] = $BaseTariffPrice + round($TopTariffPrice * $Tarif['price_units']); 69 69 $Tarify[$Index]['min_speed'] = $Tarify[$Index]['min_speed'] * 1024; 70 70 $Tarify[$Index]['max_speed'] = $Tarify[$Index]['max_speed'] * 1024; … … 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 133 122 134 ?>
Note:
See TracChangeset
for help on using the changeset viewer.