Closed (won't fix)
Project:
Invoice
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Oct 2010 at 00:50 UTC
Updated:
22 Jun 2011 at 14:34 UTC
Jump to comment: Most recent file
Thanks for this module. It would be really great if this module had a views integration, so one can list invoices by author (user) and use the views as reports - sales per user, per customer etc?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | views-integration-937800-5.patch | 27.99 KB | samhassell |
Comments
Comment #1
odisei commentedanyone?
Comment #2
bloyo commentedIt would be nice .. for sure. But this probably regurest totaly diferent approch .. cck and stuff
Comment #3
polmaresma commentedViews integration will allow us to do calculations, filters... it's a must (IMO).
Thank's for the great work!
Comment #4
samhassell commentedHey guys,
I'm working on a patch for this, I'll make it available in a couple of days.
Everything available on the invoice form and on the /invoices list page will be exposed to views.
The patch probably won't expose line items to views at this point. Though I think it could be done.
Cheers,
Sam.
Comment #5
samhassell commentedHere's a patch that adds basic views integration to the invoice module.
My first patch with Git so let me know if there are any issues :)
Comment #6
pietervogelaar commentedHi Sam,
Thanks for your contribution! Against which version is it patched? Invoice 6.x-1.1?
Greetings,
Pieter
Comment #7
samhassell commentedHi Pieter,
It's against HEAD/master i guess, I checked it out from git without supplying a version number.
I originally did it against 6.x-1.1 but I converted it to git master and changed the _invoice_round_and_format_money() calls to _invoice_round().
Does that help?
Comment #8
pietervogelaar commentedYes, that will help.
Thanks!
Comment #9
ballboy commentedComment #10
asb commentedHi,
the patch applies cleanly against 6.x-1.1:
It exposes a number of fields to Views; some of them work, others don't (e.g.
Error: handler for invoice_invoices > vattotal doesn't exist!). With some fields, I'm getting errors like this:But it's a start - thanks!
Comment #11
pietervogelaar commentedDrupal 6 invoice module will get maintenance fixes only.
Pieter