Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Name the carrier service on the fulfillment card
Damian Legawiecf98d78d83e2f
diff --git a/packages/dashboard/src/components/spree/orders/fulfillments-card.tsx b/packages/dashboard/src/components/spree/orders/fulfillments-card.tsxindex 45032d60f1..c39ff944bd 100644--- a/packages/dashboard/src/components/spree/orders/fulfillments-card.tsx+++ b/packages/dashboard/src/components/spree/orders/fulfillments-card.tsx@@ -411,6 +411,9 @@ function FulfillmentRow({ order, fulfillment }: { order: Order; fulfillment: Ful// Confirming receipt is the merchant's next move on a parcel that has gone// out, so it sits in the card rather than behind the menu. Adding tracking// joins it as the primary action while the number is still missing.+ const selectedRate = (fulfillment.delivery_rates ?? []).find(+ (rate) => rate.id === fulfillment.selected_delivery_rate_id,+ )const deliverable = CAN_MARK_DELIVERED.includes(fulfillment.status)const trackable = deliverable && !fulfillment.tracking@@ -500,7 +503,13 @@ function FulfillmentRow({ order, fulfillment }: { order: Order; fulfillment: Ful{(fulfillment.delivery_method || Number.parseFloat(fulfillment.cost) > 0) && (<div className="flex items-center justify-between text-sm p-3 border-b"><span className="text-muted-foreground">- {fulfillment.delivery_method?.name ?? t('admin.pages.orders.detail.no_delivery_method')}+ {/* The selected rate names the carrier service that actually+ carries this parcel ("USPS GroundAdvantage"); the method is+ the account it was quoted through ("EasyPost"), which one+ carrier method fans out into many services. */}+ {selectedRate?.name ??+ fulfillment.delivery_method?.name ??+ t('admin.pages.orders.detail.no_delivery_method')}</span><span>{fulfillment.display_cost}</span></div>