feat(occupancies): inherit rentalType and tenantId on room transfer
This commit is contained in:
@@ -163,6 +163,8 @@ export class OccupanciesService {
|
||||
roomId: dto.newRoomId,
|
||||
checkInDate: dto.transferDate,
|
||||
billingStartDate: dto.newBillingStartDate || defaultBillingStart,
|
||||
rentalType: oldOcc.rentalType,
|
||||
tenantId: oldOcc.tenantId,
|
||||
notes: `从${oldOcc.roomId}号房换入`,
|
||||
});
|
||||
await runner.manager.save(newOcc);
|
||||
|
||||
Reference in New Issue
Block a user