有关Commerce Server 2009如何舍入_cy_total_total的简单问题 [英] Simple question on how Commerce Server 2009 rounds the _cy_total_total
问题描述
由于_cy_total_total的舍入,我们偶尔会遇到异常。错误消息为:
Once in a while we get exception because of the rounding of _cy_total_total. The error message is:
"正在处理的付款总额不得超过订单总额。"当然,_cy_total_total中的值与我们收费的值不匹配,我在checkout.pipelog中看到。
"Total of the payments being processed cannot be more than order form total." Of course, the value in _cy_total_total doesn't match the value that we are charging, I see that in checkout.pipelog.
我检查了以下网站:
http://technet.microsoft.com/en-us/library/dd451693.aspx
它说:"高精度货币值有一小部分。 Commerce Server Core Systems在将高精度货币值写入字典之前对其进行舍入。这可以防止小数值创建与显示值之和不等于
的总值。"
It says: "High-precision currency values have a fractional part. Commerce Server Core Systems rounds high-precision currency values before writing them to the dictionary. This prevents a fractional value from creating a total value that is not equal to the sum of displayed values."
在"舍入"中。如果商业结束或向下舍入,我没有得到。如何计算?
In the "Rounding" section, I didn't get if Commerce rounds up or rounds down. How does it get calculated?
谢谢。
Suraj Upreti
Suraj Upreti
推荐答案
Suraj,
Suraj,
我想了解,你为什么要根据_cy_total_total收费?执行总管道后,您只需将支付金额字段设置为订单总额,然后执行结账管道。
I'm trying to understand, why are you charging based on _cy_total_total. After you execute the total pipeline, you can simply set the payment amount field to the total of the orderform then execute the checkout pipeline.
~Brad
这篇关于有关Commerce Server 2009如何舍入_cy_total_total的简单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!