Task #18751
Updated by Redmine Admin about 2 months ago
When creating shipment costs, the system must auto-populate charges from **Pre-Defined Cost/Sales Charge Templates** based on the shipment’s context, including **Shipment Type (FCL/LCL)**, with an option to refresh to the latest template.
**a) New field:**
1. Field
| | Type | Description |
|--|------|-------------|
| Shipment Type | Dropdown (single select) | Options: `FCL`, `LCL`. Mandatory only if Shipment Cost is enabled in Configuration |
2. Location: After MBL Reference
**b) Shipment Cost Creation:**
1. User selects **Vessel Schedule** → System fetches Shipping Line.
2. User selects **Shipment Type (FCL/LCL)** in the header.
3. User adds Containers (with container type).
4. System looks up **Template Charges** that is active & effective for that Cargo Type + Shipping Line + Container Types + Shipment Type + Date within template’s Effective From/To.
5. System auto-populates Shipment Cost Charges grid with matching pre-defined charges.
* User can still override amounts if needed.
6. Refresh Template Charges re-applies steps 4–5 using the any of the following changes: Cargo Type + Shipping Line + Container Types + Shipment Type.
7. If no Template Charges is found then give a warning to the user informing him that no template cost will be applied. e.g. **“**_No active cost/sales charge template found for the selected criteria._**”** Shipment Type._**”**
```
\[ + Add Charges \] \[ Refresh Template Charges \]
```
<table>
<tr>
<td>
**Charge**
</td>
<td>
**Type**
</td>
<td>
**Container**
</td>
<td>
**Currency**
</td>
<td>
**Amount**
</td>
<td>
**VAT Type**
</td>
<td>
**VAT Amount**
</td>
<td>
**Total**
</td>
<td>
**Exchange Rate**
</td>
<td>
**…**
</td>
</tr>
<tr>
<td>Basic Freight</td>
<td>Collect</td>
<td>TJIE5492567</td>
<td>USD</td>
<td>500</td>
<td>Exempt</td>
<td>0</td>
<td>500</td>
<td>47.02</td>
<td> </td>
</tr>
<tr>
<td>Terminal Handling Charges</td>
<td>Collect</td>
<td>TJIE5492567</td>
<td>MUR</td>
<td>150</td>
<td>15%</td>
<td>45</td>
<td>345</td>
<td>1</td>
<td> </td>
</tr>
<tr>
<td>Basic Freight</td>
<td>Collect</td>
<td>MSCU5492567</td>
<td>USD</td>
<td>900</td>
<td>Exempt</td>
<td>0</td>
<td>900</td>
<td>47.02</td>
<td> </td>
</tr>
<tr>
<td>Seal Fee</td>
<td>Prepaid</td>
<td>MSCU5492567</td>
<td>MUR</td>
<td>30</td>
<td>Exempt</td>
<td>0</td>
<td>30</td>
<td>1</td>
<td> </td>
</tr>
<tr>
<td>DO Fee</td>
<td>Prepaid</td>
<td>MSCU5492567</td>
<td>MUR</td>
<td>30</td>
<td>15%</td>
<td>4.5</td>
<td>34.5</td>
<td>1</td>
<td> </td>
</tr>
<tr>
<td>MACCS Fee</td>
<td>Collect</td>
<td> </td>
<td>MUR</td>
<td>325</td>
<td>15%</td>
<td>48.75</td>
<td>373.75</td>
<td>1</td>
<td> </td>
</tr>
</table>
**Acceptance Criteria:**
* System automatically fetches applicable template charges when containers are added to a shipment.
* Users can override amounts if needed, but Container cannot be altered.
* Option to “Refresh Template Charges” so that user can refresh or take latest charges from templates.