Hi JK-05100855-0,
I think Arvind is right. I tried to find it in code and my preliminary conclusion is that billing schedules don't go through the Pricing management engine at all:
- A billing schedule line with pricing method Standard gets its price from the classic trade agreement search (the one Use trade agreements switches on). That search looks at item, customer or price group, currency and quantity, but it doesn't go through the attribute matching of Pricing management, so your attribute-based price isn't found and the unit price stays blank.
- Sales orders created by Subscription billing are flagged on purpose to skip the Pricing management calculation when attribute-based pricing is on. The order keeps the billing schedule price, which is why recalculating it didn't help.
If that's the case, it isn't a setup issue on your side. I'd suggest the following:
1. For subscription items, maintain a regular sales trade agreement price without price attributes. The billing schedule should normally pick that up through Use trade agreements.
2. If the price really has to come from your attribute rules, that needs a small extension on the billing schedule line price that asks the Pricing management engine for a single-line price, the same calculation the pricing calculation API offers:
https://learn.microsoft.com/dynamics365/supply-chain/unified-pricing-management/upm-pricing-calculation-api
I'd put that extension on the billing schedule rather than on the order, because the order deliberately follows the billing schedule price.
Patrick