Closed ajsuth closed 2 years ago
After realising the gotcha with the patching partial classes using dynamic xp (from buyer.xp.MarkupPercent), I validated that this line of code was resetting all other lineitem xp to null, which was not the intention.
In considering whether we further investigate removing null properties to avoid data loss on top of minimising xp pollution, this may not be ideal as there may be valid reasons to want to null an existing xp value, which may require overengineering to manage long-term.
Amended patch of lineitem with concrete xp class to dynamic xp class to avoid overwriting/resetting all xp of the lineitem during the order calculate process.