fix some bugs from ghatreh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user