Skip to content

feat: configurable minimum notice period before a supplier can request a shipment pause #469

Description

@shakurJJ

Summary

A supplier can request a shipment pause (request_shipment_pause) at any time with no minimum lead time, which lets a supplier stall a shipment on short notice right before a milestone deadline. This proposes an admin-configurable minimum notice period.

Proposed Behaviour

  • Admin sets a minimum notice period (in ledgers) between the current ledger and the next upcoming milestone deadline.
  • request_shipment_pause rejects the request if the shipment's next milestone deadline is closer than the configured notice period.
  • Default value preserves today's behaviour (no minimum notice) unless explicitly configured.

Acceptance Criteria

  • Admin can set/get the minimum pause notice period
  • Pause request within the notice window is rejected with a clear error
  • Pause request outside the notice window succeeds as today
  • Tests cover both paths

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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions