diff --git a/src/components/PricingView.tsx b/src/components/PricingView.tsx index c941636..a909fed 100644 --- a/src/components/PricingView.tsx +++ b/src/components/PricingView.tsx @@ -230,6 +230,15 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, else if (v === 1) unitErrors.push(`${name}: value is 1`); }); + // NW > GW check + if (nwIdx >= 0 && gwIdx >= 0) { + const nw = parseFloat(String(row[nwIdx] ?? '').replace(',', '.')); + const gw = parseFloat(String(row[gwIdx] ?? '').replace(',', '.')); + if (!isNaN(nw) && !isNaN(gw) && nw > gw) { + unitErrors.push(`NW (${nw}) > GW (${gw})`); + } + } + return { row, dataIndex,