Hi.
I use uc_views to generate various reports.
I can make reports with each order's ex. VAT and VAT amount, but there is no way to retreive the customer's VAT number in views.
This would allow to generate the yearly list of client and suppliers VAT numbers that needs be file to the VAT administration.
Did I miss something or is this feature missing ?

CommentFileSizeAuthor
#3 add_views_support.patch1.76 KBsplash112

Comments

ehanuise’s picture

I asked on uc_views' issue tracker, they say this belongs here.
Is there any plan for this ?
Any pointers on how to code it ? (I'm not a coder but I can patch here and there.)

wimh’s picture

Version: 6.x-1.0-beta1 » 6.x-2.x-dev

Yes this is the right place.

Views support would be great, though I don't have time to do it. If anyone could provide a patch I'll certainly accept it.

Have a look at any other module that provides views support. I believe you should create a uc_vat_number.views.inc file which defines the right callbacks. If you have a good example (a module that does something very similar, i.e. export a field to views for an existing node type), adapting that to uc_vat_number should be relatively straightforward.

splash112’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.76 KB

Maybe better late then never?
Please find patch attached.