refactor(bookings): replace RFQ/quotation flow with submit, staff review, approval routing, and payment stubs

This commit is contained in:
marshal
2026-06-03 15:45:38 +03:00
parent f93a502247
commit 4ed0e22f55
16 changed files with 1448 additions and 367 deletions

View File

@@ -0,0 +1,10 @@
import { ConflictException } from '@nestjs/common';
import { Booking } from './entities/booking.entity';
export function assertBookingStatus(booking: Booking, allowed: string[]): void {
if (!allowed.includes(booking.status)) {
throw new ConflictException(
`Cannot perform this action on status "${booking.status}". Allowed: ${allowed.join(', ')}`,
);
}
}