Posted on 22/08/2012 09:04:27
Hi
When adding a order I am changing the orderline price using the OrderLine.SetUnitPrice(double price) method and it works just as it should. But when if someone on the site is changing the language/currency I get this error "Attempt to aritmatic with two prices of different currency", see below. Is this some Bug in DW that it cant handle the currency change when changed the orderline unitprice?
Best regards
//Magnus
Server Error in '/' Application.
Attempt to aritmatic with two prices of different currency
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Dynamicweb.eCommerce.Prices.PriceInfoCurrencyException: Attempt to aritmatic with two prices of different currency
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[PriceInfoCurrencyException: Attempt to aritmatic with two prices of different currency]
Dynamicweb.eCommerce.Prices.PriceInfo.Add(IPriceInfo info) +354
Dynamicweb.eCommerce.Prices.PriceInfo.Add(IWithPrice priceholder) +44
Dynamicweb.eCommerce.Orders.OrderLineCollection.get_Price() +169
Dynamicweb.eCommerce.Orders.Order.get_PriceBeforeFees() +109
Dynamicweb.eCommerce.Frontend.Renderer.RenderOrderDetails(Template template, Order order, Boolean extendedProperties) +5631
Dynamicweb.eCommerce.Frontend.Renderer.RenderOrder(Order Order, Template Template, Boolean ExtendedProperties, Int32 stepReq) +107
Dynamicweb.eCommerce.Frontend.Renderer.RenderOrder(Order Order, Template Template, Boolean ExtendedProperties) +20
Dynamicweb.Frontend.PageView.RenderPageTemplateExtenders(Template Template) +761
Dynamicweb.Frontend.PageView.SetPageTemplateValues() +14335
Dynamicweb.Frontend.PageView.Output() +843
Dynamicweb.Frontend.PageviewControl.ParseControls() +62
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
System.Web.UI.Control.AddedControl(Control control, Int32 index) +277
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.547