Skip to content

[Bug][SubscriptionBilling]: Outdated ship-to address used on invoice when contract sell-to address is updated #6974

@miljance

Description

@miljance

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

  1. Create a customer contract for any customer with at least one line item.
  2. Update the customer's address (e.g. change street from Petuelring 130 to Petuelring 111).
  3. Update the Sell-to Address on the contract to match the new address.
  4. Leave the Ship-To field on the contract as Default (Sell-to) — do not change it.
  5. 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

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedThe issue is approvedFinanceGitHub request for Finance area

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions