One of our customers is complaining about the way custom ship-to address works on sales orders.
When they select "Custom Address", they want the system to suggest values from the default shipping address and be able to change them. Now the system suggests values from the customer's billing address which is often not an address that is used for shipping.
How can we change this behaviour?
Thanks,
Jim
Most Welcome
Thanks Lucky, that was exactly what I was looking for.
you will not find that point in the documentation but I can tell you the exact points for point a.) Your developers need to subscribe the even OnAfterValidateShippingOptions(Rec, ShipToOptions); available on Sales Order Page.
for point b.) your developers need to create a page extension for the sales order Card Page and use
Layout
{
Modify(Ship-to Code)
{
Editable = True;
}
}
Please Mark my Answer Varified if it helps you
Thanks, then I know that we can not change the default behaviour without customization .
So the solution would be:
a. Customizing what address BC fetches when choosing "Custom Address"
or
b. Making the ship-to address fields editable also when "Alternate Shipping Address" has been chosen and a saved shipping address has been fetched.
Where can we find documentation regarding how to customize that? I have programmers that can do it but we need a point in the right direction.
ok Understood,
Now let me tell you how the Base system is working if you select "Alternate Shipping Address" option in the drop down then it will open a popup window with all the available ship-to codes for the customer you can choose any of them,
but if you select the "custom address" Option in the drop-down then the system by default enters the Blank Ship to Code and make the ship to code field uneditable but the shipping address fields got enabled and uneditable with default values filled from the customer master,
if you need to change them then you need to modify these fields manually or as you asked you need the default shipping address to be filled in these fields you need to do customization for that.
We have not customized anything. What I meant is the "Custom Address" alternative in the Ship-to dropdown that is shown on the image below.
When this alternative is selected, Business Central shows the shipping address fields and populates them with the customer's billing address. We want to change that so that the address is fetched from the customer's default shipping address instead (the address that is shown when "Alternate shipping address" is selected).
you need to explain your issue in more detail as I understood from your query is u have a customized field as a Custom address where the shipping address should be suggested as a lookup but currently the Billing addresses are suggested. if I understood correctly then this is the issue at the customization level may be a wrong lookup or the wrong code is placed to suggest the addresses.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156