This topic is locked
[SOLVED]

 Invoices template - How to?

12/3/2012 11:03:23 AM
PHPRunner General questions
S
snape author

Hello there,
I have recently bought the invoices template and would like to be able to incorporate it into my existing project.
My existing project shows a list of invoices. Each invoice contains links to the items that make it up (which we currently use for guidance to create invoices in word).
I would like to be able to press a button ideally alongside where the buttons: inline add, edit selected, delete are placed.
Would it be possible to explain broadly how I do this please?
Thanks a lot for any guidance on this.
Spencer

Sergey Kornilov admin 12/3/2012

If I understand your question right you can add your button to each line in Visual Editor. Right click where you need your button to go and choose Insert->Button.

S
snape author 12/4/2012



If I understand your question right you can add your button to each line in Visual Editor. Right click where you need your button to go and choose Insert->Button.


Hi Sergey,
Thanks for your response.
Once I have inserted the button I take it I need to program the button to create the invoice or send the items to an invoice display page.
Could you tell me what I need to put in the code of the button please?
Thanks
Spencer

Sergey Kornilov admin 12/4/2012

I'm not quite sure what "create the invoice" means in this context. Invoices are created manually. What you can do is to make your button redirect user to invoice add page.
See example #4 at http://xlinesoft.com/phprunner/docs/inserting_button.htm

S
snape author 12/5/2012

Sorry, I'm being really slow on the uptake here. I guess I just don't understand how the whole template/invoices template thing works. In the example here: http://demo.asprunner.net/volinrok_yahoo_com/Invoice1/invoices_list.php?a=return when you click on the magnifying glass it shows an invoice. On my existing project when I click on the magnifying glass it just views the record and I don't know how to change it.

S
snape author 12/5/2012



Sorry, I'm being really slow on the uptake here. I guess I just don't understand how the whole template/invoices template thing works. In the example here: http://demo.asprunner.net/volinrok_yahoo_com/Invoice1/invoices_list.php?a=return when you click on the magnifying glass it shows an invoice. On my existing project when I click on the magnifying glass it just views the record and I don't know how to change it.


Ah it's just clicked for me. The invoice template is just a template to either start a project from or for you to learn from (?). I thought that once you installed it you could add the same functionality to your existing project in a kind of automatic way.
I think I can create invoices in my existing project using the template as a guide. The first thing I need to is display a list of budget items from another table dependant if they are linked to the current selected invoice. The rest of the info should be relatively simple to format in the visual editor.
Thanks for any advice.
Spencer

S
snape author 12/5/2012



Ah it's just clicked for me. The invoice template is just a template to either start a project from or for you to learn from (?). I thought that once you installed it you could add the same functionality to your existing project in a kind of automatic way.
I think I can create invoices in my existing project using the template as a guide. The first thing I need to is display a list of budget items from another table dependant if they are linked to the current selected invoice. The rest of the info should be relatively simple to format in the visual editor.
Thanks for any advice.
Spencer


It's ok, please ignore last reply i can see it now.