feat(customers): add DTOs for individual and legal customer creation
- Created CreateCustomerIndividualDto for individual customer data with fields: first_name, last_name, national_code, postal_code, is_favorite, and economic_code. - Created CreateCustomerLegalDto for legal customer data with fields: company_name, economic_code, registration_number, and postal_code.
This commit is contained in:
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `account_id` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `address` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `email` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `first_name` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `is_active` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `last_name` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `mobile_number` on the `customers` table. All the data in the column will be lost.
|
||||||
|
- Added the required column `type` to the `customers` table without a default value. This is not possible if the table is not empty.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `customers_mobile_number_key` ON `customers`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `customers` DROP COLUMN `account_id`,
|
||||||
|
DROP COLUMN `address`,
|
||||||
|
DROP COLUMN `email`,
|
||||||
|
DROP COLUMN `first_name`,
|
||||||
|
DROP COLUMN `is_active`,
|
||||||
|
DROP COLUMN `last_name`,
|
||||||
|
DROP COLUMN `mobile_number`,
|
||||||
|
ADD COLUMN `is_favorite` BOOLEAN NULL DEFAULT false,
|
||||||
|
ADD COLUMN `type` ENUM('INDIVIDUAL', 'LEGAL') NOT NULL;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `customer_individuals` (
|
||||||
|
`customer_id` VARCHAR(191) NOT NULL,
|
||||||
|
`first_name` VARCHAR(255) NOT NULL,
|
||||||
|
`last_name` VARCHAR(255) NOT NULL,
|
||||||
|
`national_id` CHAR(10) NOT NULL,
|
||||||
|
`postal_code` CHAR(10) NOT NULL,
|
||||||
|
`economic_code` CHAR(10) NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`customer_id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `customer_legal` (
|
||||||
|
`customer_id` VARCHAR(191) NOT NULL,
|
||||||
|
`company_name` VARCHAR(255) NOT NULL,
|
||||||
|
`economic_code` CHAR(10) NOT NULL,
|
||||||
|
`registration_number` CHAR(20) NOT NULL,
|
||||||
|
`postal_code` CHAR(10) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`customer_id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `customer_individuals` ADD CONSTRAINT `customer_individuals_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `customer_legal` ADD CONSTRAINT `customer_legal_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoice_items` ADD COLUMN `discount` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
||||||
|
ADD COLUMN `pricingModel` ENUM('STANDARD', 'GOLD') NOT NULL DEFAULT 'STANDARD';
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `description` on the `sales_invoices` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `customers` MODIFY `type` ENUM('INDIVIDUAL', 'LEGAL', 'UNKNOWN') NOT NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoice_items` ADD COLUMN `notes` TEXT NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoice_payments` MODIFY `payment_method` ENUM('TERMINAL', 'CASH', 'SET_OFF', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `sales_invoices` DROP COLUMN `description`,
|
||||||
|
ADD COLUMN `invoice_date` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
ADD COLUMN `notes` TEXT NULL,
|
||||||
|
ADD COLUMN `unknown_customer` JSON NULL;
|
||||||
@@ -1,19 +1,44 @@
|
|||||||
model Customer {
|
model Customer {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
first_name String @db.VarChar(255)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
last_name String @db.VarChar(255)
|
updated_at DateTime @updatedAt @db.Timestamp(0)
|
||||||
email String? @db.VarChar(255)
|
deleted_at DateTime? @db.Timestamp(0)
|
||||||
mobile_number String @unique @db.Char(11)
|
type CustomerType
|
||||||
address String? @db.Text
|
complex_id String
|
||||||
is_active Boolean @default(true)
|
is_favorite Boolean? @default(false)
|
||||||
account_id String
|
|
||||||
complex_id String
|
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
sales_invoices SalesInvoice[]
|
||||||
updated_at DateTime @updatedAt @db.Timestamp(0)
|
customerIndividuals CustomerIndividual?
|
||||||
deleted_at DateTime? @db.Timestamp(0)
|
customerLegals CustomerLegal?
|
||||||
|
|
||||||
sales_invoices SalesInvoice[]
|
|
||||||
|
|
||||||
@@map("customers")
|
@@map("customers")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model CustomerIndividual {
|
||||||
|
customer_id String @id
|
||||||
|
first_name String @db.VarChar(255)
|
||||||
|
last_name String @db.VarChar(255)
|
||||||
|
national_id String @db.Char(10)
|
||||||
|
postal_code String @db.Char(10)
|
||||||
|
economic_code String? @db.Char(10)
|
||||||
|
complex_id String
|
||||||
|
|
||||||
|
customer Customer @relation(fields: [customer_id], references: [id])
|
||||||
|
|
||||||
|
@@unique([complex_id, national_id])
|
||||||
|
@@map("customer_individuals")
|
||||||
|
}
|
||||||
|
|
||||||
|
model CustomerLegal {
|
||||||
|
customer_id String @id
|
||||||
|
company_name String @db.VarChar(255)
|
||||||
|
economic_code String @db.Char(10)
|
||||||
|
registration_number String @db.Char(20)
|
||||||
|
postal_code String @db.Char(10)
|
||||||
|
complex_id String
|
||||||
|
|
||||||
|
customer Customer @relation(fields: [customer_id], references: [id])
|
||||||
|
|
||||||
|
@@unique([complex_id, registration_number])
|
||||||
|
@@map("customer_legal")
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
enum PaymentMethodType {
|
enum PaymentMethodType {
|
||||||
|
TERMINAL
|
||||||
CASH
|
CASH
|
||||||
|
SET_OFF
|
||||||
CARD
|
CARD
|
||||||
BANK
|
BANK
|
||||||
CHECK
|
CHECK
|
||||||
@@ -25,3 +27,14 @@ enum UnitType {
|
|||||||
METER
|
METER
|
||||||
HOUR
|
HOUR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum CustomerType {
|
||||||
|
INDIVIDUAL
|
||||||
|
LEGAL
|
||||||
|
UNKNOWN
|
||||||
|
}
|
||||||
|
|
||||||
|
enum SalesInvoiceItemPricingModel {
|
||||||
|
STANDARD
|
||||||
|
GOLD
|
||||||
|
}
|
||||||
|
|||||||
+27
-20
@@ -1,31 +1,38 @@
|
|||||||
model SalesInvoice {
|
model SalesInvoice {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
code String @unique @db.VarChar(100)
|
code String @unique @db.VarChar(100)
|
||||||
total_amount Decimal @db.Decimal(15, 2)
|
total_amount Decimal @db.Decimal(15, 2)
|
||||||
description String? @db.Text
|
notes String? @db.Text
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
unknown_customer Json? @db.Json
|
||||||
updated_at DateTime @updatedAt @db.Timestamp(0)
|
invoice_date DateTime? @default(now()) @db.Timestamp(0)
|
||||||
customer_id String?
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
account_id String
|
updated_at DateTime @updatedAt @db.Timestamp(0)
|
||||||
complex_id String
|
|
||||||
|
|
||||||
customer Customer? @relation(fields: [customer_id], references: [id])
|
customer_id String?
|
||||||
items SalesInvoiceItem[]
|
account_id String
|
||||||
sales_invoice_payments SalesInvoicePayment[]
|
complex_id String
|
||||||
|
|
||||||
|
customer Customer? @relation(fields: [customer_id], references: [id])
|
||||||
|
items SalesInvoiceItem[]
|
||||||
|
payments SalesInvoicePayment[]
|
||||||
|
|
||||||
@@map("sales_invoices")
|
@@map("sales_invoices")
|
||||||
}
|
}
|
||||||
|
|
||||||
model SalesInvoiceItem {
|
model SalesInvoiceItem {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
quantity Decimal @db.Decimal(10, 0)
|
quantity Decimal @db.Decimal(10, 0)
|
||||||
unit_type UnitType
|
unit_type UnitType
|
||||||
unit_price Decimal @default(0.00) @db.Decimal(15, 2)
|
unit_price Decimal @default(0.00) @db.Decimal(15, 2)
|
||||||
total_amount Decimal @default(0.00) @db.Decimal(15, 2)
|
total_amount Decimal @default(0.00) @db.Decimal(15, 2)
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
invoice_id String
|
discount Decimal @default(0.00) @db.Decimal(15, 2)
|
||||||
good_id String?
|
notes String? @db.Text
|
||||||
service_id String?
|
pricingModel SalesInvoiceItemPricingModel @default(STANDARD)
|
||||||
|
|
||||||
|
invoice_id String
|
||||||
|
good_id String?
|
||||||
|
service_id String?
|
||||||
|
|
||||||
payload Json?
|
payload Json?
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { GoldKarat } from '../enums/enums'
|
import { GoldKarat } from '../enums/enums'
|
||||||
|
|
||||||
export interface SaleInvoicePayload {
|
export interface SaleInvoiceGoldTypePayload {
|
||||||
karat?: keyof typeof GoldKarat
|
karat: keyof typeof GoldKarat
|
||||||
wages?: number
|
wages: number
|
||||||
profit?: number
|
profit: number
|
||||||
}
|
}
|
||||||
|
export interface SaleInvoiceStandardPayload {}
|
||||||
|
|||||||
@@ -22,6 +22,16 @@ export * from './enums.js';
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Customer = Prisma.CustomerModel
|
export type Customer = Prisma.CustomerModel
|
||||||
|
/**
|
||||||
|
* Model CustomerIndividual
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CustomerIndividual = Prisma.CustomerIndividualModel
|
||||||
|
/**
|
||||||
|
* Model CustomerLegal
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CustomerLegal = Prisma.CustomerLegalModel
|
||||||
/**
|
/**
|
||||||
* Model Device
|
* Model Device
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -42,6 +42,16 @@ export { Prisma }
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Customer = Prisma.CustomerModel
|
export type Customer = Prisma.CustomerModel
|
||||||
|
/**
|
||||||
|
* Model CustomerIndividual
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CustomerIndividual = Prisma.CustomerIndividualModel
|
||||||
|
/**
|
||||||
|
* Model CustomerLegal
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CustomerLegal = Prisma.CustomerLegalModel
|
||||||
/**
|
/**
|
||||||
* Model Device
|
* Model Device
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -29,26 +29,6 @@ export type StringFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | null
|
|
||||||
notIn?: string[] | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DateTimeFilter<$PrismaModel = never> = {
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[]
|
||||||
@@ -71,6 +51,18 @@ export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumCustomerTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.CustomerType | Prisma.EnumCustomerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.CustomerType[]
|
||||||
|
notIn?: $Enums.CustomerType[]
|
||||||
|
not?: Prisma.NestedEnumCustomerTypeFilter<$PrismaModel> | $Enums.CustomerType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BoolNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||||
|
}
|
||||||
|
|
||||||
export type SortOrderInput = {
|
export type SortOrderInput = {
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
nulls?: Prisma.NullsOrder
|
nulls?: Prisma.NullsOrder
|
||||||
@@ -94,32 +86,6 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | null
|
|
||||||
notIn?: string[] | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[]
|
||||||
@@ -148,6 +114,57 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumCustomerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.CustomerType | Prisma.EnumCustomerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.CustomerType[]
|
||||||
|
notIn?: $Enums.CustomerType[]
|
||||||
|
not?: Prisma.NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel> | $Enums.CustomerType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumCustomerTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumCustomerTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: string[] | null
|
||||||
|
notIn?: string[] | null
|
||||||
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
search?: string
|
||||||
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: string[] | null
|
||||||
|
notIn?: string[] | null
|
||||||
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
search?: string
|
||||||
|
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type DecimalFilter<$PrismaModel = never> = {
|
export type DecimalFilter<$PrismaModel = never> = {
|
||||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||||
@@ -202,13 +219,6 @@ export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumUnitTypeFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.UnitType[]
|
|
||||||
notIn?: $Enums.UnitType[]
|
|
||||||
not?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel> | $Enums.UnitType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type JsonNullableFilter<$PrismaModel = never> =
|
export type JsonNullableFilter<$PrismaModel = never> =
|
||||||
| Prisma.PatchUndefined<
|
| Prisma.PatchUndefined<
|
||||||
Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
||||||
@@ -233,16 +243,6 @@ export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.UnitType[]
|
|
||||||
notIn?: $Enums.UnitType[]
|
|
||||||
not?: Prisma.NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel> | $Enums.UnitType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
|
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
|
||||||
| Prisma.PatchUndefined<
|
| Prisma.PatchUndefined<
|
||||||
Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
||||||
@@ -270,6 +270,40 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumUnitTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.UnitType[]
|
||||||
|
notIn?: $Enums.UnitType[]
|
||||||
|
not?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel> | $Enums.UnitType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumSalesInvoiceItemPricingModelFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.SalesInvoiceItemPricingModel | Prisma.EnumSalesInvoiceItemPricingModelFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
notIn?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
not?: Prisma.NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel> | $Enums.SalesInvoiceItemPricingModel
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.UnitType[]
|
||||||
|
notIn?: $Enums.UnitType[]
|
||||||
|
not?: Prisma.NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel> | $Enums.UnitType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumSalesInvoiceItemPricingModelWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.SalesInvoiceItemPricingModel | Prisma.EnumSalesInvoiceItemPricingModelFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
notIn?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
not?: Prisma.NestedEnumSalesInvoiceItemPricingModelWithAggregatesFilter<$PrismaModel> | $Enums.SalesInvoiceItemPricingModel
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumPaymentMethodTypeFilter<$PrismaModel = never> = {
|
export type EnumPaymentMethodTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.PaymentMethodType[]
|
in?: $Enums.PaymentMethodType[]
|
||||||
@@ -302,26 +336,6 @@ export type NestedStringFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | null
|
|
||||||
notIn?: string[] | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[]
|
||||||
@@ -344,6 +358,18 @@ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedEnumCustomerTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.CustomerType | Prisma.EnumCustomerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.CustomerType[]
|
||||||
|
notIn?: $Enums.CustomerType[]
|
||||||
|
not?: Prisma.NestedEnumCustomerTypeFilter<$PrismaModel> | $Enums.CustomerType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[]
|
in?: string[]
|
||||||
@@ -373,43 +399,6 @@ export type NestedIntFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | null
|
|
||||||
notIn?: string[] | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: number[] | null
|
|
||||||
notIn?: number[] | null
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[]
|
||||||
@@ -438,6 +427,68 @@ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: number[] | null
|
||||||
|
notIn?: number[] | null
|
||||||
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.CustomerType | Prisma.EnumCustomerTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.CustomerType[]
|
||||||
|
notIn?: $Enums.CustomerType[]
|
||||||
|
not?: Prisma.NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel> | $Enums.CustomerType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumCustomerTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumCustomerTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: string[] | null
|
||||||
|
notIn?: string[] | null
|
||||||
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
search?: string
|
||||||
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: string[] | null
|
||||||
|
notIn?: string[] | null
|
||||||
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
search?: string
|
||||||
|
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedDecimalFilter<$PrismaModel = never> = {
|
export type NestedDecimalFilter<$PrismaModel = never> = {
|
||||||
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
|
||||||
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
|
||||||
@@ -492,23 +543,6 @@ export type NestedFloatFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumUnitTypeFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.UnitType[]
|
|
||||||
notIn?: $Enums.UnitType[]
|
|
||||||
not?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel> | $Enums.UnitType
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.UnitType[]
|
|
||||||
notIn?: $Enums.UnitType[]
|
|
||||||
not?: Prisma.NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel> | $Enums.UnitType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedJsonNullableFilter<$PrismaModel = never> =
|
export type NestedJsonNullableFilter<$PrismaModel = never> =
|
||||||
| Prisma.PatchUndefined<
|
| Prisma.PatchUndefined<
|
||||||
Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
||||||
@@ -533,6 +567,40 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedEnumUnitTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.UnitType[]
|
||||||
|
notIn?: $Enums.UnitType[]
|
||||||
|
not?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel> | $Enums.UnitType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.SalesInvoiceItemPricingModel | Prisma.EnumSalesInvoiceItemPricingModelFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
notIn?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
not?: Prisma.NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel> | $Enums.SalesInvoiceItemPricingModel
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.UnitType[]
|
||||||
|
notIn?: $Enums.UnitType[]
|
||||||
|
not?: Prisma.NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel> | $Enums.UnitType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumUnitTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumSalesInvoiceItemPricingModelWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.SalesInvoiceItemPricingModel | Prisma.EnumSalesInvoiceItemPricingModelFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
notIn?: $Enums.SalesInvoiceItemPricingModel[]
|
||||||
|
not?: Prisma.NestedEnumSalesInvoiceItemPricingModelWithAggregatesFilter<$PrismaModel> | $Enums.SalesInvoiceItemPricingModel
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumSalesInvoiceItemPricingModelFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedEnumPaymentMethodTypeFilter<$PrismaModel = never> = {
|
export type NestedEnumPaymentMethodTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.PaymentMethodType[]
|
in?: $Enums.PaymentMethodType[]
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export const PaymentMethodType = {
|
export const PaymentMethodType = {
|
||||||
|
TERMINAL: 'TERMINAL',
|
||||||
CASH: 'CASH',
|
CASH: 'CASH',
|
||||||
|
SET_OFF: 'SET_OFF',
|
||||||
CARD: 'CARD',
|
CARD: 'CARD',
|
||||||
BANK: 'BANK',
|
BANK: 'BANK',
|
||||||
CHECK: 'CHECK',
|
CHECK: 'CHECK',
|
||||||
@@ -47,3 +49,20 @@ export const UnitType = {
|
|||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type UnitType = (typeof UnitType)[keyof typeof UnitType]
|
export type UnitType = (typeof UnitType)[keyof typeof UnitType]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerType = {
|
||||||
|
INDIVIDUAL: 'INDIVIDUAL',
|
||||||
|
LEGAL: 'LEGAL',
|
||||||
|
UNKNOWN: 'UNKNOWN'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType]
|
||||||
|
|
||||||
|
|
||||||
|
export const SalesInvoiceItemPricingModel = {
|
||||||
|
STANDARD: 'STANDARD',
|
||||||
|
GOLD: 'GOLD'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SalesInvoiceItemPricingModel = (typeof SalesInvoiceItemPricingModel)[keyof typeof SalesInvoiceItemPricingModel]
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -385,6 +385,8 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
|
|||||||
|
|
||||||
export const ModelName = {
|
export const ModelName = {
|
||||||
Customer: 'Customer',
|
Customer: 'Customer',
|
||||||
|
CustomerIndividual: 'CustomerIndividual',
|
||||||
|
CustomerLegal: 'CustomerLegal',
|
||||||
Device: 'Device',
|
Device: 'Device',
|
||||||
Good: 'Good',
|
Good: 'Good',
|
||||||
GoodCategory: 'GoodCategory',
|
GoodCategory: 'GoodCategory',
|
||||||
@@ -409,7 +411,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|||||||
omit: GlobalOmitOptions
|
omit: GlobalOmitOptions
|
||||||
}
|
}
|
||||||
meta: {
|
meta: {
|
||||||
modelProps: "customer" | "device" | "good" | "goodCategory" | "triggerLog" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
|
modelProps: "customer" | "customerIndividual" | "customerLegal" | "device" | "good" | "goodCategory" | "triggerLog" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
|
||||||
txIsolationLevel: TransactionIsolationLevel
|
txIsolationLevel: TransactionIsolationLevel
|
||||||
}
|
}
|
||||||
model: {
|
model: {
|
||||||
@@ -479,6 +481,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
CustomerIndividual: {
|
||||||
|
payload: Prisma.$CustomerIndividualPayload<ExtArgs>
|
||||||
|
fields: Prisma.CustomerIndividualFieldRefs
|
||||||
|
operations: {
|
||||||
|
findUnique: {
|
||||||
|
args: Prisma.CustomerIndividualFindUniqueArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload> | null
|
||||||
|
}
|
||||||
|
findUniqueOrThrow: {
|
||||||
|
args: Prisma.CustomerIndividualFindUniqueOrThrowArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>
|
||||||
|
}
|
||||||
|
findFirst: {
|
||||||
|
args: Prisma.CustomerIndividualFindFirstArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload> | null
|
||||||
|
}
|
||||||
|
findFirstOrThrow: {
|
||||||
|
args: Prisma.CustomerIndividualFindFirstOrThrowArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>
|
||||||
|
}
|
||||||
|
findMany: {
|
||||||
|
args: Prisma.CustomerIndividualFindManyArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>[]
|
||||||
|
}
|
||||||
|
create: {
|
||||||
|
args: Prisma.CustomerIndividualCreateArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>
|
||||||
|
}
|
||||||
|
createMany: {
|
||||||
|
args: Prisma.CustomerIndividualCreateManyArgs<ExtArgs>
|
||||||
|
result: BatchPayload
|
||||||
|
}
|
||||||
|
delete: {
|
||||||
|
args: Prisma.CustomerIndividualDeleteArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>
|
||||||
|
}
|
||||||
|
update: {
|
||||||
|
args: Prisma.CustomerIndividualUpdateArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>
|
||||||
|
}
|
||||||
|
deleteMany: {
|
||||||
|
args: Prisma.CustomerIndividualDeleteManyArgs<ExtArgs>
|
||||||
|
result: BatchPayload
|
||||||
|
}
|
||||||
|
updateMany: {
|
||||||
|
args: Prisma.CustomerIndividualUpdateManyArgs<ExtArgs>
|
||||||
|
result: BatchPayload
|
||||||
|
}
|
||||||
|
upsert: {
|
||||||
|
args: Prisma.CustomerIndividualUpsertArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerIndividualPayload>
|
||||||
|
}
|
||||||
|
aggregate: {
|
||||||
|
args: Prisma.CustomerIndividualAggregateArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.Optional<Prisma.AggregateCustomerIndividual>
|
||||||
|
}
|
||||||
|
groupBy: {
|
||||||
|
args: Prisma.CustomerIndividualGroupByArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.Optional<Prisma.CustomerIndividualGroupByOutputType>[]
|
||||||
|
}
|
||||||
|
count: {
|
||||||
|
args: Prisma.CustomerIndividualCountArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.Optional<Prisma.CustomerIndividualCountAggregateOutputType> | number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CustomerLegal: {
|
||||||
|
payload: Prisma.$CustomerLegalPayload<ExtArgs>
|
||||||
|
fields: Prisma.CustomerLegalFieldRefs
|
||||||
|
operations: {
|
||||||
|
findUnique: {
|
||||||
|
args: Prisma.CustomerLegalFindUniqueArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload> | null
|
||||||
|
}
|
||||||
|
findUniqueOrThrow: {
|
||||||
|
args: Prisma.CustomerLegalFindUniqueOrThrowArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>
|
||||||
|
}
|
||||||
|
findFirst: {
|
||||||
|
args: Prisma.CustomerLegalFindFirstArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload> | null
|
||||||
|
}
|
||||||
|
findFirstOrThrow: {
|
||||||
|
args: Prisma.CustomerLegalFindFirstOrThrowArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>
|
||||||
|
}
|
||||||
|
findMany: {
|
||||||
|
args: Prisma.CustomerLegalFindManyArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>[]
|
||||||
|
}
|
||||||
|
create: {
|
||||||
|
args: Prisma.CustomerLegalCreateArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>
|
||||||
|
}
|
||||||
|
createMany: {
|
||||||
|
args: Prisma.CustomerLegalCreateManyArgs<ExtArgs>
|
||||||
|
result: BatchPayload
|
||||||
|
}
|
||||||
|
delete: {
|
||||||
|
args: Prisma.CustomerLegalDeleteArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>
|
||||||
|
}
|
||||||
|
update: {
|
||||||
|
args: Prisma.CustomerLegalUpdateArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>
|
||||||
|
}
|
||||||
|
deleteMany: {
|
||||||
|
args: Prisma.CustomerLegalDeleteManyArgs<ExtArgs>
|
||||||
|
result: BatchPayload
|
||||||
|
}
|
||||||
|
updateMany: {
|
||||||
|
args: Prisma.CustomerLegalUpdateManyArgs<ExtArgs>
|
||||||
|
result: BatchPayload
|
||||||
|
}
|
||||||
|
upsert: {
|
||||||
|
args: Prisma.CustomerLegalUpsertArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerLegalPayload>
|
||||||
|
}
|
||||||
|
aggregate: {
|
||||||
|
args: Prisma.CustomerLegalAggregateArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.Optional<Prisma.AggregateCustomerLegal>
|
||||||
|
}
|
||||||
|
groupBy: {
|
||||||
|
args: Prisma.CustomerLegalGroupByArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.Optional<Prisma.CustomerLegalGroupByOutputType>[]
|
||||||
|
}
|
||||||
|
count: {
|
||||||
|
args: Prisma.CustomerLegalCountArgs<ExtArgs>
|
||||||
|
result: runtime.Types.Utils.Optional<Prisma.CustomerLegalCountAggregateOutputType> | number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Device: {
|
Device: {
|
||||||
payload: Prisma.$DevicePayload<ExtArgs>
|
payload: Prisma.$DevicePayload<ExtArgs>
|
||||||
fields: Prisma.DeviceFieldRefs
|
fields: Prisma.DeviceFieldRefs
|
||||||
@@ -1114,22 +1248,42 @@ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof
|
|||||||
|
|
||||||
export const CustomerScalarFieldEnum = {
|
export const CustomerScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name',
|
|
||||||
email: 'email',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
address: 'address',
|
|
||||||
is_active: 'is_active',
|
|
||||||
account_id: 'account_id',
|
|
||||||
complex_id: 'complex_id',
|
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
deleted_at: 'deleted_at'
|
deleted_at: 'deleted_at',
|
||||||
|
type: 'type',
|
||||||
|
complex_id: 'complex_id',
|
||||||
|
is_favorite: 'is_favorite'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerIndividualScalarFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
national_id: 'national_id',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerIndividualScalarFieldEnum = (typeof CustomerIndividualScalarFieldEnum)[keyof typeof CustomerIndividualScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerLegalScalarFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
company_name: 'company_name',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
registration_number: 'registration_number',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerLegalScalarFieldEnum = (typeof CustomerLegalScalarFieldEnum)[keyof typeof CustomerLegalScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const DeviceScalarFieldEnum = {
|
export const DeviceScalarFieldEnum = {
|
||||||
account_id: 'account_id',
|
account_id: 'account_id',
|
||||||
app_version: 'app_version',
|
app_version: 'app_version',
|
||||||
@@ -1197,7 +1351,9 @@ export const SalesInvoiceScalarFieldEnum = {
|
|||||||
id: 'id',
|
id: 'id',
|
||||||
code: 'code',
|
code: 'code',
|
||||||
total_amount: 'total_amount',
|
total_amount: 'total_amount',
|
||||||
description: 'description',
|
notes: 'notes',
|
||||||
|
unknown_customer: 'unknown_customer',
|
||||||
|
invoice_date: 'invoice_date',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
customer_id: 'customer_id',
|
customer_id: 'customer_id',
|
||||||
@@ -1215,6 +1371,9 @@ export const SalesInvoiceItemScalarFieldEnum = {
|
|||||||
unit_price: 'unit_price',
|
unit_price: 'unit_price',
|
||||||
total_amount: 'total_amount',
|
total_amount: 'total_amount',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
|
discount: 'discount',
|
||||||
|
notes: 'notes',
|
||||||
|
pricingModel: 'pricingModel',
|
||||||
invoice_id: 'invoice_id',
|
invoice_id: 'invoice_id',
|
||||||
good_id: 'good_id',
|
good_id: 'good_id',
|
||||||
service_id: 'service_id',
|
service_id: 'service_id',
|
||||||
@@ -1296,18 +1455,37 @@ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|||||||
|
|
||||||
export const CustomerOrderByRelevanceFieldEnum = {
|
export const CustomerOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name',
|
|
||||||
email: 'email',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
address: 'address',
|
|
||||||
account_id: 'account_id',
|
|
||||||
complex_id: 'complex_id'
|
complex_id: 'complex_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerIndividualOrderByRelevanceFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
national_id: 'national_id',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerIndividualOrderByRelevanceFieldEnum = (typeof CustomerIndividualOrderByRelevanceFieldEnum)[keyof typeof CustomerIndividualOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerLegalOrderByRelevanceFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
company_name: 'company_name',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
registration_number: 'registration_number',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerLegalOrderByRelevanceFieldEnum = (typeof CustomerLegalOrderByRelevanceFieldEnum)[keyof typeof CustomerLegalOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const DeviceOrderByRelevanceFieldEnum = {
|
export const DeviceOrderByRelevanceFieldEnum = {
|
||||||
account_id: 'account_id',
|
account_id: 'account_id',
|
||||||
app_version: 'app_version',
|
app_version: 'app_version',
|
||||||
@@ -1362,18 +1540,6 @@ export const TriggerLogOrderByRelevanceFieldEnum = {
|
|||||||
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
code: 'code',
|
|
||||||
description: 'description',
|
|
||||||
customer_id: 'customer_id',
|
|
||||||
account_id: 'account_id',
|
|
||||||
complex_id: 'complex_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const JsonNullValueFilter = {
|
export const JsonNullValueFilter = {
|
||||||
DbNull: DbNull,
|
DbNull: DbNull,
|
||||||
JsonNull: JsonNull,
|
JsonNull: JsonNull,
|
||||||
@@ -1391,8 +1557,21 @@ export const QueryMode = {
|
|||||||
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
||||||
|
|
||||||
|
|
||||||
|
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
code: 'code',
|
||||||
|
notes: 'notes',
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
account_id: 'account_id',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
|
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
notes: 'notes',
|
||||||
invoice_id: 'invoice_id',
|
invoice_id: 'invoice_id',
|
||||||
good_id: 'good_id',
|
good_id: 'good_id',
|
||||||
service_id: 'service_id'
|
service_id: 'service_id'
|
||||||
@@ -1450,16 +1629,23 @@ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'Boolean'
|
* Reference to a field of type 'DateTime'
|
||||||
*/
|
*/
|
||||||
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'DateTime'
|
* Reference to a field of type 'CustomerType'
|
||||||
*/
|
*/
|
||||||
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
export type EnumCustomerTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CustomerType'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reference to a field of type 'Boolean'
|
||||||
|
*/
|
||||||
|
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1477,13 +1663,6 @@ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'In
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reference to a field of type 'UnitType'
|
|
||||||
*/
|
|
||||||
export type EnumUnitTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UnitType'>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'Json'
|
* Reference to a field of type 'Json'
|
||||||
*/
|
*/
|
||||||
@@ -1498,6 +1677,20 @@ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$Prisma
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reference to a field of type 'UnitType'
|
||||||
|
*/
|
||||||
|
export type EnumUnitTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UnitType'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reference to a field of type 'SalesInvoiceItemPricingModel'
|
||||||
|
*/
|
||||||
|
export type EnumSalesInvoiceItemPricingModelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SalesInvoiceItemPricingModel'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'PaymentMethodType'
|
* Reference to a field of type 'PaymentMethodType'
|
||||||
*/
|
*/
|
||||||
@@ -1607,6 +1800,8 @@ export type PrismaClientOptions = ({
|
|||||||
}
|
}
|
||||||
export type GlobalOmitConfig = {
|
export type GlobalOmitConfig = {
|
||||||
customer?: Prisma.CustomerOmit
|
customer?: Prisma.CustomerOmit
|
||||||
|
customerIndividual?: Prisma.CustomerIndividualOmit
|
||||||
|
customerLegal?: Prisma.CustomerLegalOmit
|
||||||
device?: Prisma.DeviceOmit
|
device?: Prisma.DeviceOmit
|
||||||
good?: Prisma.GoodOmit
|
good?: Prisma.GoodOmit
|
||||||
goodCategory?: Prisma.GoodCategoryOmit
|
goodCategory?: Prisma.GoodCategoryOmit
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ export const AnyNull = runtime.AnyNull
|
|||||||
|
|
||||||
export const ModelName = {
|
export const ModelName = {
|
||||||
Customer: 'Customer',
|
Customer: 'Customer',
|
||||||
|
CustomerIndividual: 'CustomerIndividual',
|
||||||
|
CustomerLegal: 'CustomerLegal',
|
||||||
Device: 'Device',
|
Device: 'Device',
|
||||||
Good: 'Good',
|
Good: 'Good',
|
||||||
GoodCategory: 'GoodCategory',
|
GoodCategory: 'GoodCategory',
|
||||||
@@ -81,22 +83,42 @@ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof
|
|||||||
|
|
||||||
export const CustomerScalarFieldEnum = {
|
export const CustomerScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name',
|
|
||||||
email: 'email',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
address: 'address',
|
|
||||||
is_active: 'is_active',
|
|
||||||
account_id: 'account_id',
|
|
||||||
complex_id: 'complex_id',
|
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
deleted_at: 'deleted_at'
|
deleted_at: 'deleted_at',
|
||||||
|
type: 'type',
|
||||||
|
complex_id: 'complex_id',
|
||||||
|
is_favorite: 'is_favorite'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerIndividualScalarFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
national_id: 'national_id',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerIndividualScalarFieldEnum = (typeof CustomerIndividualScalarFieldEnum)[keyof typeof CustomerIndividualScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerLegalScalarFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
company_name: 'company_name',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
registration_number: 'registration_number',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerLegalScalarFieldEnum = (typeof CustomerLegalScalarFieldEnum)[keyof typeof CustomerLegalScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const DeviceScalarFieldEnum = {
|
export const DeviceScalarFieldEnum = {
|
||||||
account_id: 'account_id',
|
account_id: 'account_id',
|
||||||
app_version: 'app_version',
|
app_version: 'app_version',
|
||||||
@@ -164,7 +186,9 @@ export const SalesInvoiceScalarFieldEnum = {
|
|||||||
id: 'id',
|
id: 'id',
|
||||||
code: 'code',
|
code: 'code',
|
||||||
total_amount: 'total_amount',
|
total_amount: 'total_amount',
|
||||||
description: 'description',
|
notes: 'notes',
|
||||||
|
unknown_customer: 'unknown_customer',
|
||||||
|
invoice_date: 'invoice_date',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
customer_id: 'customer_id',
|
customer_id: 'customer_id',
|
||||||
@@ -182,6 +206,9 @@ export const SalesInvoiceItemScalarFieldEnum = {
|
|||||||
unit_price: 'unit_price',
|
unit_price: 'unit_price',
|
||||||
total_amount: 'total_amount',
|
total_amount: 'total_amount',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
|
discount: 'discount',
|
||||||
|
notes: 'notes',
|
||||||
|
pricingModel: 'pricingModel',
|
||||||
invoice_id: 'invoice_id',
|
invoice_id: 'invoice_id',
|
||||||
good_id: 'good_id',
|
good_id: 'good_id',
|
||||||
service_id: 'service_id',
|
service_id: 'service_id',
|
||||||
@@ -263,18 +290,37 @@ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|||||||
|
|
||||||
export const CustomerOrderByRelevanceFieldEnum = {
|
export const CustomerOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name',
|
|
||||||
email: 'email',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
address: 'address',
|
|
||||||
account_id: 'account_id',
|
|
||||||
complex_id: 'complex_id'
|
complex_id: 'complex_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerIndividualOrderByRelevanceFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
national_id: 'national_id',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerIndividualOrderByRelevanceFieldEnum = (typeof CustomerIndividualOrderByRelevanceFieldEnum)[keyof typeof CustomerIndividualOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const CustomerLegalOrderByRelevanceFieldEnum = {
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
company_name: 'company_name',
|
||||||
|
economic_code: 'economic_code',
|
||||||
|
registration_number: 'registration_number',
|
||||||
|
postal_code: 'postal_code',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type CustomerLegalOrderByRelevanceFieldEnum = (typeof CustomerLegalOrderByRelevanceFieldEnum)[keyof typeof CustomerLegalOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const DeviceOrderByRelevanceFieldEnum = {
|
export const DeviceOrderByRelevanceFieldEnum = {
|
||||||
account_id: 'account_id',
|
account_id: 'account_id',
|
||||||
app_version: 'app_version',
|
app_version: 'app_version',
|
||||||
@@ -329,18 +375,6 @@ export const TriggerLogOrderByRelevanceFieldEnum = {
|
|||||||
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelevanceFieldEnum)[keyof typeof TriggerLogOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
code: 'code',
|
|
||||||
description: 'description',
|
|
||||||
customer_id: 'customer_id',
|
|
||||||
account_id: 'account_id',
|
|
||||||
complex_id: 'complex_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const JsonNullValueFilter = {
|
export const JsonNullValueFilter = {
|
||||||
DbNull: 'DbNull',
|
DbNull: 'DbNull',
|
||||||
JsonNull: 'JsonNull',
|
JsonNull: 'JsonNull',
|
||||||
@@ -358,8 +392,21 @@ export const QueryMode = {
|
|||||||
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
||||||
|
|
||||||
|
|
||||||
|
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
code: 'code',
|
||||||
|
notes: 'notes',
|
||||||
|
customer_id: 'customer_id',
|
||||||
|
account_id: 'account_id',
|
||||||
|
complex_id: 'complex_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
|
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
notes: 'notes',
|
||||||
invoice_id: 'invoice_id',
|
invoice_id: 'invoice_id',
|
||||||
good_id: 'good_id',
|
good_id: 'good_id',
|
||||||
service_id: 'service_id'
|
service_id: 'service_id'
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
export type * from './models/Customer.js'
|
export type * from './models/Customer.js'
|
||||||
|
export type * from './models/CustomerIndividual.js'
|
||||||
|
export type * from './models/CustomerLegal.js'
|
||||||
export type * from './models/Device.js'
|
export type * from './models/Device.js'
|
||||||
export type * from './models/Good.js'
|
export type * from './models/Good.js'
|
||||||
export type * from './models/GoodCategory.js'
|
export type * from './models/GoodCategory.js'
|
||||||
|
|||||||
@@ -26,94 +26,64 @@ export type AggregateCustomer = {
|
|||||||
|
|
||||||
export type CustomerMinAggregateOutputType = {
|
export type CustomerMinAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
first_name: string | null
|
|
||||||
last_name: string | null
|
|
||||||
email: string | null
|
|
||||||
mobile_number: string | null
|
|
||||||
address: string | null
|
|
||||||
is_active: boolean | null
|
|
||||||
account_id: string | null
|
|
||||||
complex_id: string | null
|
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
|
type: $Enums.CustomerType | null
|
||||||
|
complex_id: string | null
|
||||||
|
is_favorite: boolean | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerMaxAggregateOutputType = {
|
export type CustomerMaxAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
first_name: string | null
|
|
||||||
last_name: string | null
|
|
||||||
email: string | null
|
|
||||||
mobile_number: string | null
|
|
||||||
address: string | null
|
|
||||||
is_active: boolean | null
|
|
||||||
account_id: string | null
|
|
||||||
complex_id: string | null
|
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
|
type: $Enums.CustomerType | null
|
||||||
|
complex_id: string | null
|
||||||
|
is_favorite: boolean | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerCountAggregateOutputType = {
|
export type CustomerCountAggregateOutputType = {
|
||||||
id: number
|
id: number
|
||||||
first_name: number
|
|
||||||
last_name: number
|
|
||||||
email: number
|
|
||||||
mobile_number: number
|
|
||||||
address: number
|
|
||||||
is_active: number
|
|
||||||
account_id: number
|
|
||||||
complex_id: number
|
|
||||||
created_at: number
|
created_at: number
|
||||||
updated_at: number
|
updated_at: number
|
||||||
deleted_at: number
|
deleted_at: number
|
||||||
|
type: number
|
||||||
|
complex_id: number
|
||||||
|
is_favorite: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export type CustomerMinAggregateInputType = {
|
export type CustomerMinAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
first_name?: true
|
|
||||||
last_name?: true
|
|
||||||
email?: true
|
|
||||||
mobile_number?: true
|
|
||||||
address?: true
|
|
||||||
is_active?: true
|
|
||||||
account_id?: true
|
|
||||||
complex_id?: true
|
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
deleted_at?: true
|
deleted_at?: true
|
||||||
|
type?: true
|
||||||
|
complex_id?: true
|
||||||
|
is_favorite?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerMaxAggregateInputType = {
|
export type CustomerMaxAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
first_name?: true
|
|
||||||
last_name?: true
|
|
||||||
email?: true
|
|
||||||
mobile_number?: true
|
|
||||||
address?: true
|
|
||||||
is_active?: true
|
|
||||||
account_id?: true
|
|
||||||
complex_id?: true
|
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
deleted_at?: true
|
deleted_at?: true
|
||||||
|
type?: true
|
||||||
|
complex_id?: true
|
||||||
|
is_favorite?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerCountAggregateInputType = {
|
export type CustomerCountAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
first_name?: true
|
|
||||||
last_name?: true
|
|
||||||
email?: true
|
|
||||||
mobile_number?: true
|
|
||||||
address?: true
|
|
||||||
is_active?: true
|
|
||||||
account_id?: true
|
|
||||||
complex_id?: true
|
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
deleted_at?: true
|
deleted_at?: true
|
||||||
|
type?: true
|
||||||
|
complex_id?: true
|
||||||
|
is_favorite?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,17 +161,12 @@ export type CustomerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
|
|
||||||
export type CustomerGroupByOutputType = {
|
export type CustomerGroupByOutputType = {
|
||||||
id: string
|
id: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address: string | null
|
|
||||||
is_active: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite: boolean | null
|
||||||
_count: CustomerCountAggregateOutputType | null
|
_count: CustomerCountAggregateOutputType | null
|
||||||
_min: CustomerMinAggregateOutputType | null
|
_min: CustomerMinAggregateOutputType | null
|
||||||
_max: CustomerMaxAggregateOutputType | null
|
_max: CustomerMaxAggregateOutputType | null
|
||||||
@@ -227,69 +192,55 @@ export type CustomerWhereInput = {
|
|||||||
OR?: Prisma.CustomerWhereInput[]
|
OR?: Prisma.CustomerWhereInput[]
|
||||||
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
||||||
id?: Prisma.StringFilter<"Customer"> | string
|
id?: Prisma.StringFilter<"Customer"> | string
|
||||||
first_name?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
last_name?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
|
||||||
mobile_number?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
|
||||||
is_active?: Prisma.BoolFilter<"Customer"> | boolean
|
|
||||||
account_id?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
complex_id?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||||
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFilter<"Customer"> | string
|
||||||
|
is_favorite?: Prisma.BoolNullableFilter<"Customer"> | boolean | null
|
||||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||||
|
customerIndividuals?: Prisma.XOR<Prisma.CustomerIndividualNullableScalarRelationFilter, Prisma.CustomerIndividualWhereInput> | null
|
||||||
|
customerLegals?: Prisma.XOR<Prisma.CustomerLegalNullableScalarRelationFilter, Prisma.CustomerLegalWhereInput> | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerOrderByWithRelationInput = {
|
export type CustomerOrderByWithRelationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
first_name?: Prisma.SortOrder
|
|
||||||
last_name?: Prisma.SortOrder
|
|
||||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
mobile_number?: Prisma.SortOrder
|
|
||||||
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
is_active?: Prisma.SortOrder
|
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
complex_id?: Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
type?: Prisma.SortOrder
|
||||||
|
complex_id?: Prisma.SortOrder
|
||||||
|
is_favorite?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualOrderByWithRelationInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalOrderByWithRelationInput
|
||||||
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
mobile_number?: string
|
|
||||||
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
||||||
OR?: Prisma.CustomerWhereInput[]
|
OR?: Prisma.CustomerWhereInput[]
|
||||||
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
||||||
first_name?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
last_name?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
|
||||||
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
|
||||||
is_active?: Prisma.BoolFilter<"Customer"> | boolean
|
|
||||||
account_id?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
complex_id?: Prisma.StringFilter<"Customer"> | string
|
|
||||||
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||||
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFilter<"Customer"> | string
|
||||||
|
is_favorite?: Prisma.BoolNullableFilter<"Customer"> | boolean | null
|
||||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||||
}, "id" | "mobile_number">
|
customerIndividuals?: Prisma.XOR<Prisma.CustomerIndividualNullableScalarRelationFilter, Prisma.CustomerIndividualWhereInput> | null
|
||||||
|
customerLegals?: Prisma.XOR<Prisma.CustomerLegalNullableScalarRelationFilter, Prisma.CustomerLegalWhereInput> | null
|
||||||
|
}, "id">
|
||||||
|
|
||||||
export type CustomerOrderByWithAggregationInput = {
|
export type CustomerOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
first_name?: Prisma.SortOrder
|
|
||||||
last_name?: Prisma.SortOrder
|
|
||||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
mobile_number?: Prisma.SortOrder
|
|
||||||
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
is_active?: Prisma.SortOrder
|
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
complex_id?: Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
type?: Prisma.SortOrder
|
||||||
|
complex_id?: Prisma.SortOrder
|
||||||
|
is_favorite?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
_count?: Prisma.CustomerCountOrderByAggregateInput
|
_count?: Prisma.CustomerCountOrderByAggregateInput
|
||||||
_max?: Prisma.CustomerMaxOrderByAggregateInput
|
_max?: Prisma.CustomerMaxOrderByAggregateInput
|
||||||
_min?: Prisma.CustomerMinOrderByAggregateInput
|
_min?: Prisma.CustomerMinOrderByAggregateInput
|
||||||
@@ -300,126 +251,94 @@ export type CustomerScalarWhereWithAggregatesInput = {
|
|||||||
OR?: Prisma.CustomerScalarWhereWithAggregatesInput[]
|
OR?: Prisma.CustomerScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||||
first_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
||||||
last_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
||||||
email?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
||||||
mobile_number?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
||||||
address?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
|
||||||
is_active?: Prisma.BoolWithAggregatesFilter<"Customer"> | boolean
|
|
||||||
account_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
||||||
complex_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||||
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeWithAggregatesFilter<"Customer"> | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||||
|
is_favorite?: Prisma.BoolNullableWithAggregatesFilter<"Customer"> | boolean | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerCreateInput = {
|
export type CustomerCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email?: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address?: string | null
|
|
||||||
is_active?: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUncheckedCreateInput = {
|
export type CustomerUncheckedCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email?: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address?: string | null
|
|
||||||
is_active?: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUpdateInput = {
|
export type CustomerUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUncheckedUpdateInput = {
|
export type CustomerUncheckedUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerCreateManyInput = {
|
export type CustomerCreateManyInput = {
|
||||||
id?: string
|
id?: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email?: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address?: string | null
|
|
||||||
is_active?: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUpdateManyMutationInput = {
|
export type CustomerUpdateManyMutationInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUncheckedUpdateManyInput = {
|
export type CustomerUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerOrderByRelevanceInput = {
|
export type CustomerOrderByRelevanceInput = {
|
||||||
@@ -430,47 +349,37 @@ export type CustomerOrderByRelevanceInput = {
|
|||||||
|
|
||||||
export type CustomerCountOrderByAggregateInput = {
|
export type CustomerCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
first_name?: Prisma.SortOrder
|
|
||||||
last_name?: Prisma.SortOrder
|
|
||||||
email?: Prisma.SortOrder
|
|
||||||
mobile_number?: Prisma.SortOrder
|
|
||||||
address?: Prisma.SortOrder
|
|
||||||
is_active?: Prisma.SortOrder
|
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
complex_id?: Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
|
type?: Prisma.SortOrder
|
||||||
|
complex_id?: Prisma.SortOrder
|
||||||
|
is_favorite?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerMaxOrderByAggregateInput = {
|
export type CustomerMaxOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
first_name?: Prisma.SortOrder
|
|
||||||
last_name?: Prisma.SortOrder
|
|
||||||
email?: Prisma.SortOrder
|
|
||||||
mobile_number?: Prisma.SortOrder
|
|
||||||
address?: Prisma.SortOrder
|
|
||||||
is_active?: Prisma.SortOrder
|
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
complex_id?: Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
|
type?: Prisma.SortOrder
|
||||||
|
complex_id?: Prisma.SortOrder
|
||||||
|
is_favorite?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerMinOrderByAggregateInput = {
|
export type CustomerMinOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
first_name?: Prisma.SortOrder
|
|
||||||
last_name?: Prisma.SortOrder
|
|
||||||
email?: Prisma.SortOrder
|
|
||||||
mobile_number?: Prisma.SortOrder
|
|
||||||
address?: Prisma.SortOrder
|
|
||||||
is_active?: Prisma.SortOrder
|
|
||||||
account_id?: Prisma.SortOrder
|
|
||||||
complex_id?: Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
|
type?: Prisma.SortOrder
|
||||||
|
complex_id?: Prisma.SortOrder
|
||||||
|
is_favorite?: Prisma.SortOrder
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerScalarRelationFilter = {
|
||||||
|
is?: Prisma.CustomerWhereInput
|
||||||
|
isNot?: Prisma.CustomerWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerNullableScalarRelationFilter = {
|
export type CustomerNullableScalarRelationFilter = {
|
||||||
@@ -482,14 +391,6 @@ export type StringFieldUpdateOperationsInput = {
|
|||||||
set?: string
|
set?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NullableStringFieldUpdateOperationsInput = {
|
|
||||||
set?: string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolFieldUpdateOperationsInput = {
|
|
||||||
set?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DateTimeFieldUpdateOperationsInput = {
|
export type DateTimeFieldUpdateOperationsInput = {
|
||||||
set?: Date | string
|
set?: Date | string
|
||||||
}
|
}
|
||||||
@@ -498,6 +399,42 @@ export type NullableDateTimeFieldUpdateOperationsInput = {
|
|||||||
set?: Date | string | null
|
set?: Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumCustomerTypeFieldUpdateOperationsInput = {
|
||||||
|
set?: $Enums.CustomerType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NullableBoolFieldUpdateOperationsInput = {
|
||||||
|
set?: boolean | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerCreateNestedOneWithoutCustomerIndividualsInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||||
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerIndividualsInput
|
||||||
|
connect?: Prisma.CustomerWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpdateOneRequiredWithoutCustomerIndividualsNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||||
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerIndividualsInput
|
||||||
|
upsert?: Prisma.CustomerUpsertWithoutCustomerIndividualsInput
|
||||||
|
connect?: Prisma.CustomerWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutCustomerIndividualsInput, Prisma.CustomerUpdateWithoutCustomerIndividualsInput>, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerCreateNestedOneWithoutCustomerLegalsInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||||
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerLegalsInput
|
||||||
|
connect?: Prisma.CustomerWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpdateOneRequiredWithoutCustomerLegalsNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||||
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerLegalsInput
|
||||||
|
upsert?: Prisma.CustomerUpsertWithoutCustomerLegalsInput
|
||||||
|
connect?: Prisma.CustomerWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutCustomerLegalsInput, Prisma.CustomerUpdateWithoutCustomerLegalsInput>, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type CustomerCreateNestedOneWithoutSales_invoicesInput = {
|
export type CustomerCreateNestedOneWithoutSales_invoicesInput = {
|
||||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
||||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput
|
||||||
@@ -514,34 +451,156 @@ export type CustomerUpdateOneWithoutSales_invoicesNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.CustomerUpdateWithoutSales_invoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.CustomerUpdateWithoutSales_invoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerCreateWithoutSales_invoicesInput = {
|
export type CustomerCreateWithoutCustomerIndividualsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email?: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address?: string | null
|
|
||||||
is_active?: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUncheckedCreateWithoutCustomerIndividualsInput = {
|
||||||
|
id?: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerCreateOrConnectWithoutCustomerIndividualsInput = {
|
||||||
|
where: Prisma.CustomerWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpsertWithoutCustomerIndividualsInput = {
|
||||||
|
update: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput>
|
||||||
|
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||||
|
where?: Prisma.CustomerWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpdateToOneWithWhereWithoutCustomerIndividualsInput = {
|
||||||
|
where?: Prisma.CustomerWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpdateWithoutCustomerIndividualsInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUncheckedUpdateWithoutCustomerIndividualsInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerCreateWithoutCustomerLegalsInput = {
|
||||||
|
id?: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUncheckedCreateWithoutCustomerLegalsInput = {
|
||||||
|
id?: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerCreateOrConnectWithoutCustomerLegalsInput = {
|
||||||
|
where: Prisma.CustomerWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpsertWithoutCustomerLegalsInput = {
|
||||||
|
update: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput>
|
||||||
|
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||||
|
where?: Prisma.CustomerWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpdateToOneWithWhereWithoutCustomerLegalsInput = {
|
||||||
|
where?: Prisma.CustomerWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUpdateWithoutCustomerLegalsInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerUncheckedUpdateWithoutCustomerLegalsInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CustomerCreateWithoutSales_invoicesInput = {
|
||||||
|
id?: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUncheckedCreateWithoutSales_invoicesInput = {
|
export type CustomerUncheckedCreateWithoutSales_invoicesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email?: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address?: string | null
|
|
||||||
is_active?: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite?: boolean | null
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerCreateOrConnectWithoutSales_invoicesInput = {
|
export type CustomerCreateOrConnectWithoutSales_invoicesInput = {
|
||||||
@@ -562,32 +621,26 @@ export type CustomerUpdateToOneWithWhereWithoutSales_invoicesInput = {
|
|||||||
|
|
||||||
export type CustomerUpdateWithoutSales_invoicesInput = {
|
export type CustomerUpdateWithoutSales_invoicesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerUncheckedUpdateWithoutSales_invoicesInput = {
|
export type CustomerUncheckedUpdateWithoutSales_invoicesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||||
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||||
|
customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput
|
||||||
|
customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -623,18 +676,15 @@ export type CustomerCountOutputTypeCountSales_invoicesArgs<ExtArgs extends runti
|
|||||||
|
|
||||||
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
id?: boolean
|
id?: boolean
|
||||||
first_name?: boolean
|
|
||||||
last_name?: boolean
|
|
||||||
email?: boolean
|
|
||||||
mobile_number?: boolean
|
|
||||||
address?: boolean
|
|
||||||
is_active?: boolean
|
|
||||||
account_id?: boolean
|
|
||||||
complex_id?: boolean
|
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
deleted_at?: boolean
|
deleted_at?: boolean
|
||||||
|
type?: boolean
|
||||||
|
complex_id?: boolean
|
||||||
|
is_favorite?: boolean
|
||||||
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
||||||
|
customerIndividuals?: boolean | Prisma.Customer$customerIndividualsArgs<ExtArgs>
|
||||||
|
customerLegals?: boolean | Prisma.Customer$customerLegalsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["customer"]>
|
}, ExtArgs["result"]["customer"]>
|
||||||
|
|
||||||
@@ -642,22 +692,19 @@ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
|
|
||||||
export type CustomerSelectScalar = {
|
export type CustomerSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
first_name?: boolean
|
|
||||||
last_name?: boolean
|
|
||||||
email?: boolean
|
|
||||||
mobile_number?: boolean
|
|
||||||
address?: boolean
|
|
||||||
is_active?: boolean
|
|
||||||
account_id?: boolean
|
|
||||||
complex_id?: boolean
|
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
deleted_at?: boolean
|
deleted_at?: boolean
|
||||||
|
type?: boolean
|
||||||
|
complex_id?: boolean
|
||||||
|
is_favorite?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "first_name" | "last_name" | "email" | "mobile_number" | "address" | "is_active" | "account_id" | "complex_id" | "created_at" | "updated_at" | "deleted_at", ExtArgs["result"]["customer"]>
|
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "deleted_at" | "type" | "complex_id" | "is_favorite", ExtArgs["result"]["customer"]>
|
||||||
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
||||||
|
customerIndividuals?: boolean | Prisma.Customer$customerIndividualsArgs<ExtArgs>
|
||||||
|
customerLegals?: boolean | Prisma.Customer$customerLegalsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -665,20 +712,17 @@ export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
name: "Customer"
|
name: "Customer"
|
||||||
objects: {
|
objects: {
|
||||||
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||||
|
customerIndividuals: Prisma.$CustomerIndividualPayload<ExtArgs> | null
|
||||||
|
customerLegals: Prisma.$CustomerLegalPayload<ExtArgs> | null
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
first_name: string
|
|
||||||
last_name: string
|
|
||||||
email: string | null
|
|
||||||
mobile_number: string
|
|
||||||
address: string | null
|
|
||||||
is_active: boolean
|
|
||||||
account_id: string
|
|
||||||
complex_id: string
|
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
|
type: $Enums.CustomerType
|
||||||
|
complex_id: string
|
||||||
|
is_favorite: boolean | null
|
||||||
}, ExtArgs["result"]["customer"]>
|
}, ExtArgs["result"]["customer"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -1020,6 +1064,8 @@ readonly fields: CustomerFieldRefs;
|
|||||||
export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
sales_invoices<T extends Prisma.Customer$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
sales_invoices<T extends Prisma.Customer$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
|
customerIndividuals<T extends Prisma.Customer$customerIndividualsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$customerIndividualsArgs<ExtArgs>>): Prisma.Prisma__CustomerIndividualClient<runtime.Types.Result.GetResult<Prisma.$CustomerIndividualPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
|
customerLegals<T extends Prisma.Customer$customerLegalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$customerLegalsArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1050,17 +1096,12 @@ export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime
|
|||||||
*/
|
*/
|
||||||
export interface CustomerFieldRefs {
|
export interface CustomerFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"Customer", 'String'>
|
readonly id: Prisma.FieldRef<"Customer", 'String'>
|
||||||
readonly first_name: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly last_name: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly email: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly mobile_number: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly address: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly is_active: Prisma.FieldRef<"Customer", 'Boolean'>
|
|
||||||
readonly account_id: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly complex_id: Prisma.FieldRef<"Customer", 'String'>
|
|
||||||
readonly created_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||||
readonly updated_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||||
readonly deleted_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
readonly deleted_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||||
|
readonly type: Prisma.FieldRef<"Customer", 'CustomerType'>
|
||||||
|
readonly complex_id: Prisma.FieldRef<"Customer", 'String'>
|
||||||
|
readonly is_favorite: Prisma.FieldRef<"Customer", 'Boolean'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1427,6 +1468,44 @@ export type Customer$sales_invoicesArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Customer.customerIndividuals
|
||||||
|
*/
|
||||||
|
export type Customer$customerIndividualsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CustomerIndividual
|
||||||
|
*/
|
||||||
|
select?: Prisma.CustomerIndividualSelect<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CustomerIndividual
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CustomerIndividualOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CustomerIndividualInclude<ExtArgs> | null
|
||||||
|
where?: Prisma.CustomerIndividualWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Customer.customerLegals
|
||||||
|
*/
|
||||||
|
export type Customer$customerLegalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CustomerLegal
|
||||||
|
*/
|
||||||
|
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CustomerLegal
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
||||||
|
where?: Prisma.CustomerLegalWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Customer without action
|
* Customer without action
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -38,7 +38,8 @@ export type SalesInvoiceMinAggregateOutputType = {
|
|||||||
id: string | null
|
id: string | null
|
||||||
code: string | null
|
code: string | null
|
||||||
total_amount: runtime.Decimal | null
|
total_amount: runtime.Decimal | null
|
||||||
description: string | null
|
notes: string | null
|
||||||
|
invoice_date: Date | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
@@ -50,7 +51,8 @@ export type SalesInvoiceMaxAggregateOutputType = {
|
|||||||
id: string | null
|
id: string | null
|
||||||
code: string | null
|
code: string | null
|
||||||
total_amount: runtime.Decimal | null
|
total_amount: runtime.Decimal | null
|
||||||
description: string | null
|
notes: string | null
|
||||||
|
invoice_date: Date | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
@@ -62,7 +64,9 @@ export type SalesInvoiceCountAggregateOutputType = {
|
|||||||
id: number
|
id: number
|
||||||
code: number
|
code: number
|
||||||
total_amount: number
|
total_amount: number
|
||||||
description: number
|
notes: number
|
||||||
|
unknown_customer: number
|
||||||
|
invoice_date: number
|
||||||
created_at: number
|
created_at: number
|
||||||
updated_at: number
|
updated_at: number
|
||||||
customer_id: number
|
customer_id: number
|
||||||
@@ -84,7 +88,8 @@ export type SalesInvoiceMinAggregateInputType = {
|
|||||||
id?: true
|
id?: true
|
||||||
code?: true
|
code?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
description?: true
|
notes?: true
|
||||||
|
invoice_date?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
customer_id?: true
|
customer_id?: true
|
||||||
@@ -96,7 +101,8 @@ export type SalesInvoiceMaxAggregateInputType = {
|
|||||||
id?: true
|
id?: true
|
||||||
code?: true
|
code?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
description?: true
|
notes?: true
|
||||||
|
invoice_date?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
customer_id?: true
|
customer_id?: true
|
||||||
@@ -108,7 +114,9 @@ export type SalesInvoiceCountAggregateInputType = {
|
|||||||
id?: true
|
id?: true
|
||||||
code?: true
|
code?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
description?: true
|
notes?: true
|
||||||
|
unknown_customer?: true
|
||||||
|
invoice_date?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
customer_id?: true
|
customer_id?: true
|
||||||
@@ -207,7 +215,9 @@ export type SalesInvoiceGroupByOutputType = {
|
|||||||
id: string
|
id: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal
|
total_amount: runtime.Decimal
|
||||||
description: string | null
|
notes: string | null
|
||||||
|
unknown_customer: runtime.JsonValue | null
|
||||||
|
invoice_date: Date | null
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
@@ -242,7 +252,9 @@ export type SalesInvoiceWhereInput = {
|
|||||||
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
notes?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||||
|
unknown_customer?: Prisma.JsonNullableFilter<"SalesInvoice">
|
||||||
|
invoice_date?: Prisma.DateTimeNullableFilter<"SalesInvoice"> | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||||
@@ -250,14 +262,16 @@ export type SalesInvoiceWhereInput = {
|
|||||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceOrderByWithRelationInput = {
|
export type SalesInvoiceOrderByWithRelationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
unknown_customer?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
invoice_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
@@ -265,7 +279,7 @@ export type SalesInvoiceOrderByWithRelationInput = {
|
|||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||||
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
|
payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
|
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,7 +290,9 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
OR?: Prisma.SalesInvoiceWhereInput[]
|
OR?: Prisma.SalesInvoiceWhereInput[]
|
||||||
NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
|
NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
|
||||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
notes?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||||
|
unknown_customer?: Prisma.JsonNullableFilter<"SalesInvoice">
|
||||||
|
invoice_date?: Prisma.DateTimeNullableFilter<"SalesInvoice"> | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||||
@@ -284,14 +300,16 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||||
}, "id" | "code">
|
}, "id" | "code">
|
||||||
|
|
||||||
export type SalesInvoiceOrderByWithAggregationInput = {
|
export type SalesInvoiceOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
unknown_customer?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
invoice_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
@@ -311,7 +329,9 @@ export type SalesInvoiceScalarWhereWithAggregatesInput = {
|
|||||||
id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||||
code?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
code?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||||
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
notes?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
||||||
|
unknown_customer?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoice">
|
||||||
|
invoice_date?: Prisma.DateTimeNullableWithAggregatesFilter<"SalesInvoice"> | Date | string | null
|
||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||||
customer_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
customer_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
||||||
@@ -323,63 +343,73 @@ export type SalesInvoiceCreateInput = {
|
|||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id: string
|
account_id: string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedCreateInput = {
|
export type SalesInvoiceUncheckedCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
account_id: string
|
account_id: string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUpdateInput = {
|
export type SalesInvoiceUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
||||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedUpdateInput = {
|
export type SalesInvoiceUncheckedUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateManyInput = {
|
export type SalesInvoiceCreateManyInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
@@ -391,7 +421,9 @@ export type SalesInvoiceUpdateManyMutationInput = {
|
|||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
@@ -402,7 +434,9 @@ export type SalesInvoiceUncheckedUpdateManyInput = {
|
|||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
@@ -430,7 +464,9 @@ export type SalesInvoiceCountOrderByAggregateInput = {
|
|||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
description?: Prisma.SortOrder
|
notes?: Prisma.SortOrder
|
||||||
|
unknown_customer?: Prisma.SortOrder
|
||||||
|
invoice_date?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
customer_id?: Prisma.SortOrder
|
customer_id?: Prisma.SortOrder
|
||||||
@@ -446,7 +482,8 @@ export type SalesInvoiceMaxOrderByAggregateInput = {
|
|||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
description?: Prisma.SortOrder
|
notes?: Prisma.SortOrder
|
||||||
|
invoice_date?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
customer_id?: Prisma.SortOrder
|
customer_id?: Prisma.SortOrder
|
||||||
@@ -458,7 +495,8 @@ export type SalesInvoiceMinOrderByAggregateInput = {
|
|||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
description?: Prisma.SortOrder
|
notes?: Prisma.SortOrder
|
||||||
|
invoice_date?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
customer_id?: Prisma.SortOrder
|
customer_id?: Prisma.SortOrder
|
||||||
@@ -531,44 +569,48 @@ export type SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutItemsInput, Prisma.SalesInvoiceUpdateWithoutItemsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutItemsInput, Prisma.SalesInvoiceUpdateWithoutItemsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateNestedOneWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceCreateNestedOneWithoutPaymentsInput = {
|
||||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput
|
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPaymentsInput
|
||||||
connect?: Prisma.SalesInvoiceWhereUniqueInput
|
connect?: Prisma.SalesInvoiceWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUpdateOneRequiredWithoutSales_invoice_paymentsNestedInput = {
|
export type SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput
|
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPaymentsInput
|
||||||
upsert?: Prisma.SalesInvoiceUpsertWithoutSales_invoice_paymentsInput
|
upsert?: Prisma.SalesInvoiceUpsertWithoutPaymentsInput
|
||||||
connect?: Prisma.SalesInvoiceWhereUniqueInput
|
connect?: Prisma.SalesInvoiceWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutPaymentsInput, Prisma.SalesInvoiceUpdateWithoutPaymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateWithoutCustomerInput = {
|
export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id: string
|
account_id: string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id: string
|
account_id: string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
|
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
|
||||||
@@ -604,7 +646,9 @@ export type SalesInvoiceScalarWhereInput = {
|
|||||||
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
notes?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||||
|
unknown_customer?: Prisma.JsonNullableFilter<"SalesInvoice">
|
||||||
|
invoice_date?: Prisma.DateTimeNullableFilter<"SalesInvoice"> | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||||
@@ -616,26 +660,30 @@ export type SalesInvoiceCreateWithoutItemsInput = {
|
|||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id: string
|
account_id: string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
|
export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
account_id: string
|
account_id: string
|
||||||
complex_id: string
|
complex_id: string
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateOrConnectWithoutItemsInput = {
|
export type SalesInvoiceCreateOrConnectWithoutItemsInput = {
|
||||||
@@ -658,33 +706,39 @@ export type SalesInvoiceUpdateWithoutItemsInput = {
|
|||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
|
export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceCreateWithoutPaymentsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id: string
|
account_id: string
|
||||||
@@ -693,11 +747,13 @@ export type SalesInvoiceCreateWithoutSales_invoice_paymentsInput = {
|
|||||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceUncheckedCreateWithoutPaymentsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
customer_id?: string | null
|
customer_id?: string | null
|
||||||
@@ -706,27 +762,29 @@ export type SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput = {
|
|||||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceCreateOrConnectWithoutPaymentsInput = {
|
||||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUpsertWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceUpsertWithoutPaymentsInput = {
|
||||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
|
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||||
where?: Prisma.SalesInvoiceWhereInput
|
where?: Prisma.SalesInvoiceWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceUpdateToOneWithWhereWithoutPaymentsInput = {
|
||||||
where?: Prisma.SalesInvoiceWhereInput
|
where?: Prisma.SalesInvoiceWhereInput
|
||||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
|
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUpdateWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceUpdateWithoutPaymentsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
@@ -735,11 +793,13 @@ export type SalesInvoiceUpdateWithoutSales_invoice_paymentsInput = {
|
|||||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput = {
|
export type SalesInvoiceUncheckedUpdateWithoutPaymentsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
@@ -752,7 +812,9 @@ export type SalesInvoiceCreateManyCustomerInput = {
|
|||||||
id?: string
|
id?: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: string | null
|
notes?: string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Date | string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account_id: string
|
account_id: string
|
||||||
@@ -763,33 +825,39 @@ export type SalesInvoiceUpdateWithoutCustomerInput = {
|
|||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
|
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
@@ -803,12 +871,12 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
|||||||
|
|
||||||
export type SalesInvoiceCountOutputType = {
|
export type SalesInvoiceCountOutputType = {
|
||||||
items: number
|
items: number
|
||||||
sales_invoice_payments: number
|
payments: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
items?: boolean | SalesInvoiceCountOutputTypeCountItemsArgs
|
items?: boolean | SalesInvoiceCountOutputTypeCountItemsArgs
|
||||||
sales_invoice_payments?: boolean | SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs
|
payments?: boolean | SalesInvoiceCountOutputTypeCountPaymentsArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -831,7 +899,7 @@ export type SalesInvoiceCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Ty
|
|||||||
/**
|
/**
|
||||||
* SalesInvoiceCountOutputType without action
|
* SalesInvoiceCountOutputType without action
|
||||||
*/
|
*/
|
||||||
export type SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoiceCountOutputTypeCountPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
where?: Prisma.SalesInvoicePaymentWhereInput
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -840,7 +908,9 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
id?: boolean
|
id?: boolean
|
||||||
code?: boolean
|
code?: boolean
|
||||||
total_amount?: boolean
|
total_amount?: boolean
|
||||||
description?: boolean
|
notes?: boolean
|
||||||
|
unknown_customer?: boolean
|
||||||
|
invoice_date?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
customer_id?: boolean
|
customer_id?: boolean
|
||||||
@@ -848,7 +918,7 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
complex_id?: boolean
|
complex_id?: boolean
|
||||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||||
sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>
|
payments?: boolean | Prisma.SalesInvoice$paymentsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["salesInvoice"]>
|
}, ExtArgs["result"]["salesInvoice"]>
|
||||||
|
|
||||||
@@ -858,7 +928,9 @@ export type SalesInvoiceSelectScalar = {
|
|||||||
id?: boolean
|
id?: boolean
|
||||||
code?: boolean
|
code?: boolean
|
||||||
total_amount?: boolean
|
total_amount?: boolean
|
||||||
description?: boolean
|
notes?: boolean
|
||||||
|
unknown_customer?: boolean
|
||||||
|
invoice_date?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
customer_id?: boolean
|
customer_id?: boolean
|
||||||
@@ -866,11 +938,11 @@ export type SalesInvoiceSelectScalar = {
|
|||||||
complex_id?: boolean
|
complex_id?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "total_amount" | "description" | "created_at" | "updated_at" | "customer_id" | "account_id" | "complex_id", ExtArgs["result"]["salesInvoice"]>
|
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "total_amount" | "notes" | "unknown_customer" | "invoice_date" | "created_at" | "updated_at" | "customer_id" | "account_id" | "complex_id", ExtArgs["result"]["salesInvoice"]>
|
||||||
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||||
sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>
|
payments?: boolean | Prisma.SalesInvoice$paymentsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -879,13 +951,15 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
objects: {
|
objects: {
|
||||||
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
||||||
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
||||||
sales_invoice_payments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
|
payments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
code: string
|
code: string
|
||||||
total_amount: runtime.Decimal
|
total_amount: runtime.Decimal
|
||||||
description: string | null
|
notes: string | null
|
||||||
|
unknown_customer: runtime.JsonValue | null
|
||||||
|
invoice_date: Date | null
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
customer_id: string | null
|
customer_id: string | null
|
||||||
@@ -1233,7 +1307,7 @@ export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends run
|
|||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
customer<T extends Prisma.SalesInvoice$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
customer<T extends Prisma.SalesInvoice$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
sales_invoice_payments<T extends Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
payments<T extends Prisma.SalesInvoice$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1266,7 +1340,9 @@ export interface SalesInvoiceFieldRefs {
|
|||||||
readonly id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
readonly id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||||
readonly code: Prisma.FieldRef<"SalesInvoice", 'String'>
|
readonly code: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||||
readonly total_amount: Prisma.FieldRef<"SalesInvoice", 'Decimal'>
|
readonly total_amount: Prisma.FieldRef<"SalesInvoice", 'Decimal'>
|
||||||
readonly description: Prisma.FieldRef<"SalesInvoice", 'String'>
|
readonly notes: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||||
|
readonly unknown_customer: Prisma.FieldRef<"SalesInvoice", 'Json'>
|
||||||
|
readonly invoice_date: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||||
readonly created_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||||
readonly updated_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||||
readonly customer_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
readonly customer_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||||
@@ -1658,9 +1734,9 @@ export type SalesInvoice$itemsArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SalesInvoice.sales_invoice_payments
|
* SalesInvoice.payments
|
||||||
*/
|
*/
|
||||||
export type SalesInvoice$sales_invoice_paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoice$paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
/**
|
/**
|
||||||
* Select specific fields to fetch from the SalesInvoicePayment
|
* Select specific fields to fetch from the SalesInvoicePayment
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -30,12 +30,14 @@ export type SalesInvoiceItemAvgAggregateOutputType = {
|
|||||||
quantity: runtime.Decimal | null
|
quantity: runtime.Decimal | null
|
||||||
unit_price: runtime.Decimal | null
|
unit_price: runtime.Decimal | null
|
||||||
total_amount: runtime.Decimal | null
|
total_amount: runtime.Decimal | null
|
||||||
|
discount: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemSumAggregateOutputType = {
|
export type SalesInvoiceItemSumAggregateOutputType = {
|
||||||
quantity: runtime.Decimal | null
|
quantity: runtime.Decimal | null
|
||||||
unit_price: runtime.Decimal | null
|
unit_price: runtime.Decimal | null
|
||||||
total_amount: runtime.Decimal | null
|
total_amount: runtime.Decimal | null
|
||||||
|
discount: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemMinAggregateOutputType = {
|
export type SalesInvoiceItemMinAggregateOutputType = {
|
||||||
@@ -45,6 +47,9 @@ export type SalesInvoiceItemMinAggregateOutputType = {
|
|||||||
unit_price: runtime.Decimal | null
|
unit_price: runtime.Decimal | null
|
||||||
total_amount: runtime.Decimal | null
|
total_amount: runtime.Decimal | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
|
discount: runtime.Decimal | null
|
||||||
|
notes: string | null
|
||||||
|
pricingModel: $Enums.SalesInvoiceItemPricingModel | null
|
||||||
invoice_id: string | null
|
invoice_id: string | null
|
||||||
good_id: string | null
|
good_id: string | null
|
||||||
service_id: string | null
|
service_id: string | null
|
||||||
@@ -57,6 +62,9 @@ export type SalesInvoiceItemMaxAggregateOutputType = {
|
|||||||
unit_price: runtime.Decimal | null
|
unit_price: runtime.Decimal | null
|
||||||
total_amount: runtime.Decimal | null
|
total_amount: runtime.Decimal | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
|
discount: runtime.Decimal | null
|
||||||
|
notes: string | null
|
||||||
|
pricingModel: $Enums.SalesInvoiceItemPricingModel | null
|
||||||
invoice_id: string | null
|
invoice_id: string | null
|
||||||
good_id: string | null
|
good_id: string | null
|
||||||
service_id: string | null
|
service_id: string | null
|
||||||
@@ -69,6 +77,9 @@ export type SalesInvoiceItemCountAggregateOutputType = {
|
|||||||
unit_price: number
|
unit_price: number
|
||||||
total_amount: number
|
total_amount: number
|
||||||
created_at: number
|
created_at: number
|
||||||
|
discount: number
|
||||||
|
notes: number
|
||||||
|
pricingModel: number
|
||||||
invoice_id: number
|
invoice_id: number
|
||||||
good_id: number
|
good_id: number
|
||||||
service_id: number
|
service_id: number
|
||||||
@@ -81,12 +92,14 @@ export type SalesInvoiceItemAvgAggregateInputType = {
|
|||||||
quantity?: true
|
quantity?: true
|
||||||
unit_price?: true
|
unit_price?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
|
discount?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemSumAggregateInputType = {
|
export type SalesInvoiceItemSumAggregateInputType = {
|
||||||
quantity?: true
|
quantity?: true
|
||||||
unit_price?: true
|
unit_price?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
|
discount?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemMinAggregateInputType = {
|
export type SalesInvoiceItemMinAggregateInputType = {
|
||||||
@@ -96,6 +109,9 @@ export type SalesInvoiceItemMinAggregateInputType = {
|
|||||||
unit_price?: true
|
unit_price?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
|
discount?: true
|
||||||
|
notes?: true
|
||||||
|
pricingModel?: true
|
||||||
invoice_id?: true
|
invoice_id?: true
|
||||||
good_id?: true
|
good_id?: true
|
||||||
service_id?: true
|
service_id?: true
|
||||||
@@ -108,6 +124,9 @@ export type SalesInvoiceItemMaxAggregateInputType = {
|
|||||||
unit_price?: true
|
unit_price?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
|
discount?: true
|
||||||
|
notes?: true
|
||||||
|
pricingModel?: true
|
||||||
invoice_id?: true
|
invoice_id?: true
|
||||||
good_id?: true
|
good_id?: true
|
||||||
service_id?: true
|
service_id?: true
|
||||||
@@ -120,6 +139,9 @@ export type SalesInvoiceItemCountAggregateInputType = {
|
|||||||
unit_price?: true
|
unit_price?: true
|
||||||
total_amount?: true
|
total_amount?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
|
discount?: true
|
||||||
|
notes?: true
|
||||||
|
pricingModel?: true
|
||||||
invoice_id?: true
|
invoice_id?: true
|
||||||
good_id?: true
|
good_id?: true
|
||||||
service_id?: true
|
service_id?: true
|
||||||
@@ -220,6 +242,9 @@ export type SalesInvoiceItemGroupByOutputType = {
|
|||||||
unit_price: runtime.Decimal
|
unit_price: runtime.Decimal
|
||||||
total_amount: runtime.Decimal
|
total_amount: runtime.Decimal
|
||||||
created_at: Date
|
created_at: Date
|
||||||
|
discount: runtime.Decimal
|
||||||
|
notes: string | null
|
||||||
|
pricingModel: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id: string | null
|
good_id: string | null
|
||||||
service_id: string | null
|
service_id: string | null
|
||||||
@@ -256,6 +281,9 @@ export type SalesInvoiceItemWhereInput = {
|
|||||||
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||||
|
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFilter<"SalesInvoiceItem"> | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
@@ -272,6 +300,9 @@ export type SalesInvoiceItemOrderByWithRelationInput = {
|
|||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
pricingModel?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
@@ -292,6 +323,9 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||||
|
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFilter<"SalesInvoiceItem"> | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
@@ -308,6 +342,9 @@ export type SalesInvoiceItemOrderByWithAggregationInput = {
|
|||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
pricingModel?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
@@ -329,6 +366,9 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
|
|||||||
unit_price?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
||||||
|
discount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelWithAggregatesFilter<"SalesInvoiceItem"> | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
||||||
@@ -342,6 +382,9 @@ export type SalesInvoiceItemCreateInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
@@ -355,6 +398,9 @@ export type SalesInvoiceItemUncheckedCreateInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
@@ -368,6 +414,9 @@ export type SalesInvoiceItemUpdateInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
@@ -381,6 +430,9 @@ export type SalesInvoiceItemUncheckedUpdateInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
@@ -394,6 +446,9 @@ export type SalesInvoiceItemCreateManyInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
@@ -407,6 +462,9 @@ export type SalesInvoiceItemUpdateManyMutationInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -417,6 +475,9 @@ export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
@@ -446,6 +507,9 @@ export type SalesInvoiceItemCountOrderByAggregateInput = {
|
|||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
|
notes?: Prisma.SortOrder
|
||||||
|
pricingModel?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrder
|
good_id?: Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrder
|
service_id?: Prisma.SortOrder
|
||||||
@@ -456,6 +520,7 @@ export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
|||||||
quantity?: Prisma.SortOrder
|
quantity?: Prisma.SortOrder
|
||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
||||||
@@ -465,6 +530,9 @@ export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
|||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
|
notes?: Prisma.SortOrder
|
||||||
|
pricingModel?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrder
|
good_id?: Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrder
|
service_id?: Prisma.SortOrder
|
||||||
@@ -477,6 +545,9 @@ export type SalesInvoiceItemMinOrderByAggregateInput = {
|
|||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
|
notes?: Prisma.SortOrder
|
||||||
|
pricingModel?: Prisma.SortOrder
|
||||||
invoice_id?: Prisma.SortOrder
|
invoice_id?: Prisma.SortOrder
|
||||||
good_id?: Prisma.SortOrder
|
good_id?: Prisma.SortOrder
|
||||||
service_id?: Prisma.SortOrder
|
service_id?: Prisma.SortOrder
|
||||||
@@ -486,6 +557,7 @@ export type SalesInvoiceItemSumOrderByAggregateInput = {
|
|||||||
quantity?: Prisma.SortOrder
|
quantity?: Prisma.SortOrder
|
||||||
unit_price?: Prisma.SortOrder
|
unit_price?: Prisma.SortOrder
|
||||||
total_amount?: Prisma.SortOrder
|
total_amount?: Prisma.SortOrder
|
||||||
|
discount?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateNestedManyWithoutGoodInput = {
|
export type SalesInvoiceItemCreateNestedManyWithoutGoodInput = {
|
||||||
@@ -576,6 +648,10 @@ export type EnumUnitTypeFieldUpdateOperationsInput = {
|
|||||||
set?: $Enums.UnitType
|
set?: $Enums.UnitType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput = {
|
||||||
|
set?: $Enums.SalesInvoiceItemPricingModel
|
||||||
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemCreateNestedManyWithoutServiceInput = {
|
export type SalesInvoiceItemCreateNestedManyWithoutServiceInput = {
|
||||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
||||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
||||||
@@ -625,6 +701,9 @@ export type SalesInvoiceItemCreateWithoutGoodInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
@@ -637,6 +716,9 @@ export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -678,6 +760,9 @@ export type SalesInvoiceItemScalarWhereInput = {
|
|||||||
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||||
|
discount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFilter<"SalesInvoiceItem"> | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
||||||
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
||||||
@@ -691,6 +776,9 @@ export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
@@ -703,6 +791,9 @@ export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -741,6 +832,9 @@ export type SalesInvoiceItemCreateWithoutServiceInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||||
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
||||||
@@ -753,6 +847,9 @@ export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -791,6 +888,9 @@ export type SalesInvoiceItemCreateManyGoodInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -803,6 +903,9 @@ export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
@@ -815,6 +918,9 @@ export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -827,6 +933,9 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -839,6 +948,9 @@ export type SalesInvoiceItemCreateManyInvoiceInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
service_id?: string | null
|
service_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -851,6 +963,9 @@ export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
@@ -863,6 +978,9 @@ export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -875,6 +993,9 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -887,6 +1008,9 @@ export type SalesInvoiceItemCreateManyServiceInput = {
|
|||||||
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
|
discount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: string | null
|
||||||
|
pricingModel?: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id?: string | null
|
good_id?: string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -899,6 +1023,9 @@ export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||||
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
||||||
@@ -911,6 +1038,9 @@ export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -923,6 +1053,9 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
|||||||
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
discount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||||
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
pricingModel?: Prisma.EnumSalesInvoiceItemPricingModelFieldUpdateOperationsInput | $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||||
@@ -937,6 +1070,9 @@ export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
unit_price?: boolean
|
unit_price?: boolean
|
||||||
total_amount?: boolean
|
total_amount?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
|
discount?: boolean
|
||||||
|
notes?: boolean
|
||||||
|
pricingModel?: boolean
|
||||||
invoice_id?: boolean
|
invoice_id?: boolean
|
||||||
good_id?: boolean
|
good_id?: boolean
|
||||||
service_id?: boolean
|
service_id?: boolean
|
||||||
@@ -955,13 +1091,16 @@ export type SalesInvoiceItemSelectScalar = {
|
|||||||
unit_price?: boolean
|
unit_price?: boolean
|
||||||
total_amount?: boolean
|
total_amount?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
|
discount?: boolean
|
||||||
|
notes?: boolean
|
||||||
|
pricingModel?: boolean
|
||||||
invoice_id?: boolean
|
invoice_id?: boolean
|
||||||
good_id?: boolean
|
good_id?: boolean
|
||||||
service_id?: boolean
|
service_id?: boolean
|
||||||
payload?: boolean
|
payload?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "unit_type" | "unit_price" | "total_amount" | "created_at" | "invoice_id" | "good_id" | "service_id" | "payload", ExtArgs["result"]["salesInvoiceItem"]>
|
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "unit_type" | "unit_price" | "total_amount" | "created_at" | "discount" | "notes" | "pricingModel" | "invoice_id" | "good_id" | "service_id" | "payload", ExtArgs["result"]["salesInvoiceItem"]>
|
||||||
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||||
@@ -982,6 +1121,9 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
unit_price: runtime.Decimal
|
unit_price: runtime.Decimal
|
||||||
total_amount: runtime.Decimal
|
total_amount: runtime.Decimal
|
||||||
created_at: Date
|
created_at: Date
|
||||||
|
discount: runtime.Decimal
|
||||||
|
notes: string | null
|
||||||
|
pricingModel: $Enums.SalesInvoiceItemPricingModel
|
||||||
invoice_id: string
|
invoice_id: string
|
||||||
good_id: string | null
|
good_id: string | null
|
||||||
service_id: string | null
|
service_id: string | null
|
||||||
@@ -1364,6 +1506,9 @@ export interface SalesInvoiceItemFieldRefs {
|
|||||||
readonly unit_price: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
readonly unit_price: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
||||||
readonly total_amount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
readonly total_amount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
||||||
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
||||||
|
readonly discount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
||||||
|
readonly notes: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
|
readonly pricingModel: Prisma.FieldRef<"SalesInvoiceItem", 'SalesInvoiceItemPricingModel'>
|
||||||
readonly invoice_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly invoice_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
readonly good_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly good_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
readonly service_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
readonly service_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ export type SalesInvoicePaymentCreateInput = {
|
|||||||
payment_method: $Enums.PaymentMethodType
|
payment_method: $Enums.PaymentMethodType
|
||||||
paid_at: Date | string
|
paid_at: Date | string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutSales_invoice_paymentsInput
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutPaymentsInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentUncheckedCreateInput = {
|
export type SalesInvoicePaymentUncheckedCreateInput = {
|
||||||
@@ -301,7 +301,7 @@ export type SalesInvoicePaymentUpdateInput = {
|
|||||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutSales_invoice_paymentsNestedInput
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { ApiProperty } from '@nestjs/swagger'
|
||||||
|
import { IsBoolean, IsNumber, IsString, MaxLength, MinLength } from 'class-validator'
|
||||||
|
|
||||||
|
export class CreateCustomerIndividualDto {
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
first_name: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
last_name: string
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
|
@MaxLength(10)
|
||||||
|
@MinLength(10)
|
||||||
|
@ApiProperty({ required: true, maxLength: 10, minLength: 10 })
|
||||||
|
national_code: number
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
|
@MaxLength(10)
|
||||||
|
@MinLength(10)
|
||||||
|
@ApiProperty({ required: true, maxLength: 10, minLength: 10 })
|
||||||
|
postal_code: number
|
||||||
|
|
||||||
|
@IsBoolean()
|
||||||
|
@ApiProperty({ required: false, default: false })
|
||||||
|
is_favorite: boolean
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
|
@ApiProperty({ required: false })
|
||||||
|
economic_code: number
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import { ApiProperty } from '@nestjs/swagger'
|
||||||
|
import { IsNumber, IsString, MaxLength, MinLength } from 'class-validator'
|
||||||
|
|
||||||
|
export class CreateCustomerLegalDto {
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
company_name: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
economic_code: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
registration_number: string
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
|
@MaxLength(10)
|
||||||
|
@MinLength(10)
|
||||||
|
@ApiProperty({ required: true, maxLength: 10, minLength: 10 })
|
||||||
|
postal_code: number
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
import { IsEnum, IsNumber, IsObject, IsOptional, IsString } from 'class-validator'
|
import { IsEnum, IsNumber, IsObject, IsOptional, IsString } from 'class-validator'
|
||||||
import type { SaleInvoicePayload } from '../../../common/interfaces/sale-invoice-payload'
|
import type { SaleInvoiceStandardPayload } from '../../../common/interfaces/sale-invoice-payload'
|
||||||
import { UnitType } from '../../../generated/prisma/enums'
|
import { SalesInvoiceItemPricingModel, UnitType } from '../../../generated/prisma/enums'
|
||||||
|
|
||||||
export class CreateSalesInvoiceItemDto {
|
export class CreateSalesInvoiceItemDto {
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@@ -34,10 +34,20 @@ export class CreateSalesInvoiceItemDto {
|
|||||||
@ApiProperty({ enum: Object.values(UnitType) })
|
@ApiProperty({ enum: Object.values(UnitType) })
|
||||||
unit_type: UnitType
|
unit_type: UnitType
|
||||||
|
|
||||||
|
@IsEnum(SalesInvoiceItemPricingModel)
|
||||||
|
@ApiProperty({ enum: Object.values(SalesInvoiceItemPricingModel) })
|
||||||
|
@IsOptional()
|
||||||
|
pricingModel: SalesInvoiceItemPricingModel
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsObject()
|
@IsObject()
|
||||||
@ApiProperty({ required: false, default: {} })
|
@ApiProperty({ required: false, default: {} })
|
||||||
payload?: SaleInvoicePayload
|
payload?: SaleInvoiceStandardPayload
|
||||||
|
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: false, default: '' })
|
||||||
|
notes: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdateSalesInvoiceItemDto extends PartialType(CreateSalesInvoiceItemDto) {}
|
export class UpdateSalesInvoiceItemDto extends PartialType(CreateSalesInvoiceItemDto) {}
|
||||||
|
|||||||
@@ -1,24 +1,62 @@
|
|||||||
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
import { ArrayMinSize, IsNumber, IsOptional, IsString } from 'class-validator'
|
import {
|
||||||
|
ArrayMinSize,
|
||||||
|
IsDateString,
|
||||||
|
IsEnum,
|
||||||
|
IsNumber,
|
||||||
|
IsObject,
|
||||||
|
IsOptional,
|
||||||
|
IsString,
|
||||||
|
} from 'class-validator'
|
||||||
|
import type { CustomerIndividual, CustomerLegal } from '../../../generated/prisma/client'
|
||||||
|
import { CustomerType } from '../../../generated/prisma/enums'
|
||||||
import { CreateSalesInvoiceItemDto } from '../../sales-invoice-items/dto/create-sales-invoice-item.dto'
|
import { CreateSalesInvoiceItemDto } from '../../sales-invoice-items/dto/create-sales-invoice-item.dto'
|
||||||
|
|
||||||
export class CreateSalesInvoiceDto {
|
export class CreateSalesInvoiceDto {
|
||||||
@IsString()
|
|
||||||
@ApiProperty()
|
|
||||||
code: string
|
|
||||||
|
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@ApiProperty({ required: true, default: 0 })
|
@ApiProperty({ required: true, default: 0 })
|
||||||
total_amount: number
|
total_amount: number
|
||||||
|
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
@IsDateString({ strict: true }, { message: 'invoice_date must be a valid ISO-8601 string' })
|
||||||
|
invoice_date: Date
|
||||||
|
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
@IsObject()
|
||||||
|
payments: {
|
||||||
|
terminal: number
|
||||||
|
cash: number
|
||||||
|
set_off: number
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
|
@ArrayMinSize(1)
|
||||||
|
items: CreateSalesInvoiceItemDto[]
|
||||||
|
|
||||||
|
@ApiProperty({ required: false })
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
notes?: string
|
||||||
|
|
||||||
|
@ApiProperty({ required: true, default: CustomerType.UNKNOWN })
|
||||||
|
@IsEnum(CustomerType)
|
||||||
|
customer_type: CustomerType
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
@ApiProperty({ required: false })
|
@ApiProperty({ required: false })
|
||||||
customer_id?: string
|
customer_id?: string
|
||||||
|
|
||||||
@ApiProperty()
|
@ApiProperty({ required: false })
|
||||||
@ArrayMinSize(1)
|
@IsOptional()
|
||||||
items: CreateSalesInvoiceItemDto[]
|
@IsObject()
|
||||||
|
customer?:
|
||||||
|
| {
|
||||||
|
first_name: string
|
||||||
|
last_name: string
|
||||||
|
}
|
||||||
|
| CustomerIndividual
|
||||||
|
| CustomerLegal
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdateSalesInvoiceDto extends PartialType(CreateSalesInvoiceDto) {}
|
export class UpdateSalesInvoiceDto extends PartialType(CreateSalesInvoiceDto) {}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
||||||
|
import { reqTokenPayload } from '../auth/current-user.decorator'
|
||||||
|
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
||||||
import { SalesInvoicesService } from './sales-invoices.service'
|
import { SalesInvoicesService } from './sales-invoices.service'
|
||||||
|
|
||||||
@Controller('sales_invoices')
|
@Controller('sales_invoices')
|
||||||
@@ -16,7 +18,7 @@ export class SalesInvoicesController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Post()
|
@Post()
|
||||||
create(@Body() data: any) {
|
create(@Body() data: CreateSalesInvoiceDto, @reqTokenPayload() account) {
|
||||||
return this.salesInvoicesService.create(data)
|
return this.salesInvoicesService.create(data, account)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,38 @@
|
|||||||
import { Injectable } from '@nestjs/common'
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import { ResponseMapper } from '../../common/response/response-mapper'
|
||||||
|
import type { CustomerIndividual, CustomerLegal } from '../../generated/prisma/client'
|
||||||
|
import { CustomerType, PaymentMethodType } from '../../generated/prisma/enums'
|
||||||
|
import { PrismaService } from '../../prisma/prisma.service'
|
||||||
|
import { CreateSalesInvoiceDto } from './dto/create-sales-invoice.dto'
|
||||||
|
|
||||||
|
// Define type guard for CustomerIndividual
|
||||||
|
function isCustomerIndividual(customer: any): customer is CustomerIndividual {
|
||||||
|
console.log(
|
||||||
|
customer &&
|
||||||
|
typeof customer.first_name === 'string' &&
|
||||||
|
typeof customer.last_name === 'string',
|
||||||
|
)
|
||||||
|
|
||||||
|
return (
|
||||||
|
customer &&
|
||||||
|
typeof customer.first_name === 'string' &&
|
||||||
|
typeof customer.last_name === 'string'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Define type guard for CustomerLegal
|
||||||
|
function isCustomerLegal(customer: any): customer is CustomerLegal {
|
||||||
|
return (
|
||||||
|
customer &&
|
||||||
|
typeof customer.company_name === 'string' &&
|
||||||
|
typeof customer.registration_number === 'string'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SalesInvoicesService {
|
export class SalesInvoicesService {
|
||||||
|
constructor(private prisma: PrismaService) {}
|
||||||
|
|
||||||
findAll() {
|
findAll() {
|
||||||
// TODO: Implement fetching all sales invoices
|
// TODO: Implement fetching all sales invoices
|
||||||
return []
|
return []
|
||||||
@@ -12,8 +43,152 @@ export class SalesInvoicesService {
|
|||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
create(data: any) {
|
async create(data: CreateSalesInvoiceDto, account) {
|
||||||
// TODO: Implement sales invoice creation
|
data.invoice_date = new Date(data.invoice_date).toISOString() as any
|
||||||
return data
|
|
||||||
|
const salesInvoice = await this.prisma.$transaction(async $tx => {
|
||||||
|
const payments = Object.entries(data.payments)
|
||||||
|
.filter(([_, value]) => value > 0 && PaymentMethodType[_.toUpperCase()])
|
||||||
|
.map(([key, value]) => {
|
||||||
|
return {
|
||||||
|
amount: value,
|
||||||
|
payment_method: key.toLocaleUpperCase() as PaymentMethodType,
|
||||||
|
paid_at: data.invoice_date,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const totalPayments = payments.reduce((sum, payment) => sum + payment.amount, 0)
|
||||||
|
if (totalPayments !== data.total_amount) {
|
||||||
|
throw new Error('مبلغ پرداختی باید برابر با مبلغ کل فاکتور باشد.')
|
||||||
|
}
|
||||||
|
|
||||||
|
const { customer_id, customer_type, customer, ...invoiceData } = data
|
||||||
|
let newCustomerId: string | null = customer_id || null
|
||||||
|
if (customer_id) {
|
||||||
|
} else if (
|
||||||
|
customer_type === CustomerType.INDIVIDUAL &&
|
||||||
|
isCustomerIndividual(customer)
|
||||||
|
) {
|
||||||
|
let customerIndividual = await $tx.customerIndividual.findUnique({
|
||||||
|
where: {
|
||||||
|
complex_id_national_id: {
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
national_id: customer.national_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (customerIndividual) {
|
||||||
|
await $tx.customerIndividual.update({
|
||||||
|
where: {
|
||||||
|
complex_id_national_id: {
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
national_id: customer.national_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
...customer,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
const customerIndividual = await $tx.customerIndividual.create({
|
||||||
|
data: {
|
||||||
|
...customer,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
const createdCustomer = await $tx.customer.create({
|
||||||
|
data: {
|
||||||
|
type: CustomerType.INDIVIDUAL,
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
customerIndividuals: {
|
||||||
|
connect: {
|
||||||
|
customer_id: customerIndividual.customer_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (createdCustomer && createdCustomer.id) {
|
||||||
|
newCustomerId = createdCustomer.id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (data.customer_type === CustomerType.LEGAL && isCustomerLegal(customer)) {
|
||||||
|
let customerLegal = await $tx.customerLegal.findUnique({
|
||||||
|
where: {
|
||||||
|
complex_id_registration_number: {
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
registration_number: customer.registration_number,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (customerLegal) {
|
||||||
|
await $tx.customerLegal.update({
|
||||||
|
where: {
|
||||||
|
complex_id_registration_number: {
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
registration_number: customer.registration_number,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
...customer,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
const customerLegal = await $tx.customerLegal.create({
|
||||||
|
data: {
|
||||||
|
...customer,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
const createdCustomer = await $tx.customer.create({
|
||||||
|
data: {
|
||||||
|
type: CustomerType.LEGAL,
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
customerIndividuals: {
|
||||||
|
connect: {
|
||||||
|
customer_id: customerLegal.customer_id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
if (createdCustomer && createdCustomer.id) {
|
||||||
|
newCustomerId = createdCustomer.id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const salesInvoice = await $tx.salesInvoice.create({
|
||||||
|
data: {
|
||||||
|
...invoiceData,
|
||||||
|
account_id: account.account_id,
|
||||||
|
customer_id: newCustomerId,
|
||||||
|
total_amount: data.total_amount,
|
||||||
|
code: 'INV-' + Date.now(),
|
||||||
|
complex_id: account.complex_id,
|
||||||
|
items: {
|
||||||
|
createMany: {
|
||||||
|
data: data.items.map(item => ({
|
||||||
|
good_id: item.good_id,
|
||||||
|
quantity: item.quantity,
|
||||||
|
unit_price: item.unit_price,
|
||||||
|
total_amount: item.total_amount,
|
||||||
|
payload: item.payload,
|
||||||
|
unit_type: item.unit_type,
|
||||||
|
pricing_model: item.pricingModel,
|
||||||
|
})),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
payments: {
|
||||||
|
createMany: {
|
||||||
|
data: payments,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
return salesInvoice
|
||||||
|
})
|
||||||
|
return ResponseMapper.create(salesInvoice)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user