feat: add stock keeping units management
- Created migration to drop `type` column from `stock_keeping_units` table. - Added `Guild` model to Prisma schema. - Implemented `BusinessActivitiesQueryService` for querying business activities. - Developed `GoodsSharedService` for handling goods creation and updates. - Introduced DTOs for creating and updating stock keeping units. - Created controller and service for managing stock keeping units. - Implemented response DTOs for stock keeping units service. - Established module for stock keeping units management.
This commit is contained in:
@@ -210,10 +210,14 @@ export class PartnerConsumersService {
|
||||
}
|
||||
|
||||
if (existingConsumer) {
|
||||
;`مشتری با نام ${existingConsumer.individual!.first_name} ${existingConsumer.individual!.last_name} یا این کد ملی، از قبل توسط شما ایجاد شده است.`
|
||||
consumerExistError = `مشتری با نام ${existingConsumer.individual!.first_name} ${existingConsumer.individual!.last_name} یا این کد ملی، از قبل توسط شما ایجاد شده است.`
|
||||
}
|
||||
}
|
||||
|
||||
if (consumerExistError) {
|
||||
throw new BadRequestException(consumerExistError)
|
||||
}
|
||||
|
||||
return await tx.consumer.create({
|
||||
data: createConsumerData,
|
||||
select: this.defaultSelect,
|
||||
|
||||
Reference in New Issue
Block a user