Changeset 549
- Timestamp:
- Jul 6, 2013, 12:22:02 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Version.php
r548 r549 1 1 <?php 2 2 3 $Revision = 54 7; // Subversion revision4 $DatabaseRevision = 5 35; // SQL structure revision5 $ReleaseTime = '2013-0 6-12';3 $Revision = 549; // Subversion revision 4 $DatabaseRevision = 549; // SQL structure revision 5 $ReleaseTime = '2013-07-05'; 6 6 -
trunk/Modules/Finance/Finance.php
r548 r549 366 366 'BankAccount' => array('Type' => 'TFinanceBankAccount', 'Caption' => 'Účet', 'Default' => '', 'Null' => true), 367 367 'Treasury' => array('Type' => 'TFinanceTreasury', 'Caption' => 'Pokladna', 'Default' => '', 'Null' => true), 368 'Generate' => array('Type' => 'Boolean', 'Caption' => 'Generovat', 'Default' => ''), 368 369 ), 369 370 )); … … 380 381 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 381 382 'File' => array('Type' => 'TFile', 'Caption' => 'Doklad', 'Default' => '', 'Null' => true), 383 'Generate' => array('Type' => 'Boolean', 'Caption' => 'Generovat', 'Default' => ''), 382 384 'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''), 383 385 ), -
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 { -
trunk/admin/Updates.php
r548 r549 314 314 } 315 315 316 function UpdateTo535($Manager) 317 { 318 $Manager->Execute("ALTER TABLE `FinanceOperation` ADD `Generate` INT NOT NULL DEFAULT '0', 319 ADD INDEX ( `Generate` ) ;"); 320 $Manager->Execute("ALTER TABLE `FinanceInvoice` ADD `Generate` INT NOT NULL DEFAULT '0', 321 ADD INDEX ( `Generate` ) ;"); 322 } 323 316 324 $Updates = array( 317 325 491 => array('Revision' => 493, 'Function' => 'UpdateTo493'), … … 330 338 526 => array('Revision' => 527, 'Function' => 'UpdateTo527'), 331 339 527 => array('Revision' => 535, 'Function' => 'UpdateTo535'), 340 535 => array('Revision' => 549, 'Function' => 'UpdateTo549'), 332 341 );
Note:
See TracChangeset
for help on using the changeset viewer.