Changeset 549 for trunk/Modules/Finance/Manage.php
- Timestamp:
- Jul 6, 2013, 12:22:02 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r548 r549 148 148 'Subject' => $Subject, 'TimeCreation' => TimeToMysqlDateTime($TimeCreation), 149 149 'TimeDue' => TimeToMysqlDateTime($TimeDue), 'Value' => $SumValue, 'BillCode' => $BillCode, 150 'PeriodFrom' => TimeToMysqlDate($PeriodFrom), 'PeriodTo' => TimeToMysqlDate($PeriodTo))); 150 'PeriodFrom' => TimeToMysqlDate($PeriodFrom), 'PeriodTo' => TimeToMysqlDate($PeriodTo), 151 'Generate' => 1)); 151 152 $InvoiceId = $this->Database->insert_id; 152 153 foreach($Items as $Item) … … 552 553 // FinanceInvoice 553 554 $DbResult = $this->Database->query('SELECT * FROM `FinanceInvoice` WHERE (`BillCode` <> "") '. 554 'AND (`Value` != 0) AND (`File` IS NULL) ');555 'AND (`Value` != 0) AND (`File` IS NULL) AND (`Generate` = 1)'); 555 556 while($Row = $DbResult->fetch_assoc()) 556 557 {
Note:
See TracChangeset
for help on using the changeset viewer.