Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple Print Invoice


singspiel

Recommended Posts

Would it not be a good idea to have tick boxes against orders in the list that can be selected then have a print selected invoices.

 

So we can print invoices in one go, we have to print over 100 invoices everyday gets a real pain.

 

Can anyone develop this contribution?

 

Please help i know a lot of people are up for this mod.

 

Nev Osborn

Link to comment
Share on other sites

This would be a great IDEA!! - Also - I think the following aswell!!

 

1) Multiple OrderStatus Change

2) Multiple Packing Slip Print

 

Surely this ust be easy to do!!

 

Warren

Link to comment
Share on other sites

The packing slip would just be an extension to the invoice printing.

 

You would select the relevant orders then click print invoices or print packing slip.

 

Definately multiple status changing too this would help so much!!!

 

Please one of you developers give us an idea if this is possible, or where do we start looking to develop it ourselves. :)

 

Nev

Link to comment
Share on other sites

My one worry about this working is because the invoices are made on the fly as you click on them to print, would a 100 invoices pop-up to be printed (if you selected a hundred).

 

Also don't know how they would auto-print.

 

the multiple status changing should be easier.

 

I'm only guessing maybe one of the team may have some answers?

Link to comment
Share on other sites

The best option for invoice printing is to have a seperate page designed that would accept some parameters and allow the user to filter invoices for the following

 

1. Today

2. Current Week

3. Current Month

4. Specific Date

5. From One Date to Another Date

 

The user can select any one of the options and then in a seprate window all the invoices are displayed, with a check box along side of it, then select the invoices you want to print, then click print to print the checked invoices.

 

So the user will have complete control over the invoices he wants to print.

 

I think some thing similar can be found out for packing slip.

Link to comment
Share on other sites

yeah that would work as well.

 

But i'm still got a problem with the way each of the invoices opening as html files and how to they autoprint?

 

It would be nightmare, just as much work to click on 100 invoices to print. :cry:

 

does anyone know a way to autoprint without the browser windows opening, or it automatically working throught the selected invoices?

 

I don't know if it even possible. Maybe we would have to rewrite the way invoices are produced.

 

Nev

Link to comment
Share on other sites

Make a new function within Osc to select all of orders that need printing (perhaps pick up the "pending" value).

 

Iterate thru andoutput them all into one very large HTML document. Put in a

 

<DIV style="page-break-after:always"></DIV>

 

at the end of each iteration. Press print. Go and make a cup of tea.

Link to comment
Share on other sites

When the user filters through the invoices, he can select the orders for which the status needs to be updated and then from the status drop down as in edit orders page select a status and click the change status button.

 

This would solve your problem for multiple status changing..

Link to comment
Share on other sites

Yes that would be good Jigar, but that would need a whole mod need developing which is gonna take time.

 

What Gary is suggesting is a good start which could be an ideal solution for now until we have a mod that will be more comprehensive.

 

I have so many orders in a day now that its taking more time to sit & print than do anything else.

 

I need a solution like yesterday, i will definatley be up for helping developing this mod, but in the mean time i would like to try gary's idea for now, seems quite simple. Saying that I don't how to do it....Yet!

:wink:

 

Nev

Link to comment
Share on other sites

a solution like yesterday, i will definatley be up for helping developing this mod, but in the mean time i would like to try gary's idea for now, seems quite simple. Saying that I don't how to do it....Yet!

:wink:  

Nev

 

Very basic idea... look at existing source code of osC on order fetching,

like invoice.php or something... work from there:

 

1) empty php file

2) include application_top.php (you now have native osC functions)

3) tep_db_query(SELECT blabla from orders where blabla);

4) while tep_db_fetch_aray($query) { spit out the page like Burt suggest }

5) print it.

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Just though of a crude but possible easier way to do it, on linux / unix that is. Perhaps Win too through some trick, I have no idea.

 

- Alter the invoive.php file so it shows you any additional info (payment) you want

 

- Do a select on the pending orders

 

- in the while loop call

 

exec('lynx http://site/admin/invoice.php?oID=XXX -login details >> bightmlfile.htm');

 

Untested but you get the idea.

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

  • 1 month later...

well as i m new to php i think i m gonna croos my finger and hope someone will share the code before my level would be good enough to do it two minutes ! :oops:

MS2

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...