When making a PO from a Sales Order the address information is written differently to the database as opposed to making a PO from scratch manually.
Specifically, deladd5 is concatenated with deladd6 when creating a PO from a Sales Order and all other deladd fields are shifted to the right one field if looking at the record. If making a PO from scratch manually all deladd fields come in matching the Location deladdr fields.
If you open a PO created from a Sales Order for edit and refresh the location the address fields will update to match a PO made from scratch manually.
Looking into this now...
So I see we are concatenating deladd5 and deladd6 during the insert perhaps to put the Location name in deladd1. While I understand why that is being done to facilitate the PO PDF we should NOT have an inconsistency between the way it is done when making a PO from a Sales Order versus making a PO from scratch manually.
Does anybody know the genesis of how we got here and what we should do to make it consistent? I don't care for the mismatch on deladd field data so I would prefer it matches but then we have an issue with no Location Name being printed on the invoice PDF if this is fixed.