How to Calculate current Sales Price of item from Code (after evaluating all trade agreements and discount offers)

陌路散爱 提交于 2019-12-11 05:09:03

问题


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:


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.



来源:https://stackoverflow.com/questions/14855653/how-to-calculate-current-sales-price-of-item-from-code-after-evaluating-all-tra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!