feat: refactor ComplexPosesService to remove unused defaultInsert method and improve findAll logic

fix: update PartnersService to use 'isNot' instead of 'not' for allocation checks

refactor: enhance BusinessActivityComplexesService to validate license activation before creating a complex

fix: adjust ComplexPosesService to ensure account allocation checks are accurate and handle errors properly

refactor: modify ConsumerMiddleware to set consumerData instead of partnerData for better clarity

feat: expand SaleInvoicesService to include additional fields in the invoice selection

chore: update business-activities module to include accounts-charge module for better organization

fix: ensure ComplexPosesService correctly handles account allocation during POS creation

feat: implement PartnerBusinessActivityAccountsCharge module with create functionality for account charges

refactor: streamline getPartnerBusinessActivityAllocationLimits utility for better clarity and functionality

chore: add migration script to update database schema with necessary constraints and foreign keys

feat: create DTO for accounts charge to validate incoming data
This commit is contained in:
2026-04-25 15:16:59 +03:30
parent 12506de863
commit b72e6c7194
36 changed files with 975 additions and 568 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { PartnerInfo } from '@/common/decorators/partnerInfo.decorator'
import type { IPartnerPayload } from '@/common/models/partnerPayload.model'
import { Controller, Get, Patch } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import { UpdatePartnerProfileDto } from './dto/partner.dto'
@@ -10,8 +11,8 @@ export class PartnerController {
constructor(private service: PartnerService) {}
@Get('')
async me(@PartnerInfo('id') partnerId: string) {
return this.service.me(partnerId)
async me(@PartnerInfo() { id, account_id }: IPartnerPayload) {
return this.service.me(id, account_id)
}
@Get('info')