feat: implement purchase receipt items management with create, update, find, and delete functionalities

feat: add purchase receipts management with create, update, find, and delete functionalities

feat: implement sales invoice items management with create, update, find, and delete functionalities

feat: add sales invoices management with create, update, find, and delete functionalities

feat: implement stock adjustments management with create, update, find, and delete functionalities

feat: add stock balance retrieval functionality

feat: implement stock movements management with create, update, find, and delete functionalities
This commit is contained in:
2025-12-09 13:59:07 +03:30
parent a782d61890
commit 807f6c2087
98 changed files with 26109 additions and 501 deletions
@@ -0,0 +1,47 @@
import { Type } from 'class-transformer'
import {
IsBoolean,
IsDateString,
IsInt,
IsNumber,
IsOptional,
IsString,
} from 'class-validator'
export class CreateProductChargeDto {
@Type(() => Number)
@IsNumber()
count: number
@Type(() => Number)
@IsNumber()
fee: number
@Type(() => Number)
@IsNumber()
totalAmount: number
@IsOptional()
@IsBoolean()
@Type(() => Boolean)
isSettled?: boolean
@IsDateString()
buyAt: string
@IsOptional()
@IsString()
description?: string
@Type(() => Number)
@IsInt()
productId: number
@Type(() => Number)
@IsInt()
inventoryId: number
@Type(() => Number)
@IsInt()
supplierId: number
}
@@ -0,0 +1,54 @@
import { Type } from 'class-transformer'
import {
IsBoolean,
IsDateString,
IsInt,
IsNumber,
IsOptional,
IsString,
} from 'class-validator'
export class UpdateProductChargeDto {
@IsOptional()
@Type(() => Number)
@IsNumber()
count?: number
@IsOptional()
@Type(() => Number)
@IsNumber()
fee?: number
@IsOptional()
@Type(() => Number)
@IsNumber()
totalAmount?: number
@IsOptional()
@Type(() => Boolean)
@IsBoolean()
isSettled?: boolean
@IsOptional()
@IsDateString()
buyAt?: string
@IsOptional()
@IsString()
description?: string
@IsOptional()
@Type(() => Number)
@IsInt()
productId?: number
@IsOptional()
@Type(() => Number)
@IsInt()
inventoryId?: number
@IsOptional()
@Type(() => Number)
@IsInt()
supplierId?: number
}