fix(admin): auto-sync stockStatus to OUT_OF_STOCK when packageSize is zero, preserve zero packageSize
Deploy Canina / deploy (push) Failing after 57s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
devops committed 2026-10-12 18:45:18 +00:00
1 parent cae22ff7c9
commit deea1016ab
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -552,7 +552,7 @@ export class AdminService {
data.wholesalePrice !== undefined ? data.wholesalePrice : null,
priceDisplay: data.priceDisplay || '',
unit: data.unit || 'عدد',
packageSize: data.packageSize || 100,
packageSize: data.packageSize !== undefined ? data.packageSize : 100,
dosageLogic: data.dosageLogic || '',
dosageConfig:
Object.keys(dosageConfigData).length > 0