Changeset 888 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Nov 24, 2020, 10:58:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.