Overview
TheDelivery class represents information about the delivery of goods or services in a business transaction. It includes details about delivery location, timing, quantities, parties involved, and tracking information. This component is commonly used in invoices, orders, and despatch advice documents.
Class Definition
Constructor Parameters
An identifier for this delivery
The quantity of items, child consignments, or shipments in this delivery
The actual date of delivery
The delivery address
The minimum quantity of items in this delivery
The maximum quantity of items in this delivery
The actual time of delivery
The latest date of delivery allowed by the buyer
The latest time of delivery allowed by the buyer
An identifier used for approval of access to delivery locations (e.g., port terminals)
The delivery tracking ID (for transport tracking)
The delivery location (more detailed than address)
An alternative delivery location
The period requested for delivery
The period promised for delivery
The period estimated for delivery
The party responsible for delivering the goods
The party to whom the goods are delivered
Parties to be notified of this delivery
The despatch (pickup) associated with this delivery
The shipment being delivered
Usage Examples
When using delivery information at both document level and line level, the line-level delivery information takes precedence for that specific line. Document-level delivery typically represents the primary or default delivery.
Delivery Timing
The Delivery class supports various timing fields:- actualDeliveryDate/Time: When delivery actually occurred (past tense)
- latestDeliveryDate/Time: Deadline for delivery (future tense)
- requestedDeliveryPeriod: When customer wants delivery
- promisedDeliveryPeriod: When supplier promises delivery
- estimatedDeliveryPeriod: Estimated delivery timeframe
Related Components
- Address - For delivery addresses
- Party - For carrier and delivery parties
- InvoiceLine - Can include line-level delivery
- Invoice - Can include document-level delivery
- DeliveryLocation - For detailed location information
- Despatch - For pickup/despatch information
- ShipmentType - For shipment details
Best Practices
- Tracking IDs: Always include tracking IDs when available for shipment visibility
- Accurate Dates: Ensure delivery dates reflect actual delivery, not invoice dates
- Complete Addresses: Provide complete delivery addresses including postal codes
- Notify Parties: Include all parties that need delivery notifications
- Quantities: Delivery quantities should match or be less than invoiced quantities
- Carrier Information: Include carrier details for shipment tracking and accountability