本文介绍了如何从代码中计算商品的当前销售价格(在评估所有贸易协议和折扣优惠之后)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发一个SSRS报告,其中将列出所有项目及其销售价格,一些项目具有折扣优惠,一些具有贸易协议,并且某些项目都已应用于它们,我想知道是否有内置方法在考虑所有要约和贸易协议后,它将返回当前的销售价格.

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.

推荐答案

查找贸易协定的逻辑包含在类PriceDisc中.如果没有协议,它也会有一个后备.

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

在表InventTable上,有一种方法salesPriceAgreement()使用该类,并且可以满足您的需要,或者至少充当使用该类的示例.

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.

这篇关于如何从代码中计算商品的当前销售价格(在评估所有贸易协议和折扣优惠之后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 04:59