Skip to content

get_analytics/ShipmentStatusSummary omit PartiallyDelivered/PartiallyRefunded counts #784

Description

@dinahmaccodes

Tier: Medium
Description: Analytics (types.rs:746-765) has fields for only 6 of 8 statuses. increment_status_count genuinely accumulates a PartiallyDelivered counter in storage, but it's never surfaced — total_shipments won't equal the sum of Analytics's per-status fields once any shipment reaches PartiallyDelivered.
Files: contracts/shipment/src/types.rs:746-765, contracts/shipment/src/lib.rs:1290-1330
Tasks:

  • Add PartiallyDelivered/PartiallyRefunded fields to Analytics/ShipmentStatusSummary and populate them from existing storage counters
    Acceptance Criteria:
  • Analytics's per-status fields sum to total_shipments for all 8 statuses

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions