Skip to content

Commit

Permalink
Merge pull request #14246 from transcom/B-21667-I-13550-INT
Browse files Browse the repository at this point in the history
B-21667 B-21374 I-13550 INT
  • Loading branch information
traskowskycaci authored Nov 21, 2024
2 parents dccd6dd + 701aae3 commit fb26888
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
41 changes: 21 additions & 20 deletions src/components/Office/DefinitionLists/AllowancesList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,27 @@ const AllowancesList = ({ info, showVisualCues }) => {
it will be safe to assume it is an OCONUS order. With this, if one field is present
we show all four. Otherwise, we show none */}
{/* Wrap in FF */}
{enableUB && (info?.accompaniedTour || info?.dependentsTwelveAndOver || info?.dependentsUnderTwelve) && (
<>
<div className={descriptionListStyles.row}>
<dt>Accompanied tour</dt>
<dd data-testid="ordersAccompaniedTour">{info.accompaniedTour ? 'Yes' : 'No'}</dd>
</div>
<div className={descriptionListStyles.row}>
<dt>Dependents under age 12</dt>
<dd data-testid="ordersDependentsUnderTwelve">
{info.dependentsUnderTwelve ? info.dependentsUnderTwelve : DEFAULT_EMPTY_VALUE}
</dd>
</div>
<div className={descriptionListStyles.row}>
<dt>Dependents over age 12</dt>
<dd data-testid="ordersDependentsTwelveAndOver">
{info.dependentsTwelveAndOver ? info.dependentsTwelveAndOver : DEFAULT_EMPTY_VALUE}
</dd>
</div>
</>
)}
{enableUB &&
(info?.accompaniedTour || info?.dependentsTwelveAndOver > 0 || info?.dependentsUnderTwelve > 0) && (
<>
<div className={descriptionListStyles.row}>
<dt>Accompanied tour</dt>
<dd data-testid="ordersAccompaniedTour">{info.accompaniedTour ? 'Yes' : 'No'}</dd>
</div>
<div className={descriptionListStyles.row}>
<dt>Dependents under age 12</dt>
<dd data-testid="ordersDependentsUnderTwelve">
{info.dependentsUnderTwelve ? info.dependentsUnderTwelve : DEFAULT_EMPTY_VALUE}
</dd>
</div>
<div className={descriptionListStyles.row}>
<dt>Dependents over age 12</dt>
<dd data-testid="ordersDependentsTwelveAndOver">
{info.dependentsTwelveAndOver ? info.dependentsTwelveAndOver : DEFAULT_EMPTY_VALUE}
</dd>
</div>
</>
)}
{enableUB && info?.ubAllowance >= 0 && (
<div className={descriptionListStyles.row}>
<dt>Unaccompanied baggage allowance</dt>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Office/MoveDetails/MoveDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const MoveDetails = ({
dependentsUnderTwelve: allowances.dependentsUnderTwelve,
dependentsTwelveAndOver: allowances.dependentsTwelveAndOver,
accompaniedTour: allowances.accompaniedTour,
ubAllowance: allowances.ubAllowance,
ubAllowance: allowances.unaccompaniedBaggageAllowance,
};

const customerInfo = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ const ServicesCounselingMoveDetails = ({
dependentsUnderTwelve: allowances.dependentsUnderTwelve,
dependentsTwelveAndOver: allowances.dependentsTwelveAndOver,
accompaniedTour: allowances.accompaniedTour,
ubAllowance: allowances.ubAllowance,
ubAllowance: allowances.unaccompaniedBaggageAllowance,
};

const ordersInfo = {
Expand Down

0 comments on commit fb26888

Please sign in to comment.