Hi Matt,
I'm having some issue with decimal conversion with Tea commerce.
For an eg, im adding an order property Properties[shippingRateWithVat] with value "12.34"
But I'm getting a value in order.ShipmentInformation.TotalPrice.Value.WithVatFormatted as € 12,34.00
Could you please have a look into it?
Hi Matt,
Initially im taking the value in a Dictionary variable,
orderShippingProperties["shippingRateWithVat"] = shippingRateWithVatFormatted; shippingRateWithVatFormatted is a string value.
There after im updating the Order properties with the code below, var response = TC.AddOrUpdateOrderProperties(StoreId, orderShippingProperties); order.Save();
Sure, but out of the box, TC wouldn't take the value from your shippingRateWithVat property and add it to the order price, so you most have some other code somewhere else that is then adding it to the order.
Problem with decimal format
Hi Matt,
I'm having some issue with decimal conversion with Tea commerce.
For an eg, im adding an order property
Properties[shippingRateWithVat]
with value "12.34"But I'm getting a value in
order.ShipmentInformation.TotalPrice.Value.WithVatFormatted
as € 12,34.00Could you please have a look into it?
Hi Arun,
Hard to say what the issue is without seeing your calculator implementation, or however you are copying that property value into the price.
Could you share all relevant code so I can try and locate the issue
Matt
Hi Matt,
Initially im taking the value in a Dictionary variable,
orderShippingProperties["shippingRateWithVat"] = shippingRateWithVatFormatted;
shippingRateWithVatFormatted is a string value.
There after im updating the Order properties with the code below,
var response = TC.AddOrUpdateOrderProperties(StoreId, orderShippingProperties);
order.Save();
Hi Arun,
Sure, but out of the box, TC wouldn't take the value from your
shippingRateWithVat
property and add it to the order price, so you most have some other code somewhere else that is then adding it to the order.It's that code that I need to see.
Matt
Hi Matt,
Let me check the entire solution.
Thanks :)
is working on a reply...