Changeset 627 for trunk/Modules/Finance/UserState.php
- Timestamp:
- Jan 2, 2014, 12:42:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/UserState.php
r554 r627 69 69 'FROM FinanceOperation WHERE (Subject='.$Subject['Id'].')) UNION ALL '. 70 70 '(SELECT (SELECT GROUP_CONCAT(Description SEPARATOR ",") FROM FinanceInvoiceItem WHERE FinanceInvoice=FinanceInvoice.Id) AS Text, '. 71 'Time Creation as Time, -Value as Value, File, BillCode, PeriodFrom, PeriodTo FROM FinanceInvoice WHERE (Subject='.$Subject['Id'].')) ORDER BY Time DESC) AS T1';71 'Time, -Value as Value, File, BillCode, PeriodFrom, PeriodTo FROM FinanceInvoice WHERE (Subject='.$Subject['Id'].')) ORDER BY Time DESC) AS T1'; 72 72 $DbResult = $this->Database->query('SELECT SUM(T1.Value) AS Total FROM '.$UserOperationTableQuery); 73 73 $DbRow = $DbResult->fetch_array();
Note:
See TracChangeset
for help on using the changeset viewer.