The RateM_primary_uom_basis table defines Primary_UOM_Basis and the default Qty Source (Dim1) per primary UOM code. That default applies for DOC, SHP, TAR, VOY, WHS alike unless you override it per category on the Per-category Dim1 & Dim2 tab. Dimension 2 (tariff source) is still configured per category + UOM there.
Master tab: view/edit the 42-code basis grid and default Dim1 codes. Apply to Dim1 mapping writes defaults into rate_basis_dimension1_mapping for every category × primary UOM that exists in RateM_rate_basis_master. Rows with yes under Manual allow manual quantity when automation does not apply.
RateM_rate_basis_master.primary_uom_code ↔ charges via RateM_charge_rate_basis_map. Use Per-category Dim1 & Dim2 for scope, Dim2 rate source, and charge links; use Detailed matrix for the full UOM × rate basis × charge grid.
RateM_primary_uom_basis not found. Run:
npm run rate-basis:primary-uom-basis
(from backend)
rate_basis_dimension1_mapping not found. Run:
npm run rate-basis:dim1-table
(from backend) or
node scripts/run_create_rate_basis_dimension1_mapping.js
Columns match the logistics UOM / document / service list. Default Qty Source (Dim1) is stored as default_quantity_source_code and drives new per-category rows until overridden.
| Code | Type | Manual | Category | Primary_UOM_Basis | Default Qty Source (Dim1) | Notes | |
|---|---|---|---|---|---|---|---|
| Loading master… | |||||||
port_group_rate_matrix (container/cbm), tariff amounts come from the Port Group Rate Matrix. Configure Dim 2 per UOM above, then manage matrix rates here.
Open Port Group Rate Matrix
One row per primary_uom_code. Linked charges are summarized by count per rate basis; open Detailed matrix for the full list with descriptions. Save per row — success is shown next to the button.
| Primary UOM | # bases | Qty source (Dim 1) | Scope | Manual OK | Rate source (Dim 2) | Rate basis → Linked charges | Notes | |
|---|---|---|---|---|---|---|---|---|
| Loading… | ||||||||
Each row is one link: primary UOM (from rate basis master) ↔ rate_basis_code + name ↔ charge code + description. Data from the same APIs as the config grid.
| Primary UOM | Rate basis code | Rate basis name | Charge code | Charge description |
|---|---|---|---|---|
| Load the page or switch category to populate. | ||||