Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shipment identifier assignment in create shipment #683

Conversation

jacobshilitz
Copy link
Collaborator

This change corrects the assignment of the shipment identifier to use info.shipment_id instead of info.tracking_pin. This ensures that the shipment identifier is correctly set, allowing to cancel or refund of shipments.

This change corrects the assignment of the shipment identifier to use `info.shipment_id` instead of `info.tracking_pin`. This ensures that the shipment identifier is correctly set, allowing proper tracking and management of shipments.
Copy link
Member

@danh91 danh91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -49,7 +49,7 @@ def _extract_shipment(
carrier_name=settings.carrier_name,
carrier_id=settings.carrier_id,
tracking_number=info.tracking_pin,
shipment_identifier=info.tracking_pin,
shipment_identifier=info.shipment_id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shame on me for this 🤦🏿‍♂️. I was pretty sure this was using thee shipment_id 🤔.

Thanks

@danh91 danh91 changed the base branch from main to patch-2024.6.6 September 12, 2024 05:17
@danh91 danh91 merged commit f8d8d0d into karrioapi:patch-2024.6.6 Sep 12, 2024
1 of 2 checks passed
@danh91 danh91 mentioned this pull request Sep 12, 2024
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.

2 participants