How to Calculate current Sales Price of item from

2019-08-13 00:27发布

I need to develop a SSRS report which will list all items and their sales prices, some items have discount offers, some have trade agreements and some items have both applied on them, I am wondering if there is a built-in method which will return current sales price after taking all offers and trade agreements into account.

any code example would be much appreciated.

1条回答
虎瘦雄心在
2楼-- · 2019-08-13 00:55

The logic for finding trade agreements is contained in class PriceDisc. It also has a fallback if no agreements exist.

On table InventTable there's a method salesPriceAgreement() which uses that class and might do just what you need or at least serve as an example of how to use the class.

查看更多
登录 后发表回答