NAME

Interchange6::Schema::Result::ShipmentRate

TABLE: shipment_rates

DESCRIPTION

In the context of shipment the rate is the value give for a shipping method based on desination zone_id and weight.

  • Flat rate shipping

    If min_weight and max_weight are set to 0 for a shipping method and zone flate rate will be assumed. If min_weight is set and max_weight is 0 max weight is assumed as infinite.

ACCESSORS

shipment_rates_id

data_type: 'integer'
is_auto_increment: 1
is_nullable: 0

zones_id

type: 'integer'
is_foreign_key: 1
is_nullable: 0

shipment_methods_id

data_type: 'integer'
is_foreign_key: 1
is_nullable: 0

min_weight

data_type: 'numeric'
default_value: 0.0
is_nullable: 0
size: [10,2]

max_weight

data_type: 'numeric'
default_value: 0.0
is_nullable: 0
size: [10,2]

price

data_type: 'numeric'
default_value: 0.0
is_nullable: 0
size: [10,2]

created

data_type: 'datetime'
set_on_create: 1
is_nullable: 0

last_modified

data_type: 'datetime'
set_on_create: 1
set_on_update: 1
is_nullable: 0

PRIMARY KEY

RELATIONS

zone

Type: belongs_to

Related object: Interchange6::Schema::Result::Zone

shipment_method

Type: belongs_to

Related object: Interchange6::Schema::Result::ShipmentMethod