fix issue -> consolidation

This commit is contained in:
Marshal
2026-08-24 12:24:23 +00:00
parent 979f024869
commit 2a107e8ba3
20 changed files with 475 additions and 39 deletions

View File

@@ -1024,8 +1024,9 @@ function PriceConfirmModal({
<Stack gap={6}>
{overweightLines.map((line, i) => (
<Text key={i} fz="sm" c="#9A5B00">
{line.containerTypeCode}: {line.totalVgmTons}t exceeds limit{" "}
{line.maxAllowedTons}t (+{line.excessTons}t overweight)
{line.containerLabel || line.containerTypeCode}:{" "}
{line.totalVgmTons}t exceeds limit {line.maxAllowedTons}t (+
{line.excessTons}t overweight)
</Text>
))}
<Text fz="xs" c="#9A5B00" mt={2}>

View File

@@ -644,8 +644,9 @@ function PriceConfirmModal({
<Stack gap={6}>
{overweightLines.map((line, i) => (
<Text key={i} fz="sm" c="#9A5B00">
{line.containerTypeCode}: {line.totalVgmTons}t exceeds limit{" "}
{line.maxAllowedTons}t (+{line.excessTons}t overweight)
{line.containerLabel || line.containerTypeCode}:{" "}
{line.totalVgmTons}t exceeds limit {line.maxAllowedTons}t (+
{line.excessTons}t overweight)
</Text>
))}
<Text fz="xs" c="#9A5B00" mt={2}>

View File

@@ -33,9 +33,12 @@ export interface SubmitContractResponse {
message?: string;
}
/** A container line whose total VGM exceeds the weight-limit rule. */
/** One physical container whose VGM exceeds the weight-limit rule. */
export interface OverweightLine {
containerTypeCode: string;
/** Container number, or "<code> #2" when unnumbered. */
containerLabel: string;
/** This container's VGM — the limit is per container, never pooled. */
totalVgmTons: number;
maxAllowedTons: number;
excessTons: number;

View File

@@ -70,6 +70,9 @@ export interface ShippingLinePriceQuote {
/** Containers over their type's weight limit — a surcharge, not a block. */
overweightLines: {
containerTypeCode: string;
/** Container number, or "<code> #2" when unnumbered. */
containerLabel: string;
/** This container's VGM — the limit is per container, never pooled. */
totalVgmTons: number;
maxAllowedTons: number;
excessTons: number;