Hide after-hours prices and skip stock checks when the shop is not a store.
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
isMetalCommodityGroup,
|
||||
usesQuantityTrade,
|
||||
} from '@/utils/productCategories'
|
||||
import { isProductTradingHoursOpen } from '@/utils/productTradeOpen'
|
||||
|
||||
/**
|
||||
* قیمتگیری محصول — همتراز با khaneghi_user:
|
||||
@@ -238,6 +239,10 @@ export function isProductPriceInactive(product?: Product | null): boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
if (!isProductTradingHoursOpen(product)) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (
|
||||
hasReferenceReadingMethod(product)
|
||||
&& !productUsesLastPriceIfZero(product)
|
||||
|
||||
Reference in New Issue
Block a user