update models and create consumer domain accounts permissions

This commit is contained in:
2026-04-11 14:47:05 +03:30
parent 89726c8904
commit 9cef733370
87 changed files with 2967 additions and 3352 deletions
@@ -7,14 +7,14 @@ import { Injectable } from '@nestjs/common'
export class SalesInvoicesService {
constructor(private prisma: PrismaService) {}
async findAll(user_id: string, complex_id: string, pos_id: string) {
async findAll(consumer_id: string, complex_id: string, pos_id: string) {
const defaultWhere: SalesInvoiceWhereInput = {
pos_id,
pos: {
complex: {
id: complex_id,
business_activity: {
user_id,
consumer_id,
},
},
},