Skip to content

[Bug][SubscriptionBilling]: Default Dimension Priorities not respected when creating Sales Invoice from Customer Subscription Contract #8084

@miljance

Description

@miljance

Describe the issue

When creating a Sales Invoice from a Customer Subscription Contract, the Default Dimension Priorities (set for source code "Sales") are not respected. The dimension value is incorrectly taken from the Customer instead of the Item, regardless of the configured priority order.

Setup:

  • Customer has Global Dim 1, Value = A
  • Item has Global Dim 1, Value = B
  • Default Dimension Priorities: Item = 1 (highest), Customer = 2

After generating the Sales Invoice from the Customer Subscription Contract, Global Dimension 1 is set to Value A (from Customer) instead of Value B (from Item).

Expected behavior

Global Dimension 1 should be set to Value B (from Item), as the Item has the higher priority (1) over the Customer (2) in the Default Dimension Priorities for source code "Sales".

Steps to reproduce

  1. Open Default Dimension Priorities and configure source code Sales with: Item = priority 1, Customer = priority 2.
  2. Set up a Customer with Global Dim 1 = Value A.
  3. Set up an Item with Global Dim 1 = Value B.
  4. Create a Customer Subscription Contract (e.g. DV000028) using that Customer and Item.
  5. Generate a Sales Invoice from the Subscription Contract.
  6. Open the created Sales Invoice and inspect the value of Global Dimension 1.
  7. Observe that the value is A (from Customer) instead of B (from Item).

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