IC
Size: a a a
IC
AH
AH
IC
IC
IC
IC
IC
A
DS
return!
//check manufacturer which is region specific
checkManufacturerCatalog priceControlsManufacturerCatalog offers maybeMarginTarget
|> Option.orElseWith ^fun _ -> maybe {
let retailSkuCategory: CategoryId = int retailSku.category
let! merchants = approvedCompetitiveSourcesMap.TryFind regionId
let approvedCompOffers =
offers
|> Array.filter ^fun offer -> merchants.Contains offer.merchantId ||
offer.source = OfferSource.Indirect
let directApprovedCompOffers =
approvedCompOffers
|> Array.filter ^fun offer -> offer.source = OfferSource.Merchant ||
offer.source = OfferSource.Jet
return!
//check brand override which is region specific
checkBrandOverride priceControlBrandRules taxonomyItems brandOption offers approvedCompOffers directApprovedCompOffers retailSkuCategory maybeMarginTarget
////check category override which is region specific
|> Option.orElseWith ^fun _ -> checkCategoryOverride priceControlCategoryRules taxonomyItems offers approvedCompOffers directApprovedCompOffers retailSkuCategory maybeMarginTarget
////check other overrides which is region specific
|> Option.orElseWith ^fun _ -> checkOtherSources priceControlDefaultRule isOnePNode approvedCompOffers directApprovedCompOffers maybeMarginTarget
}
}
|> tuple2 regionId
|> Map.ofSeq
AH
AH
IC
A
DS
DS
DS
DS
IC
IC