Describe the issue
When a customer's address is updated and the corresponding Sell-to address on the contract is updated to match, the Ship-To field remains set to Default (Sell-to). Despite this, when an invoice is created from the contract, the old customer address is used as the ship-to address instead of the newly updated one.
Expected behavior
When Ship-To is set to Default (Sell-to) on a contract, the ship-to address on the generated invoice should always reflect the current Sell-to address on the contract — not a previously cached or overridden value.
Steps to reproduce
- Create a customer contract for any customer with at least one line item.
- Update the customer's address (e.g. change street from Petuelring 130 to Petuelring 111).
- Update the Sell-to Address on the contract to match the new address.
- Leave the Ship-To field on the contract as
Default (Sell-to) — do not change it.
- Create an invoice from the contract.
- ❌ The invoice is generated with the old customer address as the ship-to address.
Additional context
No response
I will provide a fix for a bug
Describe the issue
When a customer's address is updated and the corresponding Sell-to address on the contract is updated to match, the Ship-To field remains set to
Default (Sell-to). Despite this, when an invoice is created from the contract, the old customer address is used as the ship-to address instead of the newly updated one.Expected behavior
When Ship-To is set to
Default (Sell-to)on a contract, the ship-to address on the generated invoice should always reflect the current Sell-to address on the contract — not a previously cached or overridden value.Steps to reproduce
Default (Sell-to)— do not change it.Additional context
No response
I will provide a fix for a bug