Copied to clipboard

Flag this post as spam?

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


  • Steve Morgan 1052 posts 3261 karma points c-trib
    Mar 16, 2016 @ 11:26
    Steve Morgan
    0

    Subtotal Includes VAT in Tea Commerce Order Details in Back Office

    Hi,

    I'm running latest Umbraco and TC v3.1.0 * .

    I've got a store which has VAT enabled though the prices are keyed without VAT.

    Everything works great - except the order is stored as the Subtotal inclusive of VAT in the back office.

    When I create an order which has VAT applied – the subtotal the VAT amount and Total is correct on my order summary. enter image description here

    The email out was wrong: enter image description here

    I can fix that by changing (in the template):

    Model.SubtotalPrice
    to
    Model.SubtotalPrice.Value.Formatted  
    

    But the order still shows incorrectly in the backoffice:

    enter image description here

    Note how the unit price is inclusive of VAT and the subtotal includes it too.. what have I done wrong here?

    Kind regards

    Steve

    • just noticed some dlls in the bin report earlier versions but I'm assuming that's correct?
  • Anders Burla Johansen 2560 posts 8256 karma points
    Mar 16, 2016 @ 12:28
    Anders Burla Johansen
    0

    Just edit the edit-order.cshtml in the MacroScripts/teacommerce folder. That is the one used to render the Admin UI.

    Kind regards

    Anders

  • Steve Morgan 1052 posts 3261 karma points c-trib
    Mar 16, 2016 @ 13:18
    Steve Morgan
    0

    Purrfect!

    Now if I can just get Paypal to callback I'm there!

    As someone who has inherited this project - are these files overwritten on upgrade or are they stuff from the starter kit that devs can change without worry?

    Thanks for the swift response Anders.

Please Sign in or register to post replies

Write your reply to:

Draft