[X] My version of the plugin is v4.0.0-beta.0 or above.
MyParcelNL version
v4.0.0-beta.3
PrestaShop version
8.1.7
PHP version
8.1
What went wrong?
When sending data to MyParcelNL, in myparcelnl/src/Pdk/Base/Adapter/PsAddressAdapter.php "person" is created twice, in createFromAddress() from an address, and in createFromCustomer() from a customer account. Both those methods are combined to a single result in fromOrder() method, and "person" information from account is being used.
In a situations when customers account have different personal information than adress this means that wrong data is being send, and later wrong labels are being printed.
Reproduction steps
Create an account.
Create an address with different name and last name.
Version check
MyParcelNL version
v4.0.0-beta.3
PrestaShop version
8.1.7
PHP version
8.1
What went wrong?
When sending data to MyParcelNL, in myparcelnl/src/Pdk/Base/Adapter/PsAddressAdapter.php "person" is created twice, in createFromAddress() from an address, and in createFromCustomer() from a customer account. Both those methods are combined to a single result in fromOrder() method, and "person" information from account is being used. In a situations when customers account have different personal information than adress this means that wrong data is being send, and later wrong labels are being printed.
Reproduction steps
Relevant log output
No response
Additional context
No response