-
Notifications
You must be signed in to change notification settings - Fork 2
Milestone Tracking
Milestone Tracking provides a visual timeline of key operational stages for Jobs, Shipments, and Declarations. It complements the Documents tab by surfacing execution progress in the Dashboard, with document alerts rendered alongside the milestone flow.
| Module | DocType | Milestone Model | Current State |
|---|---|---|---|
| Air Freight | Air Shipment | Job Milestone (Logistics Milestone) | ✅ Implemented – milestone_html, get_milestone_html
|
| Sea Freight | Sea Shipment | Job Milestone (Logistics Milestone) | ✅ Implemented – milestone_html, get_milestone_html
|
| Transport | Transport Job | Job Milestone (Logistics Milestone) | milestone_html + get_milestone_html
|
| Warehousing | Warehouse Job | Custom (from job item postings) | ✅ Implemented – operation-based flow (Start → Received → Putaway → Pick → Release → End) |
| Customs | Declaration | Job Milestone (Logistics Milestone) | ❌ Not implemented – needs milestones_tab, milestone_html, get_milestone_html |
| Logistics | General Job | Job Milestone (Logistics Milestone) | ❌ Not implemented – optional for multi-leg jobs |
| Field | Type | Description |
|---|---|---|
job_type |
Link → DocType | Air Shipment, Sea Shipment, Transport Job, Declaration |
job_number |
Dynamic Link | Reference to parent document |
milestone |
Link → Logistics Milestone | Master milestone (e.g., SF-GATE-IN, SF-LOADED) |
status |
Select | Planned, Started, Completed |
planned_start |
Datetime | Planned start |
planned_end |
Datetime | Planned end |
actual_start |
Datetime | Actual start (captured via capture_actual_start) |
actual_end |
Datetime | Actual end (captured via capture_actual_end) |
| Field | Type | Description |
|---|---|---|
code |
Data | Short code (e.g., SF-GATE-IN, AF-DEPARTED) |
description |
Data | Display name |
air_freight |
Check | Applicable to Air Freight |
sea_freight |
Check | Applicable to Sea Freight |
transport |
Check | Applicable to Transport |
Sea Freight (Logistics Milestone):
- Booking Received → Booking Confirmed → Cargo Not Ready → Pick-Up Scheduled → Gate-In at Port → Customs Clearance (Export) → Loaded on Vessel → Departed → In-Transit → Arrived → Discharged → Customs Clearance (Import) → Available for Pick-Up → Out for Delivery → Delivered → Closed
Air Freight: Same conceptual flow; milestones filtered by air_freight=1.
Transport: Pick-Up → In-Transit → Delivered; milestones filtered by transport=1.
Declaration (Customs): Declaration-specific flow:
- Submitted → Under Review → Customs Clearance (Approved) → Released / Rejected
-
Milestones Tab – Add
milestones_tabwithmilestone_html(HTML field) on each target doctype. -
get_milestone_html() – Server method that:
- Fetches document alerts (missing, overdue, expiring) and renders them at top
- Loads Job Milestone rows for the parent
- Builds visual flow (origin → destination with milestone cards)
- Renders map/timeline with status indicators (Planned / Started / Completed)
-
Client Script – On form load and when origin/destination or key dates change, call
get_milestone_htmland refreshmilestone_htmlwrapper.
| Phase | Task | Doctypes | Status |
|---|---|---|---|
| 1 | Add milestones_tab, milestone_html, get_milestone_html
|
Transport Job | [ ] |
| 2 | Add milestones_tab, milestone_html, get_milestone_html
|
Declaration | [ ] |
| 3 | Extend Logistics Milestone with customs flag; add Declaration milestones |
Logistics Milestone | [ ] |
| 4 | Extend Job Milestone link filter to include Declaration | Job Milestone | [ ] |
| 5 | Add milestone view to General Job (optional) | General Job | [ ] |
Declaration has a different lifecycle (submission → review → clearance). Options:
-
(A) Use Logistics Milestone with new
customsflag and codes (e.g., DEC-SUBMITTED, DEC-UNDER-REVIEW, DEC-CLEARED). -
(B) Derive milestone status from Declaration fields (
submission_date,approval_date,actual_clearance_date,rejection_date) and render a simplified flow without Job Milestone rows.
Recommendation: (A) for consistency; Declaration can optionally create Job Milestone rows for audit trail and manual overrides.
Warehouse Job uses a different model: milestones are derived from posted operations on job items (staging_posted, receiving_posted, putaway_posted, pick_posted, release_posted). No Job Milestone rows; flow is Start → Received → Putaway → Pick → Release → End (or variants by job type). This remains as-is; no Job Milestone integration needed.
Document Version: 1.0
Last Updated: 2025-02-22
Getting Started
- Getting Started
- Recent Platform Updates
- CargoNext v1 — Release Notes
- CargoNext v1 — Astraea Press Release
- Document Management
- Milestone Tracking
- Customer Portal
Setup and Settings
- Logistics Settings
- Credit Management
- Default Details and Relationships
- Sea Freight Settings
- Air Freight Settings
- Transport Settings
- Warehouse Settings
- Customs Settings
Sea Freight
- Sea Freight Module
- Sea Booking
- Sea Shipment
- Sea Consolidation
- Master Bill
- Shipper
- Consignee
- Container Type
- Container Management
Air Freight
Transport
- Transport Module
- Transport Order
- Transport Job
- Transport Consolidation
- Transport Leg
- Transport Plan
- Run Sheet
- Proof of Delivery
- Transport Template
- Load Type
- Transport Order — Inter-module Field Copy
Customs
Warehousing
- Warehousing Module
- Inbound Order
- Release Order
- Transfer Order
- VAS Order
- Stocktake Order
- Warehouse Job
- Warehouse Contract
- Gate Pass
- Periodic Billing
- Storage Location
- Handling Unit Type
Pricing Center
- Sales Quote
- Sales Quote — Separate Billings and Internal Job
- Change Request
- Sales Quote – Calculation Method
Job Management
- Job Management Module
- Revenue Recognition Policy — Accounts, Dates, and Charges
- Proforma GL Entries
- WIP and Accrual Reversal on Invoicing
Sustainability
Intercompany
Special Projects
Pages
Features
Reports
Glossary