Changeset 916 for trunk/Modules/Finance/Manage.php
- Timestamp:
- Dec 7, 2021, 11:08:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r912 r916 49 49 50 50 /* Get first day and last day of given billing period. Periods are aligned with year start/end. */ 51 function GetBillingPeriod( $Period)51 function GetBillingPeriod(int $Period): array 52 52 { 53 53 $Time = time(); … … 73 73 } 74 74 75 function ShowMonthlyPayment() 75 function ShowMonthlyPayment(): string 76 76 { 77 77 if (!ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění'; … … 126 126 } 127 127 128 function InsertInvoice( $Subject, $TimeCreation, $TimeDue,$Items,129 $Group, $PeriodFrom, $PeriodTo)128 function InsertInvoice(string $Subject, string $TimeCreation, string $TimeDue, array $Items, 129 array $Group, float $PeriodFrom, float $PeriodTo): string 130 130 { 131 131 global $LastInsertTime; … … 156 156 } 157 157 158 function ProduceInvoices() 158 function ProduceInvoices(): string 159 159 { 160 160 $Output = ''; … … 224 224 } 225 225 226 function TableUpdateChanges( $Table)226 function TableUpdateChanges(string $Table): void 227 227 { 228 228 $Time = time(); … … 256 256 } 257 257 258 function ProcessTableUpdates() 258 function ProcessTableUpdates(): string 259 259 { 260 260 // Update customers … … 277 277 } 278 278 279 function ProcessMonthlyPayment() 279 function ProcessMonthlyPayment(): string 280 280 { 281 281 if (!ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění'; … … 344 344 } 345 345 346 function SendPaymentEmail( $MemberId, $FileId = '')346 function SendPaymentEmail(string $MemberId, string $FileId = ''): string 347 347 { 348 348 global $Config; … … 418 418 } 419 419 420 function GenerateInvoice( $Where)420 function GenerateInvoice(string $Where): string 421 421 { 422 422 $DirectoryId = ModuleFinance::Cast($this->System->GetModule('Finance'))->Finance->DirectoryId; … … 447 447 } 448 448 449 function GenerateOperation( $Where)449 function GenerateOperation(string $Where): string 450 450 { 451 451 $DirectoryId = ModuleFinance::Cast($this->System->GetModule('Finance'))->Finance->DirectoryId; … … 476 476 } 477 477 478 function GenerateBills() 478 function GenerateBills(): string 479 479 { 480 480 $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.