@@ -82,6 +82,4 @@ |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $this->expectExceptionMessage('Le bouclement a déjà été fait au 2019-12-31 23:59:59'); |
| 85 | - $this->accounting->close($closingDate, $output); |
|
| 86 | - } |
|
| 87 | -} |
|
| 85 | + $this->accounting->close($closingDate, $output |
|
| 88 | 86 | \ No newline at end of file |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | ], |
| 28 | 28 | 'banking' => [ |
| 29 | 29 | 'iban' => 'CH2730000001200061375', // QR-IBAN without spaces (eg: CH7030123036078110002) |
| 30 | - 'paymentTo' => 'PostFinance AG, 3030 Bern', // Bank coordinate the payment will be made to, eg: 'Banque Alternative Suisse SA' |
|
| 30 | + 'paymentTo' => 'PostFinance AG, 3030 Bern', // Bank coordinate the payment will be made to, eg: 'Banque Alternative Suisse SA' |
|
| 31 | 31 | 'paymentFor' => 'Club nautique Ichtus' . PHP_EOL . '2072 St-Blaise', // Name and address of account holder, 2-3 lines separated by \n |
| 32 | 32 | ], |
| 33 | 33 | 'accounting' => [ |
@@ -304,9 +304,4 @@ |
||
| 304 | 304 | $user->getId(), |
| 305 | 305 | $user->getName(), |
| 306 | 306 | $user->getOwner()->getId(), |
| 307 | - $user->getOwner()->getName() |
|
| 308 | - ) |
|
| 309 | - ); |
|
| 310 | - } |
|
| 311 | - } |
|
| 312 | -} |
|
| 307 | + $user->getOwner |
|
| 313 | 308 | \ No newline at end of file |
@@ -49,8 +49,4 @@ |
||
| 49 | 49 | EXISTS ( |
| 50 | 50 | SELECT $bookingAlias.id FROM $bookingClass $bookingAlias |
| 51 | 51 | WHERE $bookingAlias.bookable = $alias.id AND $bookingAlias.endDate IS NULL |
| 52 | - HAVING COUNT($bookingAlias.id) $dqlOperator :$param |
|
| 53 | - ) |
|
| 54 | - STRING; |
|
| 55 | - } |
|
| 56 | -} |
|
| 52 | + HAVING COUNT($bookingAlias.id) $dqlOperator :$param |
|
| 57 | 53 | \ No newline at end of file |
@@ -19,4 +19,4 @@ |
||
| 19 | 19 | export const localConfig = $json; |
| 20 | 20 | STRING; |
| 21 | 21 | |
| 22 | -file_put_contents('client/app/shared/generated-config.ts', $code); |
|
| 22 | +file_put_contents('client/app/shared/generated-config.ts', $code |
|
| 23 | 23 | \ No newline at end of file |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | private function queueBalanceForEachUsers(array $users): int |
| 119 | 119 | { |
| 120 | 120 | foreach ($users as $user) { |
| 121 | - $bookables = $user->getRunningBookings()->map(fn (Booking $booking) => $booking->getBookable()); |
|
| 121 | + $bookables = $user->getRunningBookings()->map(fn(Booking $booking) => $booking->getBookable()); |
|
| 122 | 122 | |
| 123 | 123 | $this->queueBalance($user, $bookables); |
| 124 | 124 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | // Fallback to family owner if any |
| 155 | 155 | if (!$email && $user->getOwner()) { |
| 156 | - $email = $this->userRepository->getAclFilter()->runWithoutAcl(fn () => $user->getOwner()->getEmail()); |
|
| 156 | + $email = $this->userRepository->getAclFilter()->runWithoutAcl(fn() => $user->getOwner()->getEmail()); |
|
| 157 | 157 | |
| 158 | 158 | $this->toFamilyOwner = true; |
| 159 | 159 | } |
@@ -529,7 +529,7 @@ |
||
| 529 | 529 | */ |
| 530 | 530 | public function getRunningBookings(): Collection |
| 531 | 531 | { |
| 532 | - return $this->bookings->filter(fn (Booking $booking) => $booking->getStatus() === BookingStatusType::BOOKED && $booking->getEndDate() === null); |
|
| 532 | + return $this->bookings->filter(fn(Booking $booking) => $booking->getStatus() === BookingStatusType::BOOKED && $booking->getEndDate() === null); |
|
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | /** |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | // Only consider approved and unterminated bookings |
| 373 | - $bookings = $this->getBookings()->filter(fn (Booking $booking): bool => !$booking->getEndDate() && $booking->getStatus() !== BookingStatusType::APPLICATION)->toArray(); |
|
| 373 | + $bookings = $this->getBookings()->filter(fn(Booking $booking): bool => !$booking->getEndDate() && $booking->getStatus() !== BookingStatusType::APPLICATION)->toArray(); |
|
| 374 | 374 | |
| 375 | 375 | return $bookings; |
| 376 | 376 | } |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | return []; |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | - $bookings = $this->getBookings()->filter(fn (Booking $booking): bool => !$booking->getEndDate())->toArray(); |
|
| 405 | + $bookings = $this->getBookings()->filter(fn(Booking $booking): bool => !$booking->getEndDate())->toArray(); |
|
| 406 | 406 | |
| 407 | 407 | return $bookings; |
| 408 | 408 | } |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | throw new Exception('Missing config accounting/bankAccountCode'); |
| 170 | 170 | } |
| 171 | 171 | $bankAccountCode = $this->config['accounting']['bankAccountCode']; |
| 172 | - $bankAccount = $accountRepository->getAclFilter()->runWithoutAcl(fn () => $accountRepository->findOneByCode($bankAccountCode)); |
|
| 172 | + $bankAccount = $accountRepository->getAclFilter()->runWithoutAcl(fn() => $accountRepository->findOneByCode($bankAccountCode)); |
|
| 173 | 173 | |
| 174 | 174 | if (!array_key_exists('amount', $body)) { |
| 175 | 175 | // Do not support "registrations" |