singspiel Posted April 1, 2003 Share Posted April 1, 2003 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 More sharing options...
Waza04 Posted April 1, 2003 Share Posted April 1, 2003 Good Idea!!! Link to comment Share on other sites More sharing options...
Dan1113 Posted April 1, 2003 Share Posted April 1, 2003 Great idea. :) Dan1113 Tailfeathers Network Link to comment Share on other sites More sharing options...
Waza04 Posted April 2, 2003 Share Posted April 2, 2003 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 More sharing options...
singspiel Posted April 2, 2003 Author Share Posted April 2, 2003 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 More sharing options...
Priest Posted April 2, 2003 Share Posted April 2, 2003 Wow! What a great suggestion... definately something I and many others would use. P. Link to comment Share on other sites More sharing options...
Dan1113 Posted April 2, 2003 Share Posted April 2, 2003 I need to start learning PHP so I can start writing it. :lol: Dan1113 Tailfeathers Network Link to comment Share on other sites More sharing options...
singspiel Posted April 2, 2003 Author Share Posted April 2, 2003 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 More sharing options...
crossdomain Posted April 3, 2003 Share Posted April 3, 2003 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 More sharing options...
singspiel Posted April 3, 2003 Author Share Posted April 3, 2003 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 More sharing options...
burt Posted April 3, 2003 Share Posted April 3, 2003 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 More sharing options...
crossdomain Posted April 3, 2003 Share Posted April 3, 2003 I agree to the above post and would start making it in order to contribute it to the OSC community. Link to comment Share on other sites More sharing options...
singspiel Posted April 3, 2003 Author Share Posted April 3, 2003 Thanks Gary Sounds an excellent start. i'm not that experienced at PHP how do create a new function? Any ideas about the multiple status changing? Nev Link to comment Share on other sites More sharing options...
crossdomain Posted April 3, 2003 Share Posted April 3, 2003 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 More sharing options...
singspiel Posted April 3, 2003 Author Share Posted April 3, 2003 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 More sharing options...
mattice Posted April 3, 2003 Share Posted April 3, 2003 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 More sharing options...
singspiel Posted April 3, 2003 Author Share Posted April 3, 2003 Great thanks Matt. I will get working, and let you guys how I get on. If someone thinks they can do this quicker or better please let me know. Thanks Nev Link to comment Share on other sites More sharing options...
mattice Posted April 3, 2003 Share Posted April 3, 2003 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 More sharing options...
azer Posted May 18, 2003 Share Posted May 18, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.