LogisticsPostalAddress address = LogisticsLocationEntity::findPostalAddress(
this,
LogisticsLocationRoleType::Invoice,
DateTimeUtil::utcNow(),
false);
but it returns me not Invoice address, but delivery one. however I passed this as argument LogisticsLocationRoleType::Invoice. this happens because under the hood it calls this. so just returns me delivery address.
if to use custom method as an option I see I can use such code
InventLocation inventLocation;
LogisticsEntityPostalAddressView postalAddressView;
inventLocation = inventLocation::find(inventlocation.InventLocationId);
if (inventLocation)
{
select firstonly postalAddressView
where postalAddressView.Entity == inventLocation.RecId
&& postalAddressView.EntityType == LogisticsLocationEntityType::Warehouse
&& postalAddressView.isPrimary == NoYes::Yes;
}
maybe i can use some standard method?

Report
All responses (
Answers (