Daily updates from Odoo
Friday, July 5, 2024
1 change
Resolved issues and error corrections
This fix corrects how AvaTax determines which location information to use when generating tax reports. Previously, the system prioritized GPS coordinates (latitude/longitude) over actual street addresses, which prevented important address fields from being populated in AvaTax reports. Now the system will use the customer's address information first, only falling back to GPS coordinates if no address is available. This ensures AvaTax reports include complete address details, which is critical for accurate tax calculations and billing.
Original PR description
Before this commit, avatax used the longitude and latitude in priority even if the partner has an address. The problem with this is that when you print the AvaTax report, the fields DestStreet, DestCity, and DestPostalCode are not populated because AvaTax was not sent any of that information. The customer needs those fields to be populated or else they may be charged more money. So now it will be the opposite, we will use the address in priority but if the customer has a delivery address with no address information we will use the latitude and longitude of the delivery address partner. Task: 4011481 Forward-Port-Of: odoo/enterprise#65971 Forward-Port-Of: odoo/enterprise#65726