Changeset 888 for trunk/Modules/Finance
- Timestamp:
- Nov 24, 2020, 10:58:56 AM (4 years ago)
- Location:
- trunk/Modules/Finance
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Bill.php
r887 r888 6 6 public bool $Checked = false; 7 7 8 function GenerateHTML() 8 function GenerateHTML(): string 9 9 { 10 10 return ''; 11 11 } 12 12 13 function SaveToFile(string $FileName) 13 function SaveToFile(string $FileName): void 14 14 { 15 15 $PdfData = $this->HtmlToPdf($this->GenerateHTML()); -
trunk/Modules/Finance/Finance.php
r887 r888 22 22 class Finance extends Model 23 23 { 24 var$kWh;25 var$Internet;26 var$Sprava;27 var$DatumOdecteni;28 var$InternetUsers;29 var$SpravaUsers;30 var$MaxSpeed;31 var$RealMaxSpeed;32 var$SpeedReserve;33 var$BaseSpeedElement;34 var$BaseTariffPrice;35 var$TopTariffPrice;36 var$TotalPaid;37 var$TotalInternetPaid;38 var$MainSubject;39 var$BillingPeriods;40 var$DirectoryId;41 var$Rounding;24 public string $kWh; 25 public string $Internet; 26 public string $Sprava; 27 public string $DatumOdecteni; 28 public string $InternetUsers; 29 public string $SpravaUsers; 30 public string $MaxSpeed; 31 public string $RealMaxSpeed; 32 public string $SpeedReserve; 33 public string $BaseSpeedElement; 34 public string $BaseTariffPrice; 35 public string $TopTariffPrice; 36 public string $TotalPaid; 37 public string $TotalInternetPaid; 38 public string $MainSubject; 39 public array $BillingPeriods; 40 public string $DirectoryId; 41 public string $Rounding; 42 42 43 43 function LoadMonthParameters(int $Period = 1) // 0 - now, 1 - next month … … 83 83 } 84 84 85 function CreateFinanceYear( $Year)85 function CreateFinanceYear(int $Year) 86 86 { 87 87 $StartTime = mktime(0, 0, 0, 1, 1, $Year); … … 100 100 } 101 101 102 function GetFinanceYear(int $Year) 102 function GetFinanceYear(int $Year): array 103 103 { 104 104 if ($Year == 0) … … 121 121 } 122 122 123 function GetNextDocumentLineNumber(string $Id, int $FinanceYear = 0) 123 function GetNextDocumentLineNumber(string $Id, int $FinanceYear = 0): string 124 124 { 125 125 $FinanceYear = $this->GetFinanceYear($FinanceYear); -
trunk/Modules/Finance/Import.php
r887 r888 128 128 } 129 129 130 function InsertMoney(string $Subject, string $Value, string $Cash, string $Taxable, string $Time, string $Text, array $Group) 130 function InsertMoney(string $Subject, string $Value, string $Cash, string $Taxable, string $Time, string $Text, array $Group): void 131 131 { 132 132 $Year = date('Y', $Time); -
trunk/Modules/Finance/Trade.php
r887 r888 3 3 class PageFinanceTaxFiling extends Page 4 4 { 5 var$StartEvidence = 0;5 public int $StartEvidence = 0; 6 6 7 7 function __construct(System $System) … … 13 13 } 14 14 15 function GetTimePeriodBalance( $StartTime, $EndTime)15 function GetTimePeriodBalance(int $StartTime, int $EndTime): array 16 16 { 17 17 $Balance = array(); … … 73 73 } 74 74 75 function ShowAnnualBalance() 75 function ShowAnnualBalance(): string 76 76 { 77 77 $Output = '<table style="font-size: smaller;" class="WideTable">'; … … 109 109 } 110 110 111 function ShowMonthlyBalance() 111 function ShowMonthlyBalance(): string 112 112 { 113 113 $Output = '<table class="WideTable" style="font-size: smaller;">'; … … 151 151 } 152 152 153 function ShowIncomes() 153 function ShowIncomes(): string 154 154 { 155 155 $Table = array('Ne', 'Ano'); … … 190 190 } 191 191 192 function ShowExpenses() 192 function ShowExpenses(): string 193 193 { 194 194 $Table = array('Ne', 'Ano'); … … 231 231 } 232 232 233 function ShowClaims() 233 function ShowClaims(): string 234 234 { 235 235 $Table = array('Ne', 'Ano'); … … 262 262 } 263 263 264 function ShowLiabilities() 264 function ShowLiabilities(): string 265 265 { 266 266 $Table = array('Ne', 'Ano'); … … 294 294 } 295 295 296 function ShowSubjectList() 296 function ShowSubjectList(): string 297 297 { 298 298 $Output = '<strong>Seznam subjektů</strong>'; … … 327 327 } 328 328 329 function ShowSmallAssets() 329 function ShowSmallAssets(): string 330 330 { 331 331 $Output = '<strong>Drobný majetek</strong>'; … … 343 343 } 344 344 345 function ShowSubjectAccount() 345 function ShowSubjectAccount(): string 346 346 { 347 347 $Finance = &ModuleFinance::Cast($this->System->GetModule('Finance'))->Finance; … … 408 408 } 409 409 410 function ShowDefault() 410 function ShowDefault(): string 411 411 { 412 412 $Output = '<strong>Celkové přehledy</strong><br/>'; … … 486 486 } 487 487 488 function ShowFinanceYears() 488 function ShowFinanceYears(): string 489 489 { 490 490 $Output = 'Roky: '; … … 499 499 { 500 500 $TimeDue = $Time + 15 * 24 * 3600; // 15 dnů 501 502 501 } 503 502 -
trunk/Modules/Finance/UserState.php
r887 r888 11 11 } 12 12 13 function ShowFinanceOperation( $Subject)13 function ShowFinanceOperation(int $Subject): string 14 14 { 15 15 $UserOperationTableQuery = '((SELECT `Text`, `Time`, `Value`, `File`, `BillCode`, NULL AS `PeriodFrom`, NULL AS `PeriodTo`, `DocumentLineCode`.`Name` AS `BillName` '.
Note:
See TracChangeset
for help on using the changeset viewer.