This adds an order status field. I only included the STATUS_COMPLETE value for fully_shipped in the database, and STATUS_UNSPECIFIED for everything else. From this we can hit the Avalara CreateOrAdjustTransaction when ever an order gets updated from not :status_complete to :status_complete. Keeping in mind that this won't update anything that goes into return expecting that accounting will need to deal with that themselves (for now)
I named it STATUS_COMPLETE instead of STATUS_SHIPPED because it feels more accurate from an accounting perspective, an order can be complete without being "shipped", and just because "shipped" feels like it should be on individual products or packages or what ever we decide later down the road.
This adds an order status field. I only included the
STATUS_COMPLETE
value forfully_shipped
in the database, andSTATUS_UNSPECIFIED
for everything else. From this we can hit the Avalara CreateOrAdjustTransaction when ever an order gets updated fromnot :status_complete
to:status_complete
. Keeping in mind that this won't update anything that goes into return expecting that accounting will need to deal with that themselves (for now)I named it
STATUS_COMPLETE
instead ofSTATUS_SHIPPED
because it feels more accurate from an accounting perspective, an order can be complete without being "shipped", and just because "shipped" feels like it should be on individual products or packages or what ever we decide later down the road.