Changeset 627 for trunk/Modules/Finance/Manage.php
- Timestamp:
- Jan 2, 2014, 12:42:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r609 r627 111 111 $SumValue = $SumValue + $Item['Price'] * $Item['Quantity']; 112 112 $this->Database->insert('FinanceInvoice', array( 113 'Subject' => $Subject, 'Time Creation' => TimeToMysqlDateTime($TimeCreation),113 'Subject' => $Subject, 'Time' => TimeToMysqlDateTime($TimeCreation), 114 114 'TimeDue' => TimeToMysqlDateTime($TimeDue), 'Value' => $SumValue, 'BillCode' => $BillCode, 115 115 'PeriodFrom' => TimeToMysqlDate($PeriodFrom), 'PeriodTo' => TimeToMysqlDate($PeriodTo), … … 352 352 '<th style="border-style: solid; border-width: 1px; padding: 1px 5px 1px 5px; text-align: center; font-weight: bold;">Částka [Kč]</th></tr>'."\n"; 353 353 $DbResult = $this->Database->query('SELECT T1.* FROM ((SELECT Text, Time, Value AS Value, File FROM FinanceOperation WHERE (Subject='.$Member['Subject'].')) UNION ALL '. 354 '(SELECT CONCAT(`Text`, (SELECT GROUP_CONCAT(`Description` SEPARATOR "<br/>") FROM `FinanceInvoiceItem` WHERE `FinanceInvoiceItem`.`FinanceInvoice` = `FinanceInvoice`.`Id`)) AS `Text`, Time Creation as Time, -Value as Value, File FROM FinanceInvoice WHERE (Subject='.354 '(SELECT CONCAT(`Text`, (SELECT GROUP_CONCAT(`Description` SEPARATOR "<br/>") FROM `FinanceInvoiceItem` WHERE `FinanceInvoiceItem`.`FinanceInvoice` = `FinanceInvoice`.`Id`)) AS `Text`, Time, -Value as Value, File FROM FinanceInvoice WHERE (Subject='. 355 355 $Member['Subject'].')) ORDER BY Time DESC) AS T1 WHERE (T1.Time > "'.$Member['BillingPeriodLastDate'].'")'); 356 356 while($DbRow = $DbResult->fetch_assoc())
Note:
See TracChangeset
for help on using the changeset viewer.