diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 65c5da1..b432b2c 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -190,6 +190,7 @@ export class QuotationController extends Controller { @Query() payCondition?: PayCondition, @Query() status?: QuotationStatus, @Query() urgentFirst?: boolean, + @Query() includeRegisteredBranch?: boolean, @Query() code?: string, @Query() query = "", ) { @@ -223,6 +224,7 @@ export class QuotationController extends Controller { _count: { select: { worker: true }, }, + registeredBranch: includeRegisteredBranch, customerBranch: { include: { customer: {