fix some bugs from ghatreh

This commit is contained in:
2026-09-13 16:32:37 +03:30
parent f6b1044a17
commit 6f725bc0ef
19 changed files with 219 additions and 106 deletions
+5
View File
@@ -234,6 +234,11 @@ export function getProductSellPrice(product?: Product | null): number {
return base - resolveProductCashFeeSellRial(product, base)
}
/** کارت فروشگاه: قیمت نمایشی صفر → «بدون قیمت» */
export function isProductWithoutDisplayPrice(product?: Product | null): boolean {
return getProductBuyPrice(product) <= 0
}
export function isProductPriceInactive(product?: Product | null): boolean {
if (!product) {
return true