Changeset 887 for trunk/Modules/Finance/Bill.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Bill.php
r874 r887 3 3 class Bill extends Model 4 4 { 5 var $SpecificSymbol = 1; // počítačová sít6 var $Checked;5 public int $SpecificSymbol = 1; // computer network number 6 public bool $Checked = false; 7 7 8 8 function GenerateHTML() … … 11 11 } 12 12 13 function SaveToFile($FileName) 14 { 15 global $Database; 16 13 function SaveToFile(string $FileName) 14 { 17 15 $PdfData = $this->HtmlToPdf($this->GenerateHTML()); 18 16 file_put_contents($FileName, $PdfData); 19 17 } 20 18 21 function HtmlToPdf( $HtmlCode)19 function HtmlToPdf(string $HtmlCode): string 22 20 { 23 21 $Encoding = new Encoding(); … … 35 33 class BillInvoice extends Bill 36 34 { 37 var$InvoiceId;38 39 function ShowSubjectInfo( $Subject)35 public string $InvoiceId; 36 37 function ShowSubjectInfo(array $Subject): string 40 38 { 41 39 $BooleanText = array('Ne', 'Ano'); … … 50 48 } 51 49 52 function GenerateHTML() 53 { 54 $Finance = & $this->System->Modules['Finance'];50 function GenerateHTML(): string 51 { 52 $Finance = &ModuleFinance::Cast($this->System->GetModule('Finance'))->Finance; 55 53 $Finance->LoadMonthParameters(0); 56 54 … … 152 150 class BillOperation extends Bill 153 151 { 154 var$OperationId;155 156 function GenerateHTML() 152 public string $OperationId; 153 154 function GenerateHTML(): string 157 155 { 158 156 $DbResult = $this->Database->query('SELECT `FinanceOperation`.*, `FinanceOperationGroup`.`Direction`, `DocumentLineCode`.`Name` AS `BillName` FROM `FinanceOperation` '.
Note:
See TracChangeset
for help on using the changeset viewer.