Skip to content

Commit

Permalink
Merge pull request #14636 from transcom/B-22187
Browse files Browse the repository at this point in the history
MAIN B-22187 - Display tertiary delivery address under updated shipment in H&A Log
  • Loading branch information
r-mettler authored Jan 22, 2025
2 parents 5d18ae2 + 28093d4 commit 335eb35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/constants/MoveHistory/Database/FieldMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export default {
shipment_type: 'Shipment type',
pickup_address: 'Pickup Address',
secondary_pickup_address: 'Second Pickup Address',
has_secondary_pickup_address: 'Secondary Pickup Address',
has_secondary_pickup_address: 'Second Pickup Address',
tertiary_pickup_address: 'Third Pickup Address',
has_tertiary_pickup_address: 'Third Pickup Address',
destination_address: 'Delivery Address',
secondary_destination_address: 'Second Delivery Address',
has_secondary_delivery_address: 'Secondary Delivery Address',
has_secondary_delivery_address: 'Second Delivery Address',
tertiary_destination_address: 'Third Delivery Address',
has_tertiary_destination_address: 'Third Delivery Address',
has_tertiary_delivery_address: 'Third Delivery Address',
receiving_agent: 'Receiving agent',
releasing_agent: 'Releasing agent',
tio_remarks: 'Max billable weight remark',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ describe('when given an mto shipment update with mto shipment table history reco
status: 'SUBMITTED',
tac_type: 'NTS',
uses_external_vendor: true,

has_secondary_pickup_address: true,
has_secondary_delivery_address: true,
has_tertiary_pickup_address: false,
has_tertiary_delivery_address: true,
advance_amount_requested: 100,
destination_postal_code: '29102',
estimated_incentive: 2252814,
Expand Down Expand Up @@ -103,6 +106,10 @@ describe('when given an mto shipment update with mto shipment table history reco
[FieldMappings.sit_estimated_entry_date, formatCustomerDate(changedValues.sit_estimated_entry_date)],
[FieldMappings.sit_estimated_weight, formatWeight(Number(changedValues.sit_estimated_weight))],
[FieldMappings.spouse_pro_gear_weight, formatWeight(Number(changedValues.spouse_pro_gear_weight))],
[FieldMappings.has_secondary_pickup_address, changedValues.has_secondary_pickup_address ? 'Yes' : 'No'],
[FieldMappings.has_secondary_delivery_address, changedValues.has_secondary_delivery_address ? 'Yes' : 'No'],
[FieldMappings.has_tertiary_pickup_address, changedValues.has_tertiary_pickup_address ? 'Yes' : 'No'],
[FieldMappings.has_tertiary_delivery_address, changedValues.has_tertiary_delivery_address ? 'Yes' : 'No'],
])('displays the correct details value for %s', async (label, value) => {
const targetItem = Object.fromEntries(
Object.entries(changedValues).filter(([key]) => FieldMappings[key] === label),
Expand Down

0 comments on commit 335eb35

Please sign in to comment.