Files
lmnp-organizer/frontend/src/app/components/rent-payment-validation-dialog/rent-payment-validation-dialog.html
T
nessar 9cfb55d79c feat: enhance lease and rent payment management
- Added methods in LeaseRepository to find leases by apartment ID and exclude a specific lease ID.
- Introduced a method in RentPaymentRepository to delete all payments by lease ID.
- Updated LeaseService to handle overlapping leases and generate rent payments upon lease creation.
- Implemented rent payment deletion in LeaseService when a lease is deleted.
- Enhanced RentPaymentService to generate rent payments with pro-rata calculations for partial months.
- Modified RentPaymentController to accept rent and charges when marking payments as paid.
- Created RentPaymentPaidRequest DTO for validating rent payment requests.
- Added a RentPaymentValidationDialog for confirming payment amounts before processing.
- Updated frontend components to support new rent payment features, including validation and date filtering for leases.
- Adjusted tests to cover new functionalities and ensure proper integration of rent payment management.
2026-08-17 14:18:15 +02:00

21 lines
952 B
HTML

<h2 mat-dialog-title>Valider le paiement</h2>
<form [formGroup]="form" (ngSubmit)="submit()">
<mat-dialog-content class="form-dialog-content">
<p>Vérifiez ou modifiez les montants payés avant de valider l'échéance.</p>
<div class="form-fields">
<mat-form-field appearance="outline">
<mat-label>Loyer principal (€)</mat-label>
<input matInput type="number" step="0.01" min="0" formControlName="rent" required />
</mat-form-field>
<mat-form-field appearance="outline">
<mat-label>Charges (€)</mat-label>
<input matInput type="number" step="0.01" min="0" formControlName="charges" required />
</mat-form-field>
</div>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button mat-dialog-close type="button">Annuler</button>
<button mat-flat-button type="submit" [disabled]="form.invalid">Valider le paiement</button>
</mat-dialog-actions>
</form>