Skip to content

Carriers and service levels for shipping methods#6

Closed
Senjai wants to merge 16 commits intobonobos:masterfrom
Senjai:bonobos_carriers
Closed

Carriers and service levels for shipping methods#6
Senjai wants to merge 16 commits intobonobos:masterfrom
Senjai:bonobos_carriers

Conversation

@Senjai
Copy link
Copy Markdown

@Senjai Senjai commented Jan 22, 2016

Companion PR to solidusio#730

philbirt and others added 14 commits December 18, 2015 11:15
There's no behavior change to this. It allows subclasses
to easily override how to determine the user.
When a stock transfer already has a tracking number, the value was being overridden by the default value of the ship method.
… viewable stock locations.

When given the stock transfer display or stock transfer management
permissions, there is a dropdown in admin/stock locations to filter by
stock locations, which was filled by the ability to transfer_to or
transfer_from a stock location. This change allows people with the stock
transfer permission sets to use that feature of stock transfers without
having to also have the ability to transfer_to or transfer_from a stock
location.
* Ability to cancel a unit after it has been marked shipped
* Easy way to reimburse units after Order has been completed
This is causing errors in our builds:

Asset was not declared to be precompiled in production.

and

NoMethodError: undefined method `register_engine' for nil:NilClass
Same thing as 5988804.
This was making api, sample, and core specs fail.
The main impetus of this is Tulip in which the guides have a much more
non-linear approach to creating an order, but the same problem exists
through the web client too.

Other approaches have been tried, but lets try this within the
Estimator itself. An extra side-effect of this is that we don't
delete shipments in Order#ensure_updated_shipments so that's poorly
named now, but it also raises a question of why it's called when it
is. This means a shipment will stick with an order if created before we
reach the "delivery" state of the order. Upon transition into "delivery"
then #created_proposed_shipments gets called to ensure they're correct.
The new logic in the Estimator now will re-select any prior shipping
method/rate selection the customer had previously made.
preserve shipping method when shipments change
@Senjai Senjai changed the title Bonobos carriers Carriers and service levels for shipping methods Jan 22, 2016
When we're dealing with a shipping method, we have no formal way of
adding additional information that would be useful for fulfillment
purposes.

We can add an "internal" name to the shipping method, but that would
require pattern matching to get any useful information from. Often, in
most fulfillment scenarios, we have a desire to know _exactly_ what
carrier and service level a specific shipping method is representative
of.

Given a shipment I can then infer that it should be shipped with UPS one
day shipping by introspecting on the methods' carrier and service_level
columns as necessary.

This is optional as it stands, but validations can be added in stores as
required for complex fulfillment scenarios.
Allows users to set service levels and carriers for shipping methods on
the backend.
@Senjai
Copy link
Copy Markdown
Author

Senjai commented Jan 22, 2016

Wrong target branch

@Senjai Senjai closed this Jan 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants