Closed (fixed)
Project:
Storm
Version:
6.x-1.x-dev
Component:
Storm Project
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Jun 2010 at 12:02 UTC
Updated:
28 Jun 2010 at 19:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
tchurch commentedLooking at the patch, I hope it's not that simple.
I would think this is a duplicate of #567558: Extend auto-billing to other types of Storm node
I'm already working on allowing all types to be added to invoices.
Have a look.
Comment #2
juliangb commentedI think we may be talking at cross purposes here.
Perhaps the OP refers to the links which go to automatically filtered lists, rather than the auto-billing?
Comment #4
tchurch commentedYes. Sorry I see it now. I tested the extra line and I see what it's doing now.
It causes a small hiccup with my changes though.
Can I suggest changing the placement number at the end of each line with $w++
Then other people can add extra links without messing up the number.
See the organization.theme.inc file for example of this.
I'm going to change this in my issue anyway.
Comment #5
carsten müller commentedHi,
actually you can add an invoice to a project, right? Or do i misunderstand that. There is a select for organization and for project. So an invoice can directly assigned to a project.
In the list of invoices you can already filter for organization and for projects. So you can select all invoices which are assigned to a project.
But on the project page there is no link to the invoices list filtering for this project nid. The only thing to do is to add a link in the poject links to the invoices adding the nid of the project as filter. Thats all.
URL: storm/invoices?project_nid=xxx
Maybe this case is also handled in the issue #567558: Extend auto-billing to other types of Storm node
Greetings
Carsten
Comment #6
tchurch commentedYes, I can understand the issue now and can see the benefit too.
If you want me to, I can create a patch file for this and also make the changes in #4 too (this would keep the code for all links sections the same).
Let me know.
Comment #7
carsten müller commentedHi,
i don't mind. #6 is just one line. You can add it to your code of #4.
Comment #8
egorovanton commentedstormproject_invoices.patch queued for re-testing.
Comment #10
tchurch commentedI will re-work this patch. Probably best to keep it separate, even though it's just one line.
I will also change the other lines in this patch to use $w++.
Comment #11
tchurch commentedSee how this works.
Comment #12
juliangb commentedWhere is $w defined?
Comment #13
tchurch commentedHonestly I have no idea.
I used the same code structure from stormorganization.theme.inc and stormtask.theme.inc where is does the same thing.
I couldn't see where it was defined there either.
I tested the code and it does work.
Comment #14
juliangb commentedIt's minor, but I think the correct thing is to declare - and add it in for the other cases where it hasn't been used.
Comment #15
tchurch commentedIf we're going to declare it here we'd better go through all the theme.inc files and do the same thing there.
I've attached a patch which changes this in all files.
Comment #16
tchurch commentedI can commit this (or try) if people are happy with it.
Comment #17
juliangb commentedLooks good from a read through.
Wonder whether sticking with
$wwould be neater than$l_pos, but either way this is pretty irrelevant.Comment #18
tchurch commentedcommitted (I hope).