Changeset 789
- Timestamp:
- Jan 16, 2016, 4:58:06 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r788 r789 1 1 <?php 2 2 3 $Revision = 78 8; // Subversion revision3 $Revision = 789; // Subversion revision 4 4 $DatabaseRevision = 785; // SQL structure revision 5 5 $ReleaseTime = strtotime('2016-01-15'); -
trunk/Modules/Finance/Finance.php
r786 r789 540 540 'File' => array('Type' => 'TFile', 'Caption' => 'Soubor', 'Default' => '', 'Null' => true), 541 541 ), 542 'BeforeInsert' => array($this, 'BeforeInsert FinanceOperation'),542 'BeforeInsert' => array($this, 'BeforeInsertContract'), 543 543 )); 544 544 $this->System->FormManager->RegisterFormType('TContract', array( … … 668 668 return($Form->Values); 669 669 } 670 671 function BeforeInsertContract($Form) 672 { 673 if(array_key_exists('Time', $Form->Values)) $Year = date("Y", $Form->Values['Time']); 674 else $Year = date("Y", $Form->Values['ValidFrom']); 675 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Form->Values['DocumentLine'], $Year); 676 return($Form->Values); 677 } 670 678 }
Note:
See TracChangeset
for help on using the changeset viewer.