GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Interchange6::Schema::Result::PriceModifier(3) User Contributed Perl Documentation Interchange6::Schema::Result::PriceModifier(3)

Interchange6::Schema::Result::PriceModifier

Use cases:
  • group pricing based on roles
  • tier pricing (volume discounts)
  • promotion/action pricing using "start_date" and "end_date"

Primary key.

FK on "sku" in Interchange6::Schema::Result::Product.

Minimum quantity at which price modifier applies (tier pricing).

Defaults to 0.

FK on "roles_id" in Interchange6::Schema::Result::Role.

Can be used for role-based pricing.

Is nullable.

Price.

Percent 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.

The first date from which this modified price is valid. Automatic inflation/deflation to/from DateTime.

Is nullable.

The last date on which this modified price is valid. Automatic inflation/deflation to/from DateTime.

Is nullable.

Type: belongs_to

Related object: Interchange6::Schema::Result::Role

Type: belongs_to

Related object: Interchange6::Schema::Result::Product

Throw 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>.

Called when "discount" is updated.
2016-07-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.