Changeset 552
- Timestamp:
- Jul 7, 2013, 10:41:07 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Version.php
r551 r552 1 1 <?php 2 2 3 $Revision = 55 1; // Subversion revision3 $Revision = 552; // Subversion revision 4 4 $DatabaseRevision = 551; // SQL structure revision 5 5 $ReleaseTime = '2013-07-07'; -
trunk/Modules/File/File.php
r548 r552 83 83 function Show() 84 84 { 85 if(array_key_exists('id', $_GET)) $Id = $_GET['id']; 86 else if(array_key_exists('i', $_GET)) $Id = $_GET['i']; 87 else return($this->SystemMessage('Chyba', 'Nezadáno id dokladu')); 85 88 $this->ClearPage = true; 86 $Output = $this->System->Modules['File']->Download($ _GET['id']);89 $Output = $this->System->Modules['File']->Download($Id); 87 90 return($Output); 88 91 } -
trunk/Modules/Finance/Manage.php
r551 r552 99 99 $Output .= '<a href="?Operation=ProcessMonthlyPayment">Generovat faktury</a>'; 100 100 return($Output); 101 } 102 103 function InsertInvoice($Subject, $TimeCreation, $TimeDue, $Items, 104 $DocumentLine, $PeriodFrom, $PeriodTo) 105 { 106 global $LastInsertTime; 107 108 $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine); 109 $SumValue = 0; 110 foreach($Items as $Item) 111 $SumValue = $SumValue + $Item['Price']; 112 $this->Database->insert('FinanceInvoice', array( 113 'Subject' => $Subject, 'TimeCreation' => TimeToMysqlDateTime($TimeCreation), 114 'TimeDue' => TimeToMysqlDateTime($TimeDue), 'Value' => $SumValue, 'BillCode' => $BillCode, 115 'PeriodFrom' => TimeToMysqlDate($PeriodFrom), 'PeriodTo' => TimeToMysqlDate($PeriodTo), 116 'Generate' => 1)); 117 $InvoiceId = $this->Database->insert_id; 118 foreach($Items as $Item) 119 $this->Database->insert('FinanceInvoiceItem', array('FinanceInvoice' => $InvoiceId, 120 'Description' => $Item['Description'], 'Price' => $Item['Price'], 'Quantity' => $Item['Quantity'], 'VAT' => $Item['VAT'])); 121 //$LastInsertTime = $Time; 122 //$this->CheckAdvancesAndLiabilities($Subject); 123 return($InvoiceId); 101 124 } 102 125 -
trunk/Modules/Finance/UserState.php
r548 r552 34 34 $DbResult = $this->Database->query('SELECT Member.*, MemberPayment.MonthlyPlus AS MonthlyPlus '. 35 35 'FROM Member LEFT JOIN MemberPayment ON MemberPayment.Member=Member.Id WHERE Member.Subject='.$Subject['Id']); 36 if($DbResult->num_rows == 0) 37 { 38 return($this->SystemMessage('Položka nenalezena', 'Zákazník nenalezen')); 39 } 36 40 $Member = $DbResult->fetch_assoc(); 37 41 $Output = '<table width="100%" border="0" cellspacing="0" cellpadding="3"><tr><td valign="top">'; -
trunk/admin/Updates.php
r551 r552 339 339 $Manager->Execute('ALTER TABLE `FinanceInvoice` ADD FOREIGN KEY ( `DocumentLine` ) REFERENCES `DocumentLine` ( 340 340 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 341 $Manager->Execute('DROP TABLE `FinanceBillsItemsOld`'); 341 342 $Manager->Execute('DROP TABLE `FinanceBillsOld`'); 342 $Manager->Execute('DROP TABLE `FinanceBillsItemsOld`');343 343 } 344 344
Note:
See TracChangeset
for help on using the changeset viewer.