Sin descripción

seq.txt 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @startuml
  2. title Request Pickup (Fast Path)
  3. actor "Factory Officer" as FO
  4. participant "Public Site (FE)" as Web
  5. participant "Backend (Django)" as API
  6. actor "Staff (Web Admin)" as Staff
  7. actor Driver
  8. participant "Weigh Station" as Scale
  9. participant Billing
  10. FO -> Web: Open "Sell Scrap" (Request Pickup)
  11. Web --> FO: Show form (materials, qty, photos, address, time)
  12. FO -> Web: Submit form (+photos)
  13. Web -> API: POST /pickup-request
  14. API -> API: Create Lead (org, details)
  15. API --> Staff: Notify (inbox/email)
  16. Staff -> API: Create/attach Customer + Site
  17. Staff -> API: Create PickupOrder (status=requested)
  18. Staff -> API: Schedule + Assign Driver
  19. API --> FO: Confirmation (schedule)
  20. Driver -> FO: Arrive and collect
  21. Driver -> Scale: Weigh materials
  22. Scale -> API: Record WeighTicket + lines
  23. API -> Billing: Generate Invoice or Payout
  24. Billing --> FO: Invoice/Payout issued
  25. FO -> Billing: Pay / Receive funds
  26. API -> API: Mark Pickup completed
  27. @enduml
  28. @startuml
  29. title Get Bids (Marketplace Path)
  30. actor "Factory Officer" as FO
  31. participant "Public Site (FE)" as Web
  32. participant "Backend (Django)" as API
  33. actor "Staff (Web Admin)" as Staff
  34. actor "Recycler(s)" as Rec
  35. actor Driver
  36. participant "Weigh Station" as Scale
  37. participant Billing
  38. FO -> Web: "Sell Scrap" → Get Bids
  39. Web --> FO: Listing form (title, materials, qty, photos, reserve, ends)
  40. FO -> Web: Submit request
  41. Web -> API: POST listing-request
  42. API -> API: Create Draft ScrapListing (or Lead: listing_request)
  43. Staff -> API: Review + Publish (public or invite-only)
  44. API --> Rec: Listing visible / invites sent
  45. Rec -> API: Place Bid(s)
  46. Staff -> API: Close listing at end time
  47. Staff -> API: Award winning bid
  48. API -> API: Create PickupOrder from award
  49. Driver -> FO: Collect materials
  50. Driver -> Scale: Weigh materials
  51. Scale -> API: Record WeighTicket + lines
  52. API -> Billing: Generate Invoice or Payout
  53. Billing --> FO: Invoice/Payout issued
  54. API -> API: Mark Pickup completed
  55. @enduml