Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arun 106 posts 277 karma points
    Mar 01, 2021 @ 12:30
    Arun
    0

    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.00
    Could you please have a look into it?

  • Matt Brailsford 3143 posts 16411 karma points MVP 8x c-trib
    Mar 01, 2021 @ 13:37
    Matt Brailsford
    0

    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

  • Arun 106 posts 277 karma points
    Mar 02, 2021 @ 05:04
    Arun
    0

    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();

  • Matt Brailsford 3143 posts 16411 karma points MVP 8x c-trib
    Mar 02, 2021 @ 09:06
    Matt Brailsford
    0

    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

  • Arun 106 posts 277 karma points
    Mar 10, 2021 @ 04:00
    Arun
    0

    Hi Matt,
    Let me check the entire solution.
    Thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft