Customs Import Declaration
An import declaration lodged by a customs broker for a 40-foot container arriving by sea, filled in on screen and kept with the commercial invoice.
- Parties, transport and arrival in numbered boxes. As on a single administrative document: consignor, consignee and declarant, then the mode of transport, vessel, port of entry and arrival date as form fields, beside the bill of lading, container, seal and packages.
- One grid down the page. Every box sits on the same grid, so the rules of the parties, the transport, the goods and the charges line up.
- Goods with their commodity codes. Driven by
source: description, HS code, origin, gross and net weight and invoice value for each item. - The customs value worked out. Invoice value, freight and insurance build up to the CIF value, then import duty and import VAT with their rates, the duty account and the total payable.
- A statement filled in as a sentence. On the second page, the declarant's name, capacity and duty account are form fields inside the legal statement, followed by the documents held as checkboxes, place and date, and an empty signature field.
- A box for official use. Release channel, examining officer and badge number, with the release stamp drawn as a component.
- Plus the service's crest beside the title, and a footer with the form number, live page numbers and the declaration number as a Code 128 on every page.
Features used: PDF/A-2b conformance, columns, tables, SVG, barcodes (code128), form fields (checkbox, choice, datepicker, radio, text), empty signature fields, data binding, components, headers and footers
- Output
- Template
- Data
How it's built
A numbered box
Each box is a table cell in the box style, a 0.6 pt navy border. The box number is an inline box, [span, boxNum], whose style gives it a navy background and a clipPath of ellipse() that cuts it to an oval. The box title follows in small bold type, then, after [br], the value or the fields. The transport mode is four radio tags sharing the group transportMode, the first one selected:
{
"td": "[fontsize, 7][span, boxNum]25[/span] [color, #14213D][b]MODE OF TRANSPORT AT THE BORDER[/b][/color][/fontsize][br][radio, modeSea, transportMode, true, 11|11] Sea [radio, modeAir, transportMode, false, 11|11] Air [radio, modeRoad, transportMode, false, 11|11] Road [radio, modeRail, transportMode, false, 11|11] Rail",
"style": "box"
}
{
"styles": {
"boxNum": {
"color": "#FFFFFF",
"fontWeight": "bold",
"backgroundColor": "#14213D",
"padding": "0.5 2.5",
"clipPath": "ellipse()"
}
}
}
The boxes for official use take boxNumOfficial, the same oval in violet. In the goods table the same span numbers the column headings, and the table takes source $data.items, one row per item, with its header repeated by the tableRepeating style (Data-driven tables).
Fields inside a sentence
The declarant's statement is one paragraph with three field tags in its text, so the fields sit in the line where the words need them. The statement style opens its lines up with a lineHeight of 1.85 (Field types).
{
"p": "I, [textfield, declarantName, $data.declarant.name, 150|15], acting as [choicefield, capacity, direct representative|indirect representative|the importer, 0, 140|15] of the importer named in box 8, declare that the particulars in this declaration are true and complete, that the goods are correctly classified and valued, and that I hold the documents listed below. I authorise the service to debit duty account [textfield, dutyAccount, $data.declarant.dutyAccount, 110|15] with the amount payable.",
"style": "statement"
}
The release stamp
The office stamp is the customs-entry-stamp component, placed by use inside an svg and sized there by x, y, width and height. The document passes four params and leaves ink at its default, violet (Components).
{
"svg": {
"width": 150,
"height": 86,
"viewBox": [150, 86],
"title": "Office stamp of the customs office of entry",
"children": [
{
"use": {
"name": "customs-entry-stamp",
"x": 4,
"y": -28,
"width": 142,
"height": 142,
"params": {
"authority": "$data.authority.short",
"action": "RELEASED",
"date": "$data.declaration.lodged",
"port": "PORT AVENOR"
}
}
}
]
}
}