|
NAMEInterchange6::Schema::Result::PriceModifierDESCRIPTIONUse cases:
ACCESSORSprice_modifiers_idPrimary key.skuFK on "sku" in Interchange6::Schema::Result::Product.quantityMinimum quantity at which price modifier applies (tier pricing).Defaults to 0. roles_idFK on "roles_id" in Interchange6::Schema::Result::Role.Can be used for role-based pricing. Is nullable. pricePrice.discountPercent rate of discount. This is an alternative to setting "price" directly.NOTE: It is not possible to create a new "PriceModifier" record with both "price" and </percent> set in new/insert. When "discount" is set or updated the value of "price" will be updated accordingly based on the related "price" in Interchange6::Schema::Result::Product.This is done using the method "discount_changed". If related "price" in Interchange6::Schema::Result::Product changes then the modified "price" will be updated. Is nullable. start_dateThe first date from which this modified price is valid. Automatic inflation/deflation to/from DateTime.Is nullable. end_dateThe last date on which this modified price is valid. Automatic inflation/deflation to/from DateTime.Is nullable. RELATIONSroleType: belongs_toRelated object: Interchange6::Schema::Result::Role productType: belongs_toRelated object: Interchange6::Schema::Result::Product METHODSinsertThrow exception if both "price" and "discount" have been supplied.If "discount" has been supplied then set "price" based on related <Interchange6::Schema::Result::Product/price>. discount_changedCalled when "discount" is updated.
Visit the GSP FreeBSD Man Page Interface. |