feat: add rental_category/rate to Room, rental_type/tenant_id to Occupancy, tenant_id to Student

This commit is contained in:
2026-07-05 19:31:03 +08:00
parent 92e6ba0e34
commit 881e9c6175
8 changed files with 95 additions and 2 deletions

View File

@@ -17,6 +17,14 @@ export class CheckInDto {
@IsOptional()
@IsString()
notes?: string;
@IsOptional()
@IsString()
rentalType?: string;
@IsOptional()
@IsInt()
tenantId?: number;
}
export class CheckOutDto {

View File

@@ -65,6 +65,8 @@ export class OccupanciesService {
roomId: dto.roomId,
checkInDate: dto.checkInDate,
billingStartDate: dto.billingStartDate || dto.checkInDate,
rentalType: dto.rentalType,
tenantId: dto.tenantId,
notes: dto.notes,
});
const saved = await this.repo.save(occ);