Display prices with VAT in orders and on invoices too

reglogge - July 1, 2009 - 10:54
Project:Ubercart 2 VAT support
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Thanks for this great module!

I would however like to be able to display the prices inclusive of VAT in orders and on invoices too.

Specifically in the lines after "Products on order" that would be much better for customers receiving confirmation mails or invoices or reviewing their orders on the website.

How could one go about this?

Maybe by adding a new case-statement in the function uc_vat_price_handler_alter(&$price, &$context, &$options) in the VAT price alterer callback function?

I'm no genius at PHP so any help would be greatly appreciated.

#1

longwave - July 3, 2009 - 16:49

Order and invoice products are listed without VAT, as VAT is then shown as a separate line item. If I add VAT to products in these pages, I believe the order total will not be correct as the VAT will effectively be included twice.

I guess the VAT breakdown that is used in the cart checkout pane should also be shown on orders and invoices, and the VAT line item should be shown as "including VAT" rather than adding it to the total. I don't have time to work on this feature right now, though patches/suggestions on how to implement and display this are welcome.

#2

longwave - September 24, 2009 - 10:44
Status:active» fixed

This should be fixed with all the order_product and line item changes in rc7.

#3

System Message - October 8, 2009 - 10:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.