The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Interchange6::Schema::Result::OrderlinesShipping

ACCESSORS

orderlines_id

Foreign key constraint on "orderlines_id" in Interchange6::Schema::Result::Orderline via "orderline" relationship.

addresses_id

Foreign key constraint on "addresses_id" in Interchange6::Schema::Result::Address via "address" relationship.

shipments_id

Foreign key constraint on "shipments_id" in Interchange6::Schema::Result::Shipment via "shipment" relationship.

quantity

The partial or full quantity shipped for the related Interchange6::Schema::Result::Orderline in this shipment.

PRIMARY KEY

Each unique combination of "orderline" and "address" can have multiple related "shipments" in case an "orderline" needs to be shipped in more than one consignment.

RELATIONS

address

Type: belongs_to

Related object: Interchange6::Schema::Result::Address

orderline

Type: belongs_to

Related object: Interchange6::Schema::Result::Orderline

shipment

Type: belongs_to

Related object: Interchange6::Schema::Result::Shipment

METHODS

delete

Rows in this table should not be deleted so we overload "delete" in DBIx::Class::Row to throw an exception.

NOTE: if "delete" in DBIx::Class::ResultSet is called on a result set then this overloaded method is bypassed. Please consider using "delete_all" in DBIx::Class::ResultSet instead. Of course we also cannot prevent deletes performed outside DBIx::Class control.

partial_shipment

If "quantity" in Interchange6::Schema::Result::Orderline is greater than "quantity" then return 1. Otherwise returns 0.