vsoch / freegenes

FreeGenes BioNode with Django
https://vsoch.github.io/freegenes/
Mozilla Public License 2.0
2 stars 4 forks source link

Our shipment's status doesn't update when an international shippo shipment is attached to it #162

Closed hverdonk closed 4 years ago

hverdonk commented 4 years ago

Describe the bug When I import an international shipment and attach it to an existing order, the status of that order doesn't update, nor does it provide a button to mark the order as shipped.

To Reproduce Create a new order and attach an international shipment to it (the one to Ricardo is the one I used). Then, check the order's status.

Expected behavior The status should change to "Label Generated" and the option to "mark shipped" should be present.

If applicable, add versions and screenshots to help explain your problem.

vsoch commented 4 years ago

hmm that's not logical, it's definitely added:

            # Update the order
            order.user = self.request.user
            order.date_ordered = convert_time(shipment['object_created'])
            order.status = "Generating Label"
            order.label = label
            order.transaction = {"eta": None}

Can you point me to this order to look at?

hverdonk commented 4 years ago

Sure. It's this one: https://freegenes.dev/o/details/4033dea9-490f-48a6-805c-1ed607aa3f39

vsoch commented 4 years ago

Also we don't have a "Label Generated" status, we have "Generating Label." I think if you want to say it's generated, the next one is "Waiting to Ship" ?

hverdonk commented 4 years ago

Yep, that's what I meant ha ha

vsoch commented 4 years ago

okay let me change the status then, that might just be the issue.

hverdonk commented 4 years ago

Most likely. Thanks!

vsoch commented 4 years ago

okay updated - all look good now?

hverdonk commented 4 years ago

perfect, thank you!