system76 / bottle

Protobuf messages in a bottle
GNU General Public License v3.0
9 stars 6 forks source link

add an order status enum #54

Closed btkostner closed 3 years ago

btkostner commented 3 years ago

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.