Changeset 486 for trunk/finance/finance.php
- Timestamp:
- Feb 10, 2013, 9:20:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/finance.php
r481 r486 177 177 while($Member = $DbResult->fetch_assoc()) 178 178 { 179 $DbResult2 = $this->Database->query('SELECT ((SELECT COALESCE(SUM(Value), 0) FROM FinanceOperation WHERE Subject='.$Member['Subject'].') + (SELECT COALESCE(SUM(-Value), 0) FROM FinanceClaimsLiabilities WHERE Subject='.$Member['Subject'].')) as Cash'); 179 $DbResult2 = $this->Database->query('SELECT ((SELECT COALESCE(SUM(Value), 0) FROM FinanceOperation '. 180 'WHERE Subject='.$Member['Subject'].') + (SELECT COALESCE(SUM(-Value), 0) FROM FinanceInvoice '. 181 'WHERE Subject='.$Member['Subject'].')) as Cash'); 180 182 $Cash = $DbResult2->fetch_row(); 181 183 $Cash = $Cash[0];
Note:
See TracChangeset
for help on using the changeset viewer.