fix(pricing): auto-recalculate all products on financial settings save and support per-product custom rounding override
Deploy Canina / deploy (push) Successful in 47s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
parsa aghaei committed 2026-09-02 10:28:29 +03:30
1 parent ac15ece619
commit c4e4a336d8
17 files changed
+15685 -13745

No files matched your search

+8
View File
@@ -33,6 +33,14 @@ export class UpdatePricingSettingsDto {
@IsNumber()
@Min(0)
defaultWholesaleMarginPercent!: number;
@ApiPropertyOptional({
description: 'آیا قیمت تمام محصولات بر اساس فرمول جدید بلافاصله به‌روزرسانی شود؟',
default: true,
})
@IsOptional()
@IsBoolean()
applyToAllProducts?: boolean;
}
export class ApplyGlobalMarginsDto {
+13
View File
@@ -83,6 +83,19 @@ export class ProductDto {
@IsNumber()
wholesaleMarginPercent?: number;
@ApiPropertyOptional({ description: 'گام گرد کردن اختصاصی این محصول (اختیاری)' })
@IsOptional()
@IsNumber()
roundingStep?: number;
@ApiPropertyOptional({
description: 'جهت گرد کردن اختصاصی این محصول (اختیاری)',
enum: ['UP', 'DOWN', 'NEAREST'],
})
@IsOptional()
@IsString()
roundingMode?: string;
@ApiPropertyOptional({ description: 'نمایش متنی قیمت' })
@IsOptional()
@IsString()